summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-10-11 17:48:54 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-10-15 13:37:51 +0200
commit44b079303f68c9e034696e36d9489592e71adced (patch)
tree950f0ac338d84ce3d187b92a79a9e3d31980ab29 /tests
parent8ef0efb97006081e7f6054a950cb3614dd57729f (diff)
tests/py: Add missing JSON bits for inet/meta.t
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/py/inet/meta.t.json8
-rw-r--r--tests/py/inet/meta.t.json.output15
2 files changed, 20 insertions, 3 deletions
diff --git a/tests/py/inet/meta.t.json b/tests/py/inet/meta.t.json
index 77f46ab6..5501f0be 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 d0bb0a61..3e7dd214 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
+ }
+ }
+]
+