8000 GitHub - morbidrsa/baremetal_support: A support service for baremetal testing
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

morbidrsa/baremetal_support

 
 

Repository files navigation

A support service for baremetal testing

Build Status codecov

While this is designed to work with openQA, this service has not dependencies to openQA. However, it may be of limited use without being used with an openQA instance.

Running

Prior to doing anyting. some preparation is needed:

 git clone https://github.com/frankenmichl/ipxe_http.git
 cd ipxe_http
 virtualenv virtualenv
 make init

To start the server, just run pythin server.py. Hit C-c to exit.

Running the tests

Running the unit tests is easy.

make test

You get a coverage report, this should show 100% coverage. If you want to see more information, just run

coverage html

and open the report in your browser.

API Documentation

All parameters in this documentation are surrounded by <>.

Bootscript related API

/v1/bootscript/script.ipxe

  • GET Returns the bootscript for the host issuing the GET request

/v1/bootscript/script.ipxe/

  • GET Return the bootscript for the host with IP address
  • POST set the bootscript for the host with IP address

Lock related API

/v1/host_lock/lock/

  • GET take the lock if possible. If the host is already locked, HTTP status 412 is returned
  • PUT free the lock. If it is not locked, HTTP status 412 signals the error.

/v1/host_lock/lock_state/

  • GET retrieve the lock status of . Returned in the body as locked or unlocked

About

A support service for baremetal testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.8%
  • Makefile 2.2%
0