From: Florian Westphal Date: Mon, 9 Sep 2024 15:26:01 +0000 (+0200) Subject: tests: shell: add test case for timeout updates X-Git-Tag: v1.1.1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25f34daca210c78fea5c346724438ac36e32433b;p=thirdparty%2Fnftables.git tests: shell: add test case for timeout updates Needs a feature check file, so add one: Add element with 1m timeout, then update expiry to 1ms. If element still exists after 1ms, update request was ignored. Test case checks timeouts can both be incremented and decremented, checks error recovery (update request but transaction fails) and that expiry is restored in addion to timeout. Signed-off-by: Florian Westphal --- diff --git a/tests/shell/features/elem_timeout_update.sh b/tests/shell/features/elem_timeout_update.sh new file mode 100755 index 00000000..6243170a --- /dev/null +++ b/tests/shell/features/elem_timeout_update.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# 4201f3938914 ("netfilter: nf_tables: set element timeout update support") + +$NFT -f - <