haproxy/reg-tests/http-rules/map_ordering.map
Aurelien DARRAGON 3b0bf5097b MINOR: map: mapfile ordering also matters for tree-based match types
Willy made me realize that tree-based matching may also suffer from
out-of-order mapfile loading, as opposed to what's being said in
b546bb6d ("BUG/MINOR: map: list-based matching potential ordering
regression") and the associated REGTEST.

Indeed, in case of duplicated keys, we want to be sure that only the key
that was first seen in the file will be returned (as long as it is not
removed). The above fix is still valid, and the list-based match regtest
will also prevent regressions for tree-based match since mapfile loading
logic is currently match-type agnostic.

But let's clarify that by making both the code comment and the regtest
more precise.
2024-01-11 11:13:54 +01:00

7 lines
225 B
Plaintext

# These entries are used for list-based match ordering tests
first.domain.tld first
domain.tld domain
second.domain.tld second
# This entry is used to test duplicate behavior (ie: tree-based match)
first.domain.tld first_dup