diff --git a/syft/presenter/cyclonedx/presenter_test.go b/syft/presenter/cyclonedx/presenter_test.go index d600d5309..39778d3c1 100644 --- a/syft/presenter/cyclonedx/presenter_test.go +++ b/syft/presenter/cyclonedx/presenter_test.go @@ -62,7 +62,7 @@ func TestCycloneDxDirsPresenter(t *testing.T) { t.Fatal(err) } - d, err := distro.NewDistro(distro.Ubuntu, "20.04") + d, err := distro.NewDistro(distro.Ubuntu, "20.04", "debian") if err != nil { t.Fatal(err) } @@ -152,7 +152,7 @@ func TestCycloneDxImgsPresenter(t *testing.T) { t.Fatal(err) } - d, err := distro.NewDistro(distro.RedHat, "8") + d, err := distro.NewDistro(distro.RedHat, "8", "") if err != nil { t.Fatal(err) } diff --git a/syft/presenter/json/test-fixtures/snapshot/TestJsonDirsPresenter.golden b/syft/presenter/json/test-fixtures/snapshot/TestJsonDirsPresenter.golden index a56d23169..548a5ba2b 100644 --- a/syft/presenter/json/test-fixtures/snapshot/TestJsonDirsPresenter.golden +++ b/syft/presenter/json/test-fixtures/snapshot/TestJsonDirsPresenter.golden @@ -29,6 +29,7 @@ }, "distro": { "name": "", - "version": "" + "version": "", + "idLike": "" } } diff --git a/syft/presenter/json/test-fixtures/snapshot/TestJsonImgsPresenter.golden b/syft/presenter/json/test-fixtures/snapshot/TestJsonImgsPresenter.golden index 85957c9ba..14031fc3c 100644 --- a/syft/presenter/json/test-fixtures/snapshot/TestJsonImgsPresenter.golden +++ b/syft/presenter/json/test-fixtures/snapshot/TestJsonImgsPresenter.golden @@ -59,6 +59,7 @@ }, "distro": { "name": "", - "version": "" + "version": "", + "idLike": "" } } diff --git a/test/integration/distro_test.go b/test/integration/distro_test.go index 11b92a90d..fdbb5a824 100644 --- a/test/integration/distro_test.go +++ b/test/integration/distro_test.go @@ -24,7 +24,7 @@ func TestDistroImage(t *testing.T) { t.Fatalf("could not find distro") } - expected, err := distro.NewDistro(distro.Busybox, "1.31.1") + expected, err := distro.NewDistro(distro.Busybox, "1.31.1", "") if err != nil { t.Fatalf("could not create distro: %+v", err) } diff --git a/test/integration/json_schema_test.go b/test/integration/json_schema_test.go index 6c49605b3..279b74337 100644 --- a/test/integration/json_schema_test.go +++ b/test/integration/json_schema_test.go @@ -62,7 +62,7 @@ func testJsonSchema(t *testing.T, catalog *pkg.Catalog, theScope *scope.Scope, p output := bytes.NewBufferString("") - d, err := distro.NewDistro(distro.CentOS, "5") + d, err := distro.NewDistro(distro.CentOS, "5", "rhel fedora") if err != nil { t.Fatalf("bad distro: %+v", err) }