-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Validate SQS dev endpoints #11620
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
Validate SQS dev endpoints #11620
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 1h 41m 40s ⏱️ -1s Results for commit 58a17f9. ± Comparison against base commit 601d5b6. This pull request removes 1 and adds 16 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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.
i have a question about this: since this endpoint is compatible with the query protocol that SQS uses, the schema doesn't really cover that. a strict validation would therefore probably break this endpoint, right? or is the schema only validated if the content type is application/json?
Thanks for the comment @thrau! I am not a SQS expert so please confirm the following. I noticed in our tests that we can use the dev endpoint as boto client URL (only for I added the |
A correct version will be set at runtime when serving the spec via the endpoint
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.
cool! if all tests pass then
Motivation
As we introduced specs for the developer endpoints, we want to make sure they match the actual implementation.
For this purpose, we can activate request and response verification in our handler chain and test our endpoint against the OpenAPI spec.
This PR activates the validation for the SQS dev endpoints.
Changes
TestSqsDeveloperEndpoints
suite;🔈 I'd ask the service owners to check if this PR is already comprehensive and eventually, if not, please help me fill all possible gaps.