1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add CAA record support to AxfrSource/ZoneFileSource

This commit is contained in:
Adam Smith
2020-11-12 09:44:21 -08:00
parent 317f7cadc6
commit e98f21455d
4 changed files with 25 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ class TestAxfrSource(TestCase):
]
self.source.populate(got)
self.assertEquals(11, len(got.records))
self.assertEquals(12, len(got.records))
with self.assertRaises(AxfrSourceZoneTransferFailed) as ctx:
zone = Zone('unit.tests.', [])
@@ -50,12 +50,12 @@ class TestZoneFileSource(TestCase):
# Valid zone file in directory
valid = Zone('unit.tests.', [])
self.source.populate(valid)
self.assertEquals(11, len(valid.records))
self.assertEquals(12, len(valid.records))
# 2nd populate does not read file again
again = Zone('unit.tests.', [])
self.source.populate(again)
self.assertEquals(11, len(again.records))
self.assertEquals(12, len(again.records))
# bust the cache
del self.source._zone_records[valid.name]