[oslo_limit] password should be secret

Change-Id: I5b6431e93e3359cedb07192579258f9bc24b37c9
This commit is contained in:
Takashi Kajinami 2021-11-29 22:03:10 +09:00
parent 056a1db578
commit 9da6c6d9fc
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ define oslo::limit(
$limit_options = {
'oslo_limit/endpoint_id' => { value => $endpoint_id },
'oslo_limit/username' => { value => $username },
'oslo_limit/password' => { value => $password },
'oslo_limit/password' => { value => $password, secret => true },
'oslo_limit/auth_url' => { value => $auth_url },
'oslo_limit/project_name' => { value => $project_name },
'oslo_limit/user_domain_name' => { value => $user_domain_name },

View File

@ -24,7 +24,7 @@ describe 'oslo::limit' do
it 'configures the required params' do
is_expected.to contain_keystone_config('oslo_limit/endpoint_id').with_value('770f924a-e483-4b43-a6f3-73acc91f4757')
is_expected.to contain_keystone_config('oslo_limit/username').with_value('keystone')
is_expected.to contain_keystone_config('oslo_limit/password').with_value('keystone_password')
is_expected.to contain_keystone_config('oslo_limit/password').with_value('keystone_password').with_secret(true)
is_expected.to contain_keystone_config('oslo_limit/auth_url').with_value('http://127.0.0.1:5000/v3')
is_expected.to contain_keystone_config('oslo_limit/project_name').with_value('services')
end