From: Bryan Jen Date: Thu, 17 Dec 2015 17:58:11 +0000 (-0700) Subject: (maint) fixes acceptance tests X-Git-Tag: 1.8.0~13^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b738536f50770ad5eeacf56fe47f376087bb8871;p=puppet-modules%2Fpuppetlabs-firewall.git (maint) fixes acceptance tests --- 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