The tools/provision.sh script is sourced by all test cases and it sets
up the system and software for running test cases. As part of the setup,
it copied over the whole content of test/data/composer/ to
/etc/osbuild-composer. However the source directory contains not only
osbuild-composer's configuration, but also configuration for the worker.
The worker however expects its configuration in /etc/osbuild-worker.
The fact that provision.sh does not copy the worker configuration to the
correct directory didn't affect the CI, because the only test case that
relied on it is koji.sh, which copies the worker configuration
explicitly.
Move osbuild-worker test configuration to a separate 'test/data/worker/'
subdirectory. Also install the osbuild-worker test configuration to its
own subdirectory in the "-test" RPM.
Move the copying of worker configuration to the correct destination
directory from koji.sh to provision.sh, so that all test cases can rely
on the system being set up properly. Do not use wildcard for copying
osbuild-{composer,worker} configuration files, but explicitly copy each
file to its respective destination directory.
Signed-off-by: Tomas Hozza <thozza@redhat.com>
|
||
|---|---|---|
| .. | ||
| deploy | ||
| test-case-generators | ||
| clouddot_build_deploy.sh | ||
| deploy-openstack | ||
| deploy-qemu | ||
| gen-certs.sh | ||
| gen-user-data | ||
| image-info | ||
| koji-compose.py | ||
| libvirt_test.sh | ||
| prepare-source.sh | ||
| provision.sh | ||
| run-koji-container.sh | ||