Skip to content

Commit 9c0349d

Browse files
Merge branch 'main' into other/saraChen/AddFFToASPM
2 parents af57a62 + f41476c commit 9c0349d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/integration/scan_test.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,34 @@ func TestCreateScan_WithTypeScs_Success(t *testing.T) {
18331833
executeCmdWithTimeOutNilAssertion(t, "SCS scan must complete successfully", 4*time.Minute, args...)
18341834
}
18351835

1836+
func TestCreateScan_WithTypeScsAndOnlyScorecard_Success(t *testing.T) {
1837+
_, projectName := getRootProject(t)
1838+
1839+
args := []string{
1840+
"scan", "create",
1841+
flag(params.ProjectName), projectName,
1842+
flag(params.SourcesFlag), Zip,
1843+
flag(params.ScanTypes), "scs",
1844+
flag(params.BranchFlag), "main",
1845+
flag(params.SCSRepoURLFlag), scsRepoURL,
1846+
flag(params.SCSRepoTokenFlag), scsRepoToken,
1847+
flag(params.SCSEnginesFlag), commands.ScsScoreCardType,
1848+
flag(params.TargetFormatFlag), strings.Join(
1849+
[]string{
1850+
printer.FormatJSON,
1851+
printer.FormatSarif,
1852+
printer.FormatSonar,
1853+
printer.FormatSummaryConsole,
1854+
printer.FormatSummaryJSON,
1855+
printer.FormatPDF,
1856+
printer.FormatSummaryMarkdown,
1857+
}, ",",
1858+
),
1859+
}
1860+
1861+
executeCmdWithTimeOutNilAssertion(t, "SCS scan with only Scorecard must complete successfully", 4*time.Minute, args...)
1862+
}
1863+
18361864
func TestCreateScan_WithNoScanTypesAndScsFlagsNotPresent_SuccessAndScsScanned(t *testing.T) {
18371865
_, projectName := getRootProject(t)
18381866

0 commit comments

Comments
 (0)