Sha256: 36420bfd62e017ef27a7d2b3f5613f6c0c5d4aa9c968fb5a4a482612170be450
Contents?: true
Size: 692 Bytes
Versions: 14
Compression:
Stored size: 692 Bytes
Contents
require 'spec_helper' include SpecInfra::Helper::Fedora describe iptables do it { should have_rule '-P INPUT ACCEPT' } its(:command) { should eq "iptables -S | grep -- -P\\ INPUT\\ ACCEPT || iptables-save | 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 || iptables-save -t mangle | 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