Fix policy date

This commit is contained in:
William Rubel 2019-02-17 17:12:27 -06:00
parent 63b692356d
commit 37a765db8d

View File

@ -1176,6 +1176,17 @@ def test_update_role():
response = conn.update_role_description(RoleName="my-role", Description="test")
assert response['Role']['RoleName'] == 'my-role'
@mock_iam()
def test_update_role():
conn = boto3.client('iam', region_name='us-east-1')
with assert_raises(ClientError):
conn.delete_role(RoleName="my-role")
conn.create_role(RoleName="my-role", AssumeRolePolicyDocument="some policy", Path="/my-path/")
response = conn.update_role(RoleName="my-role", Description="test")
assert response['Role']['RoleName'] == 'my-role'
@mock_iam()
def test_list_entities_for_policy():
conn = boto3.client('iam', region_name='us-east-1')