diff --git a/test/integration/test/integration/default/iptables_spec.rb b/test/integration/test/integration/default/iptables_spec.rb index 32c3b8a8e..741061844 100644 --- a/test/integration/test/integration/default/iptables_spec.rb +++ b/test/integration/test/integration/default/iptables_spec.rb @@ -1,7 +1,7 @@ # encoding: utf-8 case os[:family] -when 'ubuntu', 'rhel', 'centos', 'fedora' +when 'ubuntu', 'fedora' describe iptables do it { should have_rule('-A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW -m comment --comment "http on 80" -j ACCEPT') } it { should_not have_rule('-A INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT') } @@ -9,4 +9,10 @@ when 'ubuntu', 'rhel', 'centos', 'fedora' # single-word comments have their quotes dropped it { should have_rule('-A derby-cognos-web -p tcp -m tcp --dport 80 -m comment --comment derby-cognos-web -j ACCEPT') } end +when 'rhel', 'centos' + describe iptables do + it { should have_rule('-A INPUT -i eth0 -p tcp -m tcp --dport 80 -m state --state NEW -m comment --comment "http on 80" -j ACCEPT') } + it { should_not have_rule('-A INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT') } + it { should have_rule('-A derby-cognos-web -p tcp -m tcp --dport 80 -m comment --comment "derby-cognos-web" -j ACCEPT') } + end end