fuel-plugin-vxlan/deployment_scripts/puppet/modules/firewall/spec/system/class_spec.rb

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