mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
feat: elastic beats bin classifier (#4969)
Signed-off-by: Rez Moss <hi@rezmoss.com>
This commit is contained in:
@@ -2557,6 +2557,83 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("ingress-nginx-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "filebeat/9.4.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "filebeat",
|
||||
Version: "9.4.2",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/filebeat@9.4.2",
|
||||
Locations: locations("filebeat"),
|
||||
Metadata: metadata("filebeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "filebeat/8.18.4/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "filebeat",
|
||||
Version: "8.18.4",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/filebeat@8.18.4",
|
||||
Locations: locations("filebeat"),
|
||||
Metadata: metadata("filebeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "filebeat/8.11.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "filebeat",
|
||||
Version: "8.11.2",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/filebeat@8.11.2",
|
||||
Locations: locations("filebeat"),
|
||||
Metadata: metadata("filebeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "metricbeat/9.4.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "metricbeat",
|
||||
Version: "9.4.2",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/metricbeat@9.4.2",
|
||||
Locations: locations("metricbeat"),
|
||||
Metadata: metadata("metricbeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "heartbeat/9.4.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "heartbeat",
|
||||
Version: "9.4.2",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/heartbeat@9.4.2",
|
||||
Locations: locations("heartbeat"),
|
||||
Metadata: metadata("heartbeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "packetbeat/9.4.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "packetbeat",
|
||||
Version: "9.4.2",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/packetbeat@9.4.2",
|
||||
Locations: locations("packetbeat"),
|
||||
Metadata: metadata("packetbeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "auditbeat/9.4.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "auditbeat",
|
||||
Version: "9.4.2",
|
||||
Type: "binary",
|
||||
PURL: "pkg:generic/auditbeat@9.4.2",
|
||||
Locations: locations("auditbeat"),
|
||||
Metadata: metadata("auditbeat-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "elastic-agent/9.4.2/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
|
||||
Reference in New Issue
Block a user