mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 06:26:30 +01:00
migrate scope option to image metadata (from source)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -42,12 +42,12 @@ func TestCatalogFromJSON(t *testing.T) {
|
||||
t.Fatalf("failed to write to presenter: %+v", err)
|
||||
}
|
||||
|
||||
actualCatalog, actualDistro, imageMetadata, err := syft.CatalogFromJSON(&buf)
|
||||
actualCatalog, actualDistro, sourceMetadata, err := syft.CatalogFromJSON(&buf)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to import document: %+v", err)
|
||||
}
|
||||
|
||||
for _, d := range deep.Equal(*imageMetadata, expectedSource.Metadata.ImageMetadata) {
|
||||
for _, d := range deep.Equal(sourceMetadata, expectedSource.Metadata) {
|
||||
t.Errorf(" image metadata diff: %+v", d)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user