okurz / baremetal_support

A support service for baremetal testing
GNU General Public License v3.0
5 stars 4 forks source link

Add support for retrieval of a jobid for a given test #14

Closed frankenmichl closed 4 years ago

frankenmichl commented 4 years ago

For some tests, we want to retrieve a specific job ID for a test. For example, if we want to retrieve a prepared qcow2 image from openQA to use with libvirt on a local machine.

To support this, add a new API endpoint: /v1/latest_job/////

for example: /v1/latest_job/x86_64/sle/Online/15-SP2/create_hdd_minimal_base+sdk

If successful, the openQA job ID is returned. If no job can be found, an error 404 is returned.

codecov[bot] commented 4 years ago

Codecov Report

Merging #14 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         4    +1     
  Lines          145       185   +40     
  Branches         9        12    +3     
=========================================
+ Hits           145       185   +40     
Impacted Files Coverage Δ
baremetal_support/baremetal_support.py 100.00% <100.00%> (ø)
baremetal_support/jobid.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 68b8f6c...bf25da0. Read the comment docs.