Commit 1e67c706 authored by Lubos Slovak's avatar Lubos Slovak

tests-extra: Duplicate RDATA differing only in case

parent 585cb792
......@@ -114,7 +114,6 @@ dUpL MX 10 sOMe.doMAin
bad-order NS
bad-order NS
; CNAME loop
*.loop1 CNAME a.loop2
*.loop2 CNAME a.loop1
$ORIGIN duplicates.
$TTL 3600
@ SOA dns1 hostmaster 2010111213 10800 3600 1209600 7200
NS dns1
dns1 A
AAAA 2001:DB8::1
; Duplicate RDATA differing only in case
dupl MX 10 some.domain.
dupl MX 10 Some.Domain.
DuPl MX 10 some.domain.
dUpL MX 10 sOMe.doMAin.
#!/usr/bin/env python3
''' Test for loading records with RDATA and owners differing only in case '''
from dnstest.utils import *
from dnstest.test import Test
t = Test()
knot = t.server("knot")
zone ="duplicates.", storage="."), knot)
# Request AXFR from both Knot
resp = knot.dig("duplicates.", "AXFR")
# If Knot has not properly handled the case, there will be some redundant record
count = 0
for msg in resp.resp:
count += len(msg.answer)
compare(count, 6, "AXFR record count")
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