1 require 'spec_helper_acceptance'
3 describe 'apache::mod::proxy_html class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
6 service_name = 'apache2'
10 service_name = 'apache24'
12 service_name = 'apache2'
15 context "default proxy_html config" do
16 if fact('osfamily') == 'RedHat' and fact('operatingsystemmajrelease') =~ /(5|6)/
18 pp = "class { 'epel': }"
19 apply_manifest(pp, :catch_failures => true)
23 it 'succeeds in puppeting proxy_html' do
26 class { 'apache::mod::proxy': }
27 class { 'apache::mod::proxy_http': }
28 # mod_proxy_html doesn't exist in RHEL5
29 if $::osfamily == 'RedHat' and $::operatingsystemmajrelease != '5' {
30 class { 'apache::mod::proxy_html': }
33 apply_manifest(pp, :catch_failures => true)
36 describe service(service_name) do
37 it { is_expected.to be_enabled }
38 it { is_expected.to be_running }