WIP: Replace cram tests with a REST server dedicated for testing
Instead of having cram
tests, we use a REST sever that lets you run a test and get it's 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) - There was a deployment loop for the tests (due to the pod exiting after running the tests), which was causing during the deployment stage. To make it work, we had to manually remove the
gps-tests
pod