diff --git a/package-lock.json b/package-lock.json index 14ad2515e..8e2e0715d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32063,9 +32063,9 @@ } }, "node_modules/resolve-mongodb-srv": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/resolve-mongodb-srv/-/resolve-mongodb-srv-1.1.5.tgz", - "integrity": "sha512-flu1XTSLDJHvTnWu2aJh2w9jgGPcNYJn2obMkuzXiyWSz0MLXu9IRCjvirJ4zRoCPHJJPt3uLQVNJTrzFRWd1w==", + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve-mongodb-srv/-/resolve-mongodb-srv-1.1.7.tgz", + "integrity": "sha512-JWwAqlR5wgIxqhO2aY+ERIXCGHybGvmYuKwYNzUkLT9iy1t1AZ85tCjzlDoqbymHDD1kgfL9qooPCiTXD+LyQg==", "license": "Apache-2.0", "optional": true, "dependencies": { diff --git a/packages/connectivity-tests/test/atlas.sh b/packages/connectivity-tests/test/atlas.sh index d4f33ca1c..4c31f7378 100755 --- a/packages/connectivity-tests/test/atlas.sh +++ b/packages/connectivity-tests/test/atlas.sh @@ -62,6 +62,18 @@ function test_connection_string() { check_failed } +function test_connection_string_fqdn_dot() { + printf "test_connection_string_fqdn_dot ... " + + 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 ... " @@ -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