Context
CashPilot supports multi-node fleet management via WebSocket federation. A child instance connects to a master and sends heartbeats with container state.
Task
- Write a test that creates a master and child instance (using FastAPI TestClient)
- Verify the child can connect via WebSocket
- Verify heartbeat data is received by the master
- Verify the master's fleet dashboard endpoint includes the child's data
Reference
app/main.py — WebSocket endpoints, fleet dashboard API
app/database.py — nodes table