connection should be secured in log

As connection option contains password value, it should not be browsed in log.
By now, it will log into by details.

Change-Id: I807dfe634608924ed74405ed1449bbf79ee0a6e2
This commit is contained in:
ZhongShengping 2016-12-21 14:45:36 +08:00
parent 417c63dcfe
commit 2332f6341e
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ describe 'oslo::db' do
it 'configures database parameters' do
is_expected.to contain_keystone_config('database/backend').with_value('sqlalchemy')
is_expected.to contain_keystone_config('database/connection').with_value('mysql+pymysql://db:db@localhost/db')
is_expected.to contain_keystone_config('database/connection').with_value('mysql+pymysql://db:db@localhost/db').with_secret(true)
is_expected.to contain_keystone_config('database/mysql_sql_mode').with_value('TRADITIONAL')
is_expected.to contain_keystone_config('database/idle_timeout').with_value('3601')
is_expected.to contain_keystone_config('database/min_pool_size').with_value('2')