cloudapi/v2: add koji-specific tests

These are based on the existing tests for the koji API, making sure the coverage is the same.
This commit is contained in:
Tom Gundersen 2022-01-28 14:57:14 +00:00
parent a3f8304ae8
commit 11e2ae4528
5 changed files with 707 additions and 2 deletions

View file

@ -57,8 +57,13 @@ if [[ "$DISTRO_CODE" == rhel-8* ]]; then
DISTRO_CODE=rhel-86
fi
greenprint "Pushing compose to Koji"
sudo /usr/libexec/osbuild-composer-test/koji-compose.py "$DISTRO_CODE" "${ARCH}"
if [ "${COMPOSER_API:=true}" == "true" ]; then
greenprint "Pushing compose to Koji (/api/image-builder-comoser/v2/"
sudo /usr/libexec/osbuild-composer-test/koji-compose-v2.py "$DISTRO_CODE" "${ARCH}"
else
greenprint "Pushing compose to Koji (/api/comoser-koji/v1/"
sudo /usr/libexec/osbuild-composer-test/koji-compose.py "$DISTRO_CODE" "${ARCH}"
fi
greenprint "Show Koji task"
koji --server=http://localhost:8080/kojihub taskinfo 1