summaryrefslogtreecommitdiffstats
path: root/tests-extra/tests
diff options
context:
space:
mode:
authorLibor Peltan <libor.peltan@nic.cz>2024-11-14 23:32:10 +0100
committerDaniel Salzman <daniel.salzman@nic.cz>2024-11-25 10:15:45 +0100
commit1c8518a337b8e658222cccb8f14be0f7ce5652ca (patch)
treea5761e69208806f7895615862527ffe6b6f4cc80 /tests-extra/tests
parentbackup: code robustness improvement (diff)
downloadknot-1c8518a337b8e658222cccb8f14be0f7ce5652ca.tar.xz
knot-1c8518a337b8e658222cccb8f14be0f7ce5652ca.zip
tests: compatibility with new Bind9
Diffstat (limited to 'tests-extra/tests')
-rw-r--r--tests-extra/tests/basic/query/test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests-extra/tests/basic/query/test.py b/tests-extra/tests/basic/query/test.py
index 16a9b4204..8c1237021 100644
--- a/tests-extra/tests/basic/query/test.py
+++ b/tests-extra/tests/basic/query/test.py
@@ -225,7 +225,12 @@ def query_test(knot, bind, dnssec):
# DNAME-CNAME-DNAME loop
resp = knot.dig("e.dname.flags", "A", udp=True, dnssec=dnssec)
- resp.cmp(bind)
+ resp.check(rcode="NOERROR")
+ resp.check_record(name="dname.flags.", rtype="DNAME", ttl=3600, rdata="dname-tree.flags.")
+ resp.check_record(name="e.dname.flags.", rtype="CNAME", ttl=3600, rdata="e.dname-tree.flags.")
+ resp.check_record(name="e.dname-tree.flags.", rtype="CNAME", ttl=3600, rdata="e.dname.flags.")
+ resp.check_counts(5 if dnssec else 3, 0, 0) # Knot returns 6 and 4 records, respectively, but two CNAMEs are the same
+ # resp.cmp(bind) BIND 9.20 responds SERVFAIL with different Answer section
# DNAME-DNAME loop
resp = knot.dig("x.f.dname.flags", "A", udp=True, dnssec=dnssec)
@@ -341,7 +346,7 @@ def query_test(knot, bind, dnssec):
# Wildcard leading to CNAME loop
resp = knot.dig("test.loop-entry.flags", "A", udp=True, dnssec=dnssec)
- resp.cmp(bind)
+ resp.cmp(bind, rcode=False) # BIND 9.20 returns SERVFAIL
# Wildcard-covered additional record discovery
resp = knot.dig("mx-additional.flags", "MX", udp=True, dnssec=dnssec)