PYTHON-4526 DRIVERS_TOOLS needs to be set for encryption tests (#1723)
This commit is contained in:
parent
e4ba8ce6a3
commit
b2f0a52003
@ -216,6 +216,9 @@ the pages will re-render and the browser will automatically refresh.
|
||||
`TEST_LOADBALANCER=1 tox -m test-eg`.
|
||||
|
||||
## Running Encryption Tests Locally
|
||||
- Clone `drivers-evergreen-tools`:
|
||||
`git clone git@github.com:mongodb-labs/drivers-evergreen-tools.git`.
|
||||
- Run `export DRIVERS_TOOLS=$PWD/drivers-evergreen-tools`
|
||||
- Run `AWS_PROFILE=<profile> tox -m setup-encryption` after setting up your AWS profile with `aws configure sso`.
|
||||
- Run the tests with `TEST_ENCRYPTION=1 tox -e test-eg`.
|
||||
- When done, run `tox -m teardown-encryption` to clean up.
|
||||
|
||||
4
tox.ini
4
tox.ini
@ -197,7 +197,7 @@ allowlist_externals =
|
||||
bash
|
||||
commands =
|
||||
bash .evergreen/setup-libmongocrypt.sh
|
||||
bash {env:DRIVERS_TOOLS}/.evergreen/csfle/setup-secrets.sh
|
||||
bash {env:DRIVERS_TOOLS:DRIVERS_TOOLS_var_undefined}/.evergreen/csfle/setup-secrets.sh
|
||||
bash {env:DRIVERS_TOOLS}/.evergreen/csfle/start-servers.sh
|
||||
|
||||
[testenv:teardown-encryption]
|
||||
@ -208,5 +208,5 @@ allowlist_externals =
|
||||
bash
|
||||
rm
|
||||
commands =
|
||||
bash {env:DRIVERS_TOOLS}/.evergreen/csfle/stop-servers.sh
|
||||
bash {env:DRIVERS_TOOLS:DRIVERS_TOOLS_var_undefined}/.evergreen/csfle/stop-servers.sh
|
||||
rm -rf libmongocrypt/ libmongocrypt_git/ libmongocrypt.tar.gz mongocryptd.pid
|
||||
|
||||
Loading…
Reference in New Issue
Block a user