Sha256: 9fa440cfe3bda659c4941a695bb4def3c99120534a14fb834fb0063219fa137c

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

include Specinfra::Helper::RedHat

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.beta8 spec/type/iptables_spec.rb
serverspec-2.0.0.beta7 spec/type/iptables_spec.rb
serverspec-2.0.0.beta6 spec/type/iptables_spec.rb
serverspec-2.0.0.beta5 spec/type/iptables_spec.rb
serverspec-2.0.0.beta4 spec/type/iptables_spec.rb
serverspec-2.0.0.beta3 spec/type/iptables_spec.rb