Sha256: b5214f3dc197344ac6b653cd5711a0b7327e208134b976873287341cc9b0047a

Contents?: true

Size: 568 Bytes

Versions: 5

Compression:

Stored size: 568 Bytes

Contents

require 'spec_helper'

set :os, :family => 'redhat', :release => 5

describe commands.command_class('iptables').create do
  it { should be_an_instance_of(Specinfra::Command::Redhat::V5::Iptables) }
end

describe iptables do
  it { should have_rule '-P INPUT ACCEPT' }
end

describe iptables do
  it { should_not have_rule 'invalid-rule' }
end

describe iptables do
  it { should have_rule('-P INPUT ACCEPT').with_table('mangle').with_chain('INPUT') }
end

describe iptables do
  it { should_not have_rule('invalid-rule').with_table('mangle').with_chain('INPUT') }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta13 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta12 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta11 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta10 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta9 spec/type/redhat5/iptables_spec.rb