mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Test _get_health_check_id without perm to create
This commit is contained in:
@@ -699,6 +699,13 @@ class TestRoute53Provider(TestCase):
|
||||
'AF': ['4.2.3.4'],
|
||||
}
|
||||
})
|
||||
|
||||
# if not allowed to create returns none
|
||||
id = provider._get_health_check_id(record, 'AF', record.geo['AF'],
|
||||
False)
|
||||
self.assertFalse(id)
|
||||
|
||||
# when allowed to create we do
|
||||
id = provider._get_health_check_id(record, 'AF', record.geo['AF'],
|
||||
True)
|
||||
self.assertEquals('42', id)
|
||||
|
||||
Reference in New Issue
Block a user