mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 14:49:06 +00:00
Run e2e tests against deployed VPS
This commit is contained in:
18
README.md
18
README.md
@@ -71,6 +71,24 @@ Run pending migrations explicitly before starting or restarting the service:
|
||||
|
||||
If you use the deploy script or CI workflow in [`.gitea/deploy.sh`](/Users/bobbytables/ai/openbrain-mcp/.gitea/deploy.sh) and [`.gitea/workflows/ci-cd.yaml`](/Users/bobbytables/ai/openbrain-mcp/.gitea/workflows/ci-cd.yaml), they already run this for you.
|
||||
|
||||
### E2E Test Modes
|
||||
|
||||
The end-to-end test suite supports two modes:
|
||||
|
||||
- Local mode: default. Assumes the test process can manage schema setup against a local PostgreSQL instance and, for one auth-only test, spawn a local `openbrain-mcp` child process.
|
||||
- Remote mode: set `OPENBRAIN_E2E_REMOTE=true` and point `OPENBRAIN_E2E_BASE_URL` at a deployed server such as `http://76.13.116.52:3100` or `https://ob.ingwaz.work`. In this mode the suite does not try to create schema locally and skips the local process auth smoke test.
|
||||
|
||||
Recommended env for VPS-backed runs:
|
||||
|
||||
```bash
|
||||
OPENBRAIN_E2E_REMOTE=true
|
||||
OPENBRAIN_E2E_BASE_URL=https://ob.ingwaz.work
|
||||
OPENBRAIN_E2E_API_KEY=your_live_api_key
|
||||
OPENBRAIN__AUTH__ENABLED=true
|
||||
```
|
||||
|
||||
The CI workflow uses this remote mode after `main` deploys so e2e coverage validates the VPS deployment rather than the local runner host.
|
||||
|
||||
## Agent Zero Developer Prompt
|
||||
|
||||
For Agent Zero / A0, add the following section to the Developer agent role
|
||||
|
||||
Reference in New Issue
Block a user