More test exclusion logic fixes
authorJonathan Tripathy <jt@puppetlabs.com>
Fri, 24 Jul 2015 00:03:28 +0000 (01:03 +0100)
committerJonathan Tripathy <jt@puppetlabs.com>
Fri, 24 Jul 2015 00:03:28 +0000 (01:03 +0100)
spec/acceptance/firewall_spec.rb
spec/acceptance/ip6_fragment_spec.rb

index 4ce7bb4c1f108629acadf1ba6eb67d616574cd7d..aa888dc294baa7e54fdb189f5befcea442a3254e 100644 (file)
@@ -2217,7 +2217,7 @@ describe 'firewall type', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfami
 
       it 'should contain the rule' do
         shell('iptables-save') do |r|
-          if (fact('osfamily') == 'RedHat' and fact('operatingsystemmajrelease') == '5') or (fact('osfamily') == 'SLES' and fact('operatingsystemmajrelease') == '10')
+          if (fact('osfamily') == 'RedHat' and fact('operatingsystemmajrelease') == '5') or default['platform'] =~ /sles-10/
             expect(r.stdout).to match(/-A INPUT -s 10.1.5.28 -p tcp -m mac --mac-source 0A:1B:3C:4D:5E:6F -m comment --comment "610 - test"/)
           else
             expect(r.stdout).to match(/-A INPUT -s 10.1.5.28\/(32|255\.255\.255\.255) -p tcp -m mac --mac-source 0A:1B:3C:4D:5E:6F -m comment --comment "610 - test"/)
index 5a34ebf078e7ec5938882463c33831187cf68c88..64728ed40df33a804715fcb5930a9cceb64138af 100644 (file)
@@ -1,6 +1,6 @@
 require 'spec_helper_acceptance'
 
-if default['platform'] =~ /el-5/ and default['platform'] =~ /sles-10/
+if default['platform'] =~ /el-5/ or default['platform'] =~ /sles-10/
   describe "firewall ip6tables doesn't work on 1.3.5 because --comment is missing", :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
     before :all do
       ip6tables_flush_all_tables