chore(tester): drop HX_TEST_HOST alias

HOST is the only accepted test-service address from env, local.yaml, or catalog vars.
This commit is contained in:
2026-10-15 09:44:23 +08:00
parent 5fef8247fc
commit 0c9a530390
4 changed files with 3 additions and 8 deletions
-5
View File
@@ -308,17 +308,12 @@ def resolve_vars(root: Path, meta: dict[str, Any]) -> dict[str, str]:
for key, value in os.environ.items():
if key in merged or key in auth_keys or key.startswith("AUTHORIZE_") or key in {
"HOST",
"HX_TEST_HOST",
"WEB_BASE",
"API_BASE",
"WS_URL",
"STATUS_BASE",
}:
merged[key] = value
if not merged.get("HOST") and merged.get("HX_TEST_HOST"):
merged["HOST"] = merged["HX_TEST_HOST"]
if os.environ.get("HX_TEST_HOST") and not os.environ.get("HOST"):
merged["HOST"] = os.environ["HX_TEST_HOST"]
for _ in range(10):
changed = False
for key, value in list(merged.items()):