mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
fix: consul classifier (#4741)
Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
@@ -1111,6 +1111,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
|
||||
Metadata: metadata("consul-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "consul/1.12.9/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "consul",
|
||||
Version: "1.12.9",
|
||||
Type: "binary",
|
||||
PURL: "pkg:golang/github.com/hashicorp/consul@1.12.9",
|
||||
Locations: locations("consul"),
|
||||
Metadata: metadata("consul-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "consul/1.7.14/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
Name: "consul",
|
||||
Version: "1.7.14",
|
||||
Type: "binary",
|
||||
PURL: "pkg:golang/github.com/hashicorp/consul@1.7.14",
|
||||
Locations: locations("consul"),
|
||||
Metadata: metadata("consul-binary"),
|
||||
},
|
||||
},
|
||||
{
|
||||
logicalFixture: "vault/1.21.0-rc1/linux-amd64",
|
||||
expected: pkg.Package{
|
||||
|
||||
Reference in New Issue
Block a user