Pulse/internal/monitoring
rcourtman 0538e8f013 Add unit tests for diagnostic snapshot key generation functions
32 test cases covering makeNodeSnapshotKey and makeGuestSnapshotKey
utility functions used for diagnostic memory snapshot storage. Tests
cover simple inputs, edge cases (empty strings, negative VMIDs),
special characters, and key uniqueness verification. Also includes
struct field tests for NodeMemoryRaw and VMMemoryRaw.

First test file for diagnostic_snapshots.go. Coverage 36.7% → 36.8%.
2025-11-30 22:34:09 +00:00
..
backoff.go
backoff_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
backup_guard_test.go Guard PBS backups from failed polls 2025-11-05 19:26:20 +00:00
ceph.go
ceph_test.go ADA: Add unit tests for Ceph helper functions 2025-11-29 19:49:43 +00:00
circuit_breaker.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
circuit_breaker_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
container_disk_usage.go Skip inactive storages during content scans 2025-11-18 09:46:48 +00:00
container_disk_usage_test.go Add unit tests for container disk usage utility functions (monitoring) 2025-11-30 13:20:39 +00:00
diagnostic_snapshots.go
diagnostic_snapshots_test.go Add unit tests for diagnostic snapshot key generation functions 2025-11-30 22:34:09 +00:00
docker_commands.go
docker_commands_test.go chore: snapshot current changes 2025-11-02 22:47:55 +00:00
fake_executor_integration.go
fs_filters.go Filter read-only filesystems from host agent disk metrics (related to #690) 2025-11-12 09:47:02 +00:00
fs_filters_test.go
harness_integration.go
helpers_test.go refactor: use builtin max() and fix unused parameter 2025-11-27 10:08:37 +00:00
integration_integration_test.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
main_test.go Harden setup token flow and enforce encrypted persistence 2025-10-25 16:00:37 +00:00
metrics.go style: fix staticcheck style warnings 2025-11-27 09:19:33 +00:00
metrics_helpers_test.go Add unit tests for metrics.go helper functions 2025-11-29 16:44:37 +00:00
metrics_history.go
metrics_history_concurrency_test.go chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
metrics_history_test.go Add unit tests for MetricsHistory (internal/monitoring) 2025-11-30 21:34:07 +00:00
monitor.go Fix backup status indicator not showing for guests 2025-11-30 22:13:46 +00:00
monitor_container_test.go feat: surface LXC mountpoints in UI (related to #715) 2025-11-18 22:57:20 +00:00
monitor_docker_test.go Ensure agent ID collisions respect token boundaries (Related to #658) 2025-11-12 22:46:56 +00:00
monitor_health_test.go
monitor_host_agents_test.go Improve token collision handling and installer subnet support 2025-11-20 09:45:36 +00:00
monitor_memory_test.go Fix monitoring test panic and goroutine leaks 2025-11-11 23:52:24 +00:00
monitor_pmg_test.go Fix PMG API parameter issues causing 400 errors 2025-11-05 19:28:37 +00:00
monitor_polling.go refactor: remove unnecessary type conversions 2025-11-27 10:33:35 +00:00
monitor_polling_test.go Honor configured PVE polling interval in scheduler 2025-11-20 22:00:56 +00:00
monitor_proxy_test.go Improve temperature proxy detection 2025-11-18 14:25:09 +00:00
monitor_snapshots_test.go Skip inactive storages during content scans 2025-11-18 09:46:48 +00:00
monitor_storage_test.go Fix inflated RAM usage reporting for LXC containers 2025-11-06 00:16:18 +00:00
monitor_timeout_test.go monitoring: add poll watchdog to prevent worker leaks (refs #696) 2025-11-14 11:24:59 +00:00
poller.go chore: remove dead code and unused files 2025-11-27 00:05:04 +00:00
ratetracker.go
ratetracker_concurrency_test.go
ratetracker_test.go Add unit tests for RateTracker.CalculateRates (monitoring) 2025-11-30 07:07:18 +00:00
reload.go feat: make PVE polling interval configurable (related to #467) 2025-11-18 21:30:04 +00:00
scheduler.go refactor: use builtin max() and fix unused parameter 2025-11-27 10:08:37 +00:00
scheduler_test.go Add unit tests for adaptive scheduler interval selection (scheduler) 2025-11-30 06:11:22 +00:00
staleness_tracker.go style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
staleness_tracker_test.go
storage_backup_preserve_test.go Preserve storage backups after partial failures (Related to #704) 2025-11-12 21:10:18 +00:00
storage_filters.go Improve installer temperature proxy and backup polling 2025-11-18 18:42:33 +00:00
storage_filters_test.go Improve installer temperature proxy and backup polling 2025-11-18 18:42:33 +00:00
task_queue.go perf: reduce polling allocations and guest metadata load 2025-10-25 13:12:47 +00:00
task_queue_test.go Add unit tests for TaskQueue Upsert and Remove methods 2025-11-29 21:38:33 +00:00
temperature.go chore: remove more dead code 2025-11-27 00:10:55 +00:00
temperature_test.go Add unit tests for temperature utility functions 2025-11-30 04:20:28 +00:00