diff options
author | Florian Westphal <fw@strlen.de> | 2025-06-02 14:12:16 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-06-04 12:41:10 +0200 |
commit | c2ee1d5978bf6ea10e3b1a74125da5b5e8468f26 (patch) | |
tree | 14ddfb4bd49b7fe41d77fd3400117558ca68dc12 | |
parent | 883f79de486604e310c5093cfbe4d704794e4825 (diff) |
tests: py: fix json single-flag output for fib & synproxy
Blamed commits change output format but did not adjust existing tests:
inet/fib.t: WARNING: line 16: '{"nftables": ..
Fixes: 38f99ee84fe6 ("json: Print single synproxy flags as non-array")
Fixes: dbe5c44f2b89 ("json: Print single fib flag as non-array")
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | tests/py/inet/fib.t.json.output | 32 | ||||
-rw-r--r-- | tests/py/inet/synproxy.t.json.output | 17 |
2 files changed, 49 insertions, 0 deletions
diff --git a/tests/py/inet/fib.t.json.output b/tests/py/inet/fib.t.json.output index 52cd46bc..e21f1e72 100644 --- a/tests/py/inet/fib.t.json.output +++ b/tests/py/inet/fib.t.json.output @@ -37,3 +37,35 @@ } ] +# fib daddr oif exists +[ + { + "match": { + "left": { + "fib": { + "flags": "daddr", + "result": "oif" + } + }, + "op": "==", + "right": true + } + } +] + +# fib daddr oif missing +[ + { + "match": { + "left": { + "fib": { + "flags": "daddr", + "result": "oif" + } + }, + "op": "==", + "right": false + } + } +] + diff --git a/tests/py/inet/synproxy.t.json.output b/tests/py/inet/synproxy.t.json.output new file mode 100644 index 00000000..e32cdfb8 --- /dev/null +++ b/tests/py/inet/synproxy.t.json.output @@ -0,0 +1,17 @@ +# synproxy timestamp +[ + { + "synproxy": { + "flags": "timestamp" + } + } +] + +# synproxy sack-perm +[ + { + "synproxy": { + "flags": "sack-perm" + } + } +] |