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

refactor(bindings/s2n-tls): finish test harness refactor #4636

Merged
merged 6 commits into from
Jul 11, 2024

Conversation

jmayclin
Copy link
Contributor

@jmayclin jmayclin commented Jul 1, 2024

Description of changes:

  • migrate the remaining tests in resumption.rs, pkey.rs, and recent tests in s2n_tls.rs to use the new test harness
  • delete the old test harnesses + associated structs

Testing:

All tests should pass.

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 Jul 1, 2024
@jmayclin jmayclin requested review from goatgoose and lrstewart July 1, 2024 17:02
- I missed the tests hiding behind the conditional flag

let pair = poll_tls_pair(pair);
let server_conn = pair.server.0.connection();
let client_conn = pair.server.0.connection();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a copy-paste mistake in this test. The client_hello method is not available for client connections, which is a property of the underlying C implementation. This never would have worked, and the client assertion is removed in the new version.

@jmayclin jmayclin marked this pull request as ready for review July 1, 2024 20:35
bindings/rust/s2n-tls/src/client_hello.rs Outdated Show resolved Hide resolved
Co-authored-by: Sam Clark <3758302+goatgoose@users.noreply.github.com>
@jmayclin jmayclin enabled auto-merge (squash) July 10, 2024 19:29
@jmayclin jmayclin merged commit 7a6bd38 into aws:main Jul 11, 2024
34 checks passed
@jmayclin jmayclin deleted the rust-harness-cleanup branch August 29, 2024 20:41
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