test/cases: new case that verifies composer works behind satellite
Introduce a test case where 2 httpd proxies are used to simulate custom repos with custom subscriptions. That is, every repo requires client-side tls certificate with its own CA. Make sure both osbuild and osbuild-composer can use these repositories by issuing an image build.
This commit is contained in:
parent
ac51c5087f
commit
2d75b25ffe
3 changed files with 269 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
source /etc/os-release
|
||||
|
||||
TESTS_PATH=/usr/libexec/tests/osbuild-composer/
|
||||
mkdir --parents /tmp/logs
|
||||
LOGS_DIRECTORY=$(mktemp --directory --tmpdir=/tmp/logs)
|
||||
|
|
@ -40,11 +42,26 @@ run_test_case () {
|
|||
# Provision the software under test.
|
||||
/usr/libexec/osbuild-composer-test/provision.sh
|
||||
|
||||
# Run each test case.
|
||||
# Run test cases common for all distros.
|
||||
for TEST_CASE in "${TEST_CASES[@]}"; do
|
||||
run_test_case ${TESTS_PATH}/"$TEST_CASE"
|
||||
done
|
||||
|
||||
case "${ID}" in
|
||||
"fedora")
|
||||
if [ "${VERSION_ID}" -eq "33" ];
|
||||
then
|
||||
# TODO: make this work for all fedora versions once we can drop the override from
|
||||
# the Schutzfile. (osbuild CI doesn't build any Fedora except 33)
|
||||
/usr/libexec/tests/osbuild-composer/regression-composer-works-behind-satellite.sh
|
||||
run_test_case ${TESTS_PATH}/regression-composer-works-behind-satellite.sh
|
||||
else
|
||||
echo "No regression test cases specific to this Fedora version"
|
||||
fi;;
|
||||
*)
|
||||
echo "no test cases specific to: ${ID}-${VERSION_ID}"
|
||||
esac
|
||||
|
||||
# Print a report of the test results.
|
||||
test_divider
|
||||
echo "😃 Passed tests:" "${PASSED_TESTS[@]}"
|
||||
|
|
@ -59,3 +76,4 @@ else
|
|||
echo "🔥 One or more tests failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue