Skip to content

Commit 31d4a0d

Browse files
committed
fix(deps): bump resolve-mongodb-srv, add trailing dot test MONGOSH-3027
1 parent e9dfc41 commit 31d4a0d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/connectivity-tests/test/atlas.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ function test_connection_string() {
6262
check_failed
6363
}
6464

65+
function test_connection_string_fqdn_dot() {
66+
printf "test_connection_string ... "
67+
68+
CONNECTION_STRING="mongodb+srv://${ATLAS_USERNAME}:${ATLAS_PASSWORD}@${ATLAS_HOSTNAME}./admin"
69+
70+
echo "${CONNECTION_STATUS_COMMAND}" | "${MONGOSH}" "${CONNECTION_STRING}" |
71+
grep -Fq "${CONNECTION_STATUS_CHECK_STRING}" ||
72+
FAILED="Can't connect to Atlas using connection string with trailing dot"
73+
74+
check_failed
75+
}
76+
6577
function test_atlas_in_logs() {
6678
printf "test_atlas_in_logs ... "
6779

@@ -144,6 +156,7 @@ function test_srv_without_nodejs_dns() {
144156
}
145157

146158
test_connection_string
159+
test_connection_string_fqdn_dot
147160
test_atlas_in_logs
148161
test_credentials_masking
149162
test_cli_args

0 commit comments

Comments
 (0)