-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws - iam-user - add login-profile filter (#7804)
- Loading branch information
1 parent
ff5d154
commit 7d9e293
Showing
7 changed files
with
182 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/data/placebo/test_iam_user_login_profile/iam.GetLoginProfile_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"LoginProfile": { | ||
"UserName": "test-user-console-access", | ||
"CreateDate": { | ||
"__class__": "datetime", | ||
"year": 2022, | ||
"month": 9, | ||
"day": 27, | ||
"hour": 0, | ||
"minute": 35, | ||
"second": 38, | ||
"microsecond": 0 | ||
}, | ||
"PasswordResetRequired": true | ||
}, | ||
"ResponseMetadata": {} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
tests/data/placebo/test_iam_user_login_profile/iam.GetLoginProfile_2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"status_code": 404, | ||
"data": { | ||
"Error": { | ||
"Type": "Sender", | ||
"Code": "NoSuchEntity", | ||
"Message": "Login Profile for User test-user-no-console-access cannot be found." | ||
}, | ||
"ResponseMetadata": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
tests/data/placebo/test_iam_user_login_profile/iam.GetUser_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"User": { | ||
"Path": "/", | ||
"UserName": "test-user-console-access", | ||
"UserId": "AIDARNRRQBPMCGMIQBMH4", | ||
"Arn": "arn:aws:iam::644160558196:user/test-user-console-access", | ||
"CreateDate": { | ||
"__class__": "datetime", | ||
"year": 2022, | ||
"month": 9, | ||
"day": 23, | ||
"hour": 23, | ||
"minute": 24, | ||
"second": 30, | ||
"microsecond": 0 | ||
} | ||
}, | ||
"ResponseMetadata": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
tests/data/placebo/test_iam_user_login_profile/iam.GetUser_2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"User": { | ||
"Path": "/", | ||
"UserName": "test-user-no-console-access", | ||
"UserId": "AIDARNRRQBPMMX4SVHZDJ", | ||
"Arn": "arn:aws:iam::644160558196:user/test-user-no-console-access", | ||
"CreateDate": { | ||
"__class__": "datetime", | ||
"year": 2022, | ||
"month": 9, | ||
"day": 23, | ||
"hour": 23, | ||
"minute": 26, | ||
"second": 4, | ||
"microsecond": 0 | ||
} | ||
}, | ||
"ResponseMetadata": {} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
tests/data/placebo/test_iam_user_login_profile/iam.ListUsers_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"Users": [ | ||
{ | ||
"Path": "/", | ||
"UserName": "test-user-console-access", | ||
"UserId": "AIDARNRRQBPMCGMIQBMH4", | ||
"Arn": "arn:aws:iam::644160558196:user/test-user-console-access", | ||
"CreateDate": { | ||
"__class__": "datetime", | ||
"year": 2022, | ||
"month": 9, | ||
"day": 23, | ||
"hour": 23, | ||
"minute": 24, | ||
"second": 30, | ||
"microsecond": 0 | ||
} | ||
}, | ||
{ | ||
"Path": "/", | ||
"UserName": "test-user-no-console-access", | ||
"UserId": "AIDARNRRQBPMMX4SVHZDJ", | ||
"Arn": "arn:aws:iam::644160558196:user/test-user-no-console-access", | ||
"CreateDate": { | ||
"__class__": "datetime", | ||
"year": 2022, | ||
"month": 9, | ||
"day": 23, | ||
"hour": 23, | ||
"minute": 26, | ||
"second": 4, | ||
"microsecond": 0 | ||
} | ||
} | ||
], | ||
"IsTruncated": false, | ||
"ResponseMetadata": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters