mockjev

command
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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; GET /<prefix>/v1/_last returns the last System One request body and headers, for answers the gateway translates. Malformed questions get a FastAPI-style 422, as the hosted API returns.

PORT selects the listen port (default 18091). GET /healthz reports liveness.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL