Skip to content

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Jan 14, 2025

RUST-2112

I was originally hoping this could just be another test function in the suite with logic about when to run, but since it needs to set features on pkcs8, it gets its own binary and buildvariant.

let mut options = mongodb::options::ClientOptions::parse(std::env::var("MONGODB_URI").unwrap())
.await
.unwrap();
options.tls = Some(Tls::Enabled(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we're testing parsing elsewhere, I figure setting the options directly gives us slightly more coverage.

@abr-egn abr-egn marked this pull request as ready for review January 14, 2025 21:22
Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

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

it needs to set features on pkcs8

How about adding an entry to dev-dependencies for pkcs8 with the additional feature flags enabled? I did a test of this locally and it seems to work as long as the non-dev and dev dependencies don't have conflicting features and/or versions

@abr-egn
Copy link
Contributor Author

abr-egn commented Jan 15, 2025

How about adding an entry to dev-dependencies for pkcs8 with the additional feature flags enabled? I did a test of this locally and it seems to work as long as the non-dev and dev dependencies don't have conflicting features and/or versions

... yup, that makes it much simpler, thank you!

@abr-egn abr-egn merged commit 96637e8 into mongodb:main Jan 16, 2025
13 of 17 checks passed
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