2016-11-08 11:08:43 +02:00
|
|
|
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(
|
2017-06-26 15:28:32 +02:00
|
|
|
:port => 8000,
|
2023-03-02 11:00:35 +09:00
|
|
|
:servername => 'foo.example.com',
|
2017-06-26 15:28:32 +02:00
|
|
|
:bind_host => nil,
|
|
|
|
:path => '/',
|
2022-05-06 20:46:39 +09:00
|
|
|
:ssl => false,
|
2017-10-13 08:49:12 +03:00
|
|
|
:workers => facts[:os_workers],
|
2017-06-26 15:28:32 +02:00
|
|
|
:ssl_cert => nil,
|
|
|
|
:ssl_key => nil,
|
|
|
|
:ssl_chain => nil,
|
|
|
|
:ssl_ca => nil,
|
|
|
|
:ssl_crl_path => nil,
|
|
|
|
:ssl_certs_dir => nil,
|
2017-11-01 15:54:54 +08:00
|
|
|
:wsgi_process_display_name => nil,
|
2022-06-30 09:18:23 +09:00
|
|
|
:vhost_custom_fragment => nil,
|
2017-10-13 08:49:12 +03:00
|
|
|
:threads => 1,
|
2017-06-26 15:28:32 +02:00
|
|
|
:priority => 10,
|
2022-06-30 09:18:23 +09:00
|
|
|
:headers => nil,
|
|
|
|
:request_headers => ['set Content-Type "application/json"'],
|
2017-10-06 14:23:53 +03:00
|
|
|
:custom_wsgi_process_options => {},
|
2022-07-30 22:21:04 +09:00
|
|
|
:access_log_file => nil,
|
2022-08-26 16:45:19 +09:00
|
|
|
:access_log_pipe => nil,
|
|
|
|
:access_log_syslog => nil,
|
2022-07-30 22:21:04 +09:00
|
|
|
:access_log_format => nil,
|
2022-08-26 16:45:19 +09:00
|
|
|
:error_log_file => nil,
|
|
|
|
:error_log_pipe => nil,
|
|
|
|
:error_log_syslog => nil,
|
2022-06-30 09:18:23 +09:00
|
|
|
)}
|
2016-11-08 11:08:43 +02:00
|
|
|
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
|