]> git.kaiwu.me - haproxy.git/commit
REGTESTS: http-rules: test the run-time ACL and map update actions
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Sep 2026 20:12:37 +0000 (20:12 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Sep 2026 14:26:01 +0000 (16:26 +0200)
commit839fafd3582bff649b7a05627b8b8916af8fcf06
tree2262e6b889599482f87b6c83a4be578751ebf98c
parent30fa39c655e11da4c38c79acd7959a118b7debaa
REGTESTS: http-rules: test the run-time ACL and map update actions

The add-acl, del-acl, set-map and del-map actions were not covered at
all, nor were the "file@", "opt@" and "virt@" name formats described in
section 2.7.

The test adds and removes entries from one request and observes them
from the next one, on an ACL loaded from a regular file and on three
maps designated respectively by a plain file name, by the same name
prefixed with "file@" to verify that both reference the same list, by
"virt@" which has no file at all, and by "opt@" pointing at a file which
does not exist. It also checks that updating an existing key replaces
its value instead of duplicating the entry, that the set-map action is
usable from the http-after-response rule set, and that the resulting
lists are visible from "show acl" and "show map".
reg-tests/http-rules/acl_map_updates.acl [new file with mode: 0644]
reg-tests/http-rules/acl_map_updates.map [new file with mode: 0644]
reg-tests/http-rules/acl_map_updates.vtc [new file with mode: 0644]