This is already set in config.pp and so we need to pick a unique

name.
This commit is contained in:
Ashley Penney 2014-05-05 22:44:34 +02:00
parent 7fb959ee95
commit 791fc3db94

View file

@ -28,7 +28,7 @@ describe 'postgresql::server::config_entry:', :unless => UNSUPPORTED_PLATFORMS.i
pp = <<-EOS.unindent
class { 'postgresql::server': }
postgresql::server::config_entry { 'listen_addresses':
postgresql::server::config_entry { 'test_listen_addresses':
value => '0.0.0.0',
}
EOS
@ -36,7 +36,7 @@ describe 'postgresql::server::config_entry:', :unless => UNSUPPORTED_PLATFORMS.i
apply_manifest(pp, :catch_failures => true)
psql('--command="show all" postgres') do |r|
r.stdout.should =~ /listen_adresses.+0\.0\.0\.0/
r.stdout.should =~ /test_listen_adresses.+0\.0\.0\.0/
r.stderr.should be_empty
r.exit_code.should == 0
end