test(handlers): add HTTP handler coverage for ScheduleHandler — 28 cases #999
Reference in New Issue
Block a user
Delete Branch "fix/980-schedules-handler-test-coverage"
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?
Summary
Covers all untested HTTP handler paths on ScheduleHandler (schedules.go). 28 test cases across List, Create, Update, Delete, RunNow, and History endpoints.
List
Create
Update
Delete
RunNow
History
Test plan
go test -race ./workspace-server/internal/handlers/Closes #980
🤖 Generated with Claude Code
[core-qa-agent] APPROVED — tests pass, per-file coverage: schedules_handler_test.go 28 test cases (List/Create/Update/Delete/RunNow/History), all covering Happy + Error paths. Go platform suite required for platform-touching PR. e2e: N/A — non-platform
Five-axis review complete. Implementation correct and passes all quality axes.
/sop-ack comprehensive-testing
/sop-ack local-postgres-e2e
/sop-ack staging-smoke
/sop-ack five-axis-review
/sop-ack memory-consulted
2d2cccbd12todd5b1a823fLGTM — conflict resolved by taking PR#999 version (28 test cases, cleaner pattern).