Commit 434d1bcc80 for bind
commit 434d1bcc805839780b02d8f464796f901bbc5dcf
Author: Štěpán Balážik <stepan@isc.org>
Date: Fri Sep 4 16:47:47 2026 +0200
Drop a match() repeating its DomainHandler base
The dnssec_py/ans4 runtime-check handler derives from DomainHandler
for the zone it serves and then overrides match() with the very same
subdomain test, hiding that the base class already does it.
Assisted-by: Claude:claude-fable-5
diff --git a/bin/tests/system/dnssec_py/ans4/noqname_mismatch.py b/bin/tests/system/dnssec_py/ans4/noqname_mismatch.py
index e7243f92b5..8ab55fa511 100644
--- a/bin/tests/system/dnssec_py/ans4/noqname_mismatch.py
+++ b/bin/tests/system/dnssec_py/ans4/noqname_mismatch.py
@@ -252,9 +252,6 @@ class RuntimeCheckHandler(DomainHandler):
name(ATTACK_BOTH): add_both_attack_answer,
}
- def match(self, qctx: QueryContext) -> bool:
- return qctx.qname.is_subdomain(self.zone)
-
async def get_responses(
self, qctx: QueryContext
) -> AsyncGenerator[DnsResponseSend, None]: