]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/py: Add missing JSON bits for inet/meta.t
authorPhil Sutter <phil@nwl.cc>
Thu, 11 Oct 2018 15:48:54 +0000 (17:48 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 15 Oct 2018 11:37:51 +0000 (13:37 +0200)
Those were forgotten when renaming meta secpath to meta ipsec.

Fixes: 8f55ed41d0070 ("src: rename meta secpath to meta ipsec")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/inet/meta.t.json
tests/py/inet/meta.t.json.output

index 77f46ab6ab9e57695dc90bce85f3cad4d2746a36..5501f0bec6edaf4c15e71d83111e17851961d261 100644 (file)
     }
 ]
 
-# meta secpath exists
+# meta ipsec exists
 [
     {
         "match": {
             "left": {
-                "meta": { "key": "secpath" }
+                "meta": {
+                    "key": "ipsec"
+                }
             },
-           "op": "==",
+            "op": "==",
             "right": true
         }
     }
index d0bb0a610e4e0464598f68413e47e2f4c1caeecc..3e7dd2145e67f45ab4680a86498a6360773e1f9d 100644 (file)
     }
 ]
 
+# meta secpath missing
+[
+    {
+        "match": {
+            "left": {
+                "meta": {
+                    "key": "ipsec"
+                }
+            },
+            "op": "==",
+            "right": false
+        }
+    }
+]
+