Add logging_context_format_string parameter

Add logging_context_format_string so we can change log format in
tempest.

Change-Id: Ib09dbd4a800209175c065f591b7dc78ce88da709
This commit is contained in:
Emilien Macchi 2016-01-08 15:55:53 -05:00
parent e9692e3805
commit cb8000bdfa
2 changed files with 73 additions and 68 deletions

View File

@ -49,6 +49,8 @@
# Defaults to false
# [*log_file*]
# Defaults to undef
# [*logging_context_format_string*]
# Defaults to undef
# [*username*]
# Defaults to undef
# [*password*]
@ -178,6 +180,7 @@ class tempest(
$use_stderr = true,
$use_syslog = false,
$log_file = undef,
$logging_context_format_string = undef,
# non admin user
$username = undef,
$password = undef,
@ -344,6 +347,7 @@ class tempest(
'DEFAULT/use_stderr': value => $use_stderr;
'DEFAULT/use_syslog': value => $use_syslog;
'DEFAULT/log_file': value => $log_file;
'DEFAULT/logging_context_format_string': value => $logging_context_format_string;
'scenario/img_dir': value => $img_dir;
'scenario/img_file': value => $img_file;
'service_broker/run_service_broker_tests': value => $run_service_broker_tests;

View File

@ -202,6 +202,7 @@ describe 'tempest' do
is_expected.to contain_tempest_config('DEFAULT/use_stderr').with(:value => true)
is_expected.to contain_tempest_config('DEFAULT/use_syslog').with(:value => false)
is_expected.to contain_tempest_config('DEFAULT/log_file').with(:value => nil)
is_expected.to contain_tempest_config('DEFAULT/logging_context_format_string').with(:value => nil)
is_expected.to contain_tempest_config('scenario/img_dir').with(:value => '/var/lib/tempest')
is_expected.to contain_tempest_config('scenario/img_file').with(:value => 'cirros-0.3.4-x86_64-disk.img')
is_expected.to contain_tempest_config('service_broker/run_service_broker_tests').with(:value => false)