-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Validate SES developer endpoints against OAS #11776
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
3954773
to
1ef9027
Compare
text/xml: {} | ||
text/xml: | ||
schema: | ||
$ref: '#/components/schemas/ReceiveMessageResult' |
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.
This relates to SQS, not SES 😛 I was puzzled and spent a while trying to investigate why SES would return XML
@@ -872,6 +872,7 @@ def test_special_tags_send_email(self, tag_name, tag_value, aws_client): | |||
assert exc.match("MessageRejected") | |||
|
|||
|
|||
@pytest.mark.usefixtures("openapi_validate") |
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.
TIL about this fixture. This would be very useful ⭐
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.
LGTM ✔️
Motivation
As we introduced OpenAPI specs for our developer endpoints, we noticed minor gaps between the specs and the implementation.
This PR adds validation for the
TestSESRetrospection
suite, testing the SES developer endpoints, by activating the request and response validation handler.Changes
TestSESRetrospection
tests;