Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Add unit tests for CSPO controllers #49

Closed

Description

@michal-gubricky

/kind feature

Description:
We propose the introduction of unit tests for CSPO controllers using the envtest package provided by controller-runtime for our Kubernetes operator.. This testing environment should facilitate the simulation of a real Kubernetes API server and enable comprehensive and realistic tests for our controller's behavior.

Acceptance Criteria:

  • Add unit tests in the Go code
  • The test setup is encapsulated and does not need external dependencies.
  • Have Make target to run the tests easily.
  • Run the tests in the CI with GitHub Action.

Activity

  1. added this to the R6 (v7.0.0) milestone on Jan 16, 2024
  2. moved this from Backlog to Doing in Sovereign Cloud Stackon Jan 26, 2024
  3. added
    Container
    Sprint Utrecht
    on Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ContainerSprint Utrecht

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions