feat: added bin classifier elastic-agent (#4968)

Signed-off-by: Rez Moss <hi@rezmoss.com>
This commit is contained in:
Rez Moss
2026-06-17 15:29:07 +00:00
committed by GitHub
parent b70fa899cb
commit 58e4dbbf01
8 changed files with 134 additions and 0 deletions
@@ -2557,6 +2557,50 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("ingress-nginx-binary"),
},
},
{
logicalFixture: "elastic-agent/9.4.2/linux-amd64",
expected: pkg.Package{
Name: "elastic-agent",
Version: "9.4.2",
Type: "binary",
PURL: "pkg:generic/elastic-agent@9.4.2",
Locations: locations("elastic-agent"),
Metadata: metadata("elastic-agent-binary"),
},
},
{
logicalFixture: "elastic-agent/9.0.0/linux-amd64",
expected: pkg.Package{
Name: "elastic-agent",
Version: "9.0.0",
Type: "binary",
PURL: "pkg:generic/elastic-agent@9.0.0",
Locations: locations("elastic-agent"),
Metadata: metadata("elastic-agent-binary"),
},
},
{
logicalFixture: "elastic-agent/8.19.4/linux-amd64",
expected: pkg.Package{
Name: "elastic-agent",
Version: "8.19.4",
Type: "binary",
PURL: "pkg:generic/elastic-agent@8.19.4",
Locations: locations("elastic-agent"),
Metadata: metadata("elastic-agent-binary"),
},
},
{
logicalFixture: "elastic-agent/8.11.2/linux-amd64",
expected: pkg.Package{
Name: "elastic-agent",
Version: "8.11.2",
Type: "binary",
PURL: "pkg:generic/elastic-agent@8.11.2",
Locations: locations("elastic-agent"),
Metadata: metadata("elastic-agent-binary"),
},
},
{
logicalFixture: "julia/1.13.0-alpha2/linux-amd64",
expected: pkg.Package{