test: add Phase 1 integration tests for basic proxy
Some checks failed
CI / Build SRPM (push) Has been cancelled
CI / Publish to COPR (push) Has been cancelled
CI / Format, lint, build, test (push) Has been cancelled

6 tests proving the scaffold works end-to-end:
- chat completion proxied through gateway to mock backend
- /health endpoint with healthy node
- /v1/models returns seeded model list
- 404 for unknown model
- 404 when no healthy nodes available
- 400 when request body missing model field

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-14 19:26:12 +03:00
parent 3ad8c72276
commit 1b339b1426
4 changed files with 479 additions and 13 deletions

View File

@@ -23,3 +23,6 @@ futures.workspace = true
tokio-stream.workspace = true
eventsource-stream.workspace = true
bytes = "1"
[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }