Sha256: ae9b211afe0cb1aab7ee976cc746e0475f263a0c97a25445bb61c09872403388
Contents?: true
Size: 812 Bytes
Versions: 11
Compression:
Stored size: 812 Bytes
Contents
require 'spec_helper_acceptance' case fact('osfamily') when 'Debian' service_name = 'apache2' when 'FreeBSD' service_name = 'apache22' else # Not implemented yet service_name = :skip end unless service_name.equal? :skip describe 'apache::mod::itk class' do describe 'running puppet code' do # Using puppet_apply as a helper it 'should work with no errors' do pp = <<-EOS class { 'apache': mpm_module => 'itk', } EOS # Run it twice and test for idempotency apply_manifest(pp, :catch_failures => true) expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero end end describe service(service_name) do it { should be_running } it { should be_enabled } end end end
Version data entries
11 entries across 11 versions & 1 rubygems