8000 Validate SNS developer endpoints by giograno · Pull Request #11621 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Validate SNS developer endpoints #11621

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 8, 2024
Merged

Validate SNS developer endpoints #11621

merged 2 commits into from
Nov 8, 2024

Conversation

giograno
Copy link
Member
@giograno giograno commented Oct 1, 2024

Motivation

After introducing OpenAPI specs for our internal endpoints, we are now introducing stricter validations in our test pipeline.
This PR enables the validation of the requests and responses for the developer endpoints in the SNS test suite.
It also adds minor changes to the specs to reflect the actual implementation and make the suite green.

Changes

  • Enable Open API validation for the SNS tests;
  • Minor adaptations to the spec.

@giograno giograno added the semver: patch Non-breaking changes which can be included in patch releases label Oct 1, 2024
@giograno giograno added this to the Playground milestone Oct 1, 2024
Copy link
github-actions bot commented Oct 2, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 42m 17s ⏱️ - 1m 44s
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 08032fb. ± Comparison against base commit 8ecfcd3.

♻️ This comment has been updated with latest results.

@giograno giograno changed the title Validate SES & SQS dev envdpoints Validate SES & SNS dev envdpoints Oct 2, 2024
@giograno giograno changed the title Validate SES & SNS dev envdpoints Validate SNS developer endpoints Nov 6, 2024
@giograno giograno modified the milestones: Playground, 4.0 Nov 6, 2024
@giograno giograno marked this pull request as ready for review November 6, 2024 08:27
@giograno giograno marked this pull request as draft November 6, 2024 09:17
@giograno giograno marked this pull request as ready for review November 6, 2024 11:41
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 ✔️ Thanks for expanding the test coverage!

@@ -514,8 +588,6 @@ paths:
- $ref: '#/components/parameters/SnsPhoneNumber'
responses:
'204':
content:
text/plain: {}
Copy link
Member

Choose a reason for hiding this comment

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

Q: is this because the body is empty? If so, is there another way to state the response mimetype?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, it is because the body is empty. Afaik, omitting the response type is the way to go in these cases.

@giograno giograno merged commit 79e2a7e into master Nov 8, 2024
40 checks passed
@giograno giograno deleted the oas-sns-ses branch November 8, 2024 13:18
zaingz pushed a commit that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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