]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(#9364 #10085) Convert an existing test to CIDR
authorDan Carley <dan.carley@gmail.com>
Thu, 24 May 2012 17:57:46 +0000 (18:57 +0100)
committerKen Barber <ken@bob.sh>
Sun, 10 Jun 2012 21:04:38 +0000 (22:04 +0100)
Modify an existing test which has a source IP address without CIDR notation.
This will break after normalisation because [:params][:source] is expected
to be CIDR. Updating -s within [:line] too, since we aren't explcitly testing
that behaviour with this fixture.

spec/fixtures/iptables/conversion_hash.rb

index 3b59cd51364b512f037addd24204189779b562a7..c165151fa726f223f369143941d9ae222cef1ad1 100644 (file)
@@ -111,10 +111,10 @@ ARGS_TO_HASH = {
     },
   },
   'comment_string_character_validation' => {
-    :line => '-A INPUT -s 192.168.0.1 -m comment --comment "000 allow from 192.168.0.1, please"',
+    :line => '-A INPUT -s 192.168.0.1/32 -m comment --comment "000 allow from 192.168.0.1, please"',
     :table => 'filter',
     :params => {
-      :source => '192.168.0.1',
+      :source => '192.168.0.1/32',
     },
   },
   'log_level_debug' => {