Skip to content
Snippets Groups Projects
Commit 2e7f3e4d authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests/integration: fixed relativized names in RDATA

parent 3f802a1e
No related branches found
No related tags found
No related merge requests found
......@@ -128,10 +128,11 @@ class Entry:
except:
pass # optional
rdtype = args.pop(0)
rr = dns.rrset.from_text(owner, ttl, rdclass, rdtype)
if len(args) > 0:
return dns.rrset.from_text(owner, ttl, rdclass, rdtype, ' '.join(args))
else:
return dns.rrset.from_text(owner, ttl, rdclass, rdtype)
rd = dns.rdata.from_text(rr.rdclass, rr.rdtype, ' '.join(args), origin = dns.name.from_text(self.origin), relativize = False)
rr.add(rd)
return rr
def __compare_rrs(self, expected, got):
""" Compare lists of RR sets, throw exception if different. """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment