Sha256: 8838d23b1111835a378086397824ee2d4467f1a37962f63958095b03306a2ca1

Contents?: true

Size: 553 Bytes

Versions: 5

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'

set :os, :family => 'linux'

describe commands.command_class('iptables').create do
  it { should be_an_instance_of(Specinfra::Command::Linux::Base::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/linux/iptables_spec.rb
serverspec-2.0.0.beta12 spec/type/linux/iptables_spec.rb
serverspec-2.0.0.beta11 spec/type/linux/iptables_spec.rb
serverspec-2.0.0.beta10 spec/type/linux/iptables_spec.rb
serverspec-2.0.0.beta9 spec/type/linux/iptables_spec.rb