Commit e84b8ba
committed
Allow test server to be provided externally
This adds support for an optional `DANDI_TESTS_API_URL` environment variable,
which if set, will cause the integration test suite to connect to that external
server and not boot up a Docker Compose stack. If `DANDI_TESTS_API_URL` is set,
then `DANDI_TESTS_DJANGO_API_KEY` must also be set.
This makes it possible to run the CLI integration tests more without having to
build a Docker image of the API server, allowing simpler validation of any
existing running server against the CLI.1 parent 0fe03cf commit e84b8ba
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
376 | 390 | | |
377 | 391 | | |
378 | 392 | | |
| |||
0 commit comments