Provides communitacion from Guest VM to travis (to worker and database)
This is Proof of concept ...and work in progress
Travis-worker do the following:
- starts VM
- starts GuestAPI server
- Forward the local port of the GuestAPI to the VM
- set enviroment variable GUEST_API_URL in the VM and run the test.
- ...and test can use Guest API.
Some command of GuestAPI call the callback back in travis-worker.
Work in progress...
-
POST /logs
-
POST steps
-
GET steps/:testcase_uuid
-
PUT steps/:testcase_uuid
-
POST steps/upload
-
PUT ssh #keep_disconnected, #retry_on_disconnect
-
POST restart
-
POST finished
curl -X POST -H "Accept: application/json" -d '{"job_id": 666, "log_message": "any text", "number": 1}' http://localhost:9292/jobs/1/logs curl -X POST -H "Accept: application/json" -d '{"job_id": 1, "message": "any text"}' http://localhost:8102/jobs/1/finished curl -X POST -H "Accept: application/json" -d '{"job_id": 2, "name": "testName", "classname": "className", "result": "success"}' http://localhost:8102/jobs/1/steps