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

Add better_tls tests from rustls-webpki #281

Merged
merged 2 commits into from
Sep 30, 2023
Merged

Add better_tls tests from rustls-webpki #281

merged 2 commits into from
Sep 30, 2023

Conversation

briansmith
Copy link
Owner

@briansmith briansmith commented Sep 30, 2023

See the individual commit messages for specifics, including the exact rustls-webpki commits that were cherry-picked.

@briansmith briansmith self-assigned this Sep 30, 2023
cpu and others added 2 commits September 29, 2023 21:07
[`git cherry-pick 4a39e2b`, with support
for Edition 2018 added by Brian.]

This commit introduces the Netflix BetterTLS[0]'s path building test
suite to the webpki integration tests.

This project has a test runner for Rustls that will stand up TLS servers
to exercise these tests but:

* It requires Go.
* It needs Rustls in order to do a full TLS handshake with the test
  servers.
* It's slower than testing the path building directly without the TLS
  bits.

To avoid these issues this commit takes a different approach and vendors
the exported path building test suite. This is a supported feature[1] of
the upstream project and allow us to directly test webpki's path
building against the test suite without needing Rustls or Go.

[0]: https://github.com/Netflix/bettertls
[1]: https://github.com/Netflix/bettertls#exporting-tests-to-run-outside-of-the-bettertls-executor
@codecov
Copy link

codecov bot commented Sep 30, 2023

Codecov Report

Merging #281 (74a9d8c) into main (519bcb6) will increase coverage by 0.62%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #281      +/-   ##
==========================================
+ Coverage   51.18%   51.81%   +0.62%     
==========================================
  Files          18       19       +1     
  Lines        3806     4030     +224     
==========================================
+ Hits         1948     2088     +140     
- Misses       1858     1942      +84     
Files Coverage Δ
src/end_entity.rs 35.61% <ø> (ø)
tests/better_tls.rs 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@briansmith briansmith merged commit 911e11c into main Sep 30, 2023
212 checks passed
@briansmith briansmith deleted the b/bettertls branch September 30, 2023 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants