User story #2222
PT distributePolicy: Check status of webapp and endpoint, and restart jetty if several continuous tests fail
|Assignee:||Matthieu CERDA||% Done:|
|Category:||Techniques||Estimated time:||2.00 hours|
Initially we can just run a curl check on a simple URL, and ensure we get a HTTP 200 OK response code.
Later, we can extend this to use the built-in REST API and call something like /api/status which should return a text string "OK".
#2 Updated by Matthieu CERDA almost 4 years ago
- Status changed from Pending technical review to Discussion
This commit implements the check only for the webapp. Indeed, the inventory endpoint only responds to POST methods and a GET returns a 405 error (Method not supported). I do not think that trying to post something at every run is a good idea, so it is for me a better idea to wait for the enhanced version that will use the REST API to check the status. Also, there were some discussions about merging the webapp and the endpoint !