From 2332f6341ee34a7a272700e83b97eb07631365f2 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Wed, 21 Dec 2016 14:45:36 +0800 Subject: [PATCH] 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 --- spec/defines/oslo_db_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/defines/oslo_db_spec.rb b/spec/defines/oslo_db_spec.rb index fd4ff6a..77b3014 100644 --- a/spec/defines/oslo_db_spec.rb +++ b/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')