Skip to content

Extended CI use case

msporna edited this page Jul 2, 2019 · 1 revision
  1. lava server is running constantly on some VM
  2. clean checkout app under test
  3. instrument app
  4. send post request to /assign_new_files_to_module to assign newly found sources to some module (if any new sources) , if module not found will be created and then sources assigned
  5. start new test session via POST to /set_test_session_start
  6. do the testing
  7. end test session via GET to /set_test_session_end
  8. view latest report by visiting [lava_url]/report/latest
  • not that also there is always html report generated in the physical path of instrument_server.py whenever report is opened, so it can be picked up and emailed etc.

sample request to '/assign_new_files_to_module' endpoint: curl -X POST http://localhost:5000/assign_new_files_to_module -H 'Accept: /' -H 'Cache-Control: no-cache' -H 'Connection: keep-alive' -H 'Content-Type: application/json' -H 'Host: localhost:5000' -d '{"module_name":"moduleX"}'

POST requests do not require any authentication (not implemented).