refactor: rename zot_rpc_smoke → zot_rpc_driver (consistent positive framing)
This commit is contained in:
parent
743e349a13
commit
bce7bc3813
4 changed files with 5 additions and 7 deletions
|
|
@ -10,9 +10,7 @@
|
|||
//! which is the deterministic no-key outcome — we assert on the driver wiring,
|
||||
//! not on a successful completion).
|
||||
//!
|
||||
//! Ignored by default — needs a built zot binary. Run with:
|
||||
//! ZOT_BIN=/path/to/zot cargo test -p colibri-daemon --test zot_rpc_smoke \
|
||||
//! -- --ignored --nocapture
|
||||
//! Self-skipping when zot is not in PATH. Set ZOT_BIN to override.
|
||||
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -24,7 +22,7 @@ use tokio::io::{AsyncBufReadExt, BufReader};
|
|||
use tokio::time::timeout;
|
||||
|
||||
#[tokio::test]
|
||||
async fn zot_rpc_driver_delivers_prompt_and_streams_events() {
|
||||
async fn zot_rpc_roundtrip() {
|
||||
let zot_bin = std::env::var("ZOT_BIN").ok().or_else(|| {
|
||||
// Fallback: search PATH for a zot binary.
|
||||
std::env::var("PATH").ok().and_then(|path| {
|
||||
|
|
@ -39,7 +39,7 @@ Where it lives:
|
|||
`crates/colibri-daemon/src/socket.rs` (`default_agent_args`,
|
||||
`autospawn_agent_if_configured`)
|
||||
- wire format (verified against real zot): [agent-events-reference](./agent-events-reference.md)
|
||||
- end-to-end proof, zot: `crates/colibri-daemon/tests/zot_rpc_smoke.rs`
|
||||
- end-to-end proof, zot: `crates/colibri-daemon/tests/zot_rpc_driver.rs`
|
||||
(`#[ignore]`, `ZOT_BIN`-gated — needs the real zot binary)
|
||||
- end-to-end proof, pi: `crates/colibri-daemon/tests/pi_spawn_live.rs`
|
||||
(unignored, runs in every `cargo test` — uses `sample-pi-agent.py` which
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ Ta polja so se pojavila v resničnem izhodu zot in so potrjena kot prisotna:
|
|||
| `tool_name` | oba | Ime orodja, ki ga je agent poklical |
|
||||
|
||||
→ `crates/colibri-glasspane/src/lib.rs` (`zot_event_type`, `PiJsonlIngestor`)
|
||||
→ `crates/colibri-daemon/tests/zot_rpc_smoke.rs`
|
||||
→ `crates/colibri-daemon/tests/zot_rpc_driver.rs`
|
||||
|
||||
## Glej tudi
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ Kje živi:
|
|||
- argv samodejnega zagona, ki se zaveda binarne datoteke (`zot → rpc`, pi → `--mode json`):
|
||||
`crates/colibri-daemon/src/socket.rs` (`default_agent_args`, `autospawn_agent_if_configured`)
|
||||
- žični format (preverjen proti pravemu zot): [agent-events-reference](./agent-events-reference.md)
|
||||
- dokaz od konca do konca, zot: `crates/colibri-daemon/tests/zot_rpc_smoke.rs`
|
||||
- dokaz od konca do konca, zot: `crates/colibri-daemon/tests/zot_rpc_driver.rs`
|
||||
(`#[ignore]`, `ZOT_BIN`-pogojen — potrebuje pravo binarno datoteko zot)
|
||||
- dokaz od konca do konca, pi: `crates/colibri-daemon/tests/pi_spawn_live.rs`
|
||||
(ne-ignoriran, teče v vsakem `cargo test` — uporablja `sample-pi-agent.py`, ki
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue