Documentation
¶
Overview ¶
Command mockjev serves deterministic TypeSafe System One upstreams for the release E2E curl matrix, one per path prefix, so a single process backs several jev providers:
/jev hosted-API shape: requires "Authorization: Bearer $MOCK_JEV_KEY";
lists jev-latest and jev-preview by "name"; accepts any versioned
ID (jev-1.13.0); answers jev-latest as jev-1.13.0; has no Kev
diagnostic routes (404, like the hosted API).
/kev Kev-server shape: no authentication; lists checkpoint kev-latest
by "id" with alias kev-4b; serves /v1/systemone/permute and
/v1/systemone/separate.
/down lists kev-down but answers every System One route with 529, the
status TypeSafe uses for overload, so failover can be exercised.
Each answer carries a "mock" object echoing what reached the upstream (the model, state, questions, extra top-level fields, whether an Authorization header arrived, the X-Request-Id, and a per-upstream request sequence), so scenarios can assert what the gateway forwarded and whether a cached answer was replayed. Malformed questions get a FastAPI-style 422, as the hosted API returns.
PORT selects the listen port (default 18091). GET /healthz reports liveness.
Click to show internal directories.
Click to hide internal directories.