Fix unit tests around oslo::logging

As we've moved the log configuration to leverage oslo::logging, we need
to make sure that the unit tests are properly updated to reflect how
we're calling it. Previously we were checking that the tempest_config
value was set but this changed in oslo::logging which broke the unit
tests.

Change-Id: I4ea645fdf0d9630e3589619f6127ae8046a92c85
This commit is contained in:
Alex Schultz 2017-12-21 10:49:13 -07:00
parent 263772543d
commit d3e7890273
1 changed files with 6 additions and 5 deletions

View File

@ -272,14 +272,15 @@ describe 'tempest' do
is_expected.to contain_tempest_config('whitebox/db_uri').with(:value => nil)
is_expected.to contain_tempest_config('cli/cli_dir').with(:value => nil)
is_expected.to contain_tempest_config('oslo_concurrency/lock_path').with(:value => '/var/lib/tempest')
is_expected.to contain_tempest_config('DEFAULT/debug').with(:value => false)
is_expected.to contain_tempest_config('DEFAULT/log-file').with_value('<SERVICE DEFAULT>')
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/logging_context_format_string').with_value('<SERVICE DEFAULT>')
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.5-x86_64-disk.img')
is_expected.to contain_tempest_config('service_broker/run_service_broker_tests').with(:value => false)
is_expected.to contain_oslo__log('tempest_config').with(
:debug => false,
:log_file => '<SERVICE DEFAULT>',
:use_stderr => true,
:use_syslog => false,
:logging_context_format_string => '<SERVICE DEFAULT>')
is_expected.not_to contain_tempest_config('magnum/keypair_id').with_value('default')
end