diff --git a/test/cases/aws.sh b/test/cases/aws.sh index 30fe12db7..513b8c8b9 100755 --- a/test/cases/aws.sh +++ b/test/cases/aws.sh @@ -29,7 +29,7 @@ function get_build_info() { CONTAINER_IMAGE_CLOUD_TOOLS="quay.io/osbuild/cloud-tools:latest" # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Check available container runtime if which podman 2>/dev/null >&2; then diff --git a/test/cases/aws_s3.sh b/test/cases/aws_s3.sh index 8e30bbe2a..c3fcdf044 100755 --- a/test/cases/aws_s3.sh +++ b/test/cases/aws_s3.sh @@ -19,7 +19,7 @@ set -euo pipefail CONTAINER_IMAGE_CLOUD_TOOLS="quay.io/osbuild/cloud-tools:latest" # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Check available container runtime if which podman 2>/dev/null >&2; then diff --git a/test/cases/azure.sh b/test/cases/azure.sh index 53643b4d9..1a8c95f79 100755 --- a/test/cases/azure.sh +++ b/test/cases/azure.sh @@ -33,7 +33,7 @@ function get_build_info() { CONTAINER_IMAGE_CLOUD_TOOLS="quay.io/osbuild/cloud-tools:latest" # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Check available container runtime if which podman 2>/dev/null >&2; then diff --git a/test/cases/base_tests.sh b/test/cases/base_tests.sh index ce7762d8a..04be4fd4c 100755 --- a/test/cases/base_tests.sh +++ b/test/cases/base_tests.sh @@ -45,7 +45,7 @@ run_test_case () { # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Change to the working directory. cd $WORKING_DIRECTORY diff --git a/test/cases/container-embedding.sh b/test/cases/container-embedding.sh index 98a46fdde..120be8272 100755 --- a/test/cases/container-embedding.sh +++ b/test/cases/container-embedding.sh @@ -21,7 +21,7 @@ source /usr/libexec/osbuild-composer-test/set-env-variables.sh # Provision the software under test. # -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none TEMPDIR=$(mktemp -d) function cleanup() { diff --git a/test/cases/container-upload.sh b/test/cases/container-upload.sh index 14fd95239..9f698c2da 100755 --- a/test/cases/container-upload.sh +++ b/test/cases/container-upload.sh @@ -21,7 +21,7 @@ source /usr/libexec/osbuild-composer-test/set-env-variables.sh # Provision the software under test. # -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none ARTIFACTS="${ARTIFACTS:-/tmp/artifacts}" TEMPDIR=$(mktemp -d) diff --git a/test/cases/cross-distro.sh b/test/cases/cross-distro.sh index 20612c384..9c9cc2a89 100755 --- a/test/cases/cross-distro.sh +++ b/test/cases/cross-distro.sh @@ -46,7 +46,7 @@ esac # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none echo "====> Finished Provisioning system" echo "====> Starting $(basename "$0")" diff --git a/test/cases/filesystem.sh b/test/cases/filesystem.sh index b3625df69..1cb86529f 100644 --- a/test/cases/filesystem.sh +++ b/test/cases/filesystem.sh @@ -8,7 +8,7 @@ set -euo pipefail source /etc/os-release # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Colorful output. function greenprint { diff --git a/test/cases/gcp.sh b/test/cases/gcp.sh index 60735c311..c5ae6de02 100755 --- a/test/cases/gcp.sh +++ b/test/cases/gcp.sh @@ -40,7 +40,7 @@ function get_build_info() { CONTAINER_IMAGE_CLOUD_TOOLS="quay.io/osbuild/cloud-tools:latest" # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Check available container runtime if which podman 2>/dev/null >&2; then diff --git a/test/cases/generic_s3.sh b/test/cases/generic_s3.sh index 1880a2bfd..aae481055 100755 --- a/test/cases/generic_s3.sh +++ b/test/cases/generic_s3.sh @@ -20,7 +20,7 @@ CONTAINER_MINIO_CLIENT="quay.io/minio/mc:latest" CONTAINER_MINIO_SERVER="quay.io/minio/minio:latest" # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Check available container runtime if which podman 2>/dev/null >&2; then diff --git a/test/cases/image_tests.sh b/test/cases/image_tests.sh index b87c26d80..44ddc1ebf 100755 --- a/test/cases/image_tests.sh +++ b/test/cases/image_tests.sh @@ -89,7 +89,7 @@ run_test_case () { } # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Change to the working directory. cd $WORKING_DIRECTORY diff --git a/test/cases/installers.sh b/test/cases/installers.sh index 9d8844edf..6102e7d88 100755 --- a/test/cases/installers.sh +++ b/test/cases/installers.sh @@ -9,7 +9,7 @@ set -euo pipefail # # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Get OS data. source /usr/libexec/osbuild-composer-test/set-env-variables.sh diff --git a/test/cases/libvirt.sh b/test/cases/libvirt.sh index 320f4f990..a53e387dc 100644 --- a/test/cases/libvirt.sh +++ b/test/cases/libvirt.sh @@ -9,7 +9,7 @@ set -euo pipefail source /usr/libexec/osbuild-composer-test/set-env-variables.sh # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Test the images /usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2 diff --git a/test/cases/manifest_tests.sh b/test/cases/manifest_tests.sh index 62ad8c405..91f6e8279 100755 --- a/test/cases/manifest_tests.sh +++ b/test/cases/manifest_tests.sh @@ -14,7 +14,7 @@ test_divider () { } # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Change to the working directory. cd $WORKING_DIRECTORY diff --git a/test/cases/ostree-ng.sh b/test/cases/ostree-ng.sh index 2b9db8f09..e6ec12720 100755 --- a/test/cases/ostree-ng.sh +++ b/test/cases/ostree-ng.sh @@ -2,7 +2,7 @@ set -euo pipefail # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Get OS data. source /usr/libexec/osbuild-composer-test/set-env-variables.sh diff --git a/test/cases/ostree-raw-image.sh b/test/cases/ostree-raw-image.sh index ed787c0a0..e1f0daad3 100755 --- a/test/cases/ostree-raw-image.sh +++ b/test/cases/ostree-raw-image.sh @@ -2,7 +2,7 @@ set -euo pipefail # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Get OS data. source /etc/os-release diff --git a/test/cases/ostree-rebase.sh b/test/cases/ostree-rebase.sh index 147796f78..c6441309c 100755 --- a/test/cases/ostree-rebase.sh +++ b/test/cases/ostree-rebase.sh @@ -10,7 +10,7 @@ if [[ ${ID} == "rhel" ]] && ! sudo subscription-manager status; then fi # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Colorful output. function greenprint { diff --git a/test/cases/ostree-simplified-installer.sh b/test/cases/ostree-simplified-installer.sh index f7e790c8c..774853c19 100755 --- a/test/cases/ostree-simplified-installer.sh +++ b/test/cases/ostree-simplified-installer.sh @@ -2,7 +2,7 @@ set -euo pipefail # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Get OS data. source /etc/os-release diff --git a/test/cases/ostree.sh b/test/cases/ostree.sh index 25e8d2ee6..39465e736 100755 --- a/test/cases/ostree.sh +++ b/test/cases/ostree.sh @@ -10,7 +10,7 @@ if [[ ${ID} == "rhel" ]] && ! sudo subscription-manager status; then fi # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Set os-variant and boot location used by virt-install. case "${ID}-${VERSION_ID}" in diff --git a/test/cases/regression-bigiso.sh b/test/cases/regression-bigiso.sh index 1e7a77746..a0d31396b 100644 --- a/test/cases/regression-bigiso.sh +++ b/test/cases/regression-bigiso.sh @@ -31,7 +31,7 @@ function get_build_info() { } # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none BLUEPRINT_FILE=/tmp/blueprint.toml COMPOSE_START=/tmp/compose-start.json COMPOSE_INFO=/tmp/compose-info.json diff --git a/test/cases/regression-composer-works-behind-satellite-fallback.sh b/test/cases/regression-composer-works-behind-satellite-fallback.sh index 53c2cf26f..51f880f58 100644 --- a/test/cases/regression-composer-works-behind-satellite-fallback.sh +++ b/test/cases/regression-composer-works-behind-satellite-fallback.sh @@ -47,7 +47,7 @@ if [[ "$ID" == rhel ]] && sudo subscription-manager status; then fi # Provision the software under tet. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Discover what system is installed on the runner case "${ID}" in diff --git a/test/cases/regression-composer-works-behind-satellite.sh b/test/cases/regression-composer-works-behind-satellite.sh index 1623f2682..7930a0ab1 100644 --- a/test/cases/regression-composer-works-behind-satellite.sh +++ b/test/cases/regression-composer-works-behind-satellite.sh @@ -76,7 +76,7 @@ if [[ "$ID" == rhel ]] && sudo subscription-manager status; then fi # Provision the software under tet. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none # Discover what system is installed on the runner case "${ID}" in diff --git a/test/cases/regression-excluded-dependency.sh b/test/cases/regression-excluded-dependency.sh index 94d6fae40..88ebf6185 100644 --- a/test/cases/regression-excluded-dependency.sh +++ b/test/cases/regression-excluded-dependency.sh @@ -36,7 +36,7 @@ function get_build_info() { } # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none BLUEPRINT_FILE=/tmp/blueprint.toml COMPOSE_START=/tmp/compose-start.json COMPOSE_INFO=/tmp/compose-info.json diff --git a/test/cases/regression-include-excluded-packages.sh b/test/cases/regression-include-excluded-packages.sh index 83829d28d..46e5a0fa8 100644 --- a/test/cases/regression-include-excluded-packages.sh +++ b/test/cases/regression-include-excluded-packages.sh @@ -22,7 +22,7 @@ if [[ "${ID}" == "fedora" ]]; then fi # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none BLUEPRINT_FILE=/tmp/blueprint.toml COMPOSE_START=/tmp/compose-start.json COMPOSE_INFO=/tmp/compose-info.json diff --git a/test/cases/regression-insecure-repo.sh b/test/cases/regression-insecure-repo.sh index 4c040be7f..0eef2608e 100644 --- a/test/cases/regression-insecure-repo.sh +++ b/test/cases/regression-insecure-repo.sh @@ -13,7 +13,7 @@ function greenprint { source /usr/libexec/osbuild-composer-test/set-env-variables.sh # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none greenprint "Registering clean ups" kill_pids=() diff --git a/test/cases/regression-no-explicit-rootfs-definition.sh b/test/cases/regression-no-explicit-rootfs-definition.sh index 84714cb7e..5b7fdbaaf 100644 --- a/test/cases/regression-no-explicit-rootfs-definition.sh +++ b/test/cases/regression-no-explicit-rootfs-definition.sh @@ -17,7 +17,7 @@ esac set -xeuo pipefail # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none function get_build_info() { diff --git a/test/cases/vmware.sh b/test/cases/vmware.sh index 3fda494c4..ce33d4779 100755 --- a/test/cases/vmware.sh +++ b/test/cases/vmware.sh @@ -32,7 +32,7 @@ if [ "$ID" != "rhel" ]; then fi # Provision the software under test. -/usr/libexec/osbuild-composer-test/provision.sh +/usr/libexec/osbuild-composer-test/provision.sh none GOVC_CMD=/tmp/govc diff --git a/tools/provision.sh b/tools/provision.sh index f03773075..1a34e3798 100755 --- a/tools/provision.sh +++ b/tools/provision.sh @@ -10,6 +10,7 @@ mkdir -p "${ARTIFACTS}" # determine the authentication method used by composer AUTH_METHOD_TLS="tls" AUTH_METHOD_JWT="jwt" +AUTH_METHOD_NONE="none" # default to TLS for now AUTH_METHOD="${1:-$AUTH_METHOD_TLS}" @@ -42,120 +43,130 @@ fi sudo mkdir -p /etc/osbuild-composer sudo mkdir -p /etc/osbuild-worker -# Generate all X.509 certificates for the tests -# The whole generation is done in a $CADIR to better represent how osbuild-ca -# it. -CERTDIR=/etc/osbuild-composer -OPENSSL_CONFIG=/usr/share/tests/osbuild-composer/x509/openssl.cnf -CADIR=/etc/osbuild-composer-test/ca +# osbuild-composer and worker need to be configured in a specific way only when using +# some authentication method (Service scenario). In such case, also credentials for +# interacting with cloud providers are configured directly in the worker. In addition, +# no certificates need to be generated, because they are not used anywhere in this +# scenario. +if [[ "$AUTH_METHOD" != "$AUTH_METHOD_NONE" ]]; then + # Generate all X.509 certificates for the tests + # The whole generation is done in a $CADIR to better represent how osbuild-ca + # it. + CERTDIR=/etc/osbuild-composer + OPENSSL_CONFIG=/usr/share/tests/osbuild-composer/x509/openssl.cnf + CADIR=/etc/osbuild-composer-test/ca -scriptloc=$(dirname "$0") -sudo "${scriptloc}/gen-certs.sh" "${OPENSSL_CONFIG}" "${CERTDIR}" "${CADIR}" -sudo chown _osbuild-composer "${CERTDIR}"/composer-*.pem + scriptloc=$(dirname "$0") + sudo "${scriptloc}/gen-certs.sh" "${OPENSSL_CONFIG}" "${CERTDIR}" "${CADIR}" + sudo chown _osbuild-composer "${CERTDIR}"/composer-*.pem -# Copy the appropriate configuration files -if [[ "$AUTH_METHOD" == "$AUTH_METHOD_JWT" ]]; then - COMPOSER_TEST_CONFIG="/usr/share/tests/osbuild-composer/composer/osbuild-composer-jwt.toml" - WORKER_TEST_CONFIG="/usr/share/tests/osbuild-composer/worker/osbuild-worker-jwt.toml" + # Copy the appropriate configuration files + if [[ "$AUTH_METHOD" == "$AUTH_METHOD_JWT" ]]; then + COMPOSER_TEST_CONFIG="/usr/share/tests/osbuild-composer/composer/osbuild-composer-jwt.toml" + WORKER_TEST_CONFIG="/usr/share/tests/osbuild-composer/worker/osbuild-worker-jwt.toml" - # Default orgID - sudo tee "/etc/osbuild-worker/token" >/dev/null </dev/null < /dev/null << EOF + # if Azure credentials are defined in the env, create the credentials file + V2_AZURE_CLIENT_ID="${V2_AZURE_CLIENT_ID:-}" + V2_AZURE_CLIENT_SECRET="${V2_AZURE_CLIENT_SECRET:-}" + if [[ -n "$V2_AZURE_CLIENT_ID" && -n "$V2_AZURE_CLIENT_SECRET" ]]; then + set +x + sudo tee /etc/osbuild-worker/azure-credentials.toml > /dev/null << EOF client_id = "$V2_AZURE_CLIENT_ID" client_secret = "$V2_AZURE_CLIENT_SECRET" EOF - sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF + sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF [azure] credentials = "/etc/osbuild-worker/azure-credentials.toml" EOF - set -x -fi + set -x + fi -# if AWS credentials are defined in the ENV, add them to the worker's configuration -V2_AWS_ACCESS_KEY_ID="${V2_AWS_ACCESS_KEY_ID:-}" -V2_AWS_SECRET_ACCESS_KEY="${V2_AWS_SECRET_ACCESS_KEY:-}" -if [[ -n "$V2_AWS_ACCESS_KEY_ID" && -n "$V2_AWS_SECRET_ACCESS_KEY" ]]; then - set +x + # if AWS credentials are defined in the ENV, add them to the worker's configuration + V2_AWS_ACCESS_KEY_ID="${V2_AWS_ACCESS_KEY_ID:-}" + V2_AWS_SECRET_ACCESS_KEY="${V2_AWS_SECRET_ACCESS_KEY:-}" + if [[ -n "$V2_AWS_ACCESS_KEY_ID" && -n "$V2_AWS_SECRET_ACCESS_KEY" ]]; then + set +x sudo tee /etc/osbuild-worker/aws-credentials.toml > /dev/null << EOF [default] aws_access_key_id = "$V2_AWS_ACCESS_KEY_ID" aws_secret_access_key = "$V2_AWS_SECRET_ACCESS_KEY" EOF - sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF + sudo tee -a /etc/osbuild-worker/osbuild-worker.toml > /dev/null << EOF [aws] credentials = "/etc/osbuild-worker/aws-credentials.toml" bucket = "${AWS_BUCKET}" EOF - set -x -fi + set -x + fi -# Copy rpmrepo snapshots for use in weldr tests -REPODIR=/etc/osbuild-composer/repositories -sudo mkdir -p $REPODIR -# Copy all fedora repo overrides -sudo cp -a /usr/share/tests/osbuild-composer/repositories/{fedora,centos}-*.json "$REPODIR" -# Copy RHEL point release repos -sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-85.json "$REPODIR" -sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-86.json "$REPODIR" -sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-87.json "$REPODIR" -sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-90.json "$REPODIR" -sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-91.json "$REPODIR" +else # AUTH_METHOD_NONE + # Repositories in /etc/osbuild-composer/repositories are used only in the + # on-premise scenario (Weldr). + # Copy rpmrepo snapshots for use in weldr tests + REPODIR=/etc/osbuild-composer/repositories + sudo mkdir -p $REPODIR + # Copy all fedora repo overrides + sudo cp -a /usr/share/tests/osbuild-composer/repositories/{fedora,centos}-*.json "$REPODIR" + # Copy RHEL point release repos + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-85.json "$REPODIR" + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-86.json "$REPODIR" + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-87.json "$REPODIR" + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-90.json "$REPODIR" + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-91.json "$REPODIR" -# RHEL nightly repos need to be overridden -case "${ID}-${VERSION_ID}" in - "rhel-8.6") - # Override old rhel-8.json and rhel-8-beta.json because RHEL 8.6 test needs nightly repos - sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-86.json "$REPODIR/rhel-8.json" - # If multiple tests are run and call provision.sh the symlink will need to be overridden with -f - sudo ln -sf /etc/osbuild-composer/repositories/rhel-8.json "$REPODIR/rhel-8-beta.json" - ;; - "rhel-9.0") - # Override old rhel-90.json and rhel-90-beta.json because RHEL 9.0 test needs nightly repos - sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-90.json "$REPODIR/rhel-90.json" - # If multiple tests are run and call provision.sh the symlink will need to be overridden with -f - sudo ln -sf /etc/osbuild-composer/repositories/rhel-90.json "$REPODIR/rhel-90-beta.json" - ;; - *) ;; -esac + # RHEL nightly repos need to be overridden + case "${ID}-${VERSION_ID}" in + "rhel-8.6") + # Override old rhel-8.json and rhel-8-beta.json because RHEL 8.6 test needs nightly repos + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-86.json "$REPODIR/rhel-8.json" + # If multiple tests are run and call provision.sh the symlink will need to be overridden with -f + sudo ln -sf /etc/osbuild-composer/repositories/rhel-8.json "$REPODIR/rhel-8-beta.json" + ;; + "rhel-9.0") + # Override old rhel-90.json and rhel-90-beta.json because RHEL 9.0 test needs nightly repos + sudo cp /usr/share/tests/osbuild-composer/repositories/rhel-90.json "$REPODIR/rhel-90.json" + # If multiple tests are run and call provision.sh the symlink will need to be overridden with -f + sudo ln -sf /etc/osbuild-composer/repositories/rhel-90.json "$REPODIR/rhel-90-beta.json" + ;; + *) ;; + esac -# overrides for RHEL nightly builds testing -VERSION_SUFFIX=$(echo "${VERSION_ID}" | tr -d ".") -if [ -f "rhel-${VERSION_ID%.*}.json" ]; then - sudo cp rhel-"${VERSION_ID%.*}".json "$REPODIR/rhel-${VERSION_SUFFIX}.json" -fi + # overrides for RHEL nightly builds testing + VERSION_SUFFIX=$(echo "${VERSION_ID}" | tr -d ".") + if [ -f "rhel-${VERSION_ID%.*}.json" ]; then + sudo cp rhel-"${VERSION_ID%.*}".json "$REPODIR/rhel-${VERSION_SUFFIX}.json" + fi -if [ -f "rhel-${VERSION_ID%.*}-beta.json" ]; then - sudo cp rhel-"${VERSION_ID%.*}"-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json" + if [ -f "rhel-${VERSION_ID%.*}-beta.json" ]; then + sudo cp rhel-"${VERSION_ID%.*}"-beta.json "$REPODIR/rhel-${VERSION_SUFFIX}-beta.json" + fi fi # start appropriate units @@ -175,6 +186,15 @@ case "${AUTH_METHOD}" in sudo systemctl start osbuild-remote-worker@localhost:8700.service ;; + "${AUTH_METHOD_NONE}") + # No authentication method is used on-premise with Weldr. This means that: + # - only local worker will be used (started automatically) + # - only Weldr API socket will be started + sudo systemctl stop 'osbuild*' + # enable Weldr API + sudo systemctl start osbuild-composer.socket + ;; + *) # the default setup used previously for all tests sudo systemctl start osbuild-remote-worker.socket