Skip to content

Commit

Permalink
add critical severity to post_scan_test and results.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturRibeiro-CX committed Jan 26, 2024
1 parent 31e2fac commit 475178d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions e2e/fixtures/schemas/result.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"severity": {
"type": "string",
"enum": ["HIGH", "MEDIUM", "LOW", "INFO"]
"enum": ["CRITICAL","HIGH", "MEDIUM", "LOW", "INFO"]
},
"platform": {
"type": "string",
Expand Down Expand Up @@ -228,7 +228,7 @@
},
"severity_counters": {
"type": "object",
"required": ["HIGH", "MEDIUM", "LOW", "INFO", "TRACE"],
"required": ["CRITICAL","HIGH", "MEDIUM", "LOW", "INFO", "TRACE"],
"properties": {
"HIGH": {
"type": "integer",
Expand Down
13 changes: 7 additions & 6 deletions pkg/scan/post_scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ func Test_GetSummary(t *testing.T) {
SeveritySummary: model.SeveritySummary{
ScanID: "",
SeverityCounters: map[model.Severity]int{
"TRACE": 0,
"INFO": 0,
"LOW": 0,
"MEDIUM": 0,
"HIGH": 0,
"": 1,
"TRACE": 0,
"INFO": 0,
"LOW": 0,
"MEDIUM": 0,
"HIGH": 0,
"CRITICAL": 0,
"": 1,
},
TotalCounter: 1,
TotalBOMResources: 0,
Expand Down

0 comments on commit 475178d

Please sign in to comment.