Acceptance Criteria:\n- Local provider chat succeeds and records usage\n- Cloud tool-call scenario exercises web.search and usage tracking\n- Unauthorized and rate-limited cloud responses surface errors without recording usage\n\nTest Notes:\n- CARGO_NET_OFFLINE=true cargo test -p owlen-core --tests ollama_wiremock
665 B
665 B
Integration Fixtures
This directory holds canned Ollama responses used by the Wiremock-backed
integration tests in ollama_wiremock.rs. Each file mirrors the JSON payloads
served by the real Ollama HTTP API so the tests can stub
/api/tags, /api/chat, and /v1/web/search without contacting the network.
ollama_tags.json– minimal model listing shared by the local and cloud scenarios.ollama_local_completion.json– non-streaming completion for the local provider.ollama_cloud_tool_call.json– first chat turn that requests theweb_searchtool.ollama_cloud_final.json– follow-up completion after the tool result is injected.