Commit 8b1065bc authored by Marek Vavrusa's avatar Marek Vavrusa

Varied qname should be tested both in name and zone qname parts.

parent a464c624
......@@ -31,7 +31,7 @@ resp.cmp(bind)
''' Positive answers. '''
# Positive (DATA)
resp = knot.dig("DNs1.fLAgs", "A", udp=True)
resp = knot.dig("dns1.flags", "A", udp=True)
resp.check(rcode="NOERROR")
resp.cmp(bind)
......@@ -188,4 +188,20 @@ resp.cmp(bind)
resp = knot.dig("a.wildcard-out.flags", "A", udp=True)
resp.cmp(bind)
''' Varied case tests. '''
# Negative (case preservation in question)
resp = knot.dig("ANOTHER.world", "SOA", udp=True)
resp.cmp(bind)
# Positive (varied name in zone)
resp = knot.dig("dNS1.flags", "A", udp=True)
resp.check(rcode="NOERROR")
resp.cmp(bind)
# Positive (varied zone name)
resp = knot.dig("dns1.flAGs", "A", udp=True)
resp.check(rcode="NOERROR")
resp.cmp(bind)
t.end()
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