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

EC2: Remove internal Network Interface traces from the Subnet after deletion #8415

Merged

Conversation

wandhydrant
Copy link
Contributor

Hello! Issue #7896 was not completely fixed, the test code in the bug report did not run completely through. The fixed IP address of the deleted instance was still kept in an internal field of the Subnet, so that another instance with the same IP address could not get created.
I tried fixing this, and added a test. All EC2 tests pass, except two that seem unrelated and also fail for me on current master (one in test_availability_zones_and_regions.py and one in test_security_groups.py).
Thanks!

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.59%. Comparing base (3c4c72e) to head (687b9dd).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8415   +/-   ##
=======================================
  Coverage   94.59%   94.59%           
=======================================
  Files        1163     1163           
  Lines      101636   101638    +2     
=======================================
+ Hits        96147    96149    +2     
  Misses       5489     5489           
Flag Coverage Δ
servertests 28.83% <0.00%> (-0.01%) ⬇️
unittests 94.57% <100.00%> (+<0.01%) ⬆️

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 - thank you for following up on this and fixing this completely @wandhydrant!

@bblommers bblommers added this to the 5.0.24 milestone Dec 18, 2024
@bblommers bblommers merged commit f2e43c6 into getmoto:master Dec 18, 2024
53 checks passed
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