1
0
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:
Ross McFarland
2017-05-09 14:26:48 -07:00
parent ee6a654054
commit d7469cbd0b

View File

@@ -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)