debian-forge-composer/tools/test-case-generators
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
..
distro-arch-imagetype-map.json rhel85: add definitions of RHEL ec2 and ec2-ha images 2021-08-02 19:05:09 +02:00
format-request-map.json generate-test-cases: check supported_arches from format-request-map.json 2021-09-21 14:41:38 +02:00
generate-all-test-cases image-info: changes related to reading SELinux labels unknown to host 2021-06-22 13:25:59 +03:00
generate-test-cases generate-test-cases: check supported_arches from format-request-map.json 2021-09-21 14:41:38 +02:00
repos.json test: regenerate manifests 2021-09-15 10:47:57 +02:00