Skip to content

test: Add test cases for SeparateMisconfigReports with partial scanner configurations#10471

Open
Kuldeep2822k wants to merge 1 commit intoaquasecurity:mainfrom
Kuldeep2822k:k8s-report
Open

test: Add test cases for SeparateMisconfigReports with partial scanner configurations#10471
Kuldeep2822k wants to merge 1 commit intoaquasecurity:mainfrom
Kuldeep2822k:k8s-report

Conversation

@Kuldeep2822k
Copy link
Copy Markdown

Description:

Add test cases to SeparateMisconfigReports in pkg/k8s/report/report_test.go to verify report separation logic when only vulnerability scanning or only secret scanning is enabled. These tests address existing TODOs and ensure the function correctly produces the expected number of assessment reports (Workload and Infra) under partial scanner configurations.

Changes:

  • Added test case for vulnerability-only scanner configuration.
  • Added test case for secret-only scanner configuration.
  • Verified that the correct number of Workload and Infra reports are generated in each scenario.

Checklist

…paration

Add test cases to `SeparateMisconfigReports` to verify the logic when only vulnerability or secret scanning is enabled. This addresses the TODOs in `pkg/k8s/report/report_test.go`.
@Kuldeep2822k Kuldeep2822k requested a review from simar7 as a code owner April 1, 2026 20:52
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 9, 2026

CLA assistant check
All committers have signed the CLA.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants