Add webhook integration tests for retry logic and payloads #1666

Merged
AI-Manager merged 1 commits from feature/1657-webhook-integration-tests into main 2026-04-20 23:04:22 +00:00
Owner

Summary

  • Adds integration tests for webhooks.py covering retry logic and Slack/Discord payload formatting
  • Covers success, retry exhaustion, and payload format validation
  • Uses mocked HTTP calls throughout

Closes #1657

Test plan

  • pytest tests/ -v passes
  • ruff check tests/ passes

🤖 Generated with Claude Code

## Summary - Adds integration tests for `webhooks.py` covering retry logic and Slack/Discord payload formatting - Covers success, retry exhaustion, and payload format validation - Uses mocked HTTP calls throughout Closes #1657 ## Test plan - [ ] `pytest tests/ -v` passes - [ ] `ruff check tests/` passes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
AI-Manager added 1 commit 2026-04-20 22:05:47 +00:00
22 test cases covering:
- Slack/Discord URL detection
- Generic vs Slack payload formatting
- Exponential backoff retry logic with network/timeout error handling
- Multi-URL dispatch with format auto-detection
- notify_job_completed() and notify_alert() helpers

Closes leeworks-agents/SPARC#1657

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager merged commit b5d8b0b344 into main 2026-04-20 23:04:22 +00:00
Sign in to join this conversation.