IAM: raise error if requiested instance profile does not exist (#802)
Signed-off-by: Andrew Harris <andrew.harris@getbraintree.com>
This commit is contained in:
parent
a292150087
commit
d42432bfef
2 changed files with 10 additions and 0 deletions
|
|
@ -62,6 +62,14 @@ def test_get_role__should_throw__when_role_does_not_exist():
|
|||
conn.get_role('unexisting_role')
|
||||
|
||||
|
||||
@mock_iam()
|
||||
@raises(BotoServerError)
|
||||
def test_get_instance_profile__should_throw__when_instance_profile_does_not_exist():
|
||||
conn = boto.connect_iam()
|
||||
|
||||
conn.get_instance_profile('unexisting_instance_profile')
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_create_role_and_instance_profile():
|
||||
conn = boto.connect_iam()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue