tests: update integration tests to use new cataloger

Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
Alfredo Deza 2020-07-01 11:38:39 -04:00
parent 96d86fa214
commit 293b7b6ff9

View File

@ -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)
}