From: Florian Westphal Date: Tue, 16 Jul 2019 19:40:27 +0000 (+0200) Subject: tests: fix up two broken json test cases X-Git-Tag: v0.9.2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82cc676289803cfd1e69dfeaa4658d57a1547a86;p=thirdparty%2Fnftables.git tests: fix up two broken json test cases Forgot to add a json test case for the recently added ct ip addr in map case. Fix up rawpayload.t for json, it needs to expect new "th dport" when listing. Reported-by: Pablo Neira Ayuso Signed-off-by: Florian Westphal --- diff --git a/tests/py/any/rawpayload.t.json.output b/tests/py/any/rawpayload.t.json.output index a234e99a0..ccadbc57c 100644 --- a/tests/py/any/rawpayload.t.json.output +++ b/tests/py/any/rawpayload.t.json.output @@ -19,9 +19,8 @@ "match": { "left": { "payload": { - "base": "th", - "len": 16, - "offset": 16 + "field": "dport", + "protocol": "th" } }, "op": "==", diff --git a/tests/py/inet/ct.t.json b/tests/py/inet/ct.t.json index d0c26aef9..e7f928ca1 100644 --- a/tests/py/inet/ct.t.json +++ b/tests/py/inet/ct.t.json @@ -39,3 +39,26 @@ } ] +# ct original ip daddr {1.2.3.4} accept +[ + { + "match": { + "left": { + "ct": { + "dir": "original", + "key": "ip daddr" + } + }, + "op": "==", + "right": { + "set": [ + "1.2.3.4" + ] + } + } + }, + { + "accept": null + } +] +