diff --git a/manifests/api.pp b/manifests/api.pp index e57785f7..6e735349 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -116,15 +116,15 @@ standalone service, or httpd for being run by a httpd server") } gnocchi_config { - 'api/max_limit': value => $max_limit; - 'api/auth_mode': value => $auth_strategy; - 'api/paste_config': value => $paste_config; - 'api/operation_timeout': value => $operation_timeout; + 'api/max_limit': value => $max_limit; + 'api/auth_mode': value => $auth_strategy; + 'api/paste_config': value => $paste_config; + 'api/operation_timeout': value => $operation_timeout; + 'api/enable_proxy_headers_parsing': value => $enable_proxy_headers_parsing; } oslo::middleware { 'gnocchi_config': - enable_proxy_headers_parsing => $enable_proxy_headers_parsing, - max_request_body_size => $max_request_body_size, + max_request_body_size => $max_request_body_size, } if $auth_strategy == 'keystone' { diff --git a/spec/classes/gnocchi_api_spec.rb b/spec/classes/gnocchi_api_spec.rb index 44e86fa0..0eff2404 100644 --- a/spec/classes/gnocchi_api_spec.rb +++ b/spec/classes/gnocchi_api_spec.rb @@ -61,9 +61,9 @@ describe 'gnocchi::api' do is_expected.to contain_gnocchi_config('api/auth_mode').with_value('keystone') is_expected.to contain_gnocchi_config('api/paste_config').with_value('') is_expected.to contain_gnocchi_config('api/operation_timeout').with_value('') + is_expected.to contain_gnocchi_config('api/enable_proxy_headers_parsing').with_value('') is_expected.to contain_oslo__middleware('gnocchi_config').with( - :enable_proxy_headers_parsing => '', - :max_request_body_size => '', + :max_request_body_size => '', ) end @@ -178,9 +178,7 @@ describe 'gnocchi::api' do params.merge!({:enable_proxy_headers_parsing => true }) end - it { is_expected.to contain_oslo__middleware('gnocchi_config').with( - :enable_proxy_headers_parsing => true, - )} + it { is_expected.to contain_gnocchi_config('api/enable_proxy_headers_parsing').with_value(true) } end context 'with max_request_body_size' do