Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Feb 6, 2025
1 parent 53a8604 commit 1bce8d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestGitAuditViolationsWithIgnoreRule(t *testing.T) {
auditCommandTestParams{Format: string(format.SimpleJson), WithLicense: true, WithVuln: true},
xrayVersion, xscVersion, "",
validations.ValidationParams{
Total: &validations.TotalCount{Licenses: 3, Violations: 16, Vulnerabilities: 16},
Total: &validations.TotalCount{Licenses: 3, Violations: 12, Vulnerabilities: 12},
// Check that we have at least one violation for each scan type. (IAC is not supported yet)
Violations: &validations.ViolationCount{ValidateScan: &validations.ScanCount{Sca: 1, Sast: 1, Secrets: 1}},
},
Expand Down Expand Up @@ -153,7 +153,7 @@ func TestGitAuditJasViolationsProjectKeySimpleJson(t *testing.T) {
auditCommandTestParams{Format: string(format.SimpleJson), ProjectKey: *securityTests.JfrogTestProjectKey},
xrayVersion, xscVersion, results.NewFailBuildError().Error(),
validations.ValidationParams{
Total: &validations.TotalCount{Violations: 16},
Total: &validations.TotalCount{Violations: 12},
// Check that we have at least one violation for each scan type. (IAC is not supported yet)
Violations: &validations.ViolationCount{ValidateScan: &validations.ScanCount{Sca: 1, Sast: 1, Secrets: 1}},
},
Expand Down

0 comments on commit 1bce8d3

Please sign in to comment.