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:
parent
b24a8cdcf5
commit
fd7d1d45a8
1 changed files with 0 additions and 21 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue