You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[KMIP FLE support tests](#kmip-fle-support-tests)
34
+
-[Deployed Atlas Tests](#deployed-atlas-tests)
35
+
-[Launching an Atlas Cluster](#launching-an-atlas-cluster)
36
+
-[Search Indexes](#search-indexes)
37
+
-[Deployed Lambda Tests](#deployed-lambda-tests)
38
+
-[TODO Special Env Sections](#todo-special-env-sections)
39
+
-[Testing driver changes with mongosh](#testing-driver-changes-with-mongosh)
40
+
-[Point mongosh to the driver](#point-mongosh-to-the-driver)
41
+
-[Run specific package tests](#run-specific-package-tests)
15
42
16
43
## About the Tests
17
44
@@ -568,44 +595,6 @@ The following steps will walk you through how to run the tests for CSFLE.
568
595
569
596
To run the functional tests using the crypt shared library instead of `mongocryptd`, download the appropriate version of the crypt shared library forthe enterprise server version [here](https://www.mongodb.com/download-center/enterprise/releases) and then set the location of itin the environment variable `CRYPT_SHARED_LIB_PATH`.
570
597
571
-
#### Testing driver changes with mongosh
572
-
573
-
These steps require `mongosh` to be available locally. Clone it from GitHub.
574
-
575
-
`mongosh` uses a `lerna` monorepo. As a result, `mongosh` contains multiple references to the `mongodb` package
576
-
in their `package.json`s.
577
-
578
-
Set up `mongosh` by following the steps in the `mongosh` readme.
579
-
580
-
##### Point mongosh to the driver
581
-
582
-
mongosh contains a script that does this. To use the script, create an environment
583
-
variable `REPLACE_PACKAGE` that contains a string in the form
584
-
`mongodb:<path to your local instance of the driver>`. The package replacement script will replace
585
-
all occurrences of `mongodb` with the local path of your driver.
586
-
587
-
An alternative, which can be useful for
588
-
testing a release, is to first run `npm pack` on the driver. This generates a tarball containing all the code
589
-
that would be uploaded to `npm`if it were released. Then, set the environment variable `REPLACE_PACKAGE`
590
-
with the full path to the file.
591
-
592
-
Once the environment variable is set, run replace package in`mongosh` with:
593
-
```sh
594
-
npm run replace:package
595
-
```
596
-
597
-
##### Run specific package tests
598
-
599
-
`mongosh`'s readme documents how to run its tests. Most likely, it isn't necessary to run all of mongosh's
600
-
tests. The `mongosh` readme also documents how to run tests for a particular scope. The scopes are
601
-
listed in the `generate_mongosh_tasks.js` evergreen generation script.
602
-
603
-
For example, to run the `service-provider-server` package, run the following command in `mongosh`:
604
-
605
-
```shell
606
-
lerna run test --scope @mongosh/service-provider-server
607
-
```
608
-
609
598
#### KMIP FLE support tests
610
599
611
600
1. Install `virtualenv`:
@@ -646,6 +635,28 @@ lerna run test --scope @mongosh/service-provider-server
0 commit comments