summaryrefslogtreecommitdiffstats
path: root/tests-extra
diff options
context:
space:
mode:
authorDaniel Salzman <daniel.salzman@nic.cz>2016-10-24 19:10:10 +0200
committerDaniel Salzman <daniel.salzman@nic.cz>2016-10-25 14:20:58 +0200
commit59d110fc4fb8ea26d842789f65ca5c381b5b2d91 (patch)
treecbd30a8122b1364dfc9438b9382e97c82e4c3ee6 /tests-extra
parentMerge branch 'qp-coverity' into 'master' (diff)
downloadknot-59d110fc4fb8ea26d842789f65ca5c381b5b2d91.tar.xz
knot-59d110fc4fb8ea26d842789f65ca5c381b5b2d91.zip
internet: skip empty non-terminal parents during delegation lookup
Diffstat (limited to 'tests-extra')
-rw-r--r--tests-extra/data/flags.zone3
-rw-r--r--tests-extra/tests/basic/query/test.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/tests-extra/data/flags.zone b/tests-extra/data/flags.zone
index a71811e1a..5bc42585e 100644
--- a/tests-extra/data/flags.zone
+++ b/tests-extra/data/flags.zone
@@ -19,6 +19,8 @@ mail A 192.0.2.3
; Delegation of a subdomain
sub NS ns.sub
+sub NS sub
+sub A 192.0.0.1
ns.sub A 192.0.2.4
; CNAME to A record
@@ -56,7 +58,6 @@ cname-mx-wc MX 10 cname-wildcard
; MX record leading to CNAME (outside zone)
cname-mx-out MX 10 cname-out
-
; DNAME subtree
dname DNAME dname-tree
dname-tree A 1.2.3.4
diff --git a/tests-extra/tests/basic/query/test.py b/tests-extra/tests/basic/query/test.py
index 86e0c2dbb..89a430eef 100644
--- a/tests-extra/tests/basic/query/test.py
+++ b/tests-extra/tests/basic/query/test.py
@@ -56,6 +56,11 @@ resp = knot.dig("ns.sub.flags", "A", udp=True)
resp.check(rcode="NOERROR", flags="QR", noflags="AA TC AD RA")
resp.cmp(bind, additional=True)
+# Positive (REFERRAL, below delegation, ignoring empty-nonterminal during lookup)
+resp = knot.dig("bellow.ns.sub.flags", "A", udp=True)
+resp.check(rcode="NOERROR", flags="QR", noflags="AA TC AD RA")
+resp.cmp(bind, additional=True)
+
''' ANY query type. '''
# ANY to SOA record