Initial commit: Agentic OS troubleshooting platform
Self-hosted, Docker-based agentic troubleshooting platform: FastAPI backend + LangGraph agent, Next.js UI, tiered LLM routing (local Ollama -> Gemini -> DeepSeek -> OpenRouter), MCP server manager, encrypted device credentials, RBAC, audit log, project-memory + Obsidian integrations, and editable troubleshooting decision rules tuned for the GeneseasX vessel stack. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
18
backend/tests/test_tool_events.py
Normal file
18
backend/tests/test_tool_events.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from app.agent.tool_events import sanitize_tool_args, tool_event_payload
|
||||
|
||||
|
||||
def test_sanitize_secrets():
|
||||
safe = sanitize_tool_args({"command": "uptime", "password": "secret123"})
|
||||
assert safe["command"] == "uptime"
|
||||
assert safe["password"] == "••••"
|
||||
|
||||
|
||||
def test_tool_event_includes_command():
|
||||
p = tool_event_payload(
|
||||
device="docker_vm",
|
||||
tool="ssh_run",
|
||||
args={"command": "docker ps"},
|
||||
status="running",
|
||||
)
|
||||
assert p["command"] == "docker ps"
|
||||
assert p["device"] == "docker_vm"
|
||||
Reference in New Issue
Block a user