From 31d4a0d6ba628b9d37d86338eb2b4e932280f2e1 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 9 Dec 2025 16:24:57 +0100 Subject: [PATCH 1/3] fix(deps): bump resolve-mongodb-srv, add trailing dot test MONGOSH-3027 --- package-lock.json | 6 +++--- packages/connectivity-tests/test/atlas.sh | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 14ad2515e..e0ce8d747 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.6", + "resolved": "https://registry.npmjs.org/resolve-mongodb-srv/-/resolve-mongodb-srv-1.1.6.tgz", + "integrity": "sha512-eeHKsU9+zD7NGw+QI8SVNvcawIF0rT5/WmnVC5qHHJBsUW1ZZaJ1SBaT0eEv3ex+YBg4yaQVfwsCn8pD5q1Ggw==", "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..ba2097736 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 ... " + + 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 From 70730640f61d65cb6ca79be386a10afa84e49dd5 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 9 Dec 2025 16:26:46 +0100 Subject: [PATCH 2/3] fixup: test name --- packages/connectivity-tests/test/atlas.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connectivity-tests/test/atlas.sh b/packages/connectivity-tests/test/atlas.sh index ba2097736..4c31f7378 100755 --- a/packages/connectivity-tests/test/atlas.sh +++ b/packages/connectivity-tests/test/atlas.sh @@ -63,7 +63,7 @@ function test_connection_string() { } function test_connection_string_fqdn_dot() { - printf "test_connection_string ... " + printf "test_connection_string_fqdn_dot ... " CONNECTION_STRING="mongodb+srv://${ATLAS_USERNAME}:${ATLAS_PASSWORD}@${ATLAS_HOSTNAME}./admin" From 0b1986334ccc0e8b8da41dc6cab08f1579e91a45 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 11 Dec 2025 16:16:17 +0100 Subject: [PATCH 3/3] fixup: version with CodeQL enabled --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e0ce8d747..8e2e0715d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32063,9 +32063,9 @@ } }, "node_modules/resolve-mongodb-srv": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/resolve-mongodb-srv/-/resolve-mongodb-srv-1.1.6.tgz", - "integrity": "sha512-eeHKsU9+zD7NGw+QI8SVNvcawIF0rT5/WmnVC5qHHJBsUW1ZZaJ1SBaT0eEv3ex+YBg4yaQVfwsCn8pD5q1Ggw==", + "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": {