]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Added a test case for /older/ alternative negation syntax
authorJan Vansteenkiste <jan@vstone.eu>
Thu, 23 Aug 2012 07:13:04 +0000 (09:13 +0200)
committerPatrick Hemmer <patrick.hemmer@gmail.com>
Fri, 20 Dec 2013 20:11:29 +0000 (15:11 -0500)
spec/fixtures/iptables/conversion_hash.rb

index 28cfdbb98799f122a98ad718b49ac1b7d814e79b..32b6e3577c333e47e05e84256bf37cfc011a0327 100644 (file)
@@ -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',