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:
Alfredo Deza
2020-07-25 06:39:44 -04:00
committed by GitHub
co-authored by Alex Goodman
parent 2e458cd73d
commit f8a5c56191
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class syft:
packages.add(package)
metadata[package.type][package] = Metadata(
# 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
File diff suppressed because one or more lines are too long