24 lines
417 B
Ruby
24 lines
417 B
Ruby
require 'spec_helper_system'
|
|
|
|
describe "firewall class:" do
|
|
let(:pp) do
|
|
pp = <<-EOS
|
|
class { 'firewall': }
|
|
EOS
|
|
end
|
|
|
|
it "should run without event" do
|
|
puppet_apply(pp) do |r|
|
|
r[:stderr].should == ''
|
|
r[:exit_code].should_not eq(1)
|
|
end
|
|
end
|
|
|
|
it "should be idempotent" do
|
|
puppet_apply(pp) do |r|
|
|
r[:stderr].should == ''
|
|
r[:exit_code].should == 0
|
|
end
|
|
end
|
|
end
|