Use Severity ranking in OVAL when the CVSS scores are empty.
This commit is contained in:
@@ -158,6 +158,22 @@ func TestMaxCvss2Scores(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
// Severity in OVAL
|
||||
{
|
||||
in: CveContents{
|
||||
Ubuntu: {
|
||||
Type: Ubuntu,
|
||||
Severity: "HIGH",
|
||||
},
|
||||
},
|
||||
out: CveContentCvss2{
|
||||
Type: Ubuntu,
|
||||
Value: Cvss2{
|
||||
Score: 10,
|
||||
Severity: "HIGH",
|
||||
},
|
||||
},
|
||||
},
|
||||
// Empty
|
||||
{
|
||||
in: CveContents{},
|
||||
|
||||
Reference in New Issue
Block a user