Merge pull request #2160 from copland/fix-role-arn-slash

Add test to verify create_role path defaults to /
This commit is contained in:
Mike Grima 2019-04-22 09:58:41 -07:00 committed by GitHub
commit 2fec1be1a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1287,4 +1287,9 @@ def test_list_entities_for_policy():
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')