From: Phil Sutter Date: Tue, 29 Aug 2023 13:44:25 +0000 (+0200) Subject: tests: monitor: Fix for wrong ordering in expected JSON output X-Git-Tag: v1.0.9~173 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=830d280740bb414dadef0eba44f41f9fd1e7c6bf;p=thirdparty%2Fnftables.git 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 --- 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 }