rcourtman
a6a8efaa65
test: Add comprehensive test coverage across packages
New test files with expanded coverage:
API tests:
- ai_handler_test.go: AI handler unit tests with mocking
- agent_profiles_tools_test.go: Profile management tests
- alerts_endpoints_test.go: Alert API endpoint tests
- alerts_test.go: Updated for interface changes
- audit_handlers_test.go: Audit handler tests
- frontend_embed_test.go: Frontend embedding tests
- metadata_handlers_test.go, metadata_provider_test.go: Metadata tests
- notifications_test.go: Updated for interface changes
- profile_suggestions_test.go: Profile suggestion tests
- saml_service_test.go: SAML authentication tests
- sensor_proxy_gate_test.go: Sensor proxy tests
- updates_test.go: Updated for interface changes
Agent tests:
- dockeragent/signature_test.go: Docker agent signature tests
- hostagent/agent_metrics_test.go: Host agent metrics tests
- hostagent/commands_test.go: Command execution tests
- hostagent/network_helpers_test.go: Network helper tests
- hostagent/proxmox_setup_test.go: Updated setup tests
- kubernetesagent/*_test.go: Kubernetes agent tests
Core package tests:
- monitoring/kubernetes_agents_test.go, reload_test.go
- remoteconfig/client_test.go, signature_test.go
- sensors/collector_test.go
- updates/adapter_installsh_*_test.go: Install adapter tests
- updates/manager_*_test.go: Update manager tests
- websocket/hub_*_test.go: WebSocket hub tests
Library tests:
- pkg/audit/export_test.go: Audit export tests
- pkg/metrics/store_test.go: Metrics store tests
- pkg/proxmox/*_test.go: Proxmox client tests
- pkg/reporting/reporting_test.go: Reporting tests
- pkg/server/*_test.go: Server tests
- pkg/tlsutil/extra_test.go: TLS utility tests
Total: ~8000 lines of new test code
2026-01-19 19:26:18 +00:00
..
2025-11-26 23:44:36 +00:00
2025-10-20 15:13:37 +00:00
2025-11-05 19:26:20 +00:00
2025-12-01 17:33:36 +00:00
2025-10-11 23:29:47 +00:00
2025-12-01 20:15:32 +00:00
2025-11-26 23:44:36 +00:00
2025-12-01 17:33:36 +00:00
2025-11-18 09:46:48 +00:00
2025-12-12 17:51:43 +00:00
2025-12-12 18:13:17 +00:00
2025-12-01 19:40:32 +00:00
2025-10-22 15:36:26 +00:00
2025-12-29 23:37:05 +00:00
2026-01-03 19:05:18 +00:00
2026-01-17 14:42:52 +00:00
2026-01-17 14:42:52 +00:00
2025-12-02 17:21:48 +00:00
2026-01-02 00:03:23 +00:00
2026-01-01 22:29:15 +00:00
2025-12-01 01:37:28 +00:00
2025-10-20 15:13:38 +00:00
2025-10-14 16:13:53 +00:00
2025-11-12 09:47:02 +00:00
2025-12-02 17:21:48 +00:00
2025-12-01 10:53:41 +00:00
2025-10-23 08:07:32 +00:00
2026-01-01 22:29:15 +00:00
2026-01-01 22:29:15 +00:00
2026-01-01 22:29:15 +00:00
2025-11-26 23:44:36 +00:00
2026-01-19 19:26:18 +00:00
2025-12-23 05:10:47 +00:00
2025-10-25 16:00:37 +00:00
2025-12-02 17:21:48 +00:00
2025-12-01 21:18:33 +00:00
2025-11-27 09:16:53 +00:00
2025-12-02 17:21:48 +00:00
2025-12-12 23:24:04 +00:00
2025-12-02 17:21:48 +00:00
2025-11-27 09:19:33 +00:00
2026-01-01 22:29:15 +00:00
2025-12-12 23:24:04 +00:00
2026-01-04 10:29:40 +00:00
2025-12-02 17:21:48 +00:00
2025-11-18 22:57:20 +00:00
2026-01-03 18:36:17 +00:00
2026-01-09 21:31:49 +00:00
2026-01-04 10:29:40 +00:00
2025-10-20 15:13:38 +00:00
2025-12-17 20:16:27 +00:00
2025-11-11 23:52:24 +00:00
2026-01-04 10:29:40 +00:00
2026-01-04 10:29:40 +00:00
2026-01-04 10:29:40 +00:00
2025-11-05 19:28:37 +00:00
2025-12-02 17:21:48 +00:00
2026-01-17 14:42:52 +00:00
2026-01-08 12:06:36 +00:00
2025-11-18 14:25:09 +00:00
2026-01-04 10:29:40 +00:00
2026-01-04 10:29:40 +00:00
2025-11-18 09:46:48 +00:00
2026-01-04 10:29:40 +00:00
2025-11-06 00:16:18 +00:00
2025-12-02 17:21:48 +00:00
2026-01-05 23:34:33 +00:00
2026-01-17 22:31:02 +00:00
2026-01-14 12:26:18 +00:00
2025-11-27 00:05:04 +00:00
2025-10-11 23:29:47 +00:00
2025-12-02 17:21:48 +00:00
2025-10-11 23:29:47 +00:00
2026-01-19 19:26:18 +00:00
2025-11-18 21:30:04 +00:00
2025-12-02 17:21:48 +00:00
2025-12-02 14:48:57 +00:00
2025-12-01 20:44:00 +00:00
2025-12-02 14:41:53 +00:00
2025-12-01 19:04:23 +00:00
2026-01-06 17:44:52 +00:00
2026-01-06 17:44:52 +00:00
2025-12-02 12:02:13 +00:00
2025-10-25 13:12:47 +00:00
2025-12-19 17:09:57 +00:00
2025-12-02 15:21:41 +00:00