25 lines
1.1 KiB
Bash
25 lines
1.1 KiB
Bash
# Intentionally empty config file for test-server startup.
|
|
#
|
|
# Used as `--config tests/common/empty.env` by the Playwright
|
|
# webServer scripts (`tests/e2e/start-server*.sh`). Two properties
|
|
# it gives us that a bare `cargo run` doesn't:
|
|
#
|
|
# 1. Loading an empty file overrides nothing, so every var
|
|
# Playwright places in the child process env (SERVER_PORT,
|
|
# STORAGE_PATH, RUST_LOG, OPAQUE_MODE, DPOP_MODE, whatever
|
|
# per-suite overrides land here) reaches the server intact.
|
|
#
|
|
# 2. Passing `--config <anything>` in main.rs takes the
|
|
# `Some(path)` branch and skips the fallback
|
|
# `dotenvy::dotenv()` probe of `$CWD/.env`. Without this a
|
|
# developer's local `.env` (typical:
|
|
# `OXICLOUD_METRICS_LISTEN=127.0.0.1:9090`) leaks into the
|
|
# test server via CWD auto-load and clashes with whatever
|
|
# the dev is already running.
|
|
#
|
|
# Hurl API tests use `tests/common/server.env` for --config
|
|
# instead — they source it in shell first, so file-wins doesn't
|
|
# matter there. Only Playwright needs the empty-file trick
|
|
# because it applies per-suite env overrides that would otherwise
|
|
# be clobbered by server.env's shared values.
|