Summary
The developer portal controller currently has solid integration tests (envtest) and E2E tests (Kind cluster), but all ~100 test cases require a running API server. This epic tracks adding lightweight unit tests for pure helper functions that don't need envtest or Kind — faster feedback, easier to debug.
Motivation
- Every test currently requires envtest or Kind — no fast, isolated tests exist
- Many helper functions are pure (no k8s client, no I/O) and can be tested with simple input/output assertions
- Pure unit tests run in milliseconds vs seconds for envtest, giving faster feedback during development
- Status condition logic and name generation functions are critical paths worth testing in isolation
Review & Verification
PRs should include:
- How to review the changes (areas of interest, suggested review order)
- Steps to confirm locally:
make test runs and passes
Summary
The developer portal controller currently has solid integration tests (envtest) and E2E tests (Kind cluster), but all ~100 test cases require a running API server. This epic tracks adding lightweight unit tests for pure helper functions that don't need envtest or Kind — faster feedback, easier to debug.
Motivation
Review & Verification
PRs should include:
make testruns and passes