Skip to content

Fix use of TOOLS_TESTING_MONGOD with development server builds #772

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FGasper
Copy link
Collaborator

@FGasper FGasper commented Mar 21, 2025

It’s helpful to be able to run tests locally using the same clusters that other provisioning tools use. configureClient(), however, only honors the hosts from the connection string, not the authentication.

Additionally, the logic to extract a MongoDB version from buildInfo’s versionArray did not account for the mismatch between that field and version in development builds. Also, certain tests that require an unauthenticated connection did not skip appropriately under authentication.

This changeset fixes both of those oversights so that it’s now possible to run the integrations tests thus:

TOOLS_TESTING_MONGOD='...' TOOLS_TESTING_INTEGRATION=1 go test -v ./...

… even when the connection string is authenticated and/or a development server.

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.

1 participant