add grafana classifier (#4516)

Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
witchcraze
2026-01-05 09:51:41 -05:00
committed by GitHub
parent 15af992225
commit c8184bdb4c
12 changed files with 209 additions and 0 deletions
@@ -1430,6 +1430,94 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
},
},
},
{
logicalFixture: "grafana/12.3.1/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "12.3.1",
Type: "binary",
PURL: "pkg:generic/grafana@12.3.1",
Locations: locations("grafana"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/12.0.0/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "12.0.0",
Type: "binary",
PURL: "pkg:generic/grafana@12.0.0",
Locations: locations("grafana"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/11.0.0/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "11.0.0",
Type: "binary",
PURL: "pkg:generic/grafana@11.0.0",
Locations: locations("grafana"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/10.4.19/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "10.4.19",
Type: "binary",
PURL: "pkg:generic/grafana@10.4.19",
Locations: locations("grafana"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/9.5.21/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "9.5.21",
Type: "binary",
PURL: "pkg:generic/grafana@9.5.21",
Locations: locations("grafana"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/9.0.0/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "9.0.0",
Type: "binary",
PURL: "pkg:generic/grafana@9.0.0",
Locations: locations("grafana-server"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/7.5.17/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "7.5.17",
Type: "binary",
PURL: "pkg:generic/grafana@7.5.17",
Locations: locations("grafana-server"),
Metadata: metadata("grafana-binary"),
},
},
{
logicalFixture: "grafana/6.7.6/linux-amd64",
expected: pkg.Package{
Name: "grafana",
Version: "6.7.6",
Type: "binary",
PURL: "pkg:generic/grafana@6.7.6",
Locations: locations("grafana-server"),
Metadata: metadata("grafana-binary"),
},
},
}
for _, test := range tests {