Sha256: 32be8a34f7498517a1062d5d1d1fb51b0b2e74ebf1ec8c65b0020f85efa72ee9

Contents?: true

Size: 589 Bytes

Versions: 39

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Debian

describe iptables do
  it { should have_rule '-P INPUT ACCEPT'  }
  its(:command) { should eq "iptables -S | grep -- -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') }
  its(:command) { should eq "iptables -t mangle -S INPUT | grep -- -P\\ INPUT\\ ACCEPT" }
end

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
serverspec-0.11.5 spec/debian/iptables_spec.rb
serverspec-0.11.4 spec/debian/iptables_spec.rb
serverspec-0.11.3 spec/debian/iptables_spec.rb
serverspec-0.11.2 spec/debian/iptables_spec.rb
serverspec-0.9.4 spec/debian/iptables_spec.rb
serverspec-0.9.3 spec/debian/iptables_spec.rb
serverspec-0.9.2 spec/debian/iptables_spec.rb
serverspec-0.9.1 spec/debian/iptables_spec.rb
serverspec-0.9.0 spec/debian/iptables_spec.rb
serverspec-0.8.1 spec/debian/iptables_spec.rb
serverspec-0.8.0 spec/debian/iptables_spec.rb
serverspec-0.7.13 spec/debian/iptables_spec.rb
serverspec-0.7.12 spec/debian/iptables_spec.rb
serverspec-0.7.11 spec/debian/iptables_spec.rb
serverspec-0.7.10 spec/debian/iptables_spec.rb
serverspec-0.7.9 spec/debian/iptables_spec.rb
serverspec-0.7.8 spec/debian/iptables_spec.rb
serverspec-0.7.7 spec/debian/iptables_spec.rb
serverspec-0.7.6 spec/debian/iptables_spec.rb
serverspec-0.7.5 spec/debian/iptables_spec.rb