Fix unit test failure with new type validation in puppetlabs-apache

The apache::vhost defined type in new puppetlabs-apache 8.0.0 no longer
accepts string values for headers and request_headers. This change
fixes unit tests to avoid type validation error with that stricter
requirement.

[1] 2f6f6f3fd2

Change-Id: I0bfea693e1673a9f3799e439be37414c25f1a899
This commit is contained in:
Takashi Kajinami 2022-08-10 16:45:01 +09:00
parent 81af4a0476
commit a11ca496f7
1 changed files with 4 additions and 4 deletions

View File

@ -119,8 +119,8 @@ describe 'openstacklib::wsgi::apache' do
:custom_wsgi_script_aliases => {
'/admin' => '/var/www/cgi-bin/keystone/admin'
},
:headers => 'set X-Frame-Options "DENY"',
:request_headers => 'set Content-Type "application/json"',
:headers => ['set X-Frame-Options "DENY"'],
:request_headers => ['set Content-Type "application/json"'],
:aliases => [
{ 'alias' => '/robots.txt', 'path' => '/etc/keystone/robots.txt', }
],
@ -166,8 +166,8 @@ describe 'openstacklib::wsgi::apache' do
:wsgi_application_group => '%{GLOBAL}',
:wsgi_pass_authorization => 'On',
:wsgi_chunked_request => 'On',
:headers => 'set X-Frame-Options "DENY"',
:request_headers => 'set Content-Type "application/json"',
:headers => ['set X-Frame-Options "DENY"'],
:request_headers => ['set Content-Type "application/json"'],
:aliases => [
{ 'alias' => '/robots.txt', 'path' => '/etc/keystone/robots.txt', }
],