]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/py: Fix JSON expected output after expr merge change
authorPhil Sutter <phil@nwl.cc>
Thu, 9 May 2019 11:35:44 +0000 (13:35 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 May 2019 15:19:50 +0000 (17:19 +0200)
Looks like original patch missed this one.

Fixes: 88ba0c92754d8 ("tests: fix up expected payloads after expr merge change")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/inet/tcp.t.json.output

index 143490f7322d29b1c48ef4bca8bfb89e42778608..0f7a593b788c1271e5b55aaa47ac9f24f7a56e32 100644 (file)
     }
 ]
 
-# 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": {
            "op": "==",
             "right": 0
         }
-    }
-]
-
-# tcp sequence 0 tcp sport { 1024, 1022} tcp dport 22
-[
+    },
     {
         "match": {
             "left": {
            "op": "==",
             "right": 22
         }
-    },
-    {
-        "match": {
-            "left": {
-                "payload": {
-                    "field": "sequence",
-                    "protocol": "tcp"
-                }
-            },
-           "op": "==",
-            "right": 0
-        }
     }
 ]