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:
parent
33f7822c28
commit
26bf19373a
1 changed files with 5 additions and 5 deletions
|
|
@ -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...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue