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

RouteTables: Filter by route.nat-gateway-id #7677

Merged
merged 1 commit into from
May 8, 2024

Conversation

yoelsusanto
Copy link
Contributor

Background

In my work, we do DescribeRouteTables and filter by route.nat-gateway-id. However, it is currently not implemented yet and returns the following error:

moto.ec2.exceptions.FilterNotImplementedError: The filter 'route.nat-gateway-id' for DescribeRouteTables has not been implemented in Moto yet. Feel free to open an issue at https://github.com/getmoto/moto/issues

Changes

  • Implement filter by route.nat-gateway-id
  • Add test

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.29%. Comparing base (fa52c54) to head (5aa4dc8).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7677      +/-   ##
==========================================
- Coverage   94.29%   94.29%   -0.01%     
==========================================
  Files        1087     1087              
  Lines       92397    92399       +2     
==========================================
+ Hits        87127    87128       +1     
- Misses       5270     5271       +1     
Flag Coverage Δ
servertests 29.45% <0.00%> (-0.01%) ⬇️
unittests 94.26% <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.

Great - thank you for the PR @yoelsusanto, and welcome to Moto!

@bblommers bblommers added this to the 5.0.7 milestone May 8, 2024
@bblommers bblommers merged commit fe6317f into getmoto:master May 8, 2024
40 checks passed
Copy link
Contributor

github-actions bot commented May 8, 2024

This is now part of moto >= 5.0.7.dev35

@yoelsusanto yoelsusanto deleted the filter-by-nat-gateway-id branch May 9, 2024 15:20
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.

None yet

2 participants