2013-09-04 21:11:36 +02:00
|
|
|
require 'spec_helper_system'
|
|
|
|
|
|
|
|
describe "nginx class:" do
|
|
|
|
context 'should run successfully' do
|
2013-12-01 01:08:28 +01:00
|
|
|
it 'should run successfully' do
|
|
|
|
pp = "class { 'nginx': }"
|
2013-09-04 21:11:36 +02:00
|
|
|
|
2013-12-01 01:08:28 +01:00
|
|
|
puppet_apply(pp) do |r|
|
|
|
|
#r.stderr.should be_empty
|
|
|
|
[0,2].should include r.exit_code
|
|
|
|
r.refresh
|
|
|
|
#r.stderr.should be_empty
|
|
|
|
r.exit_code.should be_zero
|
|
|
|
end
|
2013-09-04 21:11:36 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
describe service('nginx') do
|
|
|
|
it { should be_running }
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|