-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
APIGW: fix MOCK integration with no URI and path parameters #11784
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 25m 50s ⏱️ - 1h 16m 49s Results for commit f0207ec. ± Comparison against base commit 17156d0. This pull request removes 2714 and adds 1 tests. Note that renamed tests count towards both.
This pull request removes 355 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice dig! 👍
# TODO: Aws does not return the uri when creating a MOCK integration | ||
@markers.snapshot.skip_snapshot_verify(paths=["$..not-required-integration-method-MOCK.uri"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
requestParameters={ | ||
"integration.request.path.integrationPath": "method.request.path.testPath", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a useful feature on a MOCK integration! 🤣
Motivation
We got a report in our Slack Community channel about the legacy implementation. While switching to NextGen, another issue happened. This setup is from an exported OpenAPI spec from an AWS REST API.
Trying to understand what is happening, it seems this issue happens when a
MOCK
integration does not have a URI (normal behavior) and also has integration path parameters.The issue is fixed by skipping the logic and returning early. Those helper functions can be used alone or in combination, so the logic is in all of them.
Changes
None