Documentation
¶
Overview ¶
Command mock-onec runs mock-1c, the stand's stand-in for the 1C HTTP service.
Settings from the environment: MOCK_DB_URL (required; the mock writes only to its schema mock_onec), MOCK_LISTEN (default 127.0.0.1:8081), and the fault knobs MOCK_FAIL_AFTER_COMMIT_RATE (0 to 1), MOCK_LATENCY_MS, MOCK_REJECT_REF_PREFIX, and MOCK_FAIL_CANCEL=1 (every cancel of an order answers 500).
"mock-onec healthcheck" calls /healthz on the local port and exits 0 or 1 (the container image has no curl).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package server is mock-1c: a small HTTP service that behaves like the HTTP service of a 1C installation for sales orders, for the test stand.
|
Package server is mock-1c: a small HTTP service that behaves like the HTTP service of a 1C installation for sales orders, for the test stand. |