liblognorm icon indicating copy to clipboard operation
liblognorm copied to clipboard

testbench: json_eq tool does not detect extra parameters

Open rgerhards opened this issue 10 years ago • 1 comments

if there is an extra parameter present, json_eq ignores it and reports "successful match".

Sample:

execute 'iptables: IN= SECOND=test'
assert_output_json_eq '{ "field": { "IN": ""} }'

gives

Out:
{ "field": { "IN": "", "SECOND": "test" } }

without any error indication.

rgerhards avatar May 03 '15 15:05 rgerhards

Note: when fixed, check the testbench tests for v2-iptables parser. This may also be used during fixing.

rgerhards avatar May 03 '15 15:05 rgerhards