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
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -46,8 +46,13 @@ If you have a question about Mongoose (not a bug report) please post it to eithe
46
46
* execute `npm run test-tsd` to run the typescript tests
47
47
* execute `npm run ts-benchmark` to run the typescript benchmark "performance test" for a single time.
48
48
* execute `npm run ts-benchmark-watch` to run the typescript benchmark "performance test" while watching changes on types folder. Note: Make sure to commit all changes before executing this command.
49
-
* in order to run tests that require an cluster with encryption locally, run `npm run test-encryption`. Alternatively, you can start an encrypted cluster using the `scripts/configure-cluster-with-encryption.sh` file.
50
-
* These scripts can take a few minutes to run. If a encryption script is exited prematurely, restart the shell and delete the `data/` directory to ensure clean-up.
49
+
* in order to run tests that require an cluster with encryption locally, run `npm run test-encryption`/ Alternatively, you can start an encrypted cluster using the `scripts/configure-cluster-with-encryption.sh` file.
50
+
* These scripts can take a few minutes to run.
51
+
* To change an encryption configuration, it is recommended to follow these steps:
52
+
* Edit the variables in `scripts/configure-cluster-with-encryption.sh` with your desired configuration.
Copy file name to clipboardexpand all lines: scripts/configure-cluster-with-encryption.sh
+47-36
Original file line number
Diff line number
Diff line change
@@ -5,39 +5,50 @@
5
5
# this script downloads all tools required to use FLE with mongodb, then starts a cluster of the provided configuration (sharded on 8.0 server)
6
6
7
7
export CWD=$(pwd);
8
-
mkdir data
9
-
cd data
10
-
11
-
# install encryption dependency
12
-
npm install mongodb-client-encryption > /dev/null
13
-
14
-
# note:
15
-
# we're using drivers-evergreen-tools which is a repo used by MongoDB drivers to start clusters for testing.
16
-
# if you'd like to make changes to the cluster settings, edit the exported variables below.
17
-
# for configuration options for the exported variables, see here: https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/run-orchestration.sh
18
-
# after this script is run, the data/ folder will notably contain the following:
19
-
# 'mo-expansion.yml' file which contains for your cluster URI and crypt shared library path
20
-
# 'drivers-evergreen-tools/mongodb/bin' which contain executables for other mongodb libraries such as mongocryptd, mongosh, and mongod
# set up mongodb cluster and encryption configuration if the data/ folder does not exist
13
+
if [ !-d"data" ];then
14
+
15
+
mkdir data
16
+
cd data
17
+
18
+
# note:
19
+
# we're using drivers-evergreen-tools which is a repo used by MongoDB drivers to start clusters for testing.
20
+
# if you'd like to make changes to the cluster settings, edit the exported variables below.
21
+
# for configuration options for the exported variables, see here: https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/run-orchestration.sh
22
+
# after this script is run, the data/ folder will notably contain the following:
23
+
# 'mo-expansion.yml' file which contains for your cluster URI and crypt shared library path
24
+
# 'drivers-evergreen-tools/mongodb/bin' which contain executables for other mongodb libraries such as mongocryptd, mongosh, and mongod
0 commit comments