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

Implement healthcheck protocol and port for Dyn

This commit is contained in:
Ross McFarland
2018-03-31 14:31:15 -07:00
parent 849a97f161
commit e6d8669611
3 changed files with 110 additions and 22 deletions

View File

@@ -1020,6 +1020,25 @@ class TestRecordValidation(TestCase):
'invalid ip address "goodbye"'
], ctx.exception.reasons)
# invalid healthcheck protocol
with self.assertRaises(ValidationError) as ctx:
Record.new(self.zone, 'a', {
'geo': {
'NA': ['1.2.3.5'],
'NA-US': ['1.2.3.5', '1.2.3.6']
},
'type': 'A',
'ttl': 600,
'value': '1.2.3.4',
'octodns': {
'healthcheck': {
'protocol': 'FTP',
}
}
})
self.assertEquals(['invalid healthcheck protocol'],
ctx.exception.reasons)
def test_AAAA(self):
# doesn't blow up
Record.new(self.zone, '', {