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

validate values for empty string or None value

dump does not write invalid value(s) to yaml
This commit is contained in:
Adam Smith
2017-10-22 22:39:18 -07:00
parent 3ec15346b0
commit bf1896329b
3 changed files with 165 additions and 10 deletions

View File

@@ -96,23 +96,23 @@ class TestDnsimpleProvider(TestCase):
mock.get(ANY, text=fh.read())
zone = Zone('unit.tests.', [])
provider.populate(zone)
provider.populate(zone, lenient=True)
self.assertEquals(set([
Record.new(zone, '', {
'ttl': 3600,
'type': 'SSHFP',
'values': []
}),
}, lenient=True),
Record.new(zone, '_srv._tcp', {
'ttl': 600,
'type': 'SRV',
'values': []
}),
}, lenient=True),
Record.new(zone, 'naptr', {
'ttl': 600,
'type': 'NAPTR',
'values': []
}),
}, lenient=True),
]), zone.records)
def test_apply(self):