diff mbox series

[nft,1/8] tests/py: Add missing JSON bits for inet/meta.t

Message ID 20181011154901.20082-2-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series monitor: Use libnftables for JSON output | expand

Commit Message

Phil Sutter Oct. 11, 2018, 3:48 p.m. UTC
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>
---
 tests/py/inet/meta.t.json        |  8 +++++---
 tests/py/inet/meta.t.json.output | 15 +++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/tests/py/inet/meta.t.json b/tests/py/inet/meta.t.json
index 77f46ab6ab9e5..5501f0bec6eda 100644
--- a/tests/py/inet/meta.t.json
+++ b/tests/py/inet/meta.t.json
@@ -185,14 +185,16 @@ 
     }
 ]
 
-# meta secpath exists
+# meta ipsec exists
 [
     {
         "match": {
             "left": {
-                "meta": { "key": "secpath" }
+                "meta": {
+                    "key": "ipsec"
+                }
             },
-	    "op": "==",
+            "op": "==",
             "right": true
         }
     }
diff --git a/tests/py/inet/meta.t.json.output b/tests/py/inet/meta.t.json.output
index d0bb0a610e4e0..3e7dd2145e67f 100644
--- a/tests/py/inet/meta.t.json.output
+++ b/tests/py/inet/meta.t.json.output
@@ -36,3 +36,18 @@ 
     }
 ]
 
+# meta secpath missing
+[
+    {
+        "match": {
+            "left": {
+                "meta": {
+                    "key": "ipsec"
+                }
+            },
+            "op": "==",
+            "right": false
+        }
+    }
+]
+