operator-framework / operator-controller

Apache License 2.0
29 stars 47 forks source link

🌱 Proposed way to unskip some tests #874

Closed bentito closed 1 month ago

bentito commented 1 month ago

Description

TestClusterExtensionChannelVersionExists mostly restored here.

This is a proposed way to change the other skipped tests as well.

Items skipped by the last conditional are:

Reviewer Checklist

varshaprasad96 commented 1 month ago

@bentito: https://github.com/operator-framework/operator-controller/commit/d649164d840340ae475ba434caf4af2fb33ac801 - I tried making changes to your branch, but GH doesn't let me create a PR against your repo 😅 With this change, we don't need to mock the loader itself. We use the mock unpacker to return UnpackPending and test relevant conditions which is equivalent on what the test did previously.