diff --git a/tests-extra/tests/basic/query/test.py b/tests-extra/tests/basic/query/test.py index 07030cfe9..fc508e50a 100644 --- a/tests-extra/tests/basic/query/test.py +++ b/tests-extra/tests/basic/query/test.py @@ -20,28 +20,39 @@ t.start() # Negative (REFUSED) resp = knot.dig("another.world", "SOA", udp=True) +resp.check(rcode="REFUSED") resp.cmp(bind) # Negative (NXDOMAIN) resp = knot.dig("nxdomain.flags", "A", udp=True) +resp.check(rcode="NXDOMAIN") resp.cmp(bind) ''' Positive answers. ''' +# Positive (DATA) +resp = knot.dig("DNs1.fLAgs", "A", udp=True) +resp.check(rcode="NOERROR") +resp.cmp(bind) + # Positive (DATA) resp = knot.dig("dns1.flags", "A", udp=True) +resp.check(rcode="NOERROR") resp.cmp(bind) # Positive (NODATA) resp = knot.dig("dns1.flags", "TXT", udp=True) +resp.check(rcode="NOERROR") resp.cmp(bind) # Positive (REFERRAL) resp = knot.dig("sub.flags", "NS", udp=True) +resp.check(rcode="NOERROR") resp.cmp(bind) # Positive (REFERRAL, below delegation) resp = knot.dig("ns.sub.flags", "A", udp=True) +resp.check(rcode="NOERROR") resp.cmp(bind) ''' ANY query type. '''