Anso
|
93ae147ec1
|
test: expand backend test coverage for stability gaps (#329)
Add 5 new test files (116 test cases) targeting previously untested
service-layer logic:
- database-metrics: metrics CRUD, minute-bucket aggregation, cleanup
retention, notification auto-cap at 100, stack alerts CRUD, and
stress tests with 1000+ metrics
- monitor-service: CPU/memory/network calculation helpers, all 6
alert condition operators, breach state machine lifecycle, global
crash detection, host limit thresholds, cleanup delegation, and
isProcessing concurrency guard
- docker-controller: validateApiData error detection, state-safe
start/stop (304 handling), batch container removal with partial
failures, disk usage calculation, resource classification
(managed/unmanaged/system), orphan detection, and daemon
unreachable error propagation
- scheduler-service: cron parsing, license tier gating, concurrent
task prevention via runningTasks Set, manual trigger, all 4 task
types (restart/snapshot/prune/update), wildcard targets, error
recording, recovery notifications, and cleanup
- compose-service: subprocess spawn/exit handling, WebSocket output,
deploy with health probe and atomic rollback, registry auth temp
dir lifecycle, and downStack teardown
|
2026-04-01 22:43:35 -04:00 |
|