]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Add test for comments without quotes
authorMateusz Gozdek <mateusz.gozdek@sociomantic.com>
Mon, 5 Nov 2018 16:55:22 +0000 (17:55 +0100)
committerMateusz Gozdek <mateusz.gozdek@sociomantic.com>
Fri, 9 Nov 2018 13:55:29 +0000 (14:55 +0100)
spec/fixtures/iptables/conversion_hash.rb

index a169d50f609caa8aead391f7214ad4ff6d8e4448..237b56926f190111d66d698d1e88bcd2b9cb3704 100644 (file)
@@ -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',