From fd0d1172db512155df5646338970a7e6770d1823 Mon Sep 17 00:00:00 2001 From: tphoney Date: Thu, 21 Feb 2019 12:09:53 +0000 Subject: [PATCH] allow rhel5 difference for src_type --- spec/acceptance/firewall_attributes_happy_path_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- 2.45.2