Pulse/internal/alerts
rcourtman 9f174be20b test: Add CheckPBS tests (0%→98.3%)
Add comprehensive TestCheckPBSComprehensive with 12 test cases covering:
- Returns early when alerts disabled
- DisableAllPBS clears existing CPU/memory/offline alerts
- Override with Disabled clears alerts
- DisableAllPBSOffline clears offline alert
- CPU threshold checking when online
- Memory threshold checking when online
- Skips metrics when PBS is offline
- Override thresholds applied correctly
- Offline status creates alert after confirmations
- Connection health error triggers offline alert
- Connection health unhealthy triggers offline alert
- Clears offline alert when back online

Alerts package coverage: 80.0%→81.5%
2025-12-02 11:38:36 +00:00
..
alerts.go refactor: Extract filter evaluation functions to separate file 2025-12-01 11:28:43 +00:00
alerts_test.go test: Add CheckPBS tests (0%→98.3%) 2025-12-02 11:38:36 +00:00
clone_test.go Add unit tests for Alert clone and metadata utility functions (alerts) 2025-11-30 05:19:38 +00:00
concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
filter_evaluation.go refactor: Extract filter evaluation functions to separate file 2025-12-01 11:28:43 +00:00
filter_evaluation_test.go test: Add unit tests for filter_evaluation.go functions 2025-12-01 13:34:23 +00:00
history.go Fix critical alert system concurrency and memory leak issues 2025-11-07 09:12:28 +00:00
history_concurrency_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
offline_toggle_test.go feat: finalize swarm service monitoring (#598) 2025-10-26 09:35:49 +00:00
per_metric_delay_example_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
quiet_hours_test.go test: Add comprehensive tests for isInQuietHours function 2025-12-01 15:14:44 +00:00
threshold_update_test.go Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
time_threshold_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
utility_test.go test: Add comprehensive tests for HandleHostRemoved, ReevaluateGuestAlert 2025-12-01 16:36:48 +00:00