Use Severity ranking in OVAL when the CVSS scores are empty.

This commit is contained in:
Kota Kanbe
2017-05-21 23:04:21 +09:00
committed by kota kanbe
parent eb02bdd95a
commit a31974a3c0
4 changed files with 278 additions and 7 deletions

View File

@@ -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{},