From: Phil Sutter Date: Thu, 9 May 2019 11:35:44 +0000 (+0200) Subject: tests/py: Fix JSON expected output after expr merge change X-Git-Tag: v0.9.1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee08a4d50a56bf786ade1188b63338d550d7e99;p=thirdparty%2Fnftables.git tests/py: Fix JSON expected output after expr merge change Looks like original patch missed this one. Fixes: 88ba0c92754d8 ("tests: fix up expected payloads after expr merge change") Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- diff --git a/tests/py/inet/tcp.t.json.output b/tests/py/inet/tcp.t.json.output index 143490f73..0f7a593b7 100644 --- a/tests/py/inet/tcp.t.json.output +++ b/tests/py/inet/tcp.t.json.output @@ -23,32 +23,8 @@ } ] -# tcp sequence 0 tcp sport 1024 tcp dport 22 +# tcp sequence 0 tcp sport { 1024, 1022} tcp dport 22 [ - { - "match": { - "left": { - "payload": { - "field": "sport", - "protocol": "tcp" - } - }, - "op": "==", - "right": 1024 - } - }, - { - "match": { - "left": { - "payload": { - "field": "dport", - "protocol": "tcp" - } - }, - "op": "==", - "right": 22 - } - }, { "match": { "left": { @@ -60,11 +36,7 @@ "op": "==", "right": 0 } - } -] - -# tcp sequence 0 tcp sport { 1024, 1022} tcp dport 22 -[ + }, { "match": { "left": { @@ -93,18 +65,6 @@ "op": "==", "right": 22 } - }, - { - "match": { - "left": { - "payload": { - "field": "sequence", - "protocol": "tcp" - } - }, - "op": "==", - "right": 0 - } } ]