oslo middleware: check puppet resource instead of actual config in spec
Change-Id: I8871163c877ecd5c79e254d3d2643c7dcdc85cc8
This commit is contained in:
parent
18db7cd4b4
commit
f4d814f5d4
|
@ -38,7 +38,9 @@ describe 'aodh::api' do
|
||||||
is_expected.to contain_aodh_config('api/port').with_value( params[:port] )
|
is_expected.to contain_aodh_config('api/port').with_value( params[:port] )
|
||||||
is_expected.to contain_aodh_config('api/gnocchi_external_project_owner').with_value( 'services' )
|
is_expected.to contain_aodh_config('api/gnocchi_external_project_owner').with_value( 'services' )
|
||||||
is_expected.to contain_aodh_config('api/paste_config').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_aodh_config('api/paste_config').with_value('<SERVICE DEFAULT>')
|
||||||
is_expected.to contain_aodh_config('oslo_middleware/enable_proxy_headers_parsing').with_value('<SERVICE DEFAULT>')
|
is_expected.to contain_oslo__middleware('aodh_config').with(
|
||||||
|
:enable_proxy_headers_parsing => '<SERVICE DEFAULT>',
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
[{:enabled => true}, {:enabled => false}].each do |param_hash|
|
[{:enabled => true}, {:enabled => false}].each do |param_hash|
|
||||||
|
@ -75,7 +77,9 @@ describe 'aodh::api' do
|
||||||
params.merge!({:enable_proxy_headers_parsing => true })
|
params.merge!({:enable_proxy_headers_parsing => true })
|
||||||
end
|
end
|
||||||
|
|
||||||
it { is_expected.to contain_aodh_config('oslo_middleware/enable_proxy_headers_parsing').with_value(true) }
|
it { is_expected.to contain_oslo__middleware('aodh_config').with(
|
||||||
|
:enable_proxy_headers_parsing => true,
|
||||||
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'with paste_config' do
|
context 'with paste_config' do
|
||||||
|
|
Loading…
Reference in New Issue