Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Jan 2, 2025
1 parent f541010 commit 785ff53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func CreateTestSecurityPolicy(t *testing.T, policyName string, severity xrayUtil
return CreateSecurityPolicy(t, policyName,
xrayUtils.PolicyRule{
Name: "sca_rule",
Criteria: *xrayUtils.CreateSeverityPolicyCriteria(severity),
Criteria: *xrayUtils.CreateSeverityPolicyCriteria(severity, false),
Actions: getBuildFailAction(failBuild),
Priority: 1,
},
Expand Down Expand Up @@ -382,7 +382,7 @@ func CreateTestPolicyAndWatch(t *testing.T, policyName, watchName string, severi
Type: xrayUtils.Security,
Rules: []xrayUtils.PolicyRule{{
Name: "sec_rule",
Criteria: *xrayUtils.CreateSeverityPolicyCriteria(severity),
Criteria: *xrayUtils.CreateSeverityPolicyCriteria(severity, false),
Priority: 1,
Actions: &xrayUtils.PolicyAction{
FailBuild: clientUtils.Pointer(true),
Expand Down

0 comments on commit 785ff53

Please sign in to comment.