From dd57ec322c518a6cfea5d53770cc2f97a7c268bd Mon Sep 17 00:00:00 2001 From: Dan Carley Date: Thu, 24 May 2012 18:57:46 +0100 Subject: [PATCH] (#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. --- spec/fixtures/iptables/conversion_hash.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' => { -- 2.45.2