Skip to content

Commit a72d854

Browse files
committed
fix TestAuditWithConfigProfile tests
1 parent e0c79d8 commit a72d854

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

commands/audit/audit_test.go

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,7 @@ func TestAuditWithConfigProfile(t *testing.T) {
326326
}},
327327
IsDefault: false,
328328
},
329-
expectedCaApplicable: 3,
330-
expectedCaUndetermined: 6,
331-
expectedCaNotCovered: 4,
332-
expectedCaNotApplicable: 2,
329+
expectedCaNotCovered: 15,
333330
},
334331
// TODO Add testcase for Sca and Applicability with exclusions after resolving the Glob patterns issues
335332
{
@@ -550,13 +547,10 @@ func TestAuditWithConfigProfile(t *testing.T) {
550547
}},
551548
IsDefault: false,
552549
},
553-
expectedSastIssues: 4,
554-
expectedSecretsIssues: 16,
555-
expectedIacIssues: 9,
556-
expectedCaApplicable: 3,
557-
expectedCaUndetermined: 6,
558-
expectedCaNotCovered: 4,
559-
expectedCaNotApplicable: 2,
550+
expectedSastIssues: 4,
551+
expectedSecretsIssues: 16,
552+
expectedIacIssues: 9,
553+
expectedCaNotCovered: 15,
560554
},
561555
{
562556
name: "All scanners enabled but some with exclude patterns",
@@ -589,13 +583,10 @@ func TestAuditWithConfigProfile(t *testing.T) {
589583
}},
590584
IsDefault: false,
591585
},
592-
expectedSastIssues: 0,
593-
expectedSecretsIssues: 7,
594-
expectedIacIssues: 9,
595-
expectedCaApplicable: 3,
596-
expectedCaUndetermined: 6,
597-
expectedCaNotCovered: 4,
598-
expectedCaNotApplicable: 2,
586+
expectedSastIssues: 0,
587+
expectedSecretsIssues: 7,
588+
expectedIacIssues: 9,
589+
expectedCaNotCovered: 15,
599590
},
600591
}
601592
assert.NoError(t, securityTestUtils.PrepareAnalyzerManagerResource())

0 commit comments

Comments
 (0)