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

tests/integration: all names in entries must be fqdn (supports origin)

parent fc950ba2
Branches
Tags
No related merge requests found
......@@ -17,6 +17,7 @@ class Entry:
""" Initialize data entry. """
self.match_fields = None
self.adjust_fields = None
self.origin = '.'
self.message = dns.message.Message()
def match_part(self, code, msg):
......@@ -104,6 +105,8 @@ class Entry:
def __rr_from_str(self, owner, args):
""" Parse RR from tokenized string. """
if not owner.endswith('.'):
owner += self.origin
ttl = self.default_ttl
rdclass = self.default_cls
try:
......
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