From 10c53f9c807790ad06573be4033e408c1ddcba88 Mon Sep 17 00:00:00 2001 From: Leonardo Fontes Date: Thu, 10 Oct 2024 10:00:28 +0100 Subject: [PATCH] Updated integration test 3 --- test/integration/scan_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/integration/scan_test.go b/test/integration/scan_test.go index 0df0fabd0..b01834551 100644 --- a/test/integration/scan_test.go +++ b/test/integration/scan_test.go @@ -1744,7 +1744,7 @@ func TestCreateScan_WithTypeScs_Success(t *testing.T) { executeCmdWithTimeOutNilAssertion(t, "SCS scan must complete successfully", 4*time.Minute, args...) } -func TestCreateScan_WithNoScanTypesScsFlagsNotPresent_SuccessAndScsScannedWithoutScorecard(t *testing.T) { +func TestCreateScan_WithNoScanTypesAndScsFlagsNotPresent_SuccessAndScsScanned(t *testing.T) { _, projectName := getRootProject(t) args := []string{ @@ -1754,11 +1754,8 @@ func TestCreateScan_WithNoScanTypesScsFlagsNotPresent_SuccessAndScsScannedWithou flag(params.BranchFlag), "main", } - 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(), params.ScsType), "Scs scan should run") - assert.Assert(t, strings.Contains(output.String(), withoutScorecard), "Scorecard should not run") + assert.Assert(t, strings.Contains(output.String(), params.ScsType), "SCS scan should run") } func TestCreateScan_WithNoScanTypesFlagButScsFlagsPresent_SuccessAndScsScanned(t *testing.T) {