]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Add test for rule to hash parser check added in 06cf2ee
authorAndjelko Horvat <andjelko.horvat.comel@gmail.com>
Thu, 8 Dec 2016 22:57:24 +0000 (23:57 +0100)
committerAndjelko Horvat <andjelko.horvat.comel@gmail.com>
Thu, 8 Dec 2016 22:57:24 +0000 (23:57 +0100)
spec/fixtures/iptables/conversion_hash.rb

index 164f67deda0541a6c31d21bf3a11f4d94c479114..53e0b41699c4fb168db592efe2bd5f4edf473afd 100644 (file)
@@ -663,6 +663,12 @@ ARGS_TO_HASH = {
       :proto        => "tcp",
     },
   },
+  'parser_sanity_check' => {
+    :line   => '-A INPUT -s 1.2.3.4/32 -p tcp -m tcp --dport 80 --tcp-flags FIN,SYN,RST,ACK SYN -m comment --comment "004 parser sanity check" -j ACCEPT',
+    :table  => 'filter',
+    :raise_error => true,
+    :params => {},
+  },
 }
 
 # This hash is for testing converting a hash to an argument line.
@@ -1275,4 +1281,4 @@ HASH_TO_ARGS = {
     },
     :args => ["-t", :filter, "-s", "1.2.3.4/32", "-d", "4.3.2.1/32", "-p", :tcp, "-m", "comment", "--comment", "003 nfqueue dont specify queue_num or queue_bypass", "-j", "NFQUEUE"]
   }  
-}
\ No newline at end of file
+}