Fix the way we remove postgresql::client.
This commit is contained in:
parent
05b77232f9
commit
e947e96e79
2 changed files with 13 additions and 12 deletions
13
Gemfile
13
Gemfile
|
@ -1,13 +1,14 @@
|
|||
source ENV['GEM_SOURCE'] || "https://rubygems.org"
|
||||
|
||||
group :development, :test do
|
||||
gem 'rake', '10.1.1'
|
||||
gem 'puppetlabs_spec_helper', :require => false
|
||||
gem 'rspec-puppet', '~> 1.0'
|
||||
gem 'puppet-lint', '~> 0.3.2'
|
||||
gem 'beaker', :require => false
|
||||
gem 'beaker-rspec', :require => false
|
||||
gem 'serverspec', :require => false
|
||||
gem 'beaker', '~> 1.11.0', :require => false
|
||||
gem 'beaker-rspec', :path => '~/source/beaker-rspec', :require => false
|
||||
gem 'rspec-puppet'
|
||||
gem 'puppet-lint'
|
||||
gem 'serverspec'
|
||||
gem 'specinfra', '~> 1.11.0'
|
||||
gem 'jwt', '~> 0.1'
|
||||
end
|
||||
|
||||
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
||||
|
|
|
@ -12,8 +12,8 @@ describe 'server:', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily'))
|
|||
after :all do
|
||||
# Cleanup after tests have ran
|
||||
pp = <<-EOS.unindent
|
||||
class { 'postgresql::server': ensure => absent }
|
||||
class { 'postgresql::client': ensure => absent }
|
||||
class { 'postgresql::server': ensure => absent } ->
|
||||
class { 'postgresql::client': package_ensure => absent }
|
||||
EOS
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
if fact('operatingsystem') == 'RedHat'
|
||||
|
@ -82,9 +82,9 @@ describe 'server without defaults:', :unless => UNSUPPORTED_PLATFORMS.include?(f
|
|||
}
|
||||
class { 'postgresql::server':
|
||||
ensure => absent,
|
||||
}
|
||||
} ->
|
||||
class { 'postgresql::client':
|
||||
ensure => absent,
|
||||
package_ensure => absent,
|
||||
}
|
||||
EOS
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
|
@ -133,9 +133,9 @@ describe 'server without defaults:', :unless => UNSUPPORTED_PLATFORMS.include?(f
|
|||
}
|
||||
class { 'postgresql::server':
|
||||
ensure => absent,
|
||||
}
|
||||
} ->
|
||||
class { 'postgresql::client':
|
||||
ensure => absent,
|
||||
package_ensure => absent,
|
||||
}
|
||||
EOS
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
|
|
Loading…
Reference in a new issue