summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/udp.t.json
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-08-29 16:23:27 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-30 12:19:36 +0200
commit90d4ee087171e75d5313359ad6b6f1341e51ddc5 (patch)
tree59572c39aa334813b9b090fa46a57fedf9ff5aac /tests/py/inet/udp.t.json
parent8f6e1c37e3e74e1fd490a0de5360ff1467c521cd (diff)
JSON: Make match op mandatory, introduce 'in' operator
This special operator is required for cases where missing operator does not lead to same results as equal operator, i.e. with bitmasks on RHS. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/udp.t.json')
-rw-r--r--tests/py/inet/udp.t.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/py/inet/udp.t.json b/tests/py/inet/udp.t.json
index 5ea073d7..f8826640 100644
--- a/tests/py/inet/udp.t.json
+++ b/tests/py/inet/udp.t.json
@@ -8,6 +8,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": 80
}
},
@@ -45,6 +46,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"range": [ 50, 70 ]
}
@@ -86,6 +88,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
49,
@@ -133,6 +136,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
{ "range": [ 12, 40 ] }
@@ -172,6 +176,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": 80
}
},
@@ -209,6 +214,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"range": [ 70, 75 ]
}
@@ -250,6 +256,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
49,
@@ -297,6 +304,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
{ "range": [ 70, 75 ] }
@@ -342,6 +350,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": 6666
}
}
@@ -373,6 +382,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"range": [ 50, 65 ]
}
@@ -414,6 +424,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
50,
@@ -461,6 +472,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
{ "range": [ 35, 50 ] }
@@ -500,6 +512,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": 6666
}
},
@@ -542,6 +555,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": 22
}
}
@@ -573,6 +587,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"range": [ 33, 45 ]
}
@@ -608,6 +623,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
33,
@@ -653,6 +669,7 @@
"protocol": "udp"
}
},
+ "op": "==",
"right": {
"set": [
{ "range": [ 33, 55 ] }
@@ -689,6 +706,7 @@
"left": {
"meta": { "key": "iif" }
},
+ "op": "==",
"right": "lo"
}
},
@@ -712,6 +730,7 @@
"left": {
"meta": { "key": "iif" }
},
+ "op": "==",
"right": "lo"
}
},