From a48732416b576bce8babb4e68270b8c145251328 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Wed, 21 Mar 2018 11:28:59 +0800 Subject: [PATCH] oslo middleware: check puppet resource instead of actual config in spec Change-Id: I7b7d144d7e29d5aa91b2f931d0eb444a93ef21c5 --- spec/classes/neutron_server_spec.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/classes/neutron_server_spec.rb b/spec/classes/neutron_server_spec.rb index dae41d0cf..194c9fbc1 100644 --- a/spec/classes/neutron_server_spec.rb +++ b/spec/classes/neutron_server_spec.rb @@ -78,7 +78,9 @@ describe 'neutron::server' do is_expected.to contain_neutron_config('DEFAULT/enable_new_agents').with_value('') is_expected.to contain_neutron_config('DEFAULT/router_scheduler_driver').with_value(p[:router_scheduler_driver]) is_expected.to contain_neutron_config('qos/notification_drivers').with_value('') - is_expected.to contain_neutron_config('oslo_middleware/enable_proxy_headers_parsing').with_value('') + is_expected.to contain_oslo__middleware('neutron_config').with( + :enable_proxy_headers_parsing => '', + ) is_expected.to contain_neutron_config('DEFAULT/ovs_integration_bridge').with_value('') end @@ -224,7 +226,9 @@ describe 'neutron::server' do params.merge!({:enable_proxy_headers_parsing => true }) end - it { is_expected.to contain_neutron_config('oslo_middleware/enable_proxy_headers_parsing').with_value(true) } + it { is_expected.to contain_oslo__middleware('neutron_config').with( + :enable_proxy_headers_parsing => true, + )} end context 'when running neutron-api in wsgi' do