Skip to content

feat(integration): add utilities for capability assertions#5475

Merged
jmayclin merged 9 commits intoaws:mainfrom
jmayclin:2025-08-21-capability-assertions
Aug 27, 2025
Merged

feat(integration): add utilities for capability assertions#5475
jmayclin merged 9 commits intoaws:mainfrom
jmayclin:2025-08-21-capability-assertions

Conversation

@jmayclin
Copy link
Copy Markdown
Contributor

@jmayclin jmayclin commented Aug 22, 2025

Description of changes:

Goal

Allow integration tests to gracefully handle the different capabilities of s2n-tls when different libcryptos are linked.

Why

We are preparing to run the integration tests with a wider variety of libcryptos, and this is a prerequisite for that.

How

This PR adds a harness/wrapper that will

  1. assert a test is successful when all capabilities are available
  2. assert that a test fails if not all capabilities are available

Testing:

I tested this with various cryptos. When in the nix devshell you can now run rust_integration to run the rust integration tests with the current libcrypto.

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 Aug 22, 2025
@jmayclin jmayclin force-pushed the 2025-08-21-capability-assertions branch from 0535879 to 484f497 Compare August 22, 2025 00:32
@jmayclin jmayclin force-pushed the 2025-08-21-capability-assertions branch from 484f497 to 27d1383 Compare August 22, 2025 00:35
@jmayclin jmayclin marked this pull request as ready for review August 22, 2025 00:38
// shutdown must be called for session resumption to work
// https://www.openssl.org/docs/man1.1.1/man3/SSL_set_session.html
self.connection.shutdown().unwrap();
let _ = self.connection.shutdown();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The "real" fix for this is here: #5474

* log whenever we fall back to the default awslc detection
@jmayclin jmayclin enabled auto-merge August 26, 2025 23:02
@jmayclin jmayclin added this pull request to the merge queue Aug 27, 2025
Merged via the queue into aws:main with commit 8532513 Aug 27, 2025
50 checks passed
@jmayclin jmayclin deleted the 2025-08-21-capability-assertions branch August 27, 2025 01:53
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