-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test(NODE-7394): add test suite that runs with TLS enabled #4845
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
base: main
Are you sure you want to change the base?
Conversation
| # ssl setup | ||
| SSL=${SSL:-nossl} | ||
| if [ "$SSL" != "nossl" ]; then | ||
| export SSL_KEY_FILE="$DRIVERS_TOOLS/.evergreen/x509gen/client.pem" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not the correct environment variables (and were unused)
| // 5. Wait 5ms for the connection to become idle. | ||
| beforeEach(async function () { | ||
| client = new MongoClient(this.configuration.url(), { | ||
| client = this.configuration.newClient(this.configuration.url(), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this.configuration.newClient() so that the correct TLS options are provided when TLS is enabled
Description
Summary of Changes
This PR does two things:
Along the way, I encountered a few issues:
So, some test suites are skipped for now. Other suites have explicit calls to
MongoClient.connect()to avoid NODE-7398.Notes for Reviewers
What is the motivation for this change?
Release Highlight
Release notes highlight
Double check the following
npm run check:lint)type(NODE-xxxx)[!]: descriptionfeat(NODE-1234)!: rewriting everything in coffeescript