]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: py: add missing JSON output for ct test.
authorJeremy Sowden <jeremy@azazel.net>
Sun, 11 Oct 2020 19:23:22 +0000 (20:23 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 Oct 2020 00:16:19 +0000 (02:16 +0200)
Fixes: dcec7d57559a ("ct: Add support for the 'id' key")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/any/ct.t.json

index 59ac27c3055c9d4e2282b8e896cd42a6ed76c3ac..c5c15b9c8b9442a27e484bb7675796ebb3d8cf28 100644 (file)
     }
 ]
 
+# ct id 12345
+[
+    {
+        "match": {
+            "left": {
+                "ct": {
+                    "key": "id"
+                }
+            },
+            "op": "==",
+            "right": 12345
+        }
+    }
+]
+
 # ct zone set mark map { 1 : 1,  2 : 2 }
 [
     {