puppet-heat/spec/classes/heat_wsgi_apache_api_cfn_spec.rb
Luke Short 0e85f1c7b0 Expose vhost_custom_fragment
It is provided by the Puppet class 'openstacklib::wsgi::apache'.
This change exposes it for the Heat CFN service.

Change-Id: If689eb5e896dba443358ac83cd7f566aacc276f1
Signed-off-by: Luke Short <ekultails@gmail.com>
2020-08-18 13:53:38 -04:00

45 lines
1.5 KiB
Ruby

require 'spec_helper'
describe 'heat::wsgi::apache_api_cfn' do
shared_examples_for 'heat::wsgi::apache_api_cfn' do
context 'default parameters' do
it { is_expected.to contain_class('heat::wsgi::apache_api_cfn') }
it { is_expected.to contain_heat__wsgi__apache('api_cfn').with(
:port => 8000,
:servername => facts[:fqdn],
:bind_host => nil,
:path => '/',
:ssl => true,
:workers => facts[:os_workers],
:ssl_cert => nil,
:ssl_key => nil,
:ssl_chain => nil,
:ssl_ca => nil,
:ssl_crl_path => nil,
:ssl_certs_dir => nil,
:wsgi_process_display_name => nil,
:threads => 1,
:priority => 10,
:custom_wsgi_process_options => {},
:access_log_file => false,
:access_log_format => false,
:vhost_custom_fragment => 'RequestHeader set Content-Type "application/json"',)
}
end
end
on_supported_os({
:supported_os => OSDefaults.get_supported_os
}).each do |os,facts|
context "on #{os}" do
let (:facts) do
facts.merge!(OSDefaults.get_facts())
end
it_configures 'heat::wsgi::apache_api_cfn'
end
end
end