diff mbox series

[nft] tests/py: Fix for missing JSON equivalent in any/ct.t.json

Message ID 20210308144546.15311-1-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series [nft] tests/py: Fix for missing JSON equivalent in any/ct.t.json | expand

Commit Message

Phil Sutter March 8, 2021, 2:45 p.m. UTC
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 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
diff mbox series

Patch

diff --git a/tests/py/any/ct.t.json b/tests/py/any/ct.t.json
index d429ae73ea5cc..6684963b6609c 100644
--- a/tests/py/any/ct.t.json
+++ b/tests/py/any/ct.t.json
@@ -387,6 +387,21 @@ 
     }
 ]
 
+# ct status ! dnat
+[
+    {
+        "match": {
+            "left": {
+                "ct": {
+                    "key": "status"
+                }
+            },
+            "op": "!",
+            "right": "dnat"
+        }
+    }
+]
+
 # ct mark 0
 [
     {