From 293b7b6ff960f40a2dfa7975d6c894b02745642f Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 1 Jul 2020 11:38:39 -0400 Subject: [PATCH] tests: update integration tests to use new cataloger Signed-off-by: Alfredo Deza --- integration/fixture_image_language_pkgs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/fixture_image_language_pkgs_test.go b/integration/fixture_image_language_pkgs_test.go index ed04e25c0..8d18e143b 100644 --- a/integration/fixture_image_language_pkgs_test.go +++ b/integration/fixture_image_language_pkgs_test.go @@ -6,7 +6,6 @@ import ( "testing" "github.com/anchore/go-testutils" - "github.com/anchore/imgbom/imgbom" "github.com/anchore/imgbom/imgbom/cataloger" "github.com/anchore/imgbom/imgbom/pkg" "github.com/anchore/imgbom/imgbom/scope" @@ -16,7 +15,8 @@ func TestLanguageImage(t *testing.T) { img, cleanup := testutils.GetFixtureImage(t, "docker-archive", "image-language-pkgs") defer cleanup() - catalog, err := imgbom.CatalogImage(img, scope.AllLayersScope) + s, err := scope.NewImageScope(img, scope.AllLayersScope) + catalog, err := cataloger.Catalog(s) if err != nil { t.Fatalf("failed to catalog image: %+v", err) }