Skip to content

CMP-3868: Add test for hypershift hosted cluster scan (ocp4-cis) #1092

Open
taimurhafeez wants to merge 2 commits intoComplianceAsCode:masterfrom
taimurhafeez:CMP-3868
Open

CMP-3868: Add test for hypershift hosted cluster scan (ocp4-cis) #1092
taimurhafeez wants to merge 2 commits intoComplianceAsCode:masterfrom
taimurhafeez:CMP-3868

Conversation

@taimurhafeez
Copy link
Copy Markdown
Collaborator

@taimurhafeez taimurhafeez commented Feb 24, 2026

TestHypershiftHostedClusterCISScan validates CIS compliance scanning on HyperShift-hosted clusters, where the control plane runs externally on a management cluster.

Tested on OCP 4.21 AWS Hypershift:

make e2e-serial E2E_GO_TEST_FLAGS="-v -run TestHypershiftHostedClusterCISScan" E2E_ARGS="-root=/path/to/compliance-operator -globalMan=tests/_setup/crd.yaml -namespacedMan=tests/_setup/deploy_rbac.yaml -cleanupOnError=false -platform=HyperShift"
expected result:

=== RUN   TestHypershiftHostedClusterCISScan
2026/02/25 13:49:41 TailoredProfile ready (READY)
2026/02/25 13:49:47 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:49:52 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:49:57 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:50:02 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:50:07 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:50:12 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:50:17 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:50:22 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: RUNNING
2026/02/25 13:50:27 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: AGGREGATING
2026/02/25 13:50:32 waiting until suite hypershift-cis-binding reaches target status 'DONE'. Current status: AGGREGATING
2026/02/25 13:50:42 ComplianceScan ready (DONE)
2026/02/25 13:50:47 ComplianceScan ready (DONE)
2026/02/25 13:50:52 ComplianceScan ready (DONE)
2026/02/25 13:50:52 All scans in ComplianceSuite have finished (hypershift-cis-binding)
    main_test.go:2346: kubeadmin secret found in kube-system namespace - checking for FAIL status
    main_test.go:2357: HyperShift hosted cluster CIS scan completed successfully
--- PASS: TestHypershiftHostedClusterCISScan (76.39s)
PASS

Assisted by Claude.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 24, 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
Copy Markdown

openshift-ci Bot commented Feb 24, 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 First untested version of the test CMP-3868: Add test for hypershift hosted cluster scan (ocp4-cis) -WIP Feb 24, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

@taimurhafeez: This pull request references CMP-3868 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.

@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1092-7d064456c30cf1e07bd12025d2be192f3ab5a3cf

@taimurhafeez taimurhafeez marked this pull request as ready for review February 25, 2026 14:46
@github-actions
Copy link
Copy Markdown

🤖 To deploy this PR, run the following command:

make catalog-deploy CATALOG_IMG=ghcr.io/complianceascode/compliance-operator-catalog:1092-4dc2b17622aaf8604ede170935970a8671e3eb35

@taimurhafeez taimurhafeez changed the title CMP-3868: Add test for hypershift hosted cluster scan (ocp4-cis) -WIP CMP-3868: Add test for hypershift hosted cluster scan (ocp4-cis) Feb 25, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 25, 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 4dc2b17 link true /test e2e-rosa
ci/prow/e2e-aws-parallel-arm 4dc2b17 link true /test e2e-aws-parallel-arm
ci/prow/e2e-aws-serial 4dc2b17 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.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 9, 2026

PR needs rebase.

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.

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