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

[AppMesh] Routing #8012

Merged
merged 28 commits into from
Aug 27, 2024
Merged

[AppMesh] Routing #8012

merged 28 commits into from
Aug 27, 2024

Conversation

armichaud
Copy link
Contributor

@armichaud armichaud commented Aug 21, 2024

Implements the following methods for AppMesh

  • describe_virtual_router
  • create_virtual_router
  • update_virtual_router
  • delete_virtual_router
  • list_virtual_routers
  • describe_route
  • create_route
  • update_route
  • delete_route
  • list_routes

Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 97.70115% with 12 lines in your changes missing coverage. Please review.

Project coverage is 94.43%. Comparing base (bdeb44b) to head (352ccd9).
Report is 22 commits behind head on master.

Files Patch % Lines
moto/appmesh/utils.py 96.87% 4 Missing ⚠️
moto/appmesh/dataclasses/route.py 98.22% 3 Missing ⚠️
moto/appmesh/exceptions.py 80.00% 3 Missing ⚠️
moto/appmesh/models.py 97.18% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8012      +/-   ##
==========================================
+ Coverage   94.39%   94.43%   +0.03%     
==========================================
  Files        1130     1139       +9     
  Lines       96578    97321     +743     
==========================================
+ Hits        91168    91903     +735     
- Misses       5410     5418       +8     
Flag Coverage Δ
servertests 28.92% <0.00%> (-0.10%) ⬇️
unittests 94.40% <97.70%> (+0.03%) ⬆️

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.

@armichaud
Copy link
Contributor Author

@bblommers this is ready for review. It doesn't completely close out #8001, but this was already fairly long so I thought I'd submit it as is and open a separate PR for the virtual_node APIs.

@armichaud armichaud marked this pull request as ready for review August 26, 2024 21:49
moto/appmesh/responses.py Show resolved Hide resolved
tags=[{"key": "router_traffic", "value": "https"}],
)
router2 = connection.get("virtualRouter")
assert router2 is not None
Copy link
Collaborator

Choose a reason for hiding this comment

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

This assertion is technically not necessary, just because the next line immediately uses the variable. If the variable is None, the test will fail anyway with a KeyError. There are quite a few examples like this.

For me, it would be cleaner to remove it - just because less lines of code make it easier to read.

It's very much personal preference though, and not particularly important, so I'm not expecting any changes. It's just an FYI - if you find it easier to read with the explicit assertions, feel free to keep it. 🙂

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 @armichaud!

@bblommers bblommers added this to the 5.0.14 milestone Aug 27, 2024
@bblommers bblommers merged commit 2144167 into getmoto:master Aug 27, 2024
50 checks passed
Copy link
Contributor

This is now part of moto >= 5.0.14.dev33

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