Skip to content

CMP-4142: Add e2e test for TailoredProfile extending a CEL Profile#1207

Open
Vincent056 wants to merge 1 commit into
ComplianceAsCode:masterfrom
Vincent056:e2e-tailoredprofile-extends-cel-profile
Open

CMP-4142: Add e2e test for TailoredProfile extending a CEL Profile#1207
Vincent056 wants to merge 1 commit into
ComplianceAsCode:masterfrom
Vincent056:e2e-tailoredprofile-extends-cel-profile

Conversation

@Vincent056
Copy link
Copy Markdown

Summary

  • Adds TestTailoredProfileExtendsCELProfile to parallel e2e tests
  • Validates that a TailoredProfile can extend a CEL-based Profile, disable a rule, and produce correct scan results
  • Fills a gap in CEL profile coverage where only direct Profile references were tested via ScanSettingBinding

Test plan

  • e2e parallel tests pass (TestTailoredProfileExtendsCELProfile)
  • Existing CEL tests (TestCELProfileBundle, TestCELProfileScan, TestCELWithXCCDFProfileScan) still pass

Adds TestTailoredProfileExtendsCELProfile to parallel e2e tests.
The test creates a ProfileBundle with CEL content, then creates a
TailoredProfile that extends the resulting CEL profile while disabling
one rule. It verifies that a scan via ScanSettingBinding completes
successfully, enabled rules produce ComplianceCheckResults, and the
disabled rule does not.
@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

@Vincent056: This pull request references CMP-4142 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 either version "5.0." or "openshift-5.0.", but it targets "compliance-operator-1.9.0" instead.

Details

In response to this:

Summary

  • Adds TestTailoredProfileExtendsCELProfile to parallel e2e tests
  • Validates that a TailoredProfile can extend a CEL-based Profile, disable a rule, and produce correct scan results
  • Fills a gap in CEL profile coverage where only direct Profile references were tested via ScanSettingBinding

Test plan

  • e2e parallel tests pass (TestTailoredProfileExtendsCELProfile)
  • Existing CEL tests (TestCELProfileBundle, TestCELProfileScan, TestCELWithXCCDFProfileScan) still pass

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.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 15, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Vincent056

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

@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:1207-70384e919d4ffe490c050e528873db82be0b139d

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 15, 2026

@Vincent056: 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 70384e9 link true /test e2e-rosa
ci/prow/e2e-aws-serial 70384e9 link true /test e2e-aws-serial
ci/prow/e2e-aws-parallel-arm 70384e9 link true /test e2e-aws-parallel-arm

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