Skip to main content

Module control

Module control 

Source
Expand description

The mock Suotar control surface: test-only routes that are not part of Suotar’s API.

A tick runs one iteration of one phase synchronously: the real loops are long-running tokio::time::intervals in their own Deployments, which a Playwright spec cannot wait out inside its 100 s timeout.

Reachable only when test_mode && test_suotar, so no token. Not exported to utoipa or bindings.ts; Playwright uses a hand-written client (system-tests/src/utils/suotarControl.ts).

Structs§

RegistrarTickResult
What run-registrar-tick returns: one entry per phase in the sequence, in the order they ran.
RunTickQuery

Enums§

PhaseTickResult
The outcome of dispatching one phase.

Functions§

_add_routes
known_phase_names 🔒
run_registrar_tick 🔒
POST /api/v0/mock-suotar/control/run-registrar-tick
run_tick 🔒
POST /api/v0/mock-suotar/control/run-tick?phase={phase}