debian-forge-composer/tools
Tomas Hozza 2d2d9fe7f9 generate-test-cases: check supported_arches from format-request-map.json
Some image type test cases require additional repositories, which are
not available for all architectures. However, when an image type test
case is specified in the `format-request-map.json`, it is generated on any
architecture.

This behavior is creating issues when generating `*edge-commit` image
type test cases. This is because the `format-request-map.json` contains one
additional definition for `*edge-commit-rt`, which includes `kernel-rt`
package. However repositories with this package are available only for
x86_64. Therefore, when generating image test cases for `*edge-commit`,
the `generate-test-cases` script always generates two test cases,
but the generation of `*edge-commit-rt` always fails on non-x86_64
architectures.

Add a new optional member to the image type test case object in
`format-request-map.json`, called `supported_arches`. Its value is a
list of strings, specifying the supported architectures of the image
type test case. In case the member is not specified, the image test
case is supported on any architecture.

Extend the `generate-test-cases` script to skip image type test case
generation in case the case has the `supported_arches` specified and the
requested architecture is not in the list.

Fix #1478

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-09-21 14:41:38 +02:00
..
deploy tools: Add script to generate all test cases in VMs 2021-02-01 10:22:28 +01:00
test-case-generators generate-test-cases: check supported_arches from format-request-map.json 2021-09-21 14:41:38 +02:00
clouddot_build_deploy.sh tools: add delpoy script for clouddot 2020-12-22 15:27:39 +01:00
define-compose-url.sh tests: Add info about COMPOSE_ID/COMPOSE_URL 2021-09-07 13:29:56 +03:00
deploy-openstack tools: add deploy-openstack 2020-10-20 15:43:30 +02:00
deploy-qemu tools/deploy-qemu: use sys.exit instead of exit 2021-06-22 14:45:54 +02:00
gen-certs.sh tools: Add internal container names to certs 2021-01-30 13:20:11 +00:00
gen-ssh.sh test: Replace hard coded ssh keys on some test 2021-07-29 09:38:03 +03:00
gen-user-data Return error when write_files exists in cloud-init (#1644) 2021-08-20 22:24:38 +02:00
image-info image-info: mount partitions in correct order when analysing image 2021-08-05 09:34:07 +02:00
koji-compose.py test: use DISTRO_CODE to select tests case 2021-03-26 14:05:20 +00:00
libvirt_test.sh Undo changes added by mistake 2021-09-10 15:17:54 +02:00
prepare-source.sh bump minimum go version to 1.15 2021-07-07 17:26:18 +01:00
provision.sh tests: Override filename contains minor version number 2021-09-07 13:29:56 +03:00
run-koji-container.sh tools: move to new utility-container builds 2021-02-23 09:47:17 +01:00
update-distgit.py docs: document the release process 2021-07-14 12:11:35 +02:00