Skip to content

Commit 88cf73b

Browse files
(maint) resolve spec test changes from updated module
With server version 14 https://github.com/puppetlabs/puppetlabs-postgresql/blob/411e7bce3f2d5256c315351144dc525b6c0afbbe/manifests/params.pp#L28 the default hash is scram, so the fixture needed to be updated. Additionally, the `client_cert` validation parameter is now always `verify-full` because of the updated postgres version.
1 parent a322a7a commit 88cf73b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/support/unit/shared/database.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
it { is_expected.to raise_error(error) }
228228
else
229229
let(:identity_map_key) { "#{with[:database_name]}-#{with[:database_username]}-map" }
230-
let(:client_cert) { (with[:postgres_version].to_f >= 12.0) ? 'verify-full' : '1' }
230+
let(:client_cert) { 'verify-full' }
231231

232232
it { is_expected.to contain_puppetdb__database__postgresql_ssl_rules(name).with(with) }
233233

spec/unit/classes/database/postgresql_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
{
9595
read_database_username: params[:read_database_username],
9696
database_name: params[:database_name],
97-
password_hash: 'md588e898a4bade3fe1c9b96f650ec85900', # TODO: mock properly
97+
password_hash: 'SCRAM-SHA-256$4096:cHVwcGV0ZGItcmVhZA==$qJ2Yyu4715ht/e8AFkvuzM8DdHyU2fTz9/slcH8r8j8=:VpRBz0fk+87tv1NlNHoR7Z2RyTVJJO42EtgQmKFlyPE=', # TODO: mock properly
9898
database_owner: params[:database_username],
9999
}
100100
end

0 commit comments

Comments
 (0)