Update most SR tests to use slapos.testing
Update almost all tests to use slapos.core!64 (merged)
Notable changes:
- the testcase class is generated dynamically with
makeModuleSetUpAndTestCaseClass -
self.slapallow low level control of slapos - IP addresses are available as
_ipv6_addressand_ipv4_addressclass attributes -
getSupervisorRPCServerno longer exist, instead useself.slap.instance_supervisor_rpc(as context manager) - now the framework takes care of running promises and instance step fail when instanciation fail or when promises are not satisfied (as a result, some tests checking promises are dropped)
- test needs
slaposandsupervisordcommands in PATH. It's important to have a recent enoughslaposand not the~/bin/slaposfrom slaprunner which sets$SLAPOS_CONFIGURATION
Following tests were not updated:
-
caddy-frontendas this will require more work, because this software uses shared partitions and maybe other things will need to be adapted in the tests. -
slapos-masteras it is same as ERP5 and I thought maybe we can do better than duplicating code, so I left it as is for now. -
nextcloudas this fail theslapos node instancestep.
There are also a few style changes or small fixes to make pylint happy and some other fixes for problems with softwares and also a fix for seleniumrunner flaky test.