-
Notifications
You must be signed in to change notification settings - Fork 36
CMP-3788: Enhance TestTolerations to cover 33610 logic [WIP] #1014
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
Conversation
|
@Anna-Koudelkova: This pull request references CMP-3788 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 story to target the "4.21.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. |
|
Hi @Anna-Koudelkova. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
🤖 To deploy this PR, run the following command: |
|
/ok-to-test |
08b224f to
3e374c8
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Anna-Koudelkova 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 |
|
🤖 To deploy this PR, run the following command: |
|
@Anna-Koudelkova: The following tests failed, say
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. |
|
|
||
| // Test tolerations with TolerationOpEqual operator on all worker nodes | ||
| scanNameEquals := framework.GetObjNameFromTest(t) + "-equals" | ||
| scan := &compv1alpha1.ComplianceScan{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existing test is for a compliancesuite on the taited nodes. Newly added function is a compliancescan for all worker nodes. Is my understanding correct? If so, I think no need to add new check points.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I kept it on all the worker nodes so that I can verify that the number of scanner pods created equals number of worker nodes, like it was in OCP-33610 https://github.com/openshift/openshift-tests-private/blob/abc442c4736b82b4ae15d6068f929c1121ee7111/test/extended/securityandcompliance/compliance_operator.go#L1092. If it was there just as another way to confirm that the scan would run on all nodes nevermind the taint, I wholeheartedly agree.
|
As per discussion, the downstream testcase OCP-33610 does not contain any important checkpoints that are not already covered in the upstream, therefore closing the PR. |
DO NOT MERGE BEFORE #994
Test case uses function
GetScanExitCodeAndErrorMsg()that gets introduced in PR #994 . Without the function it would not work.What have changed
make e2e-parallel E2E_CONTENT_IMAGE_PATH="quay.io/rh-ee-akoudelk/content_repo:testcontent" E2E_BROKEN_CONTENT_IMAGE_PATH="ghcr.io/complianceascode/test-broken-content-ocp" E2E_GO_TEST_FLAGS="-v -timeout 60m -run TestScanProducesRemediations" was used on OCP 4.20 cluster to trigger this test case and it has passed when implementing also the changes in PR #960 and PR #994