fix(api): synchronize hydraulic playback binary contract
Generic Container CI/CD / test-build-publish (push) Failing after 2m11s
Server CI/CD v2 / build-test-publish-and-deploy (push) Failing after 2m11s

This commit is contained in:
2026-11-15 23:43:13 +08:00
parent f5f972bbec
commit cac43ad734
4 changed files with 254 additions and 3 deletions
@@ -77,3 +77,10 @@ def test_cache_separates_projects_and_database_routes(monkeypatch):
asyncio.run(run())
assert calls == ["one", "two", "one"]
playback._cache.clear()
def test_contract_advertises_binary_packets_instead_of_json():
schema = build_test_app(playback.router, "/api/v1").openapi()
for suffix in ("geometry", "frames"):
content = schema["paths"][f"/api/v1/timeseries/realtime/playback/{suffix}"]["get"]["responses"]["200"]["content"]
assert content == {"application/octet-stream": {"schema": {"type": "string", "format": "binary"}}}