]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
ip6tables isn't supported on EL5
authorMorgan Haskel <morgan@puppetlabs.com>
Thu, 30 Oct 2014 22:12:42 +0000 (15:12 -0700)
committerMorgan Haskel <morgan@puppetlabs.com>
Thu, 30 Oct 2014 22:12:42 +0000 (15:12 -0700)
No need to test ip6tables purging on EL5 since the ip6tables provider
isn't supported.

spec/acceptance/purge_spec.rb

index 6a9d9a8b6718d916b52e27076e8c88d5f016845b..73582b87823d5cdfdea810616c825eada60c4ebe 100644 (file)
@@ -130,7 +130,7 @@ describe "purge tests:", :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamil
       expect(shell('iptables-save').stdout).to match(/-A INPUT -s 1\.2\.1\.1(\/32)? -p tcp\s?\n-A INPUT -s 1\.2\.1\.1(\/32)? -p udp/)
     end
   end
-  context('ipv6 chain purge') do
+  context 'ipv6 chain purge', :unless => (fact('osfamily') == 'RedHat' and fact('operatingsystemmajrelease') == '5') do
     after(:all) do
       ip6tables_flush_all_tables
     end