puppet-heat/spec/classes/heat_wsgi_apache_api_spec.rb
Juan Antonio Osorio Robles fe394add6f Add manifests to deploy APIs over httpd
This includes a resource that will generically create the vhost for
the specified API.

Co-Authored-By: Thomas Herve <therve@redhat.com>
Depends-On: I9a9246522810de546a7c460ab1133d6bf9081a15
Change-Id: I253f46f5ad943971dd9ea6995591c72a36953bdb
2017-03-02 14:15:18 +02:00

40 lines
1.0 KiB
Ruby

require 'spec_helper'
describe 'heat::wsgi::apache_api' do
shared_examples_for 'heat::wsgi::apache_api' do
context 'default parameters' do
it { is_expected.to contain_class('heat::wsgi::apache_api') }
it { is_expected.to contain_heat__wsgi__apache('api').with(
:port => 8004,
:servername => facts[:fqdn],
:bind_host => nil,
:path => '/',
:ssl => true,
:workers => 1,
:ssl_cert => nil,
:ssl_key => nil,
:ssl_chain => nil,
:ssl_ca => nil,
:ssl_crl_path => nil,
:ssl_certs_dir => nil,
:threads => facts[:os_workers],
:priority => 10, )
}
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'
end
end
end