Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions packages/connectivity-tests/test/atlas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ function test_connection_string() {
check_failed
}

function test_connection_string_fqdn_dot() {
printf "test_connection_string ... "

CONNECTION_STRING="mongodb+srv://${ATLAS_USERNAME}:${ATLAS_PASSWORD}@${ATLAS_HOSTNAME}./admin"

echo "${CONNECTION_STATUS_COMMAND}" | "${MONGOSH}" "${CONNECTION_STRING}" |
grep -Fq "${CONNECTION_STATUS_CHECK_STRING}" ||
FAILED="Can't connect to Atlas using connection string with trailing dot"

check_failed
}

function test_atlas_in_logs() {
printf "test_atlas_in_logs ... "

Expand Down Expand Up @@ -144,6 +156,7 @@ function test_srv_without_nodejs_dns() {
}

test_connection_string
test_connection_string_fqdn_dot
test_atlas_in_logs
test_credentials_masking
test_cli_args
Expand Down
Loading