mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Allow the option to not pass Host header in healthchecks
This commit is contained in:
@@ -757,6 +757,10 @@ class TestNs1ProviderDynamic(TestCase):
|
||||
self.assertFalse(monitor['config']['ssl'])
|
||||
self.assertEquals('host:unit.tests type:A', monitor['notes'])
|
||||
|
||||
record._octodns['healthcheck']['host'] = None
|
||||
monitor = provider._monitor_gen(record, value)
|
||||
self.assertTrue(r'\nHost: 3.4.5.6\r' in monitor['config']['send'])
|
||||
|
||||
record._octodns['healthcheck']['protocol'] = 'HTTPS'
|
||||
monitor = provider._monitor_gen(record, value)
|
||||
self.assertTrue(monitor['config']['ssl'])
|
||||
|
Reference in New Issue
Block a user