MaxSessionDuration should be included in the list_roles response (#3750)
This commit is contained in:
parent
433e4c0733
commit
a4009e7bd1
2 changed files with 12 additions and 0 deletions
|
|
@ -4052,6 +4052,17 @@ def test_list_roles_without_description():
|
|||
conn.list_roles().get("Roles")[0].should_not.have.key("Description")
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_list_roles_includes_max_session_duration():
|
||||
conn = boto3.client("iam", region_name="us-east-1")
|
||||
conn.create_role(
|
||||
RoleName="my-role", AssumeRolePolicyDocument="some policy",
|
||||
)
|
||||
|
||||
# Ensure the MaxSessionDuration is included in the role listing
|
||||
conn.list_roles().get("Roles")[0].should.have.key("MaxSessionDuration")
|
||||
|
||||
|
||||
@mock_iam()
|
||||
def test_create_user_with_tags():
|
||||
conn = boto3.client("iam", region_name="us-east-1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue