-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IAM client get_group results differ from AWS #6320
Comments
@bblommers I can take a look at this |
Thanks for raising this @sukekyo26, and welcome to Moto! Marking it as an enhancement to add this attribute. |
Thanks! |
@sukekyo26 right now the logic which dictates the value of 2 solutions come to mind:
This is because right now, afak, we can't really tell when the fake IAM user has used its fake password. @bblommers @bpandola what do you think? |
Hmm.. There is a legitimate use-case where a user might have never logged in (i.e., never accessed the AWS console), so @sukekyo26 Are you using the decorators? You can use the internal API to set the value. Similar to how this user did it: Moto does still need to return the value in |
@rafcio19 @bblommers I want to test my_method using the
|
Hello.
I am using moto to mock aws.
When I use the get_group method of iam's client in moto, the response is different from the aws response.
In the get_group method response, the user in response['Users'] has a CreateDate item, but moto does not return this item.
The reason is that CreateDate is not defined under Users in GET_GROUP_TEMPLATE in /moto/moto/iam/responses.py.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/iam/client/get_group.html
moto==4.1.9
boto3==1.26.133
botocore==1.29.133
The text was updated successfully, but these errors were encountered: