]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: 30s-stress: add failslab and abort phase tests
authorFlorian Westphal <fw@strlen.de>
Wed, 23 Aug 2023 04:29:13 +0000 (06:29 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 24 Aug 2023 17:03:23 +0000 (19:03 +0200)
commit957b356e3bc94ff5721402e96ccfe3e8753e5768
tree51047c8495dfcd994f2eec7cfd3a1ac495094ab5
parentf0d16340c282df779d30470598dbbd01427a636e
tests: 30s-stress: add failslab and abort phase tests

Pablo suggested to also cover abort phase by intentionally deleting
non-existent or adding clashing keys.

While at it:
add rules with anon sets and jumps to anonymous chains and a few
constant sets.

Pick different key sizes so there is a higher chance kernel picks
different backend storages such as bitmap or hash_fast.

add failslab support, this also covers unlikely or "impossible" cases like
failing GFP_KERNEL allocations.

randomly spawn 'nft monitor' in the background for a random duration
to cover notification path.

Try to randomly delete a set or chain from control plane.

Randomly set a table as dormant (and back to normal).

Allow to pass the test runtime as argument, so one can now do

./30s-stress 3600

to have the test run for one hour.

For such long test durations, make sure the ruleset
gets regenerated periodically.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/transactions/30s-stress