mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
remove govulndb (#4783)
This commit is contained in:
@@ -270,42 +270,6 @@ func TestClient_FillInfo(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "happy path. CVE-xxx from govuln. Severity gets from ghsa",
|
||||
fixtures: []string{"testdata/fixtures/vulnerability.yaml"},
|
||||
vulns: []types.DetectedVulnerability{
|
||||
{
|
||||
VulnerabilityID: "CVE-2022-0001",
|
||||
DataSource: &dbTypes.DataSource{
|
||||
ID: vulnerability.GoVulnDB,
|
||||
Name: "The Go Vulnerability Database",
|
||||
URL: "https://github.com/golang/vulndb",
|
||||
},
|
||||
},
|
||||
},
|
||||
expectedVulnerabilities: []types.DetectedVulnerability{
|
||||
{
|
||||
VulnerabilityID: "CVE-2022-0001",
|
||||
SeveritySource: vulnerability.GHSA,
|
||||
Vulnerability: dbTypes.Vulnerability{
|
||||
Title: "dos",
|
||||
Description: "dos vulnerability",
|
||||
Severity: dbTypes.SeverityHigh.String(),
|
||||
References: []string{"http://example.com"},
|
||||
VendorSeverity: map[dbTypes.SourceID]dbTypes.Severity{
|
||||
"nvd": dbTypes.SeverityLow,
|
||||
"ghsa": dbTypes.SeverityHigh,
|
||||
},
|
||||
},
|
||||
DataSource: &dbTypes.DataSource{
|
||||
ID: vulnerability.GoVulnDB,
|
||||
Name: "The Go Vulnerability Database",
|
||||
URL: "https://github.com/golang/vulndb",
|
||||
},
|
||||
PrimaryURL: "https://avd.aquasec.com/nvd/cve-2022-0001",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "GetVulnerability returns an error",
|
||||
fixtures: []string{"testdata/fixtures/sad.yaml"},
|
||||
|
||||
Reference in New Issue
Block a user