PYTHON-4526 DRIVERS_TOOLS needs to be set for encryption tests (#1723)

This commit is contained in:
Shane Harvey 2024-07-08 11:53:03 -04:00 committed by GitHub
parent e4ba8ce6a3
commit b2f0a52003
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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