Skip to content

Commit

Permalink
test: enable ignore_missing_repos in service configs
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k authored and lzap committed Nov 5, 2024
1 parent 5d6a4b7 commit c9e412f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cases/api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ PGUSER=postgres PGPASSWORD=foobar PGDATABASE=osbuildcomposer PGHOST=localhost PG
popd

cat <<EOF | sudo tee "/etc/osbuild-composer/osbuild-composer.toml"
ignore_missing_repos = true
log_level = "debug"
[koji]
allowed_domains = [ "localhost", "client.osbuild.org" ]
Expand Down Expand Up @@ -778,6 +779,7 @@ verifyPackageList
#
greenprint "Verifying oauth2"
cat <<EOF | sudo tee "/etc/osbuild-composer/osbuild-composer.toml"
ignore_missing_repos = true
[koji]
enable_tls = false
enable_mtls = false
Expand Down
1 change: 1 addition & 0 deletions test/cases/regression-old-worker-new-composer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ sudo "${CONTAINER_RUNTIME}" pull --creds "${V2_QUAY_USERNAME}":"${V2_QUAY_PASSWO
"quay.io/osbuild/osbuild-composer-ubi-pr:${CI_COMMIT_SHA}"

cat <<EOF | sudo tee "/etc/osbuild-composer/osbuild-composer.toml"
ignore_missing_repos = true
log_level = "debug"
[koji]
allowed_domains = [ "localhost", "client.osbuild.org" ]
Expand Down
2 changes: 2 additions & 0 deletions test/data/composer/osbuild-composer-jwt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ignore_missing_repos = true

[koji]
enable_tls = false
enable_mtls = false
Expand Down
2 changes: 2 additions & 0 deletions test/data/composer/osbuild-composer-tls.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ignore_missing_repos = true

[koji]
allowed_domains = [ "localhost", "client.osbuild.org" ]
ca = "/etc/osbuild-composer/ca-crt.pem"
Expand Down
1 change: 1 addition & 0 deletions tools/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ sudo mkdir -p /etc/osbuild-worker
# 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
# This requires that ignore_missing_repos is enabled in the osbuild-composer configuration
sudo rm -rf /etc/osbuild-composer/repositories
sudo rm -f /usr/share/osbuild-composer/repositories/*

Expand Down

0 comments on commit c9e412f

Please sign in to comment.