Sha256: 16a5047f8af87dcaa808906d04407a30467c21b35bd97369170acc3d1a7de38d

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

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

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

6 entries across 6 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta18 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta17 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta16 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta15 spec/type/redhat5/iptables_spec.rb
serverspec-2.0.0.beta14 spec/type/redhat5/iptables_spec.rb