From: Mateusz Gozdek Date: Mon, 5 Nov 2018 16:55:22 +0000 (+0100) Subject: Add test for comments without quotes X-Git-Tag: 1.15.0~10^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=46ebef10cbaa6b8ab09a8474d78a85ef235548f0;p=puppet-modules%2Fpuppetlabs-firewall.git Add test for comments without quotes --- diff --git a/spec/fixtures/iptables/conversion_hash.rb b/spec/fixtures/iptables/conversion_hash.rb index a169d50..237b569 100644 --- a/spec/fixtures/iptables/conversion_hash.rb +++ b/spec/fixtures/iptables/conversion_hash.rb @@ -247,6 +247,13 @@ ARGS_TO_HASH = { name: '000 allow from 192.168.0.1, please;another comment', }, }, + 'comments_without_quotes' => { + line: '-A INPUT -s 192.168.0.1/32 -m comment --comment comment_without_quotes', + table: 'filter', + params: { + name: '9000 comment_without_quotes', + }, + }, 'string_escape_sequences' => { line: '-A INPUT -m comment --comment "000 parse escaped \\"s, \\\'s, and \\\\s"', table: 'filter',