i-VRESSE / bartender

Middleware web service to schedule jobs on various infrastructures
https://i-vresse-bartender.readthedocs.io
Apache License 2.0
1 stars 0 forks source link

Add /{jobid}/directories route #59

Closed sverhoeven closed 1 year ago

sverhoeven commented 1 year ago

Fixes #55

TODO

To test:

  1. Setup bartender with word count application
  2. Follow https://github.com/i-VRESSE/bartender#word-count-example instructions
  3. Try out the GET /api/job/{jobid}/directories route
    • It should return listing with files named: README.md, stdout.txt, stderr.txt, returncode and meta .
  4. Try out the GET /api/job/{jobid}/directories/{path}
    • As word count application does not have sub directories you should make one by running mkdir /tmp/jobs/1/somedir && /tmp/jobs/1/somedir/somefile
    • Use somedir as value for path parameter.
    • Should return somefile as file.