diff options
author | Phil Sutter <phil@nwl.cc> | 2023-08-29 15:44:25 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-08-29 18:12:57 +0200 |
commit | 830d280740bb414dadef0eba44f41f9fd1e7c6bf (patch) | |
tree | 4420ff554ce2a869774882a62f0fe9b2b195dd74 /tests/monitor/testcases | |
parent | 3dc073e0c0836430c8692816ad8855f932debc67 (diff) |
tests: monitor: Fix for wrong ordering in expected JSON output
Adjust JSON for delete before add for replace after respective kernel
fix, too.
Fixes: ba786ac758fba ("tests: monitor: update insert and replace commands")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/monitor/testcases')
-rw-r--r-- | tests/monitor/testcases/simple.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/testcases/simple.t b/tests/monitor/testcases/simple.t index c1c7bcfc..67be5c85 100644 --- a/tests/monitor/testcases/simple.t +++ b/tests/monitor/testcases/simple.t @@ -20,8 +20,8 @@ J {"insert": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, I replace rule ip t c handle 2 accept comment "foo bar" O delete rule ip t c handle 2 O add rule ip t c handle 5 accept comment "foo bar" -J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "comment": "foo bar", "expr": [{"accept": null}]}}} J {"delete": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"accept": null}]}}} +J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "comment": "foo bar", "expr": [{"accept": null}]}}} I add counter ip t cnt O add counter ip t cnt { packets 0 bytes 0 } |