Skip to content

Commit

Permalink
add new parameter to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 authored and smortex committed May 6, 2024
1 parent 5960920 commit 9592788
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions spec/unit/classes/server/database_ini_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
it {
is_expected.to contain_ini_setting('puppetdb_psdatabase_password')
.with(
'ensure' => 'present',
'path' => "#{pdbconfdir}/database.ini",
'section' => 'database',
'setting' => 'password',
'value' => 'puppetdb',
'ensure' => 'present',
'path' => "#{pdbconfdir}/database.ini",
'section' => 'database',
'setting' => 'password',
'value' => 'puppetdb',
'show_diff' => false,
)
}
it {
Expand Down
11 changes: 6 additions & 5 deletions spec/unit/classes/server/read_database_ini_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
it {
is_expected.to contain_ini_setting('puppetdb_read_database_password')
.with(
'ensure' => 'present',
'path' => '/etc/puppetlabs/puppetdb/conf.d/read_database.ini',
'section' => 'read-database',
'setting' => 'password',
'value' => 'puppetdb-read',
'ensure' => 'present',
'path' => '/etc/puppetlabs/puppetdb/conf.d/read_database.ini',
'section' => 'read-database',
'setting' => 'password',
'value' => 'puppetdb-read',
'show_diff' => false,
)
}
it {
Expand Down

0 comments on commit 9592788

Please sign in to comment.