Fix service_ensure.
We now test if service_ensure is 'running' or 'stopped' but it was actually picking up the default value of ensure in params.pp which was true, not present. Fix this and thereby fix the failing test.
This commit is contained in:
parent
c00b47f220
commit
192ea5e3f3
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
# PRIVATE CLASS: do not use directly
|
||||
class postgresql::params inherits postgresql::globals {
|
||||
$ensure = true
|
||||
$ensure = present
|
||||
$version = $globals_version
|
||||
$postgis_version = $globals_postgis_version
|
||||
$listen_addresses = 'localhost'
|
||||
|
|
|
@ -101,7 +101,7 @@ describe 'postgresql::server', :type => :class do
|
|||
|
||||
it 'should still enable the service' do
|
||||
should contain_service('postgresqld').with({
|
||||
:ensure => true,
|
||||
:ensure => 'running',
|
||||
})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue