test(biz): drive every RPC method over MCP through hero_router #56
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_biz!56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds an out-of-process integration test that spawns the real hero_biz_server and hero_router and drives all 62 business and projects RPC methods as MCP tool calls over the router (no in-process calls). This is the Step 1 gate from lhumina_code/home#309. The test requires HERO_ROUTER_BIN to point at a hero_router built from the new serving contract and skips cleanly when unset.
Add hero_biz_tests/tests/mcp_router.rs: an out-of-process integration test that spawns the real hero_biz_server and the real hero_router, then drives all 62 business + projects RPC methods as MCP tools/call requests over TCP (test -> hero_router -> /api/{domain}/rpc). No in-process calls. This is the Step-1 gate from lhumina_code/home#309: a migrated service must be reachable end-to-end over the router, with every method covered. The test asserts tools/list advertises all 62 methods and exercises each via tools/call against a connected data graph (CRUD plus the custom finders and per-domain ping), then deletes and verifies removal. Requires HERO_ROUTER_BIN to point at a hero_router built from the new serving contract (POST /api/{domain}/rpc, GET /heroservice.json). It skips cleanly when unset so a bare `cargo test` stays green. Signed-by: mik-tf <mik-tf@noreply.invalid>