Skip to content

Proof of concept: tests on windows, e2e tests, restarts, no network, test resutls storage, ...

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.travis-api
Notifications You must be signed in to change notification settings

final-ci/travis-guest-api

Repository files navigation

Build Status Code Climate Test Coverage

Guest API

Provides communitacion from Guest VM to travis (to worker and database)

This is Proof of concept ...and work in progress

Basics of Architecutre

Travis-worker do the following:

  1. starts VM
  2. starts GuestAPI server
  3. Forward the local port of the GuestAPI to the VM
  4. set enviroment variable GUEST_API_URL in the VM and run the test.
  5. ...and test can use Guest API.

Some command of GuestAPI call the callback back in travis-worker.

API endpoints

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

About

Proof of concept: tests on windows, e2e tests, restarts, no network, test resutls storage, ...

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.travis-api

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages