Codebase list puppet-module-gnocchi / 86fc061
Replace deprecated [oslo_middleware] enable_proxy_headers_parsing Gnocchi replaced usage of http_proxy_to_wsgi middleware from the oslo.middleware library by its own implementation since Gnocchi 4.4[1]. Because now both Ubuntu and CentOS uses Gnocchi 4.4.z, this replaces the deprecated [oslo_middleware] parameter by the new [api] parameter. [1] https://github.com/gnocchixyz/gnocchi/commit/bcd9a8cdd7c37fb655764a3b12c7e567598d088d Change-Id: I52ba953c481bb66dd8a5af35b74c11dac6278e45 Takashi Kajinami 1 year, 8 months ago
2 changed file(s) with 9 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
115115 }
116116
117117 gnocchi_config {
118 'api/max_limit': value => $max_limit;
119 'api/auth_mode': value => $auth_strategy;
120 'api/paste_config': value => $paste_config;
121 'api/operation_timeout': value => $operation_timeout;
118 'api/max_limit': value => $max_limit;
119 'api/auth_mode': value => $auth_strategy;
120 'api/paste_config': value => $paste_config;
121 'api/operation_timeout': value => $operation_timeout;
122 'api/enable_proxy_headers_parsing': value => $enable_proxy_headers_parsing;
122123 }
123124
124125 oslo::middleware { 'gnocchi_config':
125 enable_proxy_headers_parsing => $enable_proxy_headers_parsing,
126 max_request_body_size => $max_request_body_size,
126 max_request_body_size => $max_request_body_size,
127127 }
128128
129129 if $auth_strategy == 'keystone' {
6060 is_expected.to contain_gnocchi_config('api/auth_mode').with_value('keystone')
6161 is_expected.to contain_gnocchi_config('api/paste_config').with_value('<SERVICE DEFAULT>')
6262 is_expected.to contain_gnocchi_config('api/operation_timeout').with_value('<SERVICE DEFAULT>')
63 is_expected.to contain_gnocchi_config('api/enable_proxy_headers_parsing').with_value('<SERVICE DEFAULT>')
6364 is_expected.to contain_oslo__middleware('gnocchi_config').with(
64 :enable_proxy_headers_parsing => '<SERVICE DEFAULT>',
65 :max_request_body_size => '<SERVICE DEFAULT>',
65 :max_request_body_size => '<SERVICE DEFAULT>',
6666 )
6767 end
6868
177177 params.merge!({:enable_proxy_headers_parsing => true })
178178 end
179179
180 it { is_expected.to contain_oslo__middleware('gnocchi_config').with(
181 :enable_proxy_headers_parsing => true,
182 )}
180 it { is_expected.to contain_gnocchi_config('api/enable_proxy_headers_parsing').with_value(true) }
183181 end
184182
185183 context 'with max_request_body_size' do