@@ -4,12 +4,13 @@ import (
44 "encoding/json"
55 "errors"
66 "fmt"
7- "github.com/jfrog/jfrog-client-go/utils/tests"
8- "github.com/jfrog/jfrog-client-go/xsc/services"
97 "os"
108 "path/filepath"
119 "testing"
1210
11+ "github.com/jfrog/jfrog-client-go/utils/tests"
12+ "github.com/jfrog/jfrog-client-go/xsc/services"
13+
1314 "github.com/jfrog/froggit-go/vcsclient"
1415 "github.com/jfrog/jfrog-cli-core/v2/utils/config"
1516
@@ -166,6 +167,7 @@ func TestExtractAndAssertRepoParams(t *testing.T) {
166167 GitEmailAuthorEnv :
"[email protected] " ,
167168 MinSeverityEnv : "high" ,
168169 FixableOnlyEnv : "true" ,
170+ DisableJasEnv : "true" ,
169171 DetectionOnlyEnv : "true" ,
170172 AllowedLicensesEnv : "MIT, Apache-2.0, ISC" ,
171173 AvoidExtraMessages : "true" ,
@@ -196,6 +198,7 @@ func TestExtractAndAssertRepoParams(t *testing.T) {
196198 assert .Equal (t , "this is my branch {BRANCH_NAME_HASH}" , templates .branchNameTemplate )
197199 assert .Equal (t , "High" , repo .MinSeverity )
198200 assert .True (t , repo .FixableOnly )
201+ assert .True (t , repo .DisableJas )
199202 assert .True (t , repo .DetectionOnly )
200203 assert .Equal (t , true , repo .AggregateFixes )
201204 assert .
Equal (
t ,
"[email protected] " ,
repo .
EmailAuthor )
@@ -349,6 +352,7 @@ func TestGenerateConfigAggregatorFromEnv(t *testing.T) {
349352 FailOnSecurityIssuesEnv : "false" ,
350353 MinSeverityEnv : "medium" ,
351354 FixableOnlyEnv : "true" ,
355+ DisableJasEnv : "true" ,
352356 DetectionOnlyEnv : "true" ,
353357 AllowedLicensesEnv : "MIT, Apache-2.0" ,
354358 AvoidExtraMessages : "true" ,
@@ -392,6 +396,7 @@ func validateBuildRepoAggregator(t *testing.T, repo *Repository, gitParams *Git,
392396 assert .Equal (t , false , * repo .FailOnSecurityIssues )
393397 assert .Equal (t , "Medium" , repo .MinSeverity )
394398 assert .Equal (t , true , repo .FixableOnly )
399+ assert .Equal (t , true , repo .DisableJas )
395400 assert .Equal (t , true , repo .DetectionOnly )
396401 assert .ElementsMatch (t , []string {"MIT" , "Apache-2.0" }, repo .AllowedLicenses )
397402 assert .Equal (t , gitParams .RepoOwner , repo .RepoOwner )
0 commit comments