distro/fedora: remove test for empty ostree ref

The ImageType.PackageSets() function is going away and instead we will
rely on the ImageType.Manifest() function to both prepare the manifest
and return the package sets.  The Manifest() function should never be
called without an ostree ref for ostree type images.
This commit is contained in:
Achilleas Koutsou 2023-05-11 19:54:49 +02:00 committed by Simon de Vlieger
parent b24a8cdcf5
commit fd7d1d45a8

View file

@ -786,24 +786,3 @@ func TestDistro_CustomUsrPartitionNotLargeEnough(t *testing.T) {
}
}
}
func TestIotInstallerWithoutOStreeRefs(t *testing.T) {
// Regression test for https://github.com/osbuild/osbuild-composer/issues/3125
// TODO: Remove when the ugly workaround is gone
d := fedora.NewF38()
arch, err := d.GetArch("x86_64")
require.NoError(t, err)
imgType, err := arch.GetImageType("iot-installer")
require.NoError(t, err)
bp := blueprint.Blueprint{
Name: "fish",
}
err = bp.Initialize()
require.NoError(t, err)
sets := imgType.PackageSets(bp, distro.ImageOptions{}, nil)
require.NotZero(t, len(sets))
}