41 lines
2.5 KiB
Markdown
41 lines
2.5 KiB
Markdown
# Notification Channel Management CLI Commands
|
|
|
|
## Module
|
|
Cli
|
|
|
|
## Status
|
|
VERIFIED
|
|
|
|
## Description
|
|
CLI commands for notification channel management including `stella notify channels list/test`, `stella notify templates list/render`, and `stella notify preferences export/import` for managing notification channels, testing connectivity, previewing templates, and bulk-configuring user notification preferences.
|
|
|
|
## Implementation Details
|
|
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/NotifyCommandGroup.cs` -- `NotifyCommandGroup`
|
|
- **Notify Client**: `src/Cli/StellaOps.Cli/Services/NotifyClient.cs` / `INotifyClient.cs` -- notification API client
|
|
- **Route consolidation**: Commands consolidated under `stella config notify` via cli-routes.json
|
|
- **Commands**:
|
|
- `stella config notify channels list` -- list configured notification channels
|
|
- `stella config notify channels test <channel>` -- test channel connectivity
|
|
- `stella config notify templates list` -- list notification templates
|
|
- `stella config notify templates render <template> --event <type>` -- preview rendered template
|
|
- `stella config notify preferences export --output <path>` -- export user notification preferences
|
|
- `stella config notify preferences import --file <path>` -- import notification preferences
|
|
|
|
## E2E Test Plan
|
|
- [ ] Run `stella config notify channels list` and verify channels displayed (slack, email, webhook, etc.)
|
|
- [ ] Run `stella config notify channels test slack` and verify connectivity test result
|
|
- [ ] Run `stella config notify templates list` and verify templates listed
|
|
- [ ] Run `stella config notify templates render gate-failure --event "gate.failed"` and verify rendered output
|
|
- [ ] Run `stella config notify preferences export --output ./prefs.json` and verify export
|
|
- [ ] Run `stella config notify preferences import --file ./prefs.json` and verify import
|
|
- [ ] Verify deprecated `stella notify channels list` shows deprecation warning
|
|
|
|
## Verification
|
|
|
|
- **Verified**: 2026-02-13T15:30:00Z
|
|
- **Tier 0 (Source)**: pass -- all referenced source files exist on disk
|
|
- **Tier 1 (Build)**: pass -- module builds cleanly, 412 tests pass in StellaOps.Cli.Commands.Tests
|
|
- **Tier 2d (Integration)**: pass -- targeted integration tests confirm behavioral correctness
|
|
- **Test Project**: `src/Cli/__Tests/StellaOps.Cli.Commands.Tests/StellaOps.Cli.Commands.Tests.csproj`
|
|
- **Evidence**: `docs/qa/feature-checks/runs/cli/notification-channel-management-cli-commands/run-001/tier2-integration-check.json`
|