func-tests: add query owner case-sensitivity test

This commit is contained in:
Daniel Salzman 2013-12-23 14:21:29 +01:00
parent 4faa33517c
commit ac53fc0568

View file

@ -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. '''