Fix unit tests with Debian 12
Debian 12 has PostgreSQL 15, and uses scram-sha-256 by default. So
we need a fix similar to the one[1] made for Ubuntu earlier.
[1] 6adbd49b9f
Change-Id: I6e6e88951caa3aea0b7a1e13238e22ae4cb1c3dd
This commit is contained in:
@@ -107,12 +107,7 @@ describe 'openstacklib::db::postgresql' do
|
|||||||
let :platform_params do
|
let :platform_params do
|
||||||
case facts[:os]['family']
|
case facts[:os]['family']
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
case facts[:os]['name']
|
{ :password_encryption => 'scram-sha-256' }
|
||||||
when 'Debian'
|
|
||||||
{ :password_encryption => 'md5' }
|
|
||||||
when 'Ubuntu'
|
|
||||||
{ :password_encryption => 'scram-sha-256' }
|
|
||||||
end
|
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
{ :password_encryption => 'ms5' }
|
{ :password_encryption => 'ms5' }
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user