distro: rename output of qcow2 image to disk.qcow2

Integration tests currently expect that and they need to be able to run
against lorax-composer (which outputs disk.qcow2) and osbuild-composer.
This commit is contained in:
Lars Karlitski 2019-12-09 13:42:04 +01:00 committed by Tom Gundersen
parent 167e09fc54
commit dcc9cdedee
6 changed files with 10 additions and 10 deletions

View file

@ -101,7 +101,7 @@ func New() *Fedora30 {
}
r.outputs["qcow2"] = output{
Name: "image.qcow2",
Name: "disk.qcow2",
MimeType: "application/x-qemu-disk",
Packages: []string{
"kernel-core",
@ -122,7 +122,7 @@ func New() *Fedora30 {
},
KernelOptions: "ro biosdevname=0 net.ifnames=0",
IncludeFSTab: true,
Assembler: r.qemuAssembler("qcow2", "image.qcow2"),
Assembler: r.qemuAssembler("qcow2", "disk.qcow2"),
}
r.outputs["openstack"] = output{

View file

@ -63,7 +63,7 @@ func TestFilenameFromType(t *testing.T) {
{
name: "qcow2",
args: args{"qcow2"},
want: "image.qcow2",
want: "disk.qcow2",
want1: "application/x-qemu-disk",
},
{

View file

@ -150,7 +150,7 @@ func New() *RHEL82 {
}
r.outputs["qcow2"] = output{
Name: "image.qcow2",
Name: "disk.qcow2",
MimeType: "application/x-qemu-disk",
Packages: []string{
"kernel-core",
@ -170,7 +170,7 @@ func New() *RHEL82 {
},
IncludeFSTab: true,
KernelOptions: "ro net.ifnames=0",
Assembler: r.qemuAssembler("qcow2", "image.qcow2", 3*GigaByte),
Assembler: r.qemuAssembler("qcow2", "disk.qcow2", 3*GigaByte),
}
r.outputs["openstack"] = output{

View file

@ -63,7 +63,7 @@ func TestFilenameFromType(t *testing.T) {
{
name: "qcow2",
args: args{"qcow2"},
want: "image.qcow2",
want: "disk.qcow2",
want1: "application/x-qemu-disk",
},
{

View file

@ -6,7 +6,7 @@
"fedora": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
},
"output-format": "qcow2",
"filename": "image.qcow2",
"filename": "disk.qcow2",
"blueprint": {}
},
"pipeline": {
@ -116,7 +116,7 @@
"name": "org.osbuild.qemu",
"options": {
"format": "qcow2",
"filename": "image.qcow2",
"filename": "disk.qcow2",
"ptuuid": "0x14fc63d2",
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
"size": 3222274048

View file

@ -6,7 +6,7 @@
"distro": "fedora-30",
"arch": "x86_64",
"output-format": "qcow2",
"filename": "image.qcow2",
"filename": "disk.qcow2",
"blueprint-draft": {
"name": "qcow2-boot-test",
"description": "Image for boot test",
@ -166,7 +166,7 @@
"name": "org.osbuild.qemu",
"options": {
"format": "qcow2",
"filename": "image.qcow2",
"filename": "disk.qcow2",
"ptuuid": "0x14fc63d2",
"root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
"size": 3222274048