1 require 'spec_helper_acceptance'
5 service_name = 'apache2'
7 service_name = 'apache24'
13 describe 'apache::mod::itk class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) or service_name.equal? :skip do
14 describe 'running puppet code' do
15 # Using puppet_apply as a helper
16 it 'should work with no errors' do
23 # Run it twice and test for idempotency
24 apply_manifest(pp, :catch_failures => true)
25 expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero
29 describe service(service_name) do
30 it { is_expected.to be_running }
31 it { is_expected.to be_enabled }