mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
func-tests: add query owner case-sensitivity test
This commit is contained in:
parent
4faa33517c
commit
ac53fc0568
1 changed files with 11 additions and 0 deletions
|
|
@ -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. '''
|
||||
|
|
|
|||
Loading…
Reference in a new issue