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