-
Notifications
You must be signed in to change notification settings - Fork 59
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
Test for server connection in EVG tests #443
base: master
Are you sure you want to change the base?
Conversation
Makefile
Outdated
@@ -5,5 +5,6 @@ all: | |||
|
|||
test: | |||
@echo "Running tests..." | |||
@if [ -n $(TEST_CONNECTION) ]; then $(MONGODB_BINARIES)/mongosh "$(MONGODB_URI)" --eval "db.runCommand({\"ping\":1})" --&serverSelectionTimeoutMS=10000; fi |
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.
Does this work for TLS clusters? (does MONGODB_URI include the TLS options?)
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.
We're running with Auth SSL in some of the tests that have run.
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.
I don't think it's working:
[2024/05/14 08:33:06.598] Current Mongosh Log ID: 66438432bc60e6820d5446fe
[2024/05/14 08:33:06.685] Connecting to: mongodb://<credentials>@localhost:27017,localhost:27018,localhost:27019/?authSource=admin&replicaSet=repl0&serverSelectionTimeoutMS=2000&appName=mongosh+2.1.1
[2024/05/14 08:33:08.713] MongoServerSelectionError: connection <monitor> to 127.0.0.1:27017 closed
[2024/05/14 08:33:08.713] Finished command 'shell.exec' in function 'run tests' (step 2 of 2) in 2.3270065s.
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.
As discussed in-person, I moved the tests to atlas and serverless setup, as well as the docker EVG test, since we are already testing connectivity with the servers launched with mongo-orchestration
.
…ols into test-connections
No description provided.