debian-forge-composer/test/data
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
..
ansible test: Add 'kernel-rt' and kernel customization test 2021-03-09 21:39:46 +00:00
azure tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
cloud-init tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
composer test: Fix installation of osbuild-worker.toml in provision.sh 2021-02-25 18:44:21 +00:00
kerberos tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
keyring tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
koji test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
manifests image-info: show format version for qcow2 2021-04-10 10:06:11 +02:00
repositories repositories: use snapshots for rhel90 repos 2021-03-26 14:05:20 +00:00
worker test: Fix installation of osbuild-worker.toml in provision.sh 2021-02-25 18:44:21 +00:00
x509 test: generate certificates on fly instead of shipping them in the test RPM 2020-11-05 13:48:48 +01:00