test/main: update types used

Image types were renamed [1] in images for the Fedora distribution.
While aliases were left behind for compatibility those are not used
when directly requesting manifests it seems.

Let's rename them to their canonical names.

[1]: 65194a4bf

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2025-05-28 08:36:00 +02:00 committed by Achilleas Koutsou
parent 33f7822c28
commit 26bf19373a

View file

@ -248,7 +248,7 @@ func TestManifestIntegrationOstreeSmoke(t *testing.T) {
assert.NoError(t, err)
restore = main.MockOsArgs([]string{
"manifest",
"iot-raw-image",
"iot-raw-xz",
"--arch=x86_64",
"--distro=fedora-42",
"--ostree-url=" + strings.SplitN(string(body), "\n", 2)[0],
@ -290,12 +290,12 @@ func TestManifestIntegrationOstreeSmokeErrors(t *testing.T) {
expectedErr string
}{
{
[]string{"iot-raw-image"},
`iot-raw-image: ostree commit URL required`,
[]string{"iot-raw-xz"},
`iot-raw-xz: ostree commit URL required`,
},
{
[]string{"qcow2", "--ostree-url=http://example.com/"},
`OSTree is not supported for "qcow2"`,
[]string{"server-qcow2", "--ostree-url=http://example.com/"},
`OSTree is not supported for "server-qcow2"`,
},
} {
args := append(baseArgs, tc.extraArgs...)