File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 166
166
$pwd_hash_sql = postgresql::postgresql_password(
167
167
$username ,
168
168
$password_hash ,
169
- $password_hash =~ Sensitive[String] ,
169
+ false ,
170
170
$hash ,
171
171
$salt ,
172
172
)
Original file line number Diff line number Diff line change 58
58
59
59
it 'has alter role for "test" user with password as ****' do
60
60
expect ( subject ) . to contain_postgresql_psql ( 'ALTER ROLE test ENCRYPTED PASSWORD ****' )
61
- . with ( 'command' => sensitive ( %(ALTER ROLE "test" ENCRYPTED PASSWORD 'Sensitive [value redacted]') ) ,
62
- # FIXME: This is obviously wrong ^^^^^^^^^^^^^^^^^^^^^^^^^^
61
+ . with ( 'command' => sensitive ( %(ALTER ROLE "test" ENCRYPTED PASSWORD 'md5b6f7fcbbabb4befde4588a26c1cfd2fa') ) ,
63
62
'sensitive' => 'true' ,
64
- 'unless' => sensitive ( %(SELECT 1 FROM pg_shadow WHERE usename = 'test' AND passwd = 'Sensitive [value redacted]') ) ,
65
- # FIXME: This is obviously wrong ^^^^^^^^^^^^^^^^^^^^^^^^^^
63
+ 'unless' => sensitive ( %(SELECT 1 FROM pg_shadow WHERE usename = 'test' AND passwd = 'md5b6f7fcbbabb4befde4588a26c1cfd2fa') ) ,
66
64
'port' => '5432' )
67
65
end
68
66
end
You can’t perform that action at this time.
0 commit comments