From 3607783339edaaa82f3a3060a5be38e468fc1b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Mon, 23 Sep 2024 15:51:35 +0200 Subject: [PATCH] provision.sh: ensure no repositories in the Service scenario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the Service scenario, we should be testing that osbuild-composer works fine, without any repository configurations being present on the filesystem. Signed-off-by: Tomáš Hozza --- tools/provision.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/provision.sh b/tools/provision.sh index bab30fc99..fbbcc338f 100755 --- a/tools/provision.sh +++ b/tools/provision.sh @@ -57,7 +57,14 @@ sudo mkdir -p /etc/osbuild-worker # 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. +# +# Moreover, there should be no repositories configured in the Service scenario, because +# these are expected to be provided with the compose request. if [[ "$AUTH_METHOD" != "$AUTH_METHOD_NONE" ]]; then + # Remove the repositories, because it is not used in the Service scenario + sudo rm -rf /etc/osbuild-composer/repositories + sudo rm -f /usr/share/osbuild-composer/repositories/* + # Generate all X.509 certificates for the tests # The whole generation is done in a $CADIR to better represent how osbuild-ca # it.