Files
leleka/control-plane/tests
Pavlo Ratushnyi 08afbf2160 STRA-338 S23: golden captures of the gateway answers for scripted model output, both families
Adds a test that drives the real create handler with 66 scripted token sequences (33 Qwen3.5, 33 gpt-oss/Harmony) as a
stream and as a buffered answer, and compares the bytes a client would read (status, content type, SSE frames, JSON
body, with ids and timestamps normalised) with tests/fixtures/golden/output_events.json. The cases cover plain text,
tool calls, reasoning, structured output, unclosed reasoning, length cuts, invalid and unknown calls, calls without
declared tools and worker failures. The captures were recorded on cbc1a9587 and are the identity proof of the S23
steps; the test also checks that two runs give the same captures. Synthetic scripts only, nothing from a real session.
2026-11-06 20:42:23 +01:00
..