File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -251,8 +251,7 @@ functions:
251
251
script : |
252
252
${PREPARE_SHELL}
253
253
JAVA_VERSION="${JAVA_VERSION}" \
254
- SINGLE_ATLASPROXY_SERVERLESS_URI="${SINGLE_ATLASPROXY_SERVERLESS_URI}" \
255
- MULTI_ATLASPROXY_SERVERLESS_URI="${MULTI_ATLASPROXY_SERVERLESS_URI}" \
254
+ SERVERLESS_URI="${SERVERLESS_URI}" \
256
255
SERVERLESS_ATLAS_USER="${SERVERLESS_ATLAS_USER}" \
257
256
SERVERLESS_ATLAS_PASSWORD="${SERVERLESS_ATLAS_PASSWORD}" \
258
257
.evergreen/run-serverless-tests.sh
Original file line number Diff line number Diff line change 4
4
set -o errexit # Exit the script with error if any of the commands fail
5
5
6
6
# Supported/used environment variables:
7
- # JDK Set the version of java to be used. Java versions can be set from the java toolchain /opt/java
8
- # MONGODB_URI The URI, without credentials
7
+ # JAVA_VERSION Set the version of java to be used
8
+ # SERVERLESS_URI The URI, without credentials
9
9
# SERVERLESS_ATLAS_USER
10
10
# SERVERLESS_ATLAS_PASSWORD
11
11
# Support arguments:
@@ -19,11 +19,10 @@ RELATIVE_DIR_PATH="$(dirname "${BASH_SOURCE[0]:-$0}")"
19
19
20
20
echo " Running serverless tests with Java ${JAVA_VERSION} "
21
21
22
- # assume "mongodb" protocol for single server, and "mongodb+srv" protocol for multi server
23
- SINGLE_SERVER_URI=" mongodb://${SERVERLESS_ATLAS_USER} :${SERVERLESS_ATLAS_PASSWORD} @${SINGLE_ATLASPROXY_SERVERLESS_URI: 10} "
24
- MULTI_SERVER_URI=" mongodb+srv://${SERVERLESS_ATLAS_USER} :${SERVERLESS_ATLAS_PASSWORD} @${MULTI_ATLASPROXY_SERVERLESS_URI: 14} "
22
+ # Assume "mongodb+srv" protocol
23
+ MONGODB_URI=" mongodb+srv://${SERVERLESS_ATLAS_USER} :${SERVERLESS_ATLAS_PASSWORD} @${SERVERLESS_URI: 14} "
25
24
26
25
./gradlew -version
27
26
28
- ./gradlew -PjavaVersion=${JAVA_VERSION} -Dorg.mongodb.test.uri=${SINGLE_SERVER_URI} -Dorg.mongodb.test.multi.mongos.uri= ${MULTI_SERVER_URI } \
27
+ ./gradlew -PjavaVersion=${JAVA_VERSION} -Dorg.mongodb.test.uri=${MONGODB_URI } \
29
28
-Dorg.mongodb.test.serverless=true --stacktrace --info --continue driver-sync:test
You can’t perform that action at this time.
0 commit comments