10000 Validate SES developer endpoints against OAS by giograno · Pull Request #11776 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

giograno
Copy link
Member
@giograno giograno commented Nov 3, 2024

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

  • Enabling OAS validation for the TestSESRetrospection tests;
  • Minor changes to the specs;

@giograno giograno added aws:ses Amazon Simple Email Service semver: patch Non-breaking changes which can be included in patch releases labels Nov 3, 2024
Copy link
github-actions bot commented Nov 3, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 42m 9s ⏱️ +15s
3 532 tests ±0  3 118 ✅ ±0  414 💤 ±0  0 ❌ ±0 
3 534 runs  ±0  3 118 ✅ ±0  416 💤 ±0  0 ❌ ±0 

Results for commit 1ef9027. ± Comparison against base commit 1db9b8f.

♻️ This comment has been updated with latest results.

@giograno giograno marked this pull request as ready for review November 4, 2024 07:56
@giograno giograno marked this pull request as draft November 4, 2024 14:03
@giograno giograno force-pushed the validate-ses-openapi branch from 3954773 to 1ef9027 Compare November 4, 2024 14:05
@giograno giograno marked this pull request as ready for review November 4, 2024 14:56
text/xml: {}
text/xml:
schema:
$ref: '#/components/schemas/ReceiveMessageResult'
Copy link
Member

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")
Copy link
Member

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 ⭐

Copy link
Member
@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

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

LGTM ✔️

@giograno giograno merged commit bcdb73b into master Nov 5, 2024
34 checks passed
@giograno giograno deleted the validate-ses-openapi branch November 5, 2024 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:ses Amazon Simple Email Service semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0