]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/py: Fix for missing JSON equivalent in any/ct.t.json
authorPhil Sutter <phil@nwl.cc>
Mon, 8 Mar 2021 14:43:23 +0000 (15:43 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 9 Mar 2021 13:26:09 +0000 (14:26 +0100)
JSON equivalent for recently added test of the '!' shortcut was missing.

Fixes: e6c32b2fa0b82 ("src: add negation match on singleton bitmask value")
Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/py/any/ct.t.json

index d429ae73ea5cc65bb5eb2fe4f836f28269e4d5a3..6684963b6609c1a20dd0c88cc01813cf9f342318 100644 (file)
     }
 ]
 
+# ct status ! dnat
+[
+    {
+        "match": {
+            "left": {
+                "ct": {
+                    "key": "status"
+                }
+            },
+            "op": "!",
+            "right": "dnat"
+        }
+    }
+]
+
 # ct mark 0
 [
     {