Switch neutron init spec to check oslo log resource

We need to check oslo log resource instead of config,
to ensure that changes in oslo module don't break
other module unit tests.

Change-Id: Icb3123f964391d9510bce172fa63efef8e99f9cb
This commit is contained in:
Mykyta Karpin 2017-03-28 18:35:56 +03:00
parent dc01912a75
commit cf467641cb
1 changed files with 3 additions and 3 deletions

View File

@ -52,9 +52,9 @@ describe 'neutron' do
end
it 'configures logging' do
is_expected.to contain_neutron_config('DEFAULT/log_file').with_value('<SERVICE DEFAULT>')
is_expected.to contain_neutron_config('DEFAULT/log_dir').with_value(params[:log_dir])
is_expected.to contain_neutron_config('DEFAULT/use_stderr').with_value('<SERVICE DEFAULT>')
is_expected.to contain_oslo__log('neutron_config').with(:log_file => '<SERVICE DEFAULT>',
:log_dir => params[:log_dir],
:use_stderr => '<SERVICE DEFAULT>')
end
end