From 0021c0d2d12029403bc89322d45c48989f85ec6f Mon Sep 17 00:00:00 2001 From: attiasas Date: Mon, 6 Jan 2025 11:09:05 +0300 Subject: [PATCH] fix tests --- scanpullrequest/scanpullrequest_test.go | 18 ++++++++++++------ .../expected_response_multi_dir.md | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/scanpullrequest/scanpullrequest_test.go b/scanpullrequest/scanpullrequest_test.go index d9982fe01..ffb5776ec 100644 --- a/scanpullrequest/scanpullrequest_test.go +++ b/scanpullrequest/scanpullrequest_test.go @@ -881,7 +881,8 @@ func TestCreateNewIacRows(t *testing.T) { SeverityNumValue: 21, }, ScannerInfo: formats.ScannerInfo{ - RuleId: "rule", + RuleId: "rule", + ScannerDescription: "rule-msg", }, Finding: "Missing auto upgrade was detected", Location: formats.Location{ @@ -914,7 +915,8 @@ func TestCreateNewIacRows(t *testing.T) { SeverityNumValue: 17, }, ScannerInfo: formats.ScannerInfo{ - RuleId: "rule", + RuleId: "rule", + ScannerDescription: "rule-msg", }, Finding: "enable_private_endpoint=false was detected", Location: formats.Location{ @@ -970,7 +972,8 @@ func TestCreateNewSecretRows(t *testing.T) { SeverityNumValue: 21, }, ScannerInfo: formats.ScannerInfo{ - RuleId: "rule", + RuleId: "rule", + ScannerDescription: "rule-msg", }, Finding: "Secret", Location: formats.Location{ @@ -1003,7 +1006,8 @@ func TestCreateNewSecretRows(t *testing.T) { SeverityNumValue: 17, }, ScannerInfo: formats.ScannerInfo{ - RuleId: "rule", + RuleId: "rule", + ScannerDescription: "rule-msg", }, Finding: "Secret", Location: formats.Location{ @@ -1059,7 +1063,8 @@ func TestCreateNewSastRows(t *testing.T) { SeverityNumValue: 21, }, ScannerInfo: formats.ScannerInfo{ - RuleId: "rule", + RuleId: "rule", + ScannerDescription: "rule-msg", }, Finding: "XSS Vulnerability", Location: formats.Location{ @@ -1092,7 +1097,8 @@ func TestCreateNewSastRows(t *testing.T) { SeverityNumValue: 17, }, ScannerInfo: formats.ScannerInfo{ - RuleId: "rule", + RuleId: "rule", + ScannerDescription: "rule-msg", }, Finding: "Stack Trace Exposure", Location: formats.Location{ diff --git a/testdata/scanpullrequest/expected_response_multi_dir.md b/testdata/scanpullrequest/expected_response_multi_dir.md index 6e1dfd79a..e83ab7d5d 100644 --- a/testdata/scanpullrequest/expected_response_multi_dir.md +++ b/testdata/scanpullrequest/expected_response_multi_dir.md @@ -11,7 +11,7 @@ ## 📗 Scan Summary -- Frogbot scanned for Vulnerabilities and found 2 issues +- Frogbot scanned for vulnerabilities and found 2 issues | Scan Category | Status | Security Issues | | --------------------- | :-----------------------------------: | ----------------------------------- |