Skip to content

Commit 807d5b6

Browse files
committed
(PDB-4764) Test puppetdb starts only with ssl after setting wrong password in database.ini
1 parent 5b3c167 commit 807d5b6

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

spec/acceptance/basic_spec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,26 @@ class { 'puppetdb': postgresql_ssl_on => true,
3636
apply_manifest(pp, catch_errors: true)
3737
apply_manifest(pp, catch_changes: true)
3838
end
39+
40+
ini_pp = <<-EOS
41+
ini_setting { "puppetdb password":
42+
ensure => present,
43+
path => '/etc/puppetlabs/puppetdb/conf.d/database.ini',
44+
section => 'database',
45+
setting => 'password',
46+
value => 'random_password',
47+
notify => Service[puppetdb]
48+
}
49+
50+
service { 'puppetdb':
51+
ensure => 'running',
52+
}
53+
EOS
54+
it 'make sure it starts with wrong password' do
55+
56+
apply_manifest(ini_pp, catch_errors: true)
57+
apply_manifest(ini_pp, catch_changes: true)
58+
end
3959
end
4060

4161
describe 'enabling report processor' do

0 commit comments

Comments
 (0)