Open jiridanek opened 2 years ago
Issues to address:
.py
extension is annoying)/usr/lib/skupper-router/tests/failoverserver.py
This could be extended to have the systemtests run the skupper-router container and therefore test the router as it is containerized. This would be awful for debugging issues, but it would more realistically test what gets deployed. This would work only for some tests, me thinks. Container would have to be run with --network=host
and the test tmp dir (where configs are) would have to be mounted into it as a volume.
Related issue, run these tests in Testing Farm / Packit
See Dispatch issue https://issues.apache.org/jira/browse/DISPATCH-1449
There is not an obvious way how to run the tests. The usual method through
ctest
is not available.Looks like there is no way at all to run unittests, but that does not matter that much, because we want to test the installed skrouterd binary here. (So, the unittest binaries probably should not be installed and packaged into the -tests RPM; which they apparently are not, so we are good there.)
There is helper script
run_system_tests.py
. ButRun tests the following way (as root)
Many tests fail
For various reasons, oftentimes this one (which should not be too hard to fix, either provide import path, or remove usage of compat.BINARY if possible, or reimplement the function for system tests and put it into system_tests.py)
or this one
or
or
Sometimes they timeout, that's why I have the limit in the command. E.g.
system_tests_one_router.py
is one of the ones that timeout.