Skip to content

test: exercise migration CLIs in fixture E2E smoke flow - #4

Open
tmshort wants to merge 3 commits into
operator-framework:mainfrom
tmshort:test/cli-e2e-smoke
Open

tmshort wants to merge 3 commits into
operator-framework:mainfrom
tmshort:test/cli-e2e-smoke

Conversation

@tmshort

@tmshort tmshort commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

Adds a focused cluster E2E test for the standalone migration CLIs. It reuses the controller-free OLMv0 fixture setup from the pinned library-olm module revision, while building and executing this repository's binaries.

The smoke path covers:

  • Catalog dry-run and creation, including a serving ClusterCatalog.
  • Operator eligibility check and non-mutating conversion preview in JSONL mode.
  • Conversion to an installed ClusterExtension and removal of the Subscription.
  • Acknowledged rollback that restores the Subscription and preserves the operator Deployment UID.

The test refuses any context outside its explicitly named Kind cluster. CI tears the disposable cluster down even when the test fails.

Validation

  • make test
  • go test -tags=e2e -run '^$' ./test/e2e
  • go vet -tags=e2e ./test/e2e
  • E2E_CLUSTER_NAME=olm-0to1-smoke E2E_KUBECONFIG=/tmp/olm-0to1-smoke.kubeconfig make e2e-smoke against a fresh Kind cluster prepared from library-olm commit 4c37ce218c2eecf9eb5231e038340ce63012ab99 (passed)
  • git diff --cached --check

Signed-off-by: Todd Short <tshort@redhat.com>
@openshift-ci

openshift-ci Bot commented Nov 9, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign joelanford for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Todd Short <tshort@redhat.com>
Signed-off-by: Todd Short <tshort@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant