CNTRLPLANE-2260: cmd: wire up OTE ginkgo suite for tokenreviews#163
Conversation
807dc5a to
0a198b1
Compare
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
0a198b1 to
044a5c7
Compare
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
044a5c7 to
8c4d1ed
Compare
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@wangke19: This pull request references CNTRLPLANE-2260 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
8c4d1ed to
24fcf89
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (256)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughThe PR activates OTE test registration in the oauth-apiserver extension: imports the OTE ginkgo helper, registers two serial suites (one disruptive) with specific qualifiers, builds specs from the OpenShift Ginkgo suite, adds them to the extension, and updates go.mod dependencies. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
24fcf89 to
e2d29b2
Compare
Add suite configuration and ginkgo test spec registration to prepareOperatorTestsRegistry(). Two suites are registered: - component/serial: non-disruptive tests with default cluster health monitoring - component/serial-disruptive: disruptive tests with relaxed thresholds Note: test package imports (dependencymagnet.go) are added in a subsequent PR.
e2d29b2 to
d622679
Compare
Add the required dependencies for the OTE test framework:
- Ginkgo v2.24.0 (via OpenShift fork github.com/openshift/onsi-ginkgo/v2)
- Gomega v1.36.2
- OpenShift Tests Extension pkg/ginkgo package
- Supporting libraries: go-task/slim-sprig, golang.org/x/{net/html, text/encoding, tools/cover, tools/go/ast/inspector}
All dependencies are vendored to ensure reproducible builds.
d622679 to
c9f4abb
Compare
|
/lgtm |
|
/verified by CI |
|
@wangke19: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@wangke19: 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gangwgr, sanchezl, wangke19 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Wire up the OTE ginkgo suite in
prepareOperatorTestsRegistry()so the binarycan discover and run tests via
BuildExtensionTestSpecsFromOpenShiftGinkgoSuite().Commits
Commit 1: Infrastructure code only
cmd: wire up OTE ginkgo suite for tokenreviewscmd/oauth-apiserver-tests-ext/main.go: addAddSuiteconfiguration andcall
BuildExtensionTestSpecsFromOpenShiftGinkgoSuite()Commit 2: Dependencies
go.mod, vendor: add Ginkgo and OTE dependenciesgithub.com/onsi/ginkgo/v2from indirect to direct dependencygithub.com/go-task/slim-sprig/v3(indirect)golang.org/x/{net/html, text/encoding, tools/cover, tools/go/ast/inspector}
Related