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

stacklok / toolhive / 18320533410

07 Oct 2025 05:13PM UTC coverage: 46.05% (+0.1%) from 45.919%
18320533410

push

github

web-flow
MCPRegistry e2e tests (#2017)

* Add MCPRegistry controller e2e test framework

- Create Ginkgo-based test suite for operator testing
- Add comprehensive test helpers for MCPRegistry operations
- Include test fixtures with sample YAML manifests
- Set up Kubernetes test environment with envtest support
- Add namespace isolation and cleanup utilities

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

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>

* Add comprehensive Ginkgo test framework for MCPRegistry e2e testing

- Create test suite with proper Kubernetes environment setup
- Add specialized helper utilities for MCPRegistry operations
- Implement ConfigMap test helpers for registry data validation
- Add status validation helpers for phase and condition checking
- Create timing utilities with proper timeout configurations
- Add test data factories for generating test resources
- Include builder patterns for fluent resource construction
- Support both ToolHive and upstream MCP registry formats
- Add comprehensive test fixtures and scenarios

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

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>

* Fix MCPRegistry e2e test timeouts and finalizer handling

- Fix finalizer removal using Patch instead of Update to avoid resource conflicts
- Update registry data structure to match expected schema (add required fields: tier, status, tools, image)
- Add proper registry deletion waiting in cleanup to prevent namespace deletion issues
- Fix lint errors by removing dot imports from non-test files
- Add comprehensive MCPRegistry lifecycle test coverage
- Improve error handling and logging in test helpers

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>

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

* reviewed finalization logic to avoid u... (continued)

78 of 210 new or added lines in 4 files covered. (37.14%)

12 existing lines in 4 files now uncovered.

17052 of 37029 relevant lines covered (46.05%)

16.24 hits per line

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

83.24
/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