Browse Source

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
changes/41/413441/2
ZhongShengping 6 years ago
parent
commit
2332f6341e
  1. 2
      spec/defines/oslo_db_spec.rb

2
spec/defines/oslo_db_spec.rb

@ -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')

Loading…
Cancel
Save