]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: monitor: Fix time format in ct timeout test
authorPhil Sutter <phil@nwl.cc>
Tue, 29 Aug 2023 13:22:56 +0000 (15:22 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 29 Aug 2023 16:12:56 +0000 (18:12 +0200)
The old "plain" numbers are still accepted (and assumed to be in
seconds), but output will use units which is unexpected due to 'O -'.
Adjust input instead of adding this subtly different output line.

Fixes: 5c25c5a35cbd2 ("parser: allow ct timeouts to use time_spec values")
Signed-off-by: Phil Sutter <phil@nwl.cc>
tests/monitor/testcases/object.t

index 2afe33c8125710e83b4239e424276b91e5d7e097..53a9f8c59836b69057b88da6865306106241b4cd 100644 (file)
@@ -37,7 +37,7 @@ I delete ct helper ip t cth
 O -
 J {"delete": {"ct helper": {"family": "ip", "name": "cth", "table": "t", "handle": 0, "type": "sip", "protocol": "tcp", "l3proto": "ip"}}}
 
-I add ct timeout ip t ctt { protocol udp; l3proto ip; policy = { unreplied : 15, replied : 12 }; }
+I add ct timeout ip t ctt { protocol udp; l3proto ip; policy = { unreplied : 15s, replied : 12s }; }
 O -
 J {"add": {"ct timeout": {"family": "ip", "name": "ctt", "table": "t", "handle": 0, "protocol": "udp", "l3proto": "ip", "policy": {"unreplied": 15, "replied": 12}}}}