Sha256: adddb6e59fdd142f8b9dbd3e6cc6754fc139beecac8ec8add2847f2ef7eeb1ba
Contents?: true
Size: 587 Bytes
Versions: 13
Compression:
Stored size: 587 Bytes
Contents
require 'spec_helper' include SpecInfra::Helper::Plamo 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
13 entries across 13 versions & 1 rubygems