@@ -2,17 +2,18 @@ package audit
22
33import (
44 "fmt"
5- commonCommands "github.com/jfrog/jfrog-cli-core/v2/common/commands"
6- "github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
7- configTests "github.com/jfrog/jfrog-cli-security/tests"
8- securityTestUtils "github.com/jfrog/jfrog-cli-security/tests/utils"
9- clientTests "github.com/jfrog/jfrog-client-go/utils/tests"
105 "net/http"
116 "path/filepath"
127 "sort"
138 "strings"
149 "testing"
1510
11+ commonCommands "github.com/jfrog/jfrog-cli-core/v2/common/commands"
12+ "github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
13+ configTests "github.com/jfrog/jfrog-cli-security/tests"
14+ securityTestUtils "github.com/jfrog/jfrog-cli-security/tests/utils"
15+ clientTests "github.com/jfrog/jfrog-client-go/utils/tests"
16+
1617 "github.com/stretchr/testify/assert"
1718
1819 "github.com/jfrog/jfrog-cli-security/utils"
@@ -57,14 +58,14 @@ func TestDetectScansToPreform(t *testing.T) {
5758 ScanTarget : results.ScanTarget {
5859 Target : filepath .Join (dir , "Nuget" ),
5960 },
60- JasResultsNew : & results.JasScansResultsNew {},
61+ JasResults : & results.JasScansResults {},
6162 },
6263 {
6364 ScanTarget : results.ScanTarget {
6465 Technology : techutils .Go ,
6566 Target : filepath .Join (dir , "dir" , "go" ),
6667 },
67- JasResultsNew : & results.JasScansResultsNew {},
68+ JasResults : & results.JasScansResults {},
6869 ScaResults : & results.ScaScanResults {
6970 Descriptors : []string {filepath .Join (dir , "dir" , "go" , "go.mod" )},
7071 },
@@ -74,7 +75,7 @@ func TestDetectScansToPreform(t *testing.T) {
7475 Technology : techutils .Maven ,
7576 Target : filepath .Join (dir , "dir" , "maven" ),
7677 },
77- JasResultsNew : & results.JasScansResultsNew {},
78+ JasResults : & results.JasScansResults {},
7879 ScaResults : & results.ScaScanResults {
7980 Descriptors : []string {
8081 filepath .Join (dir , "dir" , "maven" , "maven-sub" , "pom.xml" ),
@@ -88,7 +89,7 @@ func TestDetectScansToPreform(t *testing.T) {
8889 Technology : techutils .Npm ,
8990 Target : filepath .Join (dir , "dir" , "npm" ),
9091 },
91- JasResultsNew : & results.JasScansResultsNew {},
92+ JasResults : & results.JasScansResults {},
9293 ScaResults : & results.ScaScanResults {
9394 Descriptors : []string {filepath .Join (dir , "dir" , "npm" , "package.json" )},
9495 },
@@ -98,7 +99,7 @@ func TestDetectScansToPreform(t *testing.T) {
9899 ScanTarget : results.ScanTarget {
99100 Target : filepath .Join (dir , "yarn" ),
100101 },
101- JasResultsNew : & results.JasScansResultsNew {},
102+ JasResults : & results.JasScansResults {},
102103 },
103104 },
104105 },
@@ -116,7 +117,7 @@ func TestDetectScansToPreform(t *testing.T) {
116117 Technology : techutils .Nuget ,
117118 Target : filepath .Join (dir , "Nuget" ),
118119 },
119- JasResultsNew : & results.JasScansResultsNew {},
120+ JasResults : & results.JasScansResults {},
120121 ScaResults : & results.ScaScanResults {
121122 Descriptors : []string {filepath .Join (dir , "Nuget" , "Nuget-sub" , "project.csproj" ), filepath .Join (dir , "Nuget" , "project.sln" )},
122123 },
@@ -126,7 +127,7 @@ func TestDetectScansToPreform(t *testing.T) {
126127 Technology : techutils .Go ,
127128 Target : filepath .Join (dir , "dir" , "go" ),
128129 },
129- JasResultsNew : & results.JasScansResultsNew {},
130+ JasResults : & results.JasScansResults {},
130131 ScaResults : & results.ScaScanResults {
131132 Descriptors : []string {filepath .Join (dir , "dir" , "go" , "go.mod" )},
132133 },
@@ -136,7 +137,7 @@ func TestDetectScansToPreform(t *testing.T) {
136137 Technology : techutils .Maven ,
137138 Target : filepath .Join (dir , "dir" , "maven" ),
138139 },
139- JasResultsNew : & results.JasScansResultsNew {},
140+ JasResults : & results.JasScansResults {},
140141 ScaResults : & results.ScaScanResults {
141142 Descriptors : []string {
142143 filepath .Join (dir , "dir" , "maven" , "maven-sub" , "pom.xml" ),
@@ -150,7 +151,7 @@ func TestDetectScansToPreform(t *testing.T) {
150151 Technology : techutils .Npm ,
151152 Target : filepath .Join (dir , "dir" , "npm" ),
152153 },
153- JasResultsNew : & results.JasScansResultsNew {},
154+ JasResults : & results.JasScansResults {},
154155 ScaResults : & results.ScaScanResults {
155156 Descriptors : []string {filepath .Join (dir , "dir" , "npm" , "package.json" )},
156157 },
@@ -160,7 +161,7 @@ func TestDetectScansToPreform(t *testing.T) {
160161 Technology : techutils .Yarn ,
161162 Target : filepath .Join (dir , "yarn" ),
162163 },
163- JasResultsNew : & results.JasScansResultsNew {},
164+ JasResults : & results.JasScansResults {},
164165 ScaResults : & results.ScaScanResults {
165166 Descriptors : []string {filepath .Join (dir , "yarn" , "package.json" )},
166167 },
@@ -170,7 +171,7 @@ func TestDetectScansToPreform(t *testing.T) {
170171 Technology : techutils .Pip ,
171172 Target : filepath .Join (dir , "yarn" , "Pip" ),
172173 },
173- JasResultsNew : & results.JasScansResultsNew {},
174+ JasResults : & results.JasScansResults {},
174175 ScaResults : & results.ScaScanResults {
175176 Descriptors : []string {filepath .Join (dir , "yarn" , "Pip" , "requirements.txt" )},
176177 },
@@ -180,7 +181,7 @@ func TestDetectScansToPreform(t *testing.T) {
180181 Technology : techutils .Pipenv ,
181182 Target : filepath .Join (dir , "yarn" , "Pipenv" ),
182183 },
183- JasResultsNew : & results.JasScansResultsNew {},
184+ JasResults : & results.JasScansResults {},
184185 ScaResults : & results.ScaScanResults {
185186 Descriptors : []string {filepath .Join (dir , "yarn" , "Pipenv" , "Pipfile" )},
186187 },
0 commit comments