From 785ff530c1615e0c4f11b8d61b7b70b7af0054d8 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Thu, 2 Jan 2025 17:42:15 +0200 Subject: [PATCH] fix broken tests --- tests/utils/test_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils/test_utils.go b/tests/utils/test_utils.go index d7e5771e..05b73a3a 100644 --- a/tests/utils/test_utils.go +++ b/tests/utils/test_utils.go @@ -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, }, @@ -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),