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
parent 2e458cd73d
commit f8a5c56191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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