WIP: Replace cram tests with a REST server dedicated for testing
Instead of having cram
tests, we use a REST server that lets you run a test and retrieve its result using a GET
request.
Example: curl http://$HOSTNAME/gps-tests/cmd
will run a test for cmdendpoint
and return the result (PASSED
or FAILED
).
This solves two problems:
- The pods containing the
cram
tests were exiting after running them. This was causing a lot of redeployments, which made it difficult to get the output of the tests (the pods were unavailable most of the time, so we needed a loop with sleeps to check when it was up). The RDV mechanism was not always perfect, read on: - There was a deployment loop for the tests (due to the pod exiting after running the tests), which was causing failures during the deployment stage. To make it work, we had to manually remove the
gps-tests
pod and retry (this effect of this has been reduced to the minimum, by end of February 2021).
Edited by Fotis Georgatos