-
Notifications
You must be signed in to change notification settings - Fork 11
[WIP] Migrate operator_test to OTE style #595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ropatil010 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
5265960 to
dc77931
Compare
|
/unhold |
|
Local system execution, OTE Framework More detailed wrt execution is mentioned in the test/e2e/README.md file |
|
@ropatil010 Better to split this PR into two. You can refer to PRs openshift/service-ca-operator#295 and openshift/service-ca-operator#297. Reduce code lines of each PR, easy to review. |
|
For CI job, e2e-aws-operator is based on test/e2e/operator_test.go, so migration tests of OTE also needs one similar CI job, we add it in https://github.com/openshift/release/blob/master/ci-operator/config/openshift/run-once-duration-override-operator/openshift-run-once-duration-override-operator-main.yaml. Once migration tests run stably, we will remove CI job https://github.com/openshift/release/blob/master/ci-operator/config/openshift/run-once-duration-override-operator/openshift-run-once-duration-override-operator-main.yaml#L43 and related test/e2e/operator_test.go. |
7885884 to
1565aee
Compare
186382e to
c79ce6c
Compare
c79ce6c to
de53296
Compare
This commit introduces the OpenShift Tests Extension framework infrastructure for Run Once Duration Override Operator tests. The changes include: - Updating the README.md Tests section to follow OTE conventions with examples - Updating test suite path from /all to /operator/serial - Refactoring cmd/run-once-duration-override-operator-tests-ext/main.go with proper error handling - Adding prepareOperatorTestsRegistry for OTE test suite configuration - Defining the operator/serial suite with [Operator] and [Serial] tags Co-Authored-By: Rohit Patil <[email protected]>
Updates dependencies required for OTE framework integration, including: - Adding github.com/onsi/ginkgo/v2 with OpenShift fork replace directive (v2.6.1-0.20251001123353-fd5b1fb35db1) for OCP 4.21 compatibility - Adding github.com/onsi/gomega for Ginkgo matchers - Adding github.com/openshift-eng/openshift-tests-extension for OTE framework - Adding supporting dependencies (go-task/slim-sprig, google/pprof, golang.org/x/*) - Updating go.mod and go.sum with new dependencies - Updating vendor/modules.txt and vendoring all new dependencies Co-Authored-By: Rohit Patil <[email protected]>
de53296 to
d34ce2a
Compare
|
@ropatil010: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
Hi @wangke19 Fixed per suggestion. Can you PTAL. |
Hi Team,
As per below discussions raised this PR. Goal to migrate standard go format operator_test.go to ginkgo format.
/hold