Fix the mirror tests
This involves several small steps:
-
Rename the 'mirror' fixture as 'origins'
This fixture is actually only state validation logic making sure the mirror has been properly replicated. Overloading the 'origins' fixture with it ensures it's used for every test in the test_mirror.py test set, especially the 2 tests imported from test_vault.
Also simplify it a bit using the 'docker_compose' fixture in place of the couple 'docker_host' + 'compose_cmd'.
-
Use a persistent requests Session for all api calls in tests
-
Fix entrypoint script for content replayers The wait-for-it tool expect both the host and the port. This later could be missing when extracted from a configuration with the URL (from which they are extracted) does not explicitely specify the port.
Introduce a (naive) host-port-from-url shell command in swhutils.sh to help this.