Pulse/internal/config
rcourtman 65e38fac91 test: improve test coverage for AI, license, config, and monitoring packages
New test files:
- internal/ai/providers/gemini_test.go: Comprehensive Gemini provider tests
- internal/api/ai_intelligence_handlers_test.go: AI intelligence endpoint tests
- internal/api/ai_patrol_handlers_test.go: AI patrol endpoint tests
- internal/api/license_handlers_test.go: License API handler tests
- internal/api/security_oidc_response_test.go: OIDC response formatting tests
- internal/config/ai_config_test.go: AI configuration function tests
- internal/config/persistence_ai_test.go: AI config persistence tests
- internal/config/persistence_extended_test.go: Extended persistence tests
- internal/license/persistence_test.go: License persistence tests
- internal/license/pubkey_test.go: Public key handling tests
- internal/monitoring/host_agent_temps_test.go: Temperature processing tests

Enhanced existing files:
- internal/api/updates_test.go: Added update handler tests
- internal/license/license_test.go: Added Service method tests

Coverage improvements:
- ai/providers: 57.3% -> 73.0% (+15.7%)
- license: 78.3% -> 85.9% (+7.6%)
- config: 49.7% -> 53.9% (+4.2%)
- monitoring: 49.8% -> 50.8% (+1.0%)
- api: 28.4% -> 29.8% (+1.4%)
2025-12-19 22:49:30 +00:00
..
ai.go fix: guest URL icon now appears/disappears immediately after AI sets/removes it 2025-12-18 14:42:47 +00:00
ai_config_test.go test: improve test coverage for AI, license, config, and monitoring packages 2025-12-19 22:49:30 +00:00
ai_usage_persistence_test.go feat(ai): Add enriched context with historical trends and predictions 2025-12-12 09:45:57 +00:00
api_tokens.go feat: add Kubernetes platform support 2025-12-12 21:31:11 +00:00
api_tokens_test.go feat: add Kubernetes platform support 2025-12-12 21:31:11 +00:00
client_helpers.go chore: remove dead code and unused files 2025-11-27 00:05:04 +00:00
client_helpers_test.go style: Apply gofmt to 37 files 2025-12-02 17:21:48 +00:00
config.go fix: show Removed Docker Hosts section in UI for re-enrollment 2025-12-19 17:57:04 +00:00
config_utils_test.go test: Add DiscoveryConfig UnmarshalJSON tests 2025-12-02 02:29:38 +00:00
detect_root.go WIP: Save all pending changes including frontend updates and unified agent scaffolding 2025-11-25 11:27:07 +00:00
docker_metadata.go refactor(ui): standardize URL editing with shared UrlEditPopover component 2025-12-18 22:22:55 +00:00
docker_metadata_test.go Add unit tests for DockerMetadataStore (internal/config) 2025-11-30 17:20:46 +00:00
export.go refactor: Use zerolog instead of fmt.Printf in config export 2025-12-02 16:27:54 +00:00
export_test.go test: Add ImportConfig error path tests 2025-12-02 02:32:06 +00:00
guest_metadata.go fix: guest URL icon now appears/disappears immediately after AI sets/removes it 2025-12-18 14:42:47 +00:00
guest_metadata_test.go fix: wait for async save in guest metadata test 2025-12-18 22:48:15 +00:00
host_metadata.go Add AI monitoring enhancements and host metadata features 2025-12-09 16:27:46 +00:00
import_transaction.go feat: production-ready import/export with API tokens and transactional rollback 2025-10-21 14:37:44 +00:00
import_transaction_test.go test: Add StageFile transaction tests 2025-12-02 02:34:20 +00:00
oidc.go Add OIDC CA bundle support 2025-11-22 09:44:03 +00:00
oidc_test.go test: add regression test for OIDC env vars with nil config (#853) 2025-12-16 21:02:47 +00:00
persistence.go fix(config): avoid deadlock saving empty nodes config 2025-12-17 13:28:06 +00:00
persistence_ai_test.go test: improve test coverage for AI, license, config, and monitoring packages 2025-12-19 22:49:30 +00:00
persistence_deadlock_test.go fix(config): avoid deadlock saving empty nodes config 2025-12-17 13:28:06 +00:00
persistence_extended_test.go test: improve test coverage for AI, license, config, and monitoring packages 2025-12-19 22:49:30 +00:00
persistence_fail_test.go Harden setup token flow and enforce encrypted persistence 2025-10-25 16:00:37 +00:00
persistence_test.go test: Add SaveNodesConfigAllowEmpty test and document deadlock 2025-12-02 02:54:49 +00:00
watcher.go Rebuild agent token bindings on API token config reload 2025-11-29 14:09:30 +00:00