ROX-37502: Move remediation tests to new remediation suite #1464
@redhat-chai-bot: This pull request references ROX-37502 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 "5.1.0" version, but no target version was set.
<details>
In response to this:
>## Summary
>Moves 3 remediation tests from the parallel e2e suite to a new dedicated remediation functional suite:
>-
TestApplyGenericRemediation>-
TestPatchGenericRemediation>-
TestGenericRemediationFailsWithUnknownType>## Details
>- Creates the new tests/e2e/remediation/ suite with boilerplate modeled after existing functional suites>- Pure test moves, no refactoring
>- Part of ROX-37502: dissolving the parallel e2e suite into dedicated functional suites
>- Build verified:
go build and go vet pass for both packages>---
>AI-generated. Review for accuracy.
>@rhmdnd requested from Slack
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.
</details>
Hi @redhat-chai-bot. Thanks for your PR.
I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.
>[!TIP]
>We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.
<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.
</details>
:robot: To deploy this PR, run the following command:
make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1464-a1f3474a93a56c6ba4453d9e50c7b3ed48e023ff
Taking this approach means we need another Makefile target. It also means we need another job in openshift/release to run this suite conditionally based on the relevant code being changed.
The openshift/release change will need to land before we can land this PR to ensure these tests are running.
Requested changes.
Good call — I've added the e2e-remediation Makefile target in this PR (following the same pattern as e2e-deployment, e2e-scan-config, etc.) and also added it to the main e2e target.
For the openshift/release job configuration with run_if_changed, I've filed ROX-37544 to track that work. Agreed that the openshift/release change needs to land before this PR can merge.
---
AI-generated. Review for accuracy.
:robot: To deploy this PR, run the following command:
make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1464-f19f5286d8473a98ea083c735c7d490bf227c997
:robot: To deploy this PR, run the following command:
make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1464-9ff2f50e4b7e67a779b2c7c3c76e7cf2c58b92be
/retest-required
/retest-required
/retest-required
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/ComplianceAsCode/compliance-operator/pull/1464#" title="Author self-approved">redhat-chai-bot</a>, <a href="https://github.com/ComplianceAsCode/compliance-operator/pull/1464#pullrequestreview-5517613579" title="Approved">rhmdnd</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described 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
</details>
<!-- META={"approvers":[]} -->
rhmdnd
redhat-chai-bot
Summary
Moves 3 remediation tests from the parallel e2e suite to a new dedicated remediation functional suite:
TestApplyGenericRemediationTestPatchGenericRemediationTestGenericRemediationFailsWithUnknownTypeDetails
tests/e2e/remediation/suite with boilerplate modeled after existing functional suitesgo buildandgo vetpass for both packages---
AI-generated. Review for accuracy.
@rhmdnd requested from Slack