From: Jan Vansteenkiste Date: Thu, 23 Aug 2012 07:13:04 +0000 (+0200) Subject: Added a test case for /older/ alternative negation syntax X-Git-Tag: 0.5.0~18^2~3 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=aecedc0b61faa042689fa6c0f1507cdeaadcc1c6;p=puppet-modules%2Fpuppetlabs-firewall.git Added a test case for /older/ alternative negation syntax --- diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index 28cfdbb..32b6e35 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -105,6 +105,14 @@ ARGS_TO_HASH = { :destination => '! 2.2.2.2/32', }, }, + 'source_destination_negate_destination_alternative' => { + :line => '-A INPUT -s 1.1.1.1 -d ! 2.2.2.2 -m comment --comment "000 negated destination address alternative"', + :table => 'filter', + :params => { + :source => '1.1.1.1/32', + :destination => '! 2.2.2.2/32', + }, + }, 'dport_range_1' => { :line => '-A INPUT -m multiport --dports 1:1024 -m comment --comment "000 allow foo"', :table => 'filter',