From cf467641cbeefe87ac8a8333bc89244c472e0b07 Mon Sep 17 00:00:00 2001 From: Mykyta Karpin Date: Tue, 28 Mar 2017 18:35:56 +0300 Subject: [PATCH] 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 --- spec/classes/neutron_init_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/classes/neutron_init_spec.rb b/spec/classes/neutron_init_spec.rb index ddb0a0541..957ee76fc 100644 --- a/spec/classes/neutron_init_spec.rb +++ b/spec/classes/neutron_init_spec.rb @@ -52,9 +52,9 @@ describe 'neutron' do end it 'configures logging' do - is_expected.to contain_neutron_config('DEFAULT/log_file').with_value('') - 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('') + is_expected.to contain_oslo__log('neutron_config').with(:log_file => '', + :log_dir => params[:log_dir], + :use_stderr => '') end end