Skip to content

Commit e66cc57

Browse files
authored
chore(connectivity-tests): remove serverless testing (#2561)
Our serverless cluster is no longer a serverless cluster, since they are being converted to Flex tier clusters. Refs: https://www.mongodb.com/docs/atlas/billing/serverless-instance-costs/
1 parent 5c9a08e commit e66cc57

File tree

1 file changed

+1
-20
lines changed
  • packages/connectivity-tests/test

1 file changed

+1
-20
lines changed

packages/connectivity-tests/test/atlas.sh

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ echo "Exporting secrets ..."
88
eval $(
99
node "${MONGOSH_ROOT_DIR}/scripts/print-expansions.js" \
1010
connectivity_test_data_lake_hostname \
11-
connectivity_test_serverless_hostname \
1211
connectivity_test_atlas_hostname \
1312
connectivity_test_atlas_username \
1413
connectivity_test_atlas_password
@@ -18,14 +17,12 @@ ATLAS_USERNAME="${CONNECTIVITY_TEST_ATLAS_USERNAME}"
1817
ATLAS_PASSWORD="${CONNECTIVITY_TEST_ATLAS_PASSWORD}"
1918
ATLAS_HOSTNAME="${CONNECTIVITY_TEST_ATLAS_HOSTNAME}"
2019
ATLAS_DATA_LAKE_HOSTNAME="${CONNECTIVITY_TEST_DATA_LAKE_HOSTNAME}"
21-
ATLAS_SERVERLESS_HOSTNAME="${CONNECTIVITY_TEST_SERVERLESS_HOSTNAME}"
2220

2321
if
2422
[[ -z "${ATLAS_USERNAME}" ]] ||
2523
[[ -z "${ATLAS_PASSWORD}" ]] ||
2624
[[ -z "${ATLAS_HOSTNAME}" ]] ||
27-
[[ -z "${ATLAS_DATA_LAKE_HOSTNAME}" ]] ||
28-
[[ -z "${ATLAS_SERVERLESS_HOSTNAME}" ]]
25+
[[ -z "${ATLAS_DATA_LAKE_HOSTNAME}" ]]
2926
then
3027
echo "Atlas credentials are not provided"
3128

@@ -134,21 +131,6 @@ function test_data_lake() {
134131
check_failed
135132
}
136133

137-
function test_serverless() {
138-
printf "test_serverless ... "
139-
140-
CONNECTION_STRING="mongodb+srv://${ATLAS_SERVERLESS_HOSTNAME}/admin"
141-
142-
echo "${CONNECTION_STATUS_COMMAND}" |
143-
"${MONGOSH}" "${CONNECTION_STRING}" \
144-
--username "${ATLAS_USERNAME}" \
145-
--password "${ATLAS_PASSWORD}" |
146-
grep -Fq "${CONNECTION_STATUS_CHECK_STRING}" ||
147-
FAILED="Can't connect to Serverless instance using connection string with username and password"
148-
149-
check_failed
150-
}
151-
152134
function test_srv_without_nodejs_dns() {
153135
printf "test_srv_without_nodejs_dns ... "
154136

@@ -167,7 +149,6 @@ test_credentials_masking
167149
test_cli_args
168150
test_password_prompt
169151
test_data_lake
170-
test_serverless
171152
test_srv_without_nodejs_dns
172153

173154
echo "All Atlas tests are passing"

0 commit comments

Comments
 (0)