fix(gost/debian): show all severities that appeared (#1914)
This commit is contained in:
@@ -698,6 +698,26 @@ func TestCvss3Scores(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
// [2] Multiple Severities in Debian Security Tracker
|
||||
{
|
||||
in: VulnInfo{
|
||||
CveContents: CveContents{
|
||||
DebianSecurityTracker: []CveContent{{
|
||||
Type: DebianSecurityTracker,
|
||||
Cvss3Severity: "not yet assigned|low",
|
||||
}},
|
||||
},
|
||||
},
|
||||
out: []CveContentCvss{{
|
||||
Type: DebianSecurityTracker,
|
||||
Value: Cvss{
|
||||
Type: CVSS3,
|
||||
Score: 3.9,
|
||||
CalculatedBySeverity: true,
|
||||
Severity: "NOT YET ASSIGNED|LOW",
|
||||
},
|
||||
}},
|
||||
},
|
||||
// Empty
|
||||
{
|
||||
in: VulnInfo{},
|
||||
|
||||
Reference in New Issue
Block a user