]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Added fixtures to test parsing negated addresses
authorJan Vansteenkiste <jan@vstone.eu>
Wed, 22 Aug 2012 16:00:37 +0000 (18:00 +0200)
committerPatrick Hemmer <patrick.hemmer@gmail.com>
Fri, 20 Dec 2013 20:10:42 +0000 (15:10 -0500)
spec/fixtures/iptables/conversion_hash.rb

index 580dc48a804dc2cfb42d26ffae78d3178b03c176..8fb77b0d59c709b37a3ee55d8a9356901f72db66 100644 (file)
@@ -89,6 +89,22 @@ ARGS_TO_HASH = {
       :destination => '2001:db8:4321::/48',
     },
   },
+  'source_destination_negate_source' => {
+    :line => '-A INPUT -s ! 1.1.1.1 -d 2.2.2.2 -m comment --comment "000 negated source address"',
+    :table => 'filter',
+    :params => {
+      :source => '! 1.1.1.1/32',
+      :destination => '2.2.2.2/32',
+    },
+  },
+  'source_destination_negate_destination' => {
+    :line => '-A INPUT -s 1.1.1.1 -d ! 2.2.2.2 -m comment --comment "000 negated destination address"',
+    :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',