Skip to content

Commit

Permalink
Updated integration test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoLordelloFontes committed Oct 9, 2024
1 parent 928e35b commit bc0eb1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1754,10 +1754,9 @@ func TestCreateScan_WithNoScanTypesScsFlagsNotPresent_SuccessAndScsScannedWithou
flag(params.BranchFlag), "main",
}

withoutScorecard := `| Scorecard - - - - - - |`
withoutScorecard := "| Scorecard - - - - - - |"

output := executeCmdWithTimeOutNilAssertion(t, "Scan must complete successfully if no scan-types specified and with missing scs-repo flags", timeout, args...)
assert.Assert(t, strings.Contains(output.String(), commands.ScsRepoWarningMsg), "Should give warning about missing scs-repo flags")
assert.Assert(t, strings.Contains(output.String(), params.ScsType), "Scs scan should run")
assert.Assert(t, strings.Contains(output.String(), withoutScorecard), "Scorecard should not run")
}
Expand Down

0 comments on commit bc0eb1e

Please sign in to comment.