test/cases: rename output-format to image-type

Bring this in line with our naming convention.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-03-28 21:59:59 +01:00
parent fa015a70f6
commit a949843f1e
19 changed files with 31 additions and 31 deletions

View file

@ -6,8 +6,8 @@
"compose-request": {
"distro": "",
"arch": "",
"image-type": "ami",
"filename": "image.raw.xz",
"output-format": "ami",
"blueprint": {}
}
},
@ -18,7 +18,7 @@
"compose-request": {
"distro": "",
"arch": "",
"output-format": "ext4-filesystem",
"image-type": "ext4-filesystem",
"filename": "filesystem.img",
"blueprint": {
"name": "ext4-filesystem-boot-test",
@ -49,7 +49,7 @@
"compose-request": {
"distro": "",
"arch": "",
"output-format": "openstack",
"image-type": "openstack",
"filename": "disk.qcow2",
"blueprint": {
"name": "openstack-boot-test",
@ -75,7 +75,7 @@
"compose-request": {
"distro": "",
"arch": "",
"output-format": "partitioned-disk",
"image-type": "partitioned-disk",
"filename": "disk.img",
"blueprint": {
"name": "partitioned-disk-boot-test",
@ -99,9 +99,9 @@
"type": "nspawn-extract"
},
"compose-request": {
"output-format": "tar",
"distro": "",
"arch": "",
"image-type": "tar",
"filename": "root.tar.xz",
"blueprint": {
"name": "tar-boot-test",
@ -132,7 +132,7 @@
"compose-request": {
"distro": "",
"arch": "",
"output-format": "qcow2",
"image-type": "qcow2",
"filename": "disk.qcow2",
"blueprint": {
"name": "qcow2-boot-test",
@ -158,7 +158,7 @@
"compose-request": {
"distro": "",
"arch": "",
"output-format": "vhd",
"image-type": "vhd",
"filename": "disk.vhd",
"blueprint": {
"name": "vhd-boot-test",
@ -184,7 +184,7 @@
"compose-request": {
"distro": "",
"arch": "",
"output-format": "vmdk",
"image-type": "vmdk",
"filename": "disk.vmdk",
"blueprint": {
"name": "vmdk-boot-test",

View file

@ -16,7 +16,7 @@ This script generates a json test case. It accepts a test_case_request as input
"compose-request": {
"distro": "fedora-30",
"arch": "x86_64",
"output-format": "qcow2",
"image-type": "qcow2",
"filename": "disk.qcow2",
"blueprint": {}
}
@ -38,10 +38,10 @@ def main(test_case, store):
blueprint = json.dumps(compose_request["blueprint"])
pipeline_command = ["go", "run", "./cmd/osbuild-pipeline", "-distro", compose_request["distro"], "-arch", compose_request["arch"], "-image-type", compose_request["output-format"], "-"]
pipeline_command = ["go", "run", "./cmd/osbuild-pipeline", "-distro", compose_request["distro"], "-arch", compose_request["arch"], "-image-type", compose_request["image-type"], "-"]
test_case["manifest"] = json.loads(subprocess.check_output(pipeline_command, input=blueprint, encoding="utf-8"))
pipeline_command = ["go", "run", "./cmd/osbuild-pipeline", "-distro", compose_request["distro"], "-arch", compose_request["arch"], "-image-type", compose_request["output-format"], "-rpmmd", "-"]
pipeline_command = ["go", "run", "./cmd/osbuild-pipeline", "-distro", compose_request["distro"], "-arch", compose_request["arch"], "-image-type", compose_request["image-type"], "-rpmmd", "-"]
test_case["rpmmd"] = json.loads(subprocess.check_output(pipeline_command, input=blueprint, encoding="utf-8"))
if boot_type != "nspawn-extract":