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

🏞 Use an environment variable to muck with the root certs in tests #302

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

acw
Copy link
Contributor

@acw acw commented Aug 8, 2023

Thanks to @acfoltzer for this idea.

A lagging problem with #297 was that it required baking in a certificate, which worked fine in normal testing but broke when trying to build or validate packages. Rather than fighting getting the inclusion to work, @acfoltzer pointed out that rustls_native_certs's default source for certificates can be overridden by an environment variable. So this PR deletes the old baked-in approach, and instead has the client certificate test set the environment variable before starting.

@JakeChampion JakeChampion merged commit 4154682 into main Aug 9, 2023
7 checks passed
@JakeChampion JakeChampion deleted the awick/test-ca-from-env branch August 9, 2023 14:49
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.

2 participants