Skip to content

Commit efd0cab

Browse files
auth method dynamically in acceptence test
1 parent 7be6ef7 commit efd0cab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/acceptance/overridden_settings_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
before(:all) do
99
LitmusHelper.instance.run_shell("cd /tmp; su 'postgres' -c 'pg_ctl stop -D /var/lib/pgsql/data/ -m fast'", acceptable_exit_codes: [0, 1]) unless os[:family].match?(%r{debian|ubuntu})
1010
end
11-
1211
let(:pp) do
1312
<<-MANIFEST
13+
$auth_method = $facts['os']['release']['major'] ? { '7' => 'md5', default => 'scram-sha-256'}
1414
class { 'postgresql::server':
1515
roles => {
1616
'testusername' => {
@@ -26,7 +26,7 @@ class { 'postgresql::server':
2626
type => 'host',
2727
database => 'mydb',
2828
user => 'myuser',
29-
auth_method => 'scram-sha-256',
29+
auth_method => $auth_method,
3030
address => '192.0.2.100/32',
3131
},
3232
},

0 commit comments

Comments
 (0)