Test/api.sh: test distro aliases and names without dot-notation

Extend the `api.sh` to allow testing compose requests with distro name
which does not use dot-notation (specifically when the dot is removed
from the distro name as it used to be in the past). In addition to that,
allow also testing the distro alias using distro name without the minor
version in compose requests.

Enable these two new test variants in the CI.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-01-12 22:39:11 +01:00 committed by Achilleas Koutsou
parent fb6acbbe83
commit 2fe5e01d4d
10 changed files with 180 additions and 37 deletions

View file

@ -568,6 +568,46 @@ API-module-hotfixes:
INTERNAL_NETWORK: ["true"]
TEST_MODULE_HOTFIXES: [1]
API-no-dot-notation:
stage: test
extends: .terraform
rules:
- !reference [.upstream_rules_all, rules]
# note: cloud API is not supported for on-prem installations so
# don't run this test case for nightly trees
script:
- schutzbot/deploy.sh
- /usr/libexec/tests/osbuild-composer/api.sh "${IMAGE_TYPE}"
parallel:
matrix:
- IMAGE_TYPE:
- aws
RUNNER:
- aws/rhel-8.9-ga-x86_64
- aws/rhel-9.3-ga-x86_64
INTERNAL_NETWORK: ["true"]
TEST_NO_DOT_NOTATION: [1]
API-distro-alias:
stage: test
extends: .terraform
rules:
- !reference [.upstream_rules_all, rules]
# note: cloud API is not supported for on-prem installations so
# don't run this test case for nightly trees
script:
- schutzbot/deploy.sh
- /usr/libexec/tests/osbuild-composer/api.sh "${IMAGE_TYPE}"
parallel:
matrix:
- IMAGE_TYPE:
- aws-sap-rhui
RUNNER:
- aws/rhel-8.9-ga-x86_64
- aws/rhel-9.3-ga-x86_64
INTERNAL_NETWORK: ["true"]
TEST_DISTRO_ALIAS: [1]
.libvirt_integration:
stage: test
extends: .terraform/gcp