debian-forge-composer/tools
Christian Kellner 5937b9adca image-info: show format version for qcow2
Change the "image-format" from a string to a dict, with a "type":
$value entry, where $value contains the previous plain string
data.
Additionally, include the qcow2 format version, if the given
image is indeed a qcow2.
Adapt all manifest test accordingly (partly done by Ondřej)

Python 3 script used for conversion of manifest tests:
import os
import json

for name in os.listdir(os.getcwd()):
    if not name.endswith(".json"):
        continue
    print(name)
    with open(name, "r") as old:
        data = json.load(old)
        info = data.get("image-info", {})
        format = info.get("image-format")
        if not format:
            continue
        info["image-format"] = {
            "type": format
        }
        if format != "qcow2":
            continue
        info["image-format"]["compat"] = "1.1"
        with open(name + ".new", "w") as new:
            json.dump(data, new, indent=2)
            new.write("\n")
            new.flush()
    os.rename(name+".new", name)

test: use the new image-info format in all test manifests

The previous commit converted only qcow2 and openstack manifests but this change
is actually needed for all manifests produced by the qemu assembler.

Co-Developed-by: Ondřej Budai <ondrej@budai.cz>
2021-04-10 10:06:11 +02:00
..
deploy tools: Add script to generate all test cases in VMs 2021-02-01 10:22:28 +01:00
test-case-generators test: replace genisoimage with mkisofs 2021-04-02 14:21:29 +02:00
clouddot_build_deploy.sh tools: add delpoy script for clouddot 2020-12-22 15:27:39 +01:00
deploy-openstack tools: add deploy-openstack 2020-10-20 15:43:30 +02:00
deploy-qemu test: replace genisoimage with mkisofs 2021-04-02 14:21:29 +02:00
gen-certs.sh tools: Add internal container names to certs 2021-01-30 13:20:11 +00:00
gen-user-data tools/gen-user-data: don't depend on python3-pyyaml 2020-11-24 13:08:44 +01:00
image-info image-info: show format version for qcow2 2021-04-10 10:06:11 +02:00
koji-compose.py test: use DISTRO_CODE to select tests case 2021-03-26 14:05:20 +00:00
libvirt_test.sh test: replace genisoimage with mkisofs 2021-04-02 14:21:29 +02:00
prepare-source.sh go: bump to 1.14 2021-02-01 15:32:58 +01:00
provision.sh test: add integration test for the azure upload 2021-03-06 15:40:48 +00:00
run-koji-container.sh tools: move to new utility-container builds 2021-02-23 09:47:17 +01:00