2015-04-06 04:53:52 +02:00
|
|
|
require 'spec_helper_acceptance'
|
|
|
|
|
|
|
|
describe "nginx class:" do
|
|
|
|
|
|
|
|
context 'default parameters' do
|
|
|
|
it 'should run successfully' do
|
|
|
|
pp = "class { 'nginx': }"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2015-04-09 16:40:10 +02:00
|
|
|
describe package('nginx') do
|
2015-04-06 04:53:52 +02:00
|
|
|
it { is_expected.to be_installed }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe service('nginx') do
|
|
|
|
it { is_expected.to be_running }
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|