Browse Source

Test _get_health_check_id without perm to create

pull/32/head
Ross McFarland 9 years ago
parent
commit
d7469cbd0b
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      tests/test_octodns_provider_route53.py

+ 7
- 0
tests/test_octodns_provider_route53.py 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)


Loading…
Cancel
Save