Skip to content

Commit

Permalink
Fix transfer and Xray tests (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi authored Dec 19, 2023
1 parent 718ec51 commit 6dcc002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func TestTransferMaven(t *testing.T) {
// The module type only exist in Artifactory 7
moduleType = buildInfo.Maven
}
validateSpecificModule(publishedBuildInfo.BuildInfo, t, 2, 2, 0, "org.jfrog:cli-test:1.0", moduleType)
validateSpecificModule(publishedBuildInfo.BuildInfo, t, 3, 2, 0, "org.jfrog:cli-test:1.0", moduleType)
}

func TestTransferPaginationAndThreads(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions xray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ func TestXrayAuditNugetJson(t *testing.T) {
projectName: "multi",
format: string(utils.Json),
restoreTech: "dotnet",
minVulnerabilities: 5,
minVulnerabilities: 4,
minLicences: 3,
},
{
projectName: "multi",
format: string(utils.Json),
restoreTech: "",
minVulnerabilities: 5,
minVulnerabilities: 4,
minLicences: 3,
},
}
Expand Down Expand Up @@ -789,7 +789,7 @@ func TestXrayAuditJasSimpleJsonWithConfig(t *testing.T) {

func TestXrayAuditJasNoViolationsSimpleJson(t *testing.T) {
output := testXrayAuditJas(t, string(utils.SimpleJson), "npm")
verifySimpleJsonScanResults(t, output, 2, 0)
verifySimpleJsonScanResults(t, output, 1, 0)
verifySimpleJsonJasResults(t, output, 0, 0, 0, 0)
}

Expand Down

0 comments on commit 6dcc002

Please sign in to comment.