2014-01-22 01:45:58 +01:00
|
|
|
require 'spec_helper_acceptance'
|
2013-08-27 22:43:47 +02:00
|
|
|
|
2014-02-27 20:29:59 +01:00
|
|
|
describe 'postgresql::server::contrib:', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
2013-08-27 22:43:47 +02:00
|
|
|
after :all do
|
2013-09-14 07:33:46 +02:00
|
|
|
# Cleanup after tests have ran, remove both contrib and server as contrib
|
|
|
|
# pulls in the server based packages.
|
2013-09-18 23:25:51 +02:00
|
|
|
pp = <<-EOS.unindent
|
2013-09-14 07:33:46 +02:00
|
|
|
class { 'postgresql::server':
|
|
|
|
ensure => absent,
|
|
|
|
}
|
2013-09-20 15:35:24 +02:00
|
|
|
class { 'postgresql::server::contrib':
|
2013-09-14 07:33:46 +02:00
|
|
|
package_ensure => purged,
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
|
2014-01-22 01:45:58 +01:00
|
|
|
apply_manifest(pp, :catch_failures => true)
|
2013-08-27 22:43:47 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'test loading class with no parameters' do
|
2013-09-18 23:25:51 +02:00
|
|
|
pp = <<-EOS.unindent
|
2013-09-14 07:33:46 +02:00
|
|
|
class { 'postgresql::server': }
|
2013-09-20 15:35:24 +02:00
|
|
|
class { 'postgresql::server::contrib': }
|
2013-08-27 22:43:47 +02:00
|
|
|
EOS
|
|
|
|
|
2014-01-22 01:45:58 +01:00
|
|
|
apply_manifest(pp, :catch_failures => true)
|
|
|
|
apply_manifest(pp, :catch_changes => true)
|
2013-08-27 22:43:47 +02:00
|
|
|
end
|
|
|
|
end
|