Skip to content

Commit c3c7f19

Browse files
committed
fix: comments
1 parent 966edbe commit c3c7f19

File tree

3 files changed

+18
-40
lines changed

3 files changed

+18
-40
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ updates:
88
- package-ecosystem: "gitsubmodule" # See documentation for possible values
99
directory: "/"
1010
schedule:
11-
interval: "daily"
11+
interval: "weekly"
1212
- package-ecosystem: "github-actions" # See documentation for possible values
1313
directory: "/" # Location of package manifests
1414
schedule:

test/readme.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,17 @@ The actual implementations of the spec tests can be unit tests or integration te
7878

7979
The easiest way to get started running the tests locally is to start a standalone server and run all of the tests.
8080

81-
Start a `mongod` standalone with our [cluster_setup.sh](tools/cluster_setup.sh) script:
81+
Ensure the drivers tools submodule is cloned:
8282

8383
```sh
84-
./test/tools/cluster_setup.sh server
84+
git submodule init
85+
git submodule update
86+
```
87+
88+
Start a `mongod` standalone with our [run-orchestration.sh](.evergreen/run-orchestration.sh) script with the environment set for the cluster:
89+
90+
```sh
91+
VERSION='latest' TOPOLOGY='server' AUTH='noauth' ./.evergreen/run-orchestration.sh
8592
```
8693

8794
Then run the tests:
@@ -98,11 +105,10 @@ In the following subsections, we'll dig into the details of running the tests.
98105

99106
### Testing With Authorization-Enabled
100107

101-
By default, the integration tests run with auth-enabled and the `cluster_setup.sh` script defaults to starting servers with auth-enabled. Tests can be run locally without auth by setting the environment
102-
variable `AUTH` to the value of `noauth`. This must be a two-step process of starting a server without auth-enabled and then running the tests without auth-enabled.
108+
By default, the integration tests run with auth-enabled and the mongo orchestration script will run with auth enabled when the `AUTH` variable is set to `auth`. Tests can be run locally without auth by setting the environment variable `AUTH` to the value of `noauth`. This must be a two-step process of starting a server without auth-enabled and then running the tests without auth-enabled.
103109

104110
```shell
105-
AUTH='noauth' ./test/tools/cluster_setup.sh <server>
111+
AUTH='noauth' TOPOLOGY='server' ./.evergreen/run-orchestration.sh
106112
AUTH='noauth' npm run check:test
107113
```
108114
### Testing Different MongoDB Topologies
@@ -112,21 +118,21 @@ As we mentioned earlier, the tests check the topology of the MongoDB server bein
112118
In the steps above, we started a standalone server:
113119

114120
```sh
115-
./test/tools/cluster_setup.sh server
121+
TOPOLOGY='server' ./.evergreen/run-orchestration.sh
116122
```
117123

118-
You can use the same [cluster_setup.sh](tools/cluster_setup.sh) script to start a replica set or sharded cluster by passing the appropriate option:
124+
You can use the same [run-orchestration.sh](.evergreen/run-orchestration.sh) script to start a replica set or sharded cluster by passing the appropriate option:
119125
```sh
120-
./test/tools/cluster_setup.sh replica_set
126+
TOPOLOGY='replica_set' ./.evergreen/run-orchestration.sh
121127
```
122128
or
123129
```sh
124-
./test/tools/cluster_setup.sh sharded_cluster
130+
TOPOLOGY='sharded_cluster' ./.evergreen/run-orchestration.sh
125131
```
126132
If you are running more than a standalone server, make sure your `ulimit` settings are in accordance with [MongoDB's recommendations][mongodb-ulimit]. Changing the settings on the latest versions of macOS can be tricky. See [this article][macos-ulimt] for tips. (You likely don't need to do the complicated `maxproc` steps.)
127133

128-
The [cluster_setup.sh](tools/cluster_setup.sh) script automatically stores the files associated with the MongoDB server in the `data` directory, which is stored at the top-level of this repository.
129-
You can delete this directory if you want to ensure you're running a clean configuration. If you delete the directory, the associated database server will be stopped, and you will need to run [cluster_setup.sh](tools/cluster_setup.sh) again.
134+
The [run-orchestration.sh](.evergreen/run-orchestration.sh) script automatically stores the files associated with the MongoDB server in the `data` directory, which is stored at the top-level of this repository.
135+
You can delete this directory if you want to ensure you're running a clean configuration. If you delete the directory, the associated database server will be stopped, and you will need to run [run-orchestration.sh](.evergreen/run-orchestration.sh) again.
130136

131137
You can prefix `npm test` with a `MONGODB_URI` environment variable to point the tests to a specific deployment. For example, for a standalone server, you might use:
132138

test/tools/cluster_setup.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)