]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unused isctest/kasp code
authorNicki Křížek <nicki@isc.org>
Tue, 8 Oct 2024 12:10:50 +0000 (14:10 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 16 Oct 2024 15:16:02 +0000 (17:16 +0200)
bin/tests/system/isctest/kasp.py

index a2bc24d92654aebbc5d9f1398a055fbef72a6e63..2160ce1e0df44f610786b8c1f051244baf9072bc 100644 (file)
@@ -26,12 +26,7 @@ import isctest.log
 DEFAULT_TTL = 300
 
 
-def _save_response(response, fname):
-    with open(fname, "w", encoding="utf-8") as file:
-        file.write(response.to_text())
-
-
-def _query(server, qname, qtype, outfile=None):
+def _query(server, qname, qtype):
     query = dns.message.make_query(qname, qtype, use_edns=True, want_dnssec=True)
     try:
         response = dns.query.tcp(query, server.ip, port=server.ports.dns, timeout=3)
@@ -39,9 +34,6 @@ def _query(server, qname, qtype, outfile=None):
         isctest.log.debug(f"query timeout for query {qname} {qtype} to {server.ip}")
         return None
 
-    if outfile is not None:
-        _save_response(response, outfile)
-
     return response