diff --git a/tests/test_octodns_processor_filter.py b/tests/test_octodns_processor_filter.py index 0c00d19..29e1ece 100644 --- a/tests/test_octodns_processor_filter.py +++ b/tests/test_octodns_processor_filter.py @@ -487,7 +487,9 @@ class TestZoneNameFilter(TestCase): with_dot = zone.copy() with_dot.add_record( Record.new( - zone, zone.name, {'type': 'A', 'ttl': 43, 'value': '1.2.3.4'} + zone, + zone.name[:-1], + {'type': 'A', 'ttl': 43, 'value': '1.2.3.4'}, ) ) self.assertEqual(3, len(with_dot.records)) @@ -514,7 +516,9 @@ class TestZoneNameFilter(TestCase): zone = Zone('unit.tests.', []) zone.add_record( Record.new( - zone, zone.name, {'type': 'A', 'ttl': 43, 'value': '1.2.3.4'} + zone, + zone.name[:-1], + {'type': 'A', 'ttl': 43, 'value': '1.2.3.4'}, ) ) with self.assertRaises(ValidationError) as ctx: diff --git a/tests/test_octodns_record.py b/tests/test_octodns_record.py index 77ac729..e03fa74 100644 --- a/tests/test_octodns_record.py +++ b/tests/test_octodns_record.py @@ -616,6 +616,7 @@ class TestRecordValidation(TestCase): # should not raise with dots name = 'xxxxxxxx.' * 10 + name = name[:-1] Record.new( self.zone, name, {'ttl': 300, 'type': 'A', 'value': '1.2.3.4'} )