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