mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
Fix acceptance tests (#106)
* test: allow no metadata in packages Signed-off-by: Alfredo Deza <adeza@anchore.com> * test: update centos json fixture Signed-off-by: Alfredo Deza <adeza@anchore.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
2e458cd73d
commit
f8a5c56191
@ -29,7 +29,7 @@ class syft:
|
|||||||
packages.add(package)
|
packages.add(package)
|
||||||
metadata[package.type][package] = Metadata(
|
metadata[package.type][package] = Metadata(
|
||||||
# note: the metadata entry is optional
|
# note: the metadata entry is optional
|
||||||
metadata=repr(entry.get("metadata")), sources=repr(entry["sources"])
|
metadata=repr(entry.get("metadata", "")), sources=repr(entry["sources"])
|
||||||
)
|
)
|
||||||
return packages, metadata
|
return packages, metadata
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user