issue-3379 iam list_roles: implement PathPrefix, MaxItems and Marker (#3380)

* issue-3379 iam list_roles: implement PathPrefix, MaxItems and Marker

* issue-3379 fix cloudformation test
This commit is contained in:
waynemetcalfe 2020-10-12 12:13:20 +01:00 committed by GitHub
commit 0a938f7bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 106 additions and 18 deletions

View file

@ -870,7 +870,7 @@ def test_iam_roles():
}
]
},
"Path": "my-path",
"Path": "/my-path/",
"Policies": [
{
"PolicyDocument": {
@ -939,7 +939,7 @@ def test_iam_roles():
# Role name is not specified, so randomly generated - can't check exact name
if "with-path" in role.role_name:
role_name_to_id["with-path"] = role.role_id
role.path.should.equal("my-path")
role.path.should.equal("/my-path/")
else:
role_name_to_id["no-path"] = role.role_id
role.role_name.should.equal("my-role-no-path-name")