Fix unit test issue - syslog opt names

Change-Id: I11ec01b34fd2d7fc2ce4d1a123f9f086064d070a
This commit is contained in:
Harald Jensas 2018-02-12 10:45:10 +01:00
parent 6f0882e73a
commit 1a59f72dfc

View File

@ -280,7 +280,7 @@ describe 'neutron' do
:use_syslog => false, :use_syslog => false,
) )
end end
it { is_expected.to contain_neutron_config('DEFAULT/use-syslog').with_value(false) } it { is_expected.to contain_neutron_config('DEFAULT/use_syslog').with_value(false) }
end end
shared_examples_for 'with non-default kombu options' do shared_examples_for 'with non-default kombu options' do
@ -367,7 +367,7 @@ describe 'neutron' do
end end
it do it do
is_expected.to contain_neutron_config('DEFAULT/use-syslog').with_value(true) is_expected.to contain_neutron_config('DEFAULT/use_syslog').with_value(true)
end end
end end
@ -379,8 +379,8 @@ describe 'neutron' do
) )
end end
it 'configures logging' do it 'configures logging' do
is_expected.to contain_neutron_config('DEFAULT/log-file').with_value(params[:log_file]) is_expected.to contain_neutron_config('DEFAULT/log_file').with_value(params[:log_file])
is_expected.to contain_neutron_config('DEFAULT/log-dir').with_value(params[:log_dir]) is_expected.to contain_neutron_config('DEFAULT/log_dir').with_value(params[:log_dir])
end end
end end