Merge pull request #2160 from copland/fix-role-arn-slash
Add test to verify create_role path defaults to /
This commit is contained in:
commit
2fec1be1a2
@ -1287,4 +1287,9 @@ def test_list_entities_for_policy():
|
|||||||
assert response['PolicyRoles'] == [{'RoleName': 'my-role'}]
|
assert response['PolicyRoles'] == [{'RoleName': 'my-role'}]
|
||||||
|
|
||||||
|
|
||||||
|
@mock_iam()
|
||||||
|
def test_create_role_no_path():
|
||||||
|
conn = boto3.client('iam', region_name='us-east-1')
|
||||||
|
resp = conn.create_role(RoleName='my-role', AssumeRolePolicyDocument='some policy', Description='test')
|
||||||
|
resp.get('Role').get('Arn').should.equal('arn:aws:iam::123456789012:role/my-role')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user