Skip to content

Add e2e test for OCPBUGS-63519#443

Open
miyadav wants to merge 3 commits intoopenshift:masterfrom
miyadav:OCP-85688
Open

Add e2e test for OCPBUGS-63519#443
miyadav wants to merge 3 commits intoopenshift:masterfrom
miyadav:OCP-85688

Conversation

@miyadav
Copy link
Copy Markdown
Member

@miyadav miyadav commented Nov 3, 2025

Automated e2e test for bug.
cc - @huali9 , @sunzhaohua2

@openshift-ci openshift-ci bot requested review from chrischdi and nrb November 3, 2025 11:14
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Nov 3, 2025

[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 nrb 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

Comment thread pkg/framework/framework.go
Comment thread pkg/operators/cluster-machine-approver.go Outdated
Comment thread pkg/framework/framework.go Outdated
Comment on lines +53 to +56
ctx := framework.GetContext()
client, err := framework.LoadClient()
Expect(err).NotTo(HaveOccurred(), "Failed to load client")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this in BeforeEach or BeforeAll?

})
})

var _ = Describe("Cluster Machine Approver CAPI Integration", framework.LabelMachineApprover, framework.LabelLEVEL0, func() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a level0 case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed it , not a level0

Comment on lines +119 to +120
err = client.List(ctx, endpointSlices, runtimeclient.InNamespace(cmaNamespace))
Expect(err).NotTo(HaveOccurred(), "Failed to list endpoint slices")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use Eventually(komega.List( ?

@miyadav miyadav force-pushed the OCP-85688 branch 2 times, most recently from b268ddc to 1e16023 Compare November 7, 2025 11:12
Comment on lines +62 to +69
featureSet, err := oc.WithoutNamespace().Run("get").Args("featuregate", "cluster", "-o=jsonpath={.spec.featureSet}").Output()
Expect(err).NotTo(HaveOccurred(), "Failed to get featureSet")

// Check against the same constants used by SkipIfNotTechPreviewNoUpgrade and SkipIfNotCustomNoUpgrade
if featureSet != string(configv1.TechPreviewNoUpgrade) && featureSet != string(configv1.CustomNoUpgrade) {
Skip("Cluster does not have TechPreviewNoUpgrade or CustomNoUpgrade featuregate enabled. Not a valid cluster for this test.")
}
})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miyadav here seems better to create a new fun SkipIfNotTechPreviewNoUpgradeOrCustomNoUpgrade

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Nov 13, 2025

@miyadav: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@sunzhaohua2
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 17, 2025
@miyadav
Copy link
Copy Markdown
Member Author

miyadav commented Nov 19, 2025

@chrischdi PTAL when you have time , if we can merge this or any comments.

@miyadav
Copy link
Copy Markdown
Member Author

miyadav commented Jan 26, 2026

@damdo PTAL when time permits , it is for - https://issues.redhat.com/browse/OCPBUGS-63519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants