Sha256: 6b62252b3f9beb61a978a86033ce7832f7fc4611e2c76399f7d507b688688057

Contents?: true

Size: 598 Bytes

Versions: 14

Compression:

Stored size: 598 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'Plamo'
end

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

14 entries across 14 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/plamo/iptables_spec.rb
serverspec-0.11.0 spec/plamo/iptables_spec.rb
serverspec-0.10.13 spec/plamo/iptables_spec.rb
serverspec-0.10.12 spec/plamo/iptables_spec.rb
serverspec-0.10.11 spec/plamo/iptables_spec.rb
serverspec-0.10.10 spec/plamo/iptables_spec.rb
serverspec-0.10.9 spec/plamo/iptables_spec.rb
serverspec-0.10.8 spec/plamo/iptables_spec.rb
serverspec-0.10.7 spec/plamo/iptables_spec.rb
serverspec-0.10.6 spec/plamo/iptables_spec.rb
serverspec-0.10.5 spec/plamo/iptables_spec.rb
serverspec-0.10.4 spec/plamo/iptables_spec.rb
serverspec-0.10.3 spec/plamo/iptables_spec.rb
serverspec-0.10.2 spec/plamo/iptables_spec.rb