The unit test uses Golang to directly execute unit tests from dist-git
sources. Running unit tests requires all package build dependencies to
be installed. Previously, this was handled by explicitly specifying all
package build dependencies as a test dependencies. This results in the
requirement to update the unit test for any new release with additional
build dependency. This information is already encoded in the SPEC file
and it is not really specific to the unit test.
Move away from specifying package build dependencies as the test
dependency and install BuildRequires from the package SPEC as part of
the test case.
Related: rhbz#2059870
Let's print more information about the machine - the list of all installed RPMs
and the list of all repositories (including the filenames - that's why find is
used). Also, the old WORKSPACE workaround was removed (no longer needed).
The timeout for unit tests is now longer and we use the up-to-date RHEL 9
keys.
This commit also removes a lot of the tests, see the reasoning inline. The
process just took way too long. We have upstream CI and we have also the
nightly pipeline so we should be fine even though we remove some bits from
here.
The repositories were also removed, rhel-9.json is actually not used anymore
in recent RHEL versions and the test should just use their own stable
snapshots nevertheless.
Related: rhbz#2059870