Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Jan 6, 2025
1 parent a26d990 commit 0021c0d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions scanpullrequest/scanpullrequest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion testdata/scanpullrequest/expected_response_multi_dir.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| --------------------- | :-----------------------------------: | ----------------------------------- |
Expand Down

0 comments on commit 0021c0d

Please sign in to comment.