Skip to contentSkip to conversation

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

PATCH New Phil Sutter 1 participant 1 message Mar 8, 2021 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 tests/py: Fix for missing JSON equivalent in any/ct.t.json

JSON equivalent for recently added test of the '!' shortcut was missing.

Fixes e6c32b2fa0b82 ("src: add negation match on singleton bitmask value")
---
 tests/py/any/ct.t.json | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
tests/py/any/ct.t.json +15 -0
index d429ae73ea5cc..6684963b6609c 100644
@@ -387,6 +387,21 @@
     }
 ]
 
+# ct status ! dnat
+[
+    {
+        "match": {
+            "left": {
+                "ct": {
+                    "key": "status"
+                }
+            },
+            "op": "!",
+            "right": "dnat"
+        }
+    }
+]
+
 # ct mark 0
 [
     {
Signature · 1 line
2.30.1