Skip to content

Commit

Permalink
Fix JAS tests (jfrog#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas authored Apr 16, 2024
1 parent 9fe5147 commit e2aa191
Show file tree
Hide file tree
Showing 30 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions audit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ func TestXrayAuditMultiProjects(t *testing.T) {
defer clientTests.ChangeDirAndAssert(t, prevWd)
workingDirsFlag := fmt.Sprintf("--working-dirs=%s, %s ,%s, %s",
filepath.Join(tempDirPath, "package-managers", "maven", "maven"), filepath.Join(tempDirPath, "package-managers", "nuget", "single4.0"),
filepath.Join(tempDirPath, "package-managers", "python", "pip", "pip-project"), filepath.Join(tempDirPath, "jas", "jas-test"))
filepath.Join(tempDirPath, "package-managers", "python", "pip", "pip-project"), filepath.Join(tempDirPath, "jas", "jas"))
// Configure a new server named "default"
securityTestUtils.CreateJfrogHomeConfig(t, true)
defer securityTestUtils.CleanTestsHomeEnv()
output := securityTests.PlatformCli.WithoutCredentials().RunCliCmdWithOutput(t, "audit", "--format="+string(format.SimpleJson), workingDirsFlag)
securityTestUtils.VerifySimpleJsonScanResults(t, output, 35, 0)
securityTestUtils.VerifySimpleJsonJasResults(t, output, 1, 9, 0, 0, 0, 25, 1)
securityTestUtils.VerifySimpleJsonJasResults(t, output, 1, 9, 7, 3, 0, 25, 2)
}

func TestXrayAuditPipJson(t *testing.T) {
Expand Down Expand Up @@ -432,7 +432,7 @@ func addDummyPackageDescriptor(t *testing.T, hasPackageJson bool) {
// JAS

func TestXrayAuditJasSimpleJson(t *testing.T) {
output := testXrayAuditJas(t, string(format.SimpleJson), filepath.Join("jas", "jas-test"))
output := testXrayAuditJas(t, string(format.SimpleJson), filepath.Join("jas", "jas"))
securityTestUtils.VerifySimpleJsonJasResults(t, output, 1, 9, 7, 3, 0, 2, 2)
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e2aa191

Please sign in to comment.