Skip to content

Commit

Permalink
provision.sh: ensure no repositories in the Service scenario
Browse files Browse the repository at this point in the history
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 <thozza@redhat.com>
  • Loading branch information
thozza committed Sep 23, 2024
1 parent 7437770 commit 3607783
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3607783

Please sign in to comment.