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
- Run `export DRIVERS_TOOLS=$PWD/drivers-evergreen-tools`. This can be put into a `.bashrc` file
213
215
for convenience.
216
+
- Set up access to [Drivers test secrets](https://github.com/mongodb-labs/drivers-evergreen-tools/tree/master/.evergreen/secrets_handling#secrets-handling).
217
+
218
+
### Usage
219
+
214
220
- Run `just run-server` with optional args to set up the server.
215
221
- Run `just setup-tests` with optional args to set up the test environment, secrets, etc.
216
222
- Run `just run-tests` to run the tests in an appropriate Python environment.
217
223
- When done, run `just teardown-tests` to clean up and `just stop-server` to stop the server.
218
224
219
-
## Running Load Balancer Tests Locally
225
+
## Encryption tests
220
226
221
-
- Set up `DRIVERS_TOOLS` (see above).
222
-
- Install `haproxy` (available as `brew install haproxy` on macOS).
223
-
- Start the servers with `just run-server load-balancer`.
224
-
- Set up the test with `just setup-tests load-balancer`.
225
-
- Run the tests with `just run-tests`.
227
+
- Run `just run-server` to start the server.
228
+
- Run `just setup-tests encryption`.
229
+
- Run the tests with `just run-tests`.
226
230
227
-
## Running Encryption Tests Locally
228
-
- Set up `DRIVERS_TOOLS` (see above).
229
-
- Run `just setup-tests` to set up the server.
230
-
- Run `AWS_PROFILE=<profile> just setup-tests encryption` after setting up your AWS profile with `aws configure sso`.
231
+
### Load balancer tests
232
+
233
+
- Install `haproxy` (available as `brew install haproxy` on macOS).
234
+
- Start the server with `just run-server load_balancer`.
235
+
- Set up the test with `just setup-tests load_balancer`.
231
236
- Run the tests with `just run-tests`.
232
237
238
+
## AWS tests
239
+
240
+
- Run `just run-server auth_aws` to start the server.
241
+
- Run `just setup-tests auth_aws <aws-test-type>` to set up the AWS test.
242
+
- Run the tests with `just run-tests`.
243
+
244
+
## KMS tests
245
+
246
+
For KMS tests that are run locally, and expected to fail, in this case using `azure`:
247
+
248
+
- Run `just run-server`.
249
+
- Run `just setup-tests kms azure-fail`.
250
+
- Run `just run-tests`.
251
+
252
+
For KMS tests that run remotely and are expected to pass, in this case using `gcp`:
253
+
254
+
- Run `just setup-tests kms gcp`.
255
+
- Run `just run-tests`.
256
+
233
257
## Enable Debug Logs
234
258
- Use `-o log_cli_level="DEBUG" -o log_cli=1` with `just test` or `pytest`.
235
259
- Add `log_cli_level = "DEBUG` and `log_cli = 1` to the `tool.pytest.ini_options` section in `pyproject.toml` for Evergreen patches or to enable debug logs by default on your machine.
0 commit comments