]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Update for hashlimit tests to not run on RedHat5 or Scientific 5
authorHelen Campbell <helen@puppet.com>
Wed, 6 Sep 2017 12:37:42 +0000 (13:37 +0100)
committerHelen Campbell <helen@puppet.com>
Wed, 6 Sep 2017 12:37:42 +0000 (13:37 +0100)
Hashlimit doesn't seem to be fully supported on these OS'es so I've put a check to skip the tests.

spec/acceptance/hashlimit_spec.rb

index 27e8a75fff77e9416f9b9236b97f85b24de4cc73..89b1ff02e601ed0cdefb3950100b2b16619a0b29 100644 (file)
@@ -1,7 +1,7 @@
 
 require 'spec_helper_acceptance'
 
-describe 'hashlimit property' do
+describe 'hashlimit property', if: fact('operatingsystemmajrelease') != '5' && (fact('operatingsystem') != 'Scientific' || fact('operatingsystem') != 'RedHat') do
   before :all do
     iptables_flush_all_tables
     ip6tables_flush_all_tables