kubewarden-controller icon indicating copy to clipboard operation
kubewarden-controller copied to clipboard

Allow testing Telemetry configuration in integration tests

Open jvanz opened this issue 2 months ago • 1 comments

While working on PR #934, Codecov reported a lack of tests for the changes made to the PolicyServerReconciler and related changes, which added the required configuration in the policy server deployment. As a result, code coverage in the codebase has dropped.

The telemetry configuration is stored in the reconciler struct, which poses a challenge for writing proper tests for these changes. This issue cannot be easily addressed due to the fact that reconciler instances are created during test initialization, and it is not possible to have multiple test suites. Therefore, we need to find another way to enable configuration or recreation of the reconciler before certain tests.

Acceptance Criteria

  • Write integration tests to cover all telemetry configuration possibilities.

jvanz avatar Dec 12 '24 14:12 jvanz