Skip to content
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

Sets autoscalinggroup CreatedTime during creation. #7478

Merged
merged 2 commits into from
Mar 16, 2024

Conversation

jamaalscarlett
Copy link
Contributor

Use the current time instead of hard coded '2013-05-06T17:47:15.107Z' when creating an autoscaling group.
Updated template to return the correct created time.
Added unit test.

Use the current time instead of hard coded '2013-05-06T17:47:15.107Z'
when creating an autoscaling group.
Updated template to return the correct created time.
Added unit test.
Use datetime.strptime instead of datetime.fromisoformat
Copy link

codecov bot commented Mar 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.81%. Comparing base (9aef694) to head (e1ca9cf).
Report is 107 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7478      +/-   ##
==========================================
- Coverage   95.88%   95.81%   -0.08%     
==========================================
  Files         843      854      +11     
  Lines       82578    84016    +1438     
==========================================
+ Hits        79178    80496    +1318     
- Misses       3400     3520     +120     
Flag Coverage Δ
servertests 32.22% <50.00%> (-0.30%) ⬇️
unittests 95.77% <100.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for the fix @jamaalscarlett!

@bblommers bblommers added this to the 5.0.4 milestone Mar 16, 2024
@bblommers bblommers merged commit caac727 into getmoto:master Mar 16, 2024
40 checks passed
Copy link
Contributor

This is now part of moto >= 5.0.4.dev18

@jamaalscarlett
Copy link
Contributor Author

LGTM - thanks for the fix @jamaalscarlett!
My pleasure :)

@jamaalscarlett jamaalscarlett deleted the set_asg_created_time branch April 28, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants