@ -9,15 +9,15 @@ describe 'oslo::log' do
context 'with default parameters' do
it 'configure oslo_log default params' do
is_expected . to contain_keystone_config ( 'DEFAULT/debug' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_config_ append' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_date_ format' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_ file' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_ dir' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/watch_log_ file' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use_ syslog' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use_ journal' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use_ json' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/syslog_log_ facility' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log-config- append' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log-date- format' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log- file' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/log- dir' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/watch-log- file' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use- syslog' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use- journal' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use- json' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/syslog-log- facility' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/use_stderr' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/logging_context_format_string' ) . with_value ( '<SERVICE DEFAULT>' )
is_expected . to contain_keystone_config ( 'DEFAULT/logging_default_format_string' ) . with_value ( '<SERVICE DEFAULT>' )
@ -63,15 +63,15 @@ describe 'oslo::log' do
it 'configures logging' do
is_expected . to contain_keystone_config ( 'DEFAULT/debug' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/log_config_ append' ) . with_value ( '/var/log/keystone/keystone.log' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_date_ format' ) . with_value ( '%Y-%m-%d %H:%M:%S' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_ file' ) . with_value ( '/var/log/keystone/keystone.log' )
is_expected . to contain_keystone_config ( 'DEFAULT/log_ dir' ) . with_value ( '/var/log/keystone' )
is_expected . to contain_keystone_config ( 'DEFAULT/watch_log_ file' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/use_ syslog' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/use_ journal' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/use_ json' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/syslog_log_ facility' ) . with_value ( 'LOG_USER' )
is_expected . to contain_keystone_config ( 'DEFAULT/log-config- append' ) . with_value ( '/var/log/keystone/keystone.log' )
is_expected . to contain_keystone_config ( 'DEFAULT/log-date- format' ) . with_value ( '%Y-%m-%d %H:%M:%S' )
is_expected . to contain_keystone_config ( 'DEFAULT/log- file' ) . with_value ( '/var/log/keystone/keystone.log' )
is_expected . to contain_keystone_config ( 'DEFAULT/log- dir' ) . with_value ( '/var/log/keystone' )
is_expected . to contain_keystone_config ( 'DEFAULT/watch-log- file' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/use- syslog' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/use- journal' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/use- json' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/syslog-log- facility' ) . with_value ( 'LOG_USER' )
is_expected . to contain_keystone_config ( 'DEFAULT/use_stderr' ) . with_value ( true )
is_expected . to contain_keystone_config ( 'DEFAULT/logging_context_format_string' ) . with_value (
'%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s' )