mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 06:26:30 +01:00
Find Java package versions in additional manifest sections (#673)
* Add failing test for missing versions Signed-off-by: Dan Luhring <dan+github@luhrings.com> * Look through all named sections for version Signed-off-by: Dan Luhring <dan+github@luhrings.com> * Consistent installation of yajsv Signed-off-by: Dan Luhring <dan+github@luhrings.com> * Adjust output text for test assertion Signed-off-by: Dan Luhring <dan+github@luhrings.com>
This commit is contained in:
@@ -42,7 +42,7 @@ func TestPackagesCmdFlags(t *testing.T) {
|
||||
// a CLI test is much easier.
|
||||
args: []string{"packages", "-vv", badBinariesImage},
|
||||
assertions: []traitAssertion{
|
||||
assertInOutput("recovered from panic while parse go binary"),
|
||||
assertInOutput("could not parse possible go binary"),
|
||||
assertSuccessfulReturnCode,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user