Commit ac53fc05 authored by Daniel Salzman's avatar Daniel Salzman

func-tests: add query owner case-sensitivity test

parent 4faa3351
......@@ -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. '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment