Files
hermes-agent/tests/hermes_cli
Alexander Whitestone d2ce6b8749
All checks were successful
Lint / lint (pull_request) Successful in 27s
test: verify action endpoints for restart-gateway and update-hermes
Add TestActionEndpoints class to test_web_server.py covering:
- POST /api/actions/restart-gateway sends SIGUSR1 to gateway PID
- 409 when gateway is not running
- 500 when os.kill raises a signal error
- POST /api/actions/update-hermes returns ok=true on zero exit
- ok=false on non-zero exit code with stderr in detail
- ok=false on timeout
- Both endpoints reject unauthenticated requests

All 7 new tests pass (83 total in the file).

Refs #961
2026-04-21 22:41:27 -04:00
..