Skip to content

[Epic] Improve test suite — add unit tests for helper functions #74

Description

@R-Lawton

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions