Commit 7037d42a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'sk/330724-fix-scan-details' into 'master'

Add Cluster Image Scanning to vuln scan details

See merge request gitlab-org/gitlab!65962
parents 7aa7cae1 561e317d
......@@ -38,6 +38,10 @@ query pipelineSecuritySummary($fullPath: ID!, $pipelineIid: ID!) {
vulnerabilitiesCount
...SecurityReportSummaryScans
}
clusterImageScanning {
vulnerabilitiesCount
...SecurityReportSummaryScans
}
}
}
}
......
......@@ -79,13 +79,14 @@ describe('Security reports summary component', () => {
);
it.each`
summaryProp | string
${{ dast: { vulnerabilitiesCount: 123 } }} | ${'DAST'}
${{ sast: { vulnerabilitiesCount: 123 } }} | ${'SAST'}
${{ containerScanning: { vulnerabilitiesCount: 123 } }} | ${'Container Scanning'}
${{ dependencyScanning: { vulnerabilitiesCount: 123 } }} | ${'Dependency Scanning'}
${{ apiFuzzing: { vulnerabilitiesCount: 123 } }} | ${'API Fuzzing'}
${{ coverageFuzzing: { vulnerabilitiesCount: 123 } }} | ${'Coverage Fuzzing'}
summaryProp | string
${{ dast: { vulnerabilitiesCount: 123 } }} | ${'DAST'}
${{ sast: { vulnerabilitiesCount: 123 } }} | ${'SAST'}
${{ containerScanning: { vulnerabilitiesCount: 123 } }} | ${'Container Scanning'}
${{ dependencyScanning: { vulnerabilitiesCount: 123 } }} | ${'Dependency Scanning'}
${{ apiFuzzing: { vulnerabilitiesCount: 123 } }} | ${'API Fuzzing'}
${{ coverageFuzzing: { vulnerabilitiesCount: 123 } }} | ${'Coverage Fuzzing'}
${{ clusterImageScanning: { vulnerabilitiesCount: 123 } }} | ${'Cluster Image Scanning'}
`('shows user-friendly scanner name for $string', ({ summaryProp, string }) => {
createWrapper({
propsData: {
......@@ -97,13 +98,14 @@ describe('Security reports summary component', () => {
});
it.each`
summaryProp | report
${{ dast: null }} | ${'DAST'}
${{ sast: null }} | ${'SAST'}
${{ containerScanning: null }} | ${'Container Scanning'}
${{ dependencyScanning: null }} | ${'Dependency Scanning'}
${{ apiFuzzing: null }} | ${'API Fuzzing'}
${{ coverageFuzzing: null }} | ${'Coverage Fuzzing'}
summaryProp | report
${{ dast: null }} | ${'DAST'}
${{ sast: null }} | ${'SAST'}
${{ containerScanning: null }} | ${'Container Scanning'}
${{ dependencyScanning: null }} | ${'Dependency Scanning'}
${{ apiFuzzing: null }} | ${'API Fuzzing'}
${{ coverageFuzzing: null }} | ${'Coverage Fuzzing'}
${{ clusterImageScanning: null }} | ${'Cluster Image Scanning'}
`('does not show $report report if scanner did not run', ({ summaryProp, report }) => {
createWrapper({
propsData: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment