Files
Charon/docs/issues/slack-manual-testing.md
akanealw eec8c28fb3
Some checks failed
Go Benchmark / Performance Regression Check (push) Has been cancelled
Cerberus Integration / Cerberus Security Stack Integration (push) Has been cancelled
Upload Coverage to Codecov / Backend Codecov Upload (push) Has been cancelled
Upload Coverage to Codecov / Frontend Codecov Upload (push) Has been cancelled
CodeQL - Analyze / CodeQL analysis (go) (push) Has been cancelled
CodeQL - Analyze / CodeQL analysis (javascript-typescript) (push) Has been cancelled
CrowdSec Integration / CrowdSec Bouncer Integration (push) Has been cancelled
Docker Build, Publish & Test / build-and-push (push) Has been cancelled
Quality Checks / Auth Route Protection Contract (push) Has been cancelled
Quality Checks / Codecov Trigger/Comment Parity Guard (push) Has been cancelled
Quality Checks / Backend (Go) (push) Has been cancelled
Quality Checks / Frontend (React) (push) Has been cancelled
Rate Limit integration / Rate Limiting Integration (push) Has been cancelled
Security Scan (PR) / Trivy Binary Scan (push) Has been cancelled
Supply Chain Verification (PR) / Verify Supply Chain (push) Has been cancelled
WAF integration / Coraza WAF Integration (push) Has been cancelled
Docker Build, Publish & Test / Security Scan PR Image (push) Has been cancelled
Repo Health Check / Repo health (push) Has been cancelled
History Rewrite Dry-Run / Dry-run preview for history rewrite (push) Has been cancelled
Prune Renovate Branches / prune (push) Has been cancelled
Renovate / renovate (push) Has been cancelled
Nightly Build & Package / sync-development-to-nightly (push) Has been cancelled
Nightly Build & Package / Trigger Nightly Validation Workflows (push) Has been cancelled
Nightly Build & Package / build-and-push-nightly (push) Has been cancelled
Nightly Build & Package / test-nightly-image (push) Has been cancelled
Nightly Build & Package / verify-nightly-supply-chain (push) Has been cancelled
changed perms
2026-04-22 18:19:14 +00:00

77 lines
3.0 KiB
Markdown
Executable File

---
title: "Manual Testing: Slack Notification Provider"
labels:
- testing
- feature
- frontend
- backend
priority: medium
milestone: "v0.2.0-beta.2"
assignees: []
---
# Manual Testing: Slack Notification Provider
## Description
Manual test plan for the Slack notification provider feature. Covers scenarios that automated E2E tests cannot fully validate, such as real Slack workspace delivery, message formatting, and edge cases around webhook lifecycle.
## Pre-requisites
- A Slack workspace with at least one channel
- An Incoming Webhook URL created via Slack App configuration (https://api.slack.com/messaging/webhooks)
- Access to the Charon instance
## Test Cases
### Provider CRUD
- [ ] **Create**: Add a Slack provider with a valid webhook URL and optional channel name (`#alerts`)
- [ ] **Edit**: Change the channel display name — verify webhook URL is preserved (not cleared)
- [ ] **Test**: Click "Send Test Notification" — verify message appears in Slack channel
- [ ] **Delete**: Remove the Slack provider — verify it no longer appears in the list
- [ ] **Re-create**: Add a new Slack provider after deletion — verify clean state
### Security
- [ ] Webhook URL is NOT visible in the provider list UI (only `has_token: true` indicator)
- [ ] Webhook URL is NOT returned in GET `/api/v1/notifications/providers` response body
- [ ] Editing an existing provider does NOT expose the webhook URL in any form field
- [ ] Browser DevTools Network tab shows no webhook URL in any API response
### Message Delivery
- [ ] Default template sends a readable notification to Slack
- [ ] Custom JSON template with `text` field renders correctly
- [ ] Custom JSON template with `blocks` renders Block Kit layout
- [ ] Notifications triggered by proxy host changes arrive in Slack
- [ ] Notifications triggered by certificate events arrive in Slack
- [ ] Notifications triggered by uptime events arrive in Slack (if enabled)
### Error Handling
- [ ] Invalid webhook URL (not matching `hooks.slack.com/services/` pattern) shows validation error
- [ ] Expired/revoked webhook URL returns `no_service` classification error
- [ ] Disabled feature flag (`feature.notifications.service.slack.enabled=false`) prevents Slack dispatch
### Edge Cases
- [ ] Creating provider with empty URL field succeeds (URL is optional channel display name)
- [ ] Very long channel name in URL field is handled gracefully
- [ ] Multiple Slack providers with different webhooks can coexist
- [ ] Switching provider type from Slack to Discord clears the token field appropriately
- [ ] Switching provider type from Discord to Slack shows the webhook URL input field
### Cross-Browser
- [ ] Provider CRUD works in Chrome/Chromium
- [ ] Provider CRUD works in Firefox
- [ ] Provider CRUD works in Safari/WebKit
## Acceptance Criteria
- [ ] All security test cases pass — webhook URL never exposed
- [ ] End-to-end message delivery confirmed in a real Slack workspace
- [ ] No console errors during any provider operations
- [ ] Feature flag correctly gates Slack functionality