oslo middleware: check puppet resource instead of actual config in spec

Change-Id: I7b7d144d7e29d5aa91b2f931d0eb444a93ef21c5
This commit is contained in:
ZhongShengping 2018-03-21 11:28:59 +08:00
parent 85dcf1c296
commit a48732416b

View File

@ -78,7 +78,9 @@ describe 'neutron::server' do
is_expected.to contain_neutron_config('DEFAULT/enable_new_agents').with_value('<SERVICE DEFAULT>') is_expected.to contain_neutron_config('DEFAULT/enable_new_agents').with_value('<SERVICE DEFAULT>')
is_expected.to contain_neutron_config('DEFAULT/router_scheduler_driver').with_value(p[:router_scheduler_driver]) 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('<SERVICE DEFAULT>') is_expected.to contain_neutron_config('qos/notification_drivers').with_value('<SERVICE DEFAULT>')
is_expected.to contain_neutron_config('oslo_middleware/enable_proxy_headers_parsing').with_value('<SERVICE DEFAULT>') is_expected.to contain_oslo__middleware('neutron_config').with(
:enable_proxy_headers_parsing => '<SERVICE DEFAULT>',
)
is_expected.to contain_neutron_config('DEFAULT/ovs_integration_bridge').with_value('<SERVICE DEFAULT>') is_expected.to contain_neutron_config('DEFAULT/ovs_integration_bridge').with_value('<SERVICE DEFAULT>')
end end
@ -224,7 +226,9 @@ describe 'neutron::server' do
params.merge!({:enable_proxy_headers_parsing => true }) params.merge!({:enable_proxy_headers_parsing => true })
end 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 end
context 'when running neutron-api in wsgi' do context 'when running neutron-api in wsgi' do