-
Notifications
You must be signed in to change notification settings - Fork 210
NO-ISSUE: OTA-1605 Create first e2e test OCP-42543 #1249
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
a6a8ada to
37caff4
Compare
a79646a to
d944000
Compare
|
Please note that
|
d944000 to
067cd4b
Compare
|
@JianLi-RH: This pull request explicitly references no jira issue. In 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. |
|
Tested on my local machine: Run the case: |
067cd4b to
bac7793
Compare
|
/cc |
|
/cc |
.openshift-tests-extension/openshift_payload_cluster-version-operator.json
Show resolved
Hide resolved
bac7793 to
51facb3
Compare
|
After modification, the case is still valid: |
51facb3 to
8e9da36
Compare
.openshift-tests-extension/openshift_payload_cluster-version-operator.json
Outdated
Show resolved
Hide resolved
72354d1 to
3a8631b
Compare
80af1c8 to
56a29e0
Compare
|
@hongkailiu @DavidHurta I just removed the case, right now the PR only finished one thing: MustGetKubeClient(). |
|
/retest |
|
/hold I want to investigate more about client-go. |
@JianLi-RH, in case the investigation is not done by the end of the day, you want simply more time to explore or are simply busy, I would like to ask you whether it would be fine for me to rename the sanity test in a separate PR. That specific change is blocking my openshift/origin#30316 PR. I am happy to rename the test personally in a separate PR to unblock my PR while we are working on this one. |
|
@DavidHurta of course, go ahead, please. I am not sure when I can finish the investigation. |
d2300d9 to
f98e03c
Compare
|
/unhold |
Clientset instance can be used to connect to cluster, manage resources. With clientset instance we can evaluate the posibility of moving other tests to OTE. The reference to OTE framework: https://docs.google.com/document/d/1cFZj9QdzW8hbHc3H0Nce-2xrJMtpDJrwAse9H7hLiWk/edit?tab=t.0#heading=h.8cf3f4eii1q8
878cbc8 to
1102f9c
Compare
|
@hongkailiu @DavidHurta Just added back the case, please help review it. Here is the output: $ ginkgo ./test/...
Running Suite: CVO Suite - /home/jianl/1_code/cluster-version-operator/test/cvo
===============================================================================
Random Seed: 1763353592
Will run 2 of 2 specs
•Test Authentication...
namespace: default
- Test services...
- Test RoleBinding...
- Test CronJob...
success
namespace: kube-node-lease
- Test services...
- Test RoleBinding...
- Test CronJob...
success
namespace: kube-public
- Test services...
- Test RoleBinding...
- Test CronJob...
.....................
namespace: openshift-vsphere-infra
- Test services...
- Test RoleBinding...
- Test CronJob...
success
•
Ran 2 of 2 Specs in 82.840 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Pending | 0 Skipped
PASS
Ginkgo ran 1 suite in 1m24.112444203s
Test Suite PassedIf there is resource installed unexpected, it will fail as below: $ ginkgo ./test/...
Running Suite: CVO Suite - /home/jianl/1_code/cluster-version-operator/test/cvo
===============================================================================
Random Seed: 1763353871
Will run 2 of 2 specs
•Test Authentication...
------------------------------
• [FAILED] [1.522 seconds]
[Jira:"Cluster Version Operator"] cluster-version-operator-tests [It] should not install resources annotated with release.openshift.io/delete=true [cvo, Conformance, High, 42543]
/home/jianl/1_code/cluster-version-operator/test/cvo/cvo.go:20
[FAILED] Unexpectedly installed authentication cluster which has release.openshift.io/delete annotation
Expected
<bool>: true
not to be true
In [It] at: /home/jianl/1_code/cluster-version-operator/test/cvo/cvo.go:30 @ 11/17/25 12:31:14.175
------------------------------
Summarizing 1 Failure:
[FAIL] [Jira:"Cluster Version Operator"] cluster-version-operator-tests [It] should not install resources annotated with release.openshift.io/delete=true [cvo, Conformance, High, 42543]
/home/jianl/1_code/cluster-version-operator/test/cvo/cvo.go:30
Ran 2 of 2 Specs in 1.522 seconds
FAIL! -- 1 Passed | 1 Failed | 0 Pending | 0 Skipped
--- FAIL: TestGinkgo (1.52s)
FAIL
Ginkgo ran 1 suite in 2.725034617s
Test Suite Failed |
1102f9c to
cc98b16
Compare
cc98b16 to
c168996
Compare
…ient-go openshift/client-go gives us more efficient functions to access cluster
c168996 to
e35f937
Compare
After adding new OTE test cases, we need to update test metadata
|
@JianLi-RH: The following test failed, say
Full PR test history. Your PR dashboard. 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. |
In this PR, I finished 2 things:
/cc @wking @DavidHurta @PratikMahajan @hongkailiu @jhou1 @dis016 @jiajliu