]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove NoErrorHandler
authorMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:52:56 +0000 (11:52 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:52:56 +0000 (11:52 +0200)
The NoErrorHandler class does not get matched to any query sent by ns4
in the "resend_loop" test.  Remove it as it is redundant.

bin/tests/system/resend_loop/ans3/ans.py

index 18074bcfb87a2e69a310a445f4c42b1c7d18fc71..f8a745bfaa059536741357538f0ee209cc05d4e8 100644 (file)
@@ -24,7 +24,6 @@ from isctest.asyncserver import (
     DomainHandler,
     QnameQtypeHandler,
     QueryContext,
-    ResponseHandler,
     StaticResponseHandler,
 )
 
@@ -92,27 +91,12 @@ class CookieHandler(DomainHandler):
         yield DnsResponseSend(qctx.response, authoritative=True)
 
 
-class NoErrorHandler(ResponseHandler):
-    """
-    If the query is NOT a subdomain of example, respond with standard NOERROR empty answer
-    """
-
-    async def get_responses(
-        self, qctx: QueryContext
-    ) -> AsyncGenerator[DnsResponseSend, None]:
-
-        qctx.prepare_new_response()
-        qctx.response.set_rcode(dns.rcode.NOERROR)
-        yield DnsResponseSend(qctx.response, authoritative=True)
-
-
 def resend_server() -> AsyncDnsServer:
     server = AsyncDnsServer(default_aa=True, default_rcode=dns.rcode.NOERROR)
     server.install_response_handlers(
         RootNSHandler(),
         ExampleNSHandler(),
         CookieHandler(),
-        NoErrorHandler(),
     )
     return server