Skip to content
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

test(s2n-tls-hyper): matching on s2n-tls error #4906

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

jmayclin
Copy link
Contributor

Resolved issues:

Prompted by discussion in #4884

Description of changes:

The PR adds a "sanity check" test covering customer interactions with hyper and s2n-tls errors. This confirms that hyper isn't doing anything tricky (like converting TLS errors to HTTP errors) and that the original s2n-tls error descriptions can still be inspected.

Testing:

No functional changes, this just tests existing behavior.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Nov 19, 2024
@jmayclin jmayclin marked this pull request as ready for review November 19, 2024 01:36
async fn serve_echo<B>(
pub async fn serve_echo<B>(
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: should this be pub or pub(crate)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do think it should be pub, because pub(crate) feels a bit redundant. This is in a submodule of the test folder, so the entire module is already private and not available to external consumers.

@jmayclin jmayclin enabled auto-merge (squash) November 19, 2024 19:53
@jmayclin jmayclin merged commit 5714c3c into aws:main Nov 20, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants