2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Use isctest.query.create across system tests

Rather than using the dnspython's facilities and defaults to create the
queries, use the isctest.query.create function in all the cases that
don't require special handling to have consistent defaults.

(cherry picked from commit 64143ea077)
This commit is contained in:
Evan Hunt
2025-07-29 16:02:32 -07:00
parent 9decbd88a3
commit 9dcfe0ee1a
27 changed files with 72 additions and 84 deletions

View File

@@ -22,10 +22,10 @@ from typing import Dict, List, Optional, Tuple, Union
import dns
import dns.tsig
from isctest.instance import NamedInstance
import isctest.log
import isctest.query
import isctest.util
from isctest.instance import NamedInstance
from isctest.vars.algorithms import Algorithm, ALL_ALGORITHMS_BY_NUM
DEFAULT_TTL = 300
@@ -34,7 +34,7 @@ NEXT_KEY_EVENT_THRESHOLD = 100
def _query(server, qname, qtype, tsig=None):
query = dns.message.make_query(qname, qtype, use_edns=True, want_dnssec=True)
query = isctest.query.create(qname, qtype)
if tsig is not None:
tsigkey = tsig.split(":")