From: tphoney Date: Thu, 21 Feb 2019 12:09:53 +0000 (+0000) Subject: allow rhel5 difference for src_type X-Git-Tag: 1.15.2~9^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fd0d1172db512155df5646338970a7e6770d1823;p=puppet-modules%2Fpuppetlabs-firewall.git allow rhel5 difference for src_type --- diff --git a/spec/acceptance/firewall_attributes_happy_path_spec.rb b/spec/acceptance/firewall_attributes_happy_path_spec.rb index c430016..e42478d 100644 --- a/spec/acceptance/firewall_attributes_happy_path_spec.rb +++ b/spec/acceptance/firewall_attributes_happy_path_spec.rb @@ -244,7 +244,7 @@ describe 'firewall attribute testing, happy path' do expect(result.stdout).to match(%r{-A INPUT -p tcp -m addrtype --dst-type MULTICAST -m comment --comment "563 - dst_type" -j ACCEPT}) end it 'src_type is negated' do - expect(result.stdout).to match(%r{-A INPUT -p tcp -m addrtype ! --src-type MULTICAST -m comment --comment "564 - src_type negated" -j ACCEPT}) + expect(result.stdout).to match(%r{-A INPUT -p tcp -m addrtype (! --src-type|--src-type !) MULTICAST -m comment --comment "564 - src_type negated" -j ACCEPT}) end it 'tcp_flags is set' do expect(result.stdout).to match(%r{-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN ACK -m comment --comment "565 - tcp_flags" -j ACCEPT})