From 67b61904d7bf1b647635419d9a28bcff49cfea4a Mon Sep 17 00:00:00 2001
From: Wilson McCoubrey <wilson@puppet.com>
Date: Mon, 13 Mar 2017 08:41:47 +0000
Subject: [PATCH] [MODULES-4234] Move physdev_is_in and physdev_is_out tests

To block of 'ip6tables physdev tests' which do not run on EL5 or SLES 10.
---
 spec/acceptance/firewall_bridging_spec.rb | 54 +++++++++++------------
 1 file changed, 27 insertions(+), 27 deletions(-)

diff --git a/spec/acceptance/firewall_bridging_spec.rb b/spec/acceptance/firewall_bridging_spec.rb
index 608e0e9..be09614 100644
--- a/spec/acceptance/firewall_bridging_spec.rb
+++ b/spec/acceptance/firewall_bridging_spec.rb
@@ -364,12 +364,10 @@ describe 'firewall bridging' do
              end
           end
         end
-      end
-    end
 
-    context 'physdev_is_in' do
-      it 'applies' do
-        pp = <<-EOS
+        context 'physdev_is_in' do
+          it 'applies' do
+            pp = <<-EOS
           class { '::firewall': }
           firewall { '708 - test':
             provider => 'ip6tables',
@@ -379,22 +377,22 @@ describe 'firewall bridging' do
             action => accept,
             physdev_is_in => true,
           }
-        EOS
+            EOS
 
-        apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_changes => do_catch_changes)
-      end
+            apply_manifest(pp, :catch_failures => true)
+            apply_manifest(pp, :catch_changes => do_catch_changes)
+          end
 
-      it 'should contain the rule' do
-         shell('ip6tables-save') do |r|
-           expect(r.stdout).to match(/-A FORWARD -p tcp -m physdev\s+--physdev-is-in -m multiport --ports 708 -m comment --comment "708 - test" -j ACCEPT/)
-         end
-      end
-    end
+          it 'should contain the rule' do
+            shell('ip6tables-save') do |r|
+              expect(r.stdout).to match(/-A FORWARD -p tcp -m physdev\s+--physdev-is-in -m multiport --ports 708 -m comment --comment "708 - test" -j ACCEPT/)
+            end
+          end
+        end
 
-    context 'physdev_is_out' do
-      it 'applies' do
-        pp = <<-EOS
+        context 'physdev_is_out' do
+          it 'applies' do
+            pp = <<-EOS
           class { '::firewall': }
           firewall { '709 - test':
             provider => 'ip6tables',
@@ -404,16 +402,18 @@ describe 'firewall bridging' do
             action => accept,
             physdev_is_out => true,
           }
-        EOS
+            EOS
 
-        apply_manifest(pp, :catch_failures => true)
-        apply_manifest(pp, :catch_changes => do_catch_changes)
-      end
+            apply_manifest(pp, :catch_failures => true)
+            apply_manifest(pp, :catch_changes => do_catch_changes)
+          end
 
-      it 'should contain the rule' do
-         shell('ip6tables-save') do |r|
-           expect(r.stdout).to match(/-A FORWARD -p tcp -m physdev\s+--physdev-is-out -m multiport --ports 709 -m comment --comment "709 - test" -j ACCEPT/)
-         end
+          it 'should contain the rule' do
+            shell('ip6tables-save') do |r|
+              expect(r.stdout).to match(/-A FORWARD -p tcp -m physdev\s+--physdev-is-out -m multiport --ports 709 -m comment --comment "709 - test" -j ACCEPT/)
+            end
+          end
+        end
       end
-    end
+  end
 end
-- 
2.45.2