]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Fix fixture tests
authorIBBoard <github@ibboard.co.uk>
Sat, 26 Sep 2020 18:33:00 +0000 (19:33 +0100)
committerGitHub <noreply@github.com>
Sat, 26 Sep 2020 18:33:00 +0000 (19:33 +0100)
ARGS_TO_HASH was correct (unquoted) but HASH_TO_ARGS
contained the rogue single quotes

spec/fixtures/iptables/conversion_hash.rb

index 25e67bf6a28a688b6ddf4383167a32dfbc156590..3157cc9ef0409fbef34d453dea53f7e5861cbb5d 100644 (file)
@@ -1390,7 +1390,7 @@ HASH_TO_ARGS = {
       table: 'filter',
       string: 'GET /index.html',
     },
-    args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "'GET /index.html'", '-m', 'comment', '--comment', '000 string_matching'],
+    args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "GET /index.html", '-m', 'comment', '--comment', '000 string_matching'],
   },
   'string_matching_2' => {
     params: {
@@ -1399,7 +1399,7 @@ HASH_TO_ARGS = {
       string: 'GET /index.html',
       string_algo: 'bm',
     },
-    args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "'GET /index.html'", '--algo', :bm, '-m', 'comment', '--comment', '000 string_matching'],
+    args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "GET /index.html", '--algo', :bm, '-m', 'comment', '--comment', '000 string_matching'],
   },
   'string_matching_3' => {
     params: {
@@ -1409,7 +1409,7 @@ HASH_TO_ARGS = {
       string_from: '1',
       string_to: '65535',
     },
-    args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "'GET /index.html'", '--from', '1', '--to', '65535', '-m', 'comment', '--comment', '000 string_matching'],
+    args: ['-t', :filter, '-p', :tcp, '-m', 'string', '--string', "GET /index.html", '--from', '1', '--to', '65535', '-m', 'comment', '--comment', '000 string_matching'],
   },
   'nfqueue_jump1' => {
     params: {