-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: haproxy classifier for versions with -dev suffix (#3180)
Signed-off-by: witchcraze <[email protected]>
- Loading branch information
1 parent
7c96a10
commit a343825
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -359,7 +359,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) { | |
Metadata: metadata("haproxy-binary"), | ||
}, | ||
}, | ||
|
||
{ | ||
logicalFixture: "haproxy/3.1-dev0/linux-amd64", | ||
expected: pkg.Package{ | ||
Name: "haproxy", | ||
Version: "3.1-dev0", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: locations("haproxy"), | ||
Metadata: metadata("haproxy-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "helm/3.11.1/linux-amd64", | ||
expected: pkg.Package{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+351 Bytes
.../cataloger/binary/test-fixtures/classifiers/snippets/haproxy/3.1-dev0/linux-amd64/haproxy
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters