2014-01-22 01:45:58 +01:00
|
|
|
require 'spec_helper_acceptance'
|
|
|
|
|
2014-02-27 20:29:59 +01:00
|
|
|
describe 'postgresql::client:', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
2014-01-22 01:45:58 +01:00
|
|
|
after :all do
|
|
|
|
# Cleanup after tests have ran
|
|
|
|
apply_manifest("class { 'postgresql::client': package_ensure => purged }",
|
|
|
|
:catch_failures => true)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'test loading class with no parameters' do
|
|
|
|
pp = <<-EOS.unindent
|
|
|
|
class { 'postgresql::client': }
|
|
|
|
EOS
|
|
|
|
|
|
|
|
apply_manifest(pp, :catch_failures => true)
|
|
|
|
apply_manifest(pp, :catch_changes => true)
|
|
|
|
end
|
|
|
|
end
|