1 require 'spec_helper_acceptance'
7 servicename = 'apache2'
9 servicename = 'apache24'
11 servicename = 'apache2'
16 describe 'apache::mod::event class' do
17 describe 'running puppet code' do
18 # Using puppet_apply as a helper
19 it 'should work with no errors' do
22 mpm_module => 'event',
26 # Run it twice and test for idempotency
27 apply_manifest(pp, :catch_failures => true)
28 expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
32 describe service(servicename) do
33 it { is_expected.to be_running }
34 it { is_expected.to be_enabled }
39 describe 'apache::mod::worker class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
40 describe 'running puppet code' do
41 # Using puppet_apply as a helper
42 it 'should work with no errors' do
45 mpm_module => 'worker',
49 # Run it twice and test for idempotency
50 apply_manifest(pp, :catch_failures => true)
51 expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
55 describe service(servicename) do
56 it { is_expected.to be_running }
57 it { is_expected.to be_enabled }
61 describe 'apache::mod::prefork class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
62 describe 'running puppet code' do
63 # Using puppet_apply as a helper
64 it 'should work with no errors' do
67 mpm_module => 'prefork',
71 # Run it twice and test for idempotency
72 apply_manifest(pp, :catch_failures => true)
73 expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
77 describe service(servicename) do
78 it { is_expected.to be_running }
79 it { is_expected.to be_enabled }