summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/dumps/vmap_timeout.nft
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-08-21 17:16:49 +0200
committerFlorian Westphal <fw@strlen.de>2023-08-29 18:10:15 +0200
commit6d50e520bed653bc12b30a9936af77c8fe3b4efd (patch)
tree26320042cd5f84ef356ba602e0bfb7345824fe1b /tests/shell/testcases/maps/dumps/vmap_timeout.nft
parent61eab46ee62a72629fa86c1929e73a2bfa95bc02 (diff)
tests/shell: expand vmap test case to also cause batch abort
Let the last few batches also push an update that contains elements twice. This is expected to cause the batch to be aborted, which increases code coverage on kernel side. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/maps/dumps/vmap_timeout.nft')
-rw-r--r--tests/shell/testcases/maps/dumps/vmap_timeout.nft2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/shell/testcases/maps/dumps/vmap_timeout.nft b/tests/shell/testcases/maps/dumps/vmap_timeout.nft
index 295971ab..095f894d 100644
--- a/tests/shell/testcases/maps/dumps/vmap_timeout.nft
+++ b/tests/shell/testcases/maps/dumps/vmap_timeout.nft
@@ -2,12 +2,14 @@ table inet filter {
map portmap {
type inet_service : verdict
flags timeout
+ gc-interval 10s
elements = { 22 : jump ssh_input }
}
map portaddrmap {
typeof ip daddr . th dport : verdict
flags timeout
+ gc-interval 10s
elements = { 1.2.3.4 . 22 : jump ssh_input }
}