Skip to content

CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters#1082

Open
taimurhafeez wants to merge 6 commits intoComplianceAsCode:masterfrom
taimurhafeez:CMP-3845
Open

CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters#1082
taimurhafeez wants to merge 6 commits intoComplianceAsCode:masterfrom
taimurhafeez:CMP-3845

Conversation

@taimurhafeez
Copy link
Collaborator

@taimurhafeez taimurhafeez commented Feb 10, 2026

This PR adds E2E test coverage for compliance scanning on HyperShift clusters using tailored profiles.
The TestHypershiftTailoredProfileScan test validates that the compliance operator can successfully run compliance scans on HyperShift-hosted clusters using tailored profiles.

It was executed using
make e2e-serial E2E_GO_TEST_FLAGS="-v -run TestHypershiftTailoredProfileScan" E2E_ARGS="-root=/home/yourusername/folderhwithcompliancecode/compliance-operator -globalMan=tests/_setup/crd.yaml -namespacedMan=tests/_setup/deploy_rbac.yaml -cleanupOnError=false -platform=HyperShift"

Expected Output:

=== RUN   TestHypershiftTailoredProfileScan
2026/02/11 12:10:16 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:21 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:26 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:31 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:36 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:41 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:46 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:51 Waiting for run of test-hypershift-cis-tp compliancescan (RUNNING)
2026/02/11 12:10:56 Waiting for run of test-hypershift-cis-tp compliancescan (AGGREGATING)
2026/02/11 12:11:01 Waiting for run of test-hypershift-cis-tp compliancescan (AGGREGATING)
2026/02/11 12:11:06 Waiting for run of test-hypershift-cis-tp compliancescan (AGGREGATING)
2026/02/11 12:11:11 ComplianceScan ready (DONE)
2026/02/11 12:11:16 ComplianceScan ready (DONE)
    main_test.go:2271: Both HyperShift tailored profile scans completed successfully
--- PASS: TestHypershiftTailoredProfileScan (65.84s)
PASS

Assisted by Claude.

@openshift-ci
Copy link

openshift-ci bot commented Feb 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: taimurhafeez

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

@openshift-ci
Copy link

openshift-ci bot commented Feb 10, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@taimurhafeez taimurhafeez changed the title Added Test case for case tailored profile works on Hypershift CMP-3845: Added Test case for case tailored profile works on Hypershift clusters Feb 10, 2026
@openshift-ci-robot
Copy link
Collaborator

@taimurhafeez: This pull request references CMP-3845 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.22.0" version, but no target version was set.

Details

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.

@taimurhafeez taimurhafeez changed the title CMP-3845: Added Test case for case tailored profile works on Hypershift clusters CMP-3845: Added Test case for case tailored profile works on Hypershift clusters- WIP Feb 10, 2026
@github-actions
Copy link

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1082-74da9a0e0924f65e4735b521bbc815c5d521c748

@taimurhafeez taimurhafeez changed the title CMP-3845: Added Test case for case tailored profile works on Hypershift clusters- WIP CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters- WIP Feb 10, 2026
@github-actions
Copy link

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1082-03fa520fcd5d5488b9a833d55296d0b022110639

@taimurhafeez taimurhafeez marked this pull request as ready for review February 11, 2026 13:29
@github-actions
Copy link

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1082-721840e497ac10ad14e346e61ea6c57f3b7e80e1

@taimurhafeez taimurhafeez changed the title CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters- WIP CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters- Feb 11, 2026
@taimurhafeez taimurhafeez changed the title CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters- CMP-3845: Added Test TestHypershiftTailoredProfileScan for case tailored profile works on Hypershift clusters Feb 11, 2026
@github-actions
Copy link

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1082-c2c0ed521acdfe5766d9925bfeffef7c8473eea6

…branch and added platform check for hypershift in conditons where rosa is being checked
@github-actions
Copy link

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1082-0677b360106d915a2026d58df491e88e6825ca11

@github-actions
Copy link

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1082-32fb6b61ce8b7a0b717b2cd4a02b4919e9385836

@openshift-ci
Copy link

openshift-ci bot commented Feb 16, 2026

@taimurhafeez: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-rosa 32fb6b6 link true /test e2e-rosa
ci/prow/e2e-aws-parallel-arm 32fb6b6 link true /test e2e-aws-parallel-arm
ci/prow/e2e-aws-serial 32fb6b6 link true /test e2e-aws-serial

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments