-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add binary classifier for avahi
avahi usual installs multiple binaries, for classifier detection the avahi-browse binary is used. Signed-off-by: Krystian Gorny <[email protected]>
- Loading branch information
Krystian Gorny
committed
Sep 24, 2024
1 parent
2d5fd47
commit e5ac697
Showing
3 changed files
with
29 additions
and
0 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 |
---|---|---|
|
@@ -1214,6 +1214,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) { | |
Metadata: metadata("syslog-ng-binary"), | ||
}, | ||
}, | ||
{ | ||
logicalFixture: "avahi/0.8/linux-amd64", | ||
expected: pkg.Package{ | ||
Name: "avahi", | ||
Version: "0.8", | ||
Type: "binary", | ||
PURL: "pkg:generic/[email protected]", | ||
Locations: locations("avahi-browse"), | ||
Metadata: metadata("avahi-binary"), | ||
}, | ||
}, | ||
} | ||
|
||
for _, test := range tests { | ||
|
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
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