🌱 add test coverage for shared handler utilities#18381
🌱 add test coverage for shared handler utilities#18381kubestellar-hive[bot] wants to merge 1 commit into
Conversation
Part of #17600 — adds unit tests for shared utility files in pkg/api/handlers/: - k8s_errors.go — error wrapping/classification - k8s_helpers.go — Kubernetes helper functions - shared_utils.go — shared utility functions (pagination, GitHub API resolution) - validate.go — input validation for K8s names - validation.go — validation patterns and cron schedule validation These files had zero test coverage. Tests follow existing patterns: - Table-driven tests with descriptive case names - Use t.Helper() where appropriate - Test error cases and edge cases - Integration tests with Fiber for handlers Signed-off-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: GitHub Copilot <copilot@github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole canceled.
|
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
Fixes #17600
Part of #17600 — adds unit tests for shared utility files in pkg/api/handlers/:
k8s_errors.go— error wrapping/classificationk8s_helpers.go— Kubernetes helper functionsshared_utils.go— shared utility functions (pagination, GitHub API resolution)validate.go/validation.go— input validationThese files had zero test coverage. Tests follow existing patterns (table-driven, error cases).
🐝 Hive Agent:
scanner| Instance:hosted-kubestellar-console-4vkt| SHA:5e8ccd7f78