diff options
author | Phil Sutter <phil@nwl.cc> | 2023-08-29 15:41:13 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-08-29 18:12:57 +0200 |
commit | 3dc073e0c0836430c8692816ad8855f932debc67 (patch) | |
tree | 626614d697d1a4c3d8d91736248531363a1ebbff /tests/monitor/testcases | |
parent | eac68b84227a3fc46572f3bae1113eaa91d13f24 (diff) |
tests: monitor: Fix for wrong syntax in set-interval.t
Expected JSON output must be prefixed 'J'.
Fixes: 7ab453a033c9a ("monitor: do not call interval_map_decompose() for concat intervals")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/monitor/testcases')
-rw-r--r-- | tests/monitor/testcases/set-interval.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/monitor/testcases/set-interval.t b/tests/monitor/testcases/set-interval.t index b0649cdf..5053c596 100644 --- a/tests/monitor/testcases/set-interval.t +++ b/tests/monitor/testcases/set-interval.t @@ -27,4 +27,4 @@ J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "ex # ... and anon concat range I add rule ip t c ether saddr . ip saddr { 08:00:27:40:f7:09 . 192.168.56.10-192.168.56.12 } O - -{"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"match": {"op": "==", "left": {"concat": [{"payload": {"protocol": "ether", "field": "saddr"}}, {"payload": {"protocol": "ip", "field": "saddr"}}]}, "right": {"set": [{"concat": ["08:00:27:40:f7:09", {"range": ["192.168.56.10", "192.168.56.12"]}]}]}}}]}}} +J {"add": {"rule": {"family": "ip", "table": "t", "chain": "c", "handle": 0, "expr": [{"match": {"op": "==", "left": {"concat": [{"payload": {"protocol": "ether", "field": "saddr"}}, {"payload": {"protocol": "ip", "field": "saddr"}}]}, "right": {"set": [{"concat": ["08:00:27:40:f7:09", {"range": ["192.168.56.10", "192.168.56.12"]}]}]}}}]}}} |