Sha256: 6009ebdecbee8c8f906432354b16f85fe03ed037da61dd451c7306fcc734b90e
Contents?: true
Size: 589 Bytes
Versions: 39
Compression:
Stored size: 589 Bytes
Contents
require 'spec_helper' include Serverspec::Helper::Gentoo 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