Skip to content

Commit 8559e87

Browse files
committed
chore: fix doc
1 parent 42fa52e commit 8559e87

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

.evergreen/config.in.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,12 @@ functions:
191191
export SERVERLESS_ATLAS_PASSWORD="${SERVERLESS_ATLAS_PASSWORD}"
192192
export SERVERLESS_URI="${SERVERLESS_URI}"
193193
194+
echo "setting SERVERLESS_URI: $SERVERLESS_URI"
195+
194196
export MONGODB_URI="${SERVERLESS_URI}"
195197
export SINGLE_MONGOS_LB_URI="${SERVERLESS_URI}"
196198
197-
# Setting MULTI_MONGOS to the SINGLE_ATLAS is intentional
199+
# Setting MULTI_MONGOS to the SERVERLESS_URI is intentional
198200
# LB tests pick one host out of the comma separated list
199201
# so just passing the one host is equivalent
200202
export MULTI_MONGOS_LB_URI="${SERVERLESS_URI}"

.evergreen/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,12 @@ functions:
170170
export SERVERLESS_ATLAS_PASSWORD="${SERVERLESS_ATLAS_PASSWORD}"
171171
export SERVERLESS_URI="${SERVERLESS_URI}"
172172
173+
echo "setting SERVERLESS_URI: $SERVERLESS_URI"
174+
173175
export MONGODB_URI="${SERVERLESS_URI}"
174176
export SINGLE_MONGOS_LB_URI="${SERVERLESS_URI}"
175177
176-
# Setting MULTI_MONGOS to the SINGLE_ATLAS is intentional
178+
# Setting MULTI_MONGOS to the SERVERLESS_URI is intentional
177179
# LB tests pick one host out of the comma separated list
178180
# so just passing the one host is equivalent
179181
export MULTI_MONGOS_LB_URI="${SERVERLESS_URI}"

.evergreen/run-serverless-tests.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source "${PROJECT_DIRECTORY}/.evergreen/install-dependencies.sh"
44

55
if [ -z ${SERVERLESS+omitted} ]; then echo "SERVERLESS is unset" && exit 1; fi
6-
if [ -z ${SERVERLESS_URI+omitted} ]; then echo "MULTI_ATLASPROXY_SERVERLESS_URI is unset" && exit 1; fi
6+
if [ -z ${SERVERLESS_URI+omitted} ]; then echo "SERVERLESS_URI is unset" && exit 1; fi
77
if [ -z ${SINGLE_MONGOS_LB_URI+omitted} ]; then echo "SINGLE_MONGOS_LB_URI is unset" && exit 1; fi
88
if [ -z ${MULTI_MONGOS_LB_URI+omitted} ]; then echo "MULTI_MONGOS_LB_URI is unset" && exit 1; fi
99
if [ -z ${MONGODB_URI+omitted} ]; then echo "MONGODB_URI is unset" && exit 1; fi
@@ -15,10 +15,10 @@ npx mocha \
1515
test/integration/crud/crud.spec.test.js \
1616
test/integration/crud/crud.prose.test.js \
1717
test/integration/retryable-reads/retryable_reads.spec.test.js \
18-
test/integration/retryable-writes/retryable_writes.spec.test.js \
19-
test/integration/sessions/sessions.spec.test.js \
20-
test/integration/sessions/sessions.test.js \
18+
test/integration/retryable-writes/retryable_writes.spec.test.ts \
19+
test/integration/sessions/sessions.spec.test.ts \
20+
test/integration/sessions/sessions.test.ts \
2121
test/integration/transactions/transactions.spec.test.js \
22-
test/integration/transactions/transactions.test.js \
22+
test/integration/transactions/transactions.test.ts \
2323
test/integration/versioned-api/versioned_api.spec.test.js \
2424
test/integration/load-balancers/load_balancers.spec.test.js

test/readme.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ The following steps will walk you through how to create and test a MongoDB Serve
231231
AUTH: xxx
232232
TOPOLOGY: xxx
233233
SERVERLESS: xxx
234-
MULTI_ATLASPROXY_SERVERLESS_URI: xxx
235-
SINGLE_ATLASPROXY_SERVERLESS_URI: xxx
234+
SERVERLESS_URI: xxx
236235
```
237236
238237
1. Generate a sourceable environment file from `serverless-expansion.yml` by running the following command:
@@ -245,9 +244,9 @@ The following steps will walk you through how to create and test a MongoDB Serve
245244

246245
1. Update the following variables in `serverless.env`, so that they are equivalent to what our Evergreen builds do:
247246

248-
- Change `MONGODB_URI` to have the same value as `SINGLE_ATLASPROXY_SERVERLESS_URI`.
249-
- Add `SINGLE_MONGOS_LB_URI` and set it to the value of `SINGLE_ATLASPROXY_SERVERLESS_URI`.
250-
- Add `MULTI_MONGOS_LB_URI` and set it to the value of `SINGLE_ATLASPROXY_SERVERLESS_URI`.
247+
- Change `MONGODB_URI` to have the same value as `SERVERLESS_URI`.
248+
- Add `SINGLE_MONGOS_LB_URI` and set it to the value of `SERVERLESS_URI`.
249+
- Add `MULTI_MONGOS_LB_URI` and set it to the value of `SERVERLESS_URI`.
251250

252251
1. Source the environment variables using a command like `source serverless.env`.
253252

0 commit comments

Comments
 (0)