Revision 24b477a1
Added by Justin Sherrill over 10 years ago
modules/apache/spec/acceptance/itk_spec.rb | ||
---|---|---|
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
|
||
describe 'apache::mod::itk class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) or service_name.equal? :skip 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
|
||
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
|
||
# 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
|
||
describe service(service_name) do
|
||
it { should be_running }
|
||
it { should be_enabled }
|
||
end
|
||
end
|
Also available in: Unified diff
Update puppet modules