From a11ca496f7ae515c0d97fbb1f888f87cc00214a3 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 10 Aug 2022 16:45:01 +0900 Subject: [PATCH] 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] https://github.com/puppetlabs/puppetlabs-apache/commit/2f6f6f3fd2425a978c5507651d042cd600bc6cd5 Change-Id: I0bfea693e1673a9f3799e439be37414c25f1a899 --- spec/defines/openstacklib_wsgi_apache_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/defines/openstacklib_wsgi_apache_spec.rb b/spec/defines/openstacklib_wsgi_apache_spec.rb index a83f3a98..080ffce7 100644 --- a/spec/defines/openstacklib_wsgi_apache_spec.rb +++ b/spec/defines/openstacklib_wsgi_apache_spec.rb @@ -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', } ],