From: Dan Carley Date: Thu, 24 May 2012 17:57:46 +0000 (+0100) Subject: (#9364 #10085) Convert an existing test to CIDR X-Git-Tag: 0.1.0~23^2~1 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=dd57ec322c518a6cfea5d53770cc2f97a7c268bd;p=puppet-modules%2Fpuppetlabs-firewall.git (#9364 #10085) Convert an existing test to CIDR 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. --- diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index 3b59cd5..c165151 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -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' => {