bind9/bin
Michal Nowak bd73b1c39b
Add isctest.transfer.transfer_message() helper and convert tests
Add a new helper function, isctest.transfer.transfer_message(), to
bin/tests/system/isctest/transfer.py that generates the log message
produced by xfrin_log() in lib/dns/xfrin.c for an incoming zone
transfer:

    transfer of '<zone>/IN' from <source_ns>#<port>: <msg>

The helper always returns a compiled re.Pattern.  source_ns and port
each accept None to match any source address / port.  msg accepts
either a plain str (regex-escaped automatically) or a compiled
re.Pattern (spliced into the regex as-is), so callers that need regex
syntax in the message part can pass Re(r"...") without having to
wrap the whole result.

source_ns is passed through re.escape() when provided, so dots in
IPv4 addresses (e.g. "10.53.0.1") match a literal dot rather than
any character.

Convert the existing call sites across the system tests to use the
new helper.

Co-Authored-By: Nicki Křížek <nicki@isc.org>
Assisted-by: Claude:claude-sonnet-4-6
Assisted-by: Claude:claude-opus-4-7

(cherry picked from commit 27ee27d4e3)
2026-05-11 16:30:44 +02:00
..
check Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision 2026-04-29 15:31:58 +00:00
confgen Size HMAC key generation buffers to the maximum block size 2026-04-30 06:00:07 +02:00
delv Skip detach when delv's client never created 2026-04-30 12:07:49 +02:00
dig Add examples to the dig man page 2026-02-22 16:21:13 +00:00
dnssec Fix off by one error in dnssec-ksr sign 2026-04-07 08:32:58 +00:00
named Limit TCP pipelining per shared dispatch 2026-05-06 15:05:48 +02:00
nsupdate nsupdate does not handle zero length RDATA well 2026-04-09 00:34:15 +00:00
plugins standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
rndc List 'rndc dnssec' arguments in alphabetic order 2026-02-18 14:20:53 +00:00
tests Add isctest.transfer.transfer_message() helper and convert tests 2026-05-11 16:30:44 +02:00
tools Rename isc_net_getudpportrange() to isc_net_getportrange() 2026-02-20 17:02:45 +01:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00