• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 19132778810

06 Nov 2025 10:35AM UTC coverage: 48.415% (+0.07%) from 48.343%
19132778810

push

github

web-flow
Refactor CA certificate config operations to match registry pattern (#2476)

This change moves CA certificate configuration operations from CLI command
functions into the pkg/config package, following the established pattern
used by registry operations.

Changes:
- Add pkg/config/cacert.go with helper functions (setCACert, getCACert, unsetCACert)
- Extend Provider interface with CA cert methods
- Implement CA cert methods in DefaultProvider, PathProvider, and KubernetesProvider
- Refactor CLI commands to use provider methods, reducing CLI code by 60%
- Add comprehensive table-driven tests (9 test cases)

This establishes consistent patterns across all config operations and
improves separation of concerns by moving validation logic out of the
CLI layer.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>

64 of 128 new or added lines in 4 files covered. (50.0%)

7 existing lines in 3 files now uncovered.

22097 of 45641 relevant lines covered (48.41%)

37.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

82.83
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc