Files
Nexus/deploy/run_test_api_on_server.sh
T
Your Name d519113734 fix: Gate3 health plain text, refresh empty body, prune underscore chunks
test_api: assert /health returns plain text ok instead of JSON parse.

auth: RefreshRequest.refresh_token optional so SPA POST {} is not 422.

prune: allow leading underscore in asset names to avoid deleting _plugin-vue_export-helper.

Add run_test_api_on_server.sh and deployment follow-up changelog.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 13:41:28 +08:00

7 lines
233 B
Bash

#!/bin/bash
# Run tests/test_api.py on the deploy host (reads NEXUS_TEST_* from .env).
set -euo pipefail
cd /www/wwwroot/api.synaglobal.vip
export NEXUS_TEST_BASE="${NEXUS_TEST_BASE:-http://127.0.0.1:8600}"
python3 tests/test_api.py