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

Add healthcheck protocol validation, HTTP or HTTPS

This commit is contained in:
Ross McFarland
2018-03-31 13:22:28 -07:00
parent 9752cb0a12
commit 849a97f161
2 changed files with 11 additions and 5 deletions

View File

@@ -755,14 +755,14 @@ class TestRecord(TestCase):
'healthcheck': {
'path': '/_ready',
'host': 'bleep.bloop',
'protocol': 'http',
'protocol': 'HTTP',
'port': 8080,
}
}
})
self.assertEquals('/_ready', new.healthcheck_path)
self.assertEquals('bleep.bloop', new.healthcheck_host)
self.assertEquals('http', new.healthcheck_protocol)
self.assertEquals('HTTP', new.healthcheck_protocol)
self.assertEquals(8080, new.healthcheck_port)
new = Record.new(self.zone, 'a', {
@@ -772,7 +772,7 @@ class TestRecord(TestCase):
})
self.assertEquals('/_dns', new.healthcheck_path)
self.assertEquals('a.unit.tests', new.healthcheck_host)
self.assertEquals('https', new.healthcheck_protocol)
self.assertEquals('HTTPS', new.healthcheck_protocol)
self.assertEquals(443, new.healthcheck_port)
def test_inored(self):