module-postgresql/spec/acceptance/postgis_spec.rb
2014-05-08 16:48:57 -04:00

29 lines
889 B
Ruby

require 'spec_helper_acceptance'
describe 'postgresql::server::postgis:', :unless => fact('operatingsystem') == 'RedHat' && fact('operatingsystemrelease') == '7.0' 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
apply_manifest(pp, :catch_failures => true)
end
it 'test loading class with no parameters' do
pp = <<-EOS.unindent
class { 'postgresql::globals': manage_package_repo => true }
class { 'postgresql::server': }
class { 'postgresql::server::postgis': }
EOS
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
end