]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
allow rhel5 difference for src_type
authortphoney <tp@puppet.com>
Thu, 21 Feb 2019 12:09:53 +0000 (12:09 +0000)
committertphoney <tp@puppet.com>
Thu, 21 Feb 2019 12:09:53 +0000 (12:09 +0000)
spec/acceptance/firewall_attributes_happy_path_spec.rb

index c430016bf345dc1539b071b221c185644fa9d91d..e42478d7010e241872c3654c6192dce2a688f6c4 100644 (file)
@@ -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})