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

Change-Id: Ic992b2044a9bf84d7584245df5f77cd252daf458
This commit is contained in:
ZhongShengping 2018-03-21 11:19:09 +08:00
parent 8d60030309
commit 0e3dc29003
1 changed files with 6 additions and 4 deletions

View File

@ -160,13 +160,15 @@ describe 'heat' do
it { is_expected.to contain_heat_config('paste_deploy/flavor').with_value('keystone') }
it 'configures notification_driver' do
is_expected.to contain_heat_config('oslo_messaging_notifications/transport_url').with_value('<SERVICE DEFAULT>')
is_expected.to contain_heat_config('oslo_messaging_notifications/driver').with_value('<SERVICE DEFAULT>')
is_expected.to contain_heat_config('oslo_messaging_notifications/topics').with_value('<SERVICE DEFAULT>')
is_expected.to contain_heat_config('oslo_messaging_notifications/transport_url').with_value('<SERVICE DEFAULT>')
is_expected.to contain_heat_config('oslo_messaging_notifications/driver').with_value('<SERVICE DEFAULT>')
is_expected.to contain_heat_config('oslo_messaging_notifications/topics').with_value('<SERVICE DEFAULT>')
end
it 'sets default value for http_proxy_to_wsgi middleware' do
is_expected.to contain_heat_config('oslo_middleware/enable_proxy_headers_parsing').with_value('<SERVICE DEFAULT>')
is_expected.to contain_oslo__middleware('heat_config').with(
:enable_proxy_headers_parsing => '<SERVICE DEFAULT>',
)
end
it 'sets clients_heat url' do