diff options
author | Florian Westphal <fw@strlen.de> | 2023-06-24 19:14:35 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-06-24 19:14:35 +0200 |
commit | 7ef89a85f6e028068c612822ffe81d290e82b3a0 (patch) | |
tree | 5a16805881e3f761bdd51b74b90fe76782755b2b /examples/json-ruleset.nft | |
parent | e300318ff4688e0a53104cf2f990ccf3fdd36e89 (diff) |
tests: json: add missing/expected json output
nft-test.py generates following warning:
any/last.t: WARNING: line 12: '{"nftables": [{"add": {"rule": {"family": "ip", "table": "test-ip4", "chain": "input", "expr": [{"last": {"used": 300000}}]}}}]}': '[{"last": {"used": 300000}}]' mismatches '[{"last": null}]'
This is because "last" expression is stateful; but nft-test.py
explicitly asks for stateless output.
Thus we need to provide a json.output file, without it,
nft-test.py uses last.json as the expected output file.
Fixes: ae8786756b0c ("src: add json support for last statement")
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'examples/json-ruleset.nft')
0 files changed, 0 insertions, 0 deletions