2014-03-28 16:15:17 +01:00
|
|
|
require 'spec_helper_acceptance'
|
2013-10-16 21:46:50 +02:00
|
|
|
|
|
|
|
describe 'postgresql::server::postgis:' do
|
|
|
|
after :all do
|
|
|
|
# Cleanup after tests have ran, remove both postgis and server as postgis
|
|
|
|
# pulls in the server based packages.
|
|
|
|
pp = <<-EOS.unindent
|
|
|
|
class { 'postgresql::server':
|
|
|
|
ensure => absent,
|
|
|
|
}
|
|
|
|
class { 'postgresql::server::postgis':
|
|
|
|
package_ensure => purged,
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
|
2014-03-28 16:15:17 +01:00
|
|
|
apply_manifest(pp, :catch_failures => true)
|
2013-10-16 21:46:50 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'test loading class with no parameters' do
|
|
|
|
pp = <<-EOS.unindent
|
|
|
|
class { 'postgresql::server': }
|
|
|
|
class { 'postgresql::server::postgis': }
|
|
|
|
EOS
|
|
|
|
|
2014-03-28 16:15:17 +01:00
|
|
|
apply_manifest(pp, :catch_failures => true)
|
|
|
|
apply_manifest(pp, :catch_changes => true)
|
2013-10-16 21:46:50 +02:00
|
|
|
end
|
|
|
|
end
|