Skip to content

Commit 1098636

Browse files
change all occurences of encrypted-cluster to data
1 parent 08f4c23 commit 1098636

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
'!.*',
1616
'node_modules',
1717
'.git',
18-
'encrypted-cluster'
18+
'data'
1919
],
2020
overrides: [
2121
{

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ examples/ecommerce-netlify-functions/.netlify/state.json
6868
notes.md
6969
list.out
7070

71-
encrypted-cluster
71+
data
7272
*.pid

scripts/configure-cluster-with-encryption.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@
55
# this script downloads all tools required to use FLE with mongodb, then starts a cluster of the provided configuration (sharded on 8.0 server)
66

77
export CWD=$(pwd);
8-
mkdir encrypted-cluster
9-
cd encrypted-cluster
8+
mkdir data
9+
cd data
1010

1111
# note:
1212
# we're using drivers-evergreen-tools which is a repo used by MongoDB drivers to start clusters for testing.
1313
# if you'd like to make changes to the cluster settings, edit the exported variables below.
1414
# for configuration options for the exported variables, see here: https://github.com/mongodb-labs/drivers-evergreen-tools/blob/master/.evergreen/run-orchestration.sh
15-
# after this script is run, the encrypted-cluster/ folder will notably contain the following:
15+
# after this script is run, the data/ folder will notably contain the following:
1616
# 'mo-expansion.yml' file which contains for your cluster URI and crypt shared library path
1717
# 'drivers-evergreen-tools/mongodb/bin' which contain executables for other mongodb libraries such as mongocryptd, mongosh, and mongod
1818
if [ ! -d "drivers-evergreen-tools/" ]; then
1919
git clone --depth=1 "https://github.com/mongodb-labs/drivers-evergreen-tools.git"
2020
fi
2121

2222
# configure cluster settings
23-
export DRIVERS_TOOLS=$CWD/encrypted-cluster/drivers-evergreen-tools
23+
export DRIVERS_TOOLS=$CWD/data/drivers-evergreen-tools
2424
export MONGODB_VERSION=8.0
2525
export AUTH=true
2626
export MONGODB_BINARIES=$DRIVERS_TOOLS/mongodb/bin

scripts/run-encryption-tests-local.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
export CWD=$(pwd);
66

7-
# set up mongodb cluster and encryption configuration if the encrypted-cluster folder does not exist
8-
# note: for tooling, cluster set-up and configuration look into the 'scripts/start-cluster-with-encryption.sh' script
9-
if [ -d "encrypted-cluster" ]; then
10-
cd encrypted-cluster
7+
# set up mongodb cluster and encryption configuration if the data/ folder does not exist
8+
# note: for tooling, cluster set-up and configuration look into the 'scripts/configure-cluster-with-encryption.sh' script
9+
10+
if [ -d "data" ]; then
11+
cd data
1112
else
12-
source $CWD/scripts/start-cluster-with-encryption.sh
13+
source $CWD/scripts/configure-cluster-with-encryption.sh
1314
fi
1415

1516
# extracts MONGOOSE_TEST_URI and CRYPT_SHARED_LIB_PATH from .yml file into environment variables for this test run

0 commit comments

Comments
 (0)