mirror of
				https://github.com/github/octodns.git
				synced 2024-05-11 05:55:00 +00:00 
			
		
		
		
	Add User-Agent header to Dyn monitors
This commit is contained in:
		@@ -450,6 +450,7 @@ class DynProvider(BaseProvider):
 | 
			
		||||
            monitor = DSFMonitor(fqdn, protocol='HTTPS', response_count=2,
 | 
			
		||||
                                 probe_interval=60, retries=2, port=443,
 | 
			
		||||
                                 active='Y', host=fqdn[:-1], timeout=10,
 | 
			
		||||
                                 header='User-Agent: Dyn Monitor',
 | 
			
		||||
                                 path='/_dns')
 | 
			
		||||
            self._traffic_director_monitors[fqdn] = monitor
 | 
			
		||||
            return monitor
 | 
			
		||||
 
 | 
			
		||||
@@ -533,7 +533,7 @@ class TestDynProviderGeo(TestCase):
 | 
			
		||||
            'notifier': '',
 | 
			
		||||
            'options': {
 | 
			
		||||
                'expected': '',
 | 
			
		||||
                'header': '',
 | 
			
		||||
                'header': 'User-Agent: Dyn Monitor',
 | 
			
		||||
                'host': 'unit.tests',
 | 
			
		||||
                'path': '/_dns',
 | 
			
		||||
                'port': '443',
 | 
			
		||||
@@ -649,7 +649,7 @@ class TestDynProviderGeo(TestCase):
 | 
			
		||||
                u'notifier': u'',
 | 
			
		||||
                u'options': {
 | 
			
		||||
                    u'expected': u'',
 | 
			
		||||
                    u'header': u'',
 | 
			
		||||
                    'header': 'User-Agent: Dyn Monitor',
 | 
			
		||||
                    u'host': u'geo.unit.tests.',
 | 
			
		||||
                    u'path': u'/_dns',
 | 
			
		||||
                    u'port': u'443',
 | 
			
		||||
@@ -684,6 +684,7 @@ class TestDynProviderGeo(TestCase):
 | 
			
		||||
                'options': {
 | 
			
		||||
                    'path': u'/_dns',
 | 
			
		||||
                    'host': u'geo.unit.tests',
 | 
			
		||||
                    'header': 'User-Agent: Dyn Monitor',
 | 
			
		||||
                    'port': 443,
 | 
			
		||||
                    'timeout': 10
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user