From b738536f50770ad5eeacf56fe47f376087bb8871 Mon Sep 17 00:00:00 2001 From: Bryan Jen Date: Thu, 17 Dec 2015 10:58:11 -0700 Subject: [PATCH] (maint) fixes acceptance tests --- spec/acceptance/firewall_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/acceptance/firewall_spec.rb b/spec/acceptance/firewall_spec.rb index 44e264d..def7d17 100644 --- a/spec/acceptance/firewall_spec.rb +++ b/spec/acceptance/firewall_spec.rb @@ -2346,7 +2346,7 @@ describe 'firewall type', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfami it 'should contain the rule' do shell('iptables-save') do |r| - expect(r.stdout).to match(/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j LOG --log_uid "/) + expect(r.stdout).to match(/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j LOG --log-uid/) end end @@ -2356,17 +2356,17 @@ describe 'firewall type', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfami firewall { '700 - test log_uid': chain => 'OUTPUT', jump => 'LOG', - log_uid => false' + log_uid => false, ensure => absent, } EOS - appy_manifest(pp, :catch_failures => true) + apply_manifest(pp, :catch_failures => true) end it 'should not contain the rule' do shell('iptables-save') do |r| - expect(r.stdout).to_not match('/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j --log-uid "/') + expect(r.stdout).to_not match(/-A OUTPUT -p tcp -m comment --comment "700 - test log_uid" -j --log-uid/) end end end -- 2.45.2