ogserver/tests
Javier Sánchez Parra 8015f85b04 #915 Add GET /oglive/test REST API function
This function returns the installed and available ogLiveS in the server
to be booted from.

Request:
GET /oglive/list
NO BODY

Response
200 OK
{
  "oglive": [
    {
      "distribution": "bionic",
      "kernel": "5.4.0-40-generic",
      "architecture": "amd64",
      "revision": "r20200629",
      "directory": "ogLive-5.4.0-r20200629",
      "iso": "ogLive-bionic-5.4.0-40-generic-amd64-r20200629.85eceaf.iso"
    },
    {
      "distribution": "bionic",
      "kernel": "5.0.0-27-generic",
      "architecture": "amd64",
      "revision": "r20190830",
      "directory": "ogLive-5.0.0-r20190830",
      "iso": "ogLive-bionic-5.0.0-27-generic-amd64-r20190830.7208cc9.iso"
    }
  ],
  "default": 0
}

This commit also adds tests for GET /oglive/test.
2021-04-05 18:00:56 +02:00
..
config #915 Use string for tests config port 2020-10-07 16:56:26 +02:00
units #915 Add GET /oglive/test REST API function 2021-04-05 18:00:56 +02:00
clients.json #915 add clients command to REST API in ogAdmServer 2019-05-27 13:02:45 +02:00
create_basic_image.json #915 Add test for POST /image/create/basic command 2019-10-08 14:01:14 +02:00
create_image.json #915: Add POST /image/create command to REST API in ogAdmServer 2019-10-01 12:56:10 +02:00
create_schedule.json #942 Add REST API /schedule get function 2020-06-02 12:32:36 +02:00
post_clients.json #915 add initial REST API for ogAdmServer 2019-05-27 13:02:37 +02:00
post_shell_output.json #915 add POST shell/output command to REST API in ogAdmServer 2019-05-27 13:03:00 +02:00
post_shell_run.json #915 add run command to REST API in ogAdmServer 2019-05-27 13:02:57 +02:00
poweroff.json #915 add POST poweroff command to REST API in ogAdmServer 2019-05-30 15:32:01 +02:00
reboot.json #915 add POST reboot command to REST API in ogAdmServer 2019-05-30 15:32:18 +02:00
restore_image.json #915: adapt test to use id and profile fields 2019-10-01 12:59:50 +02:00
run-tests.py #915 Add Valgrind to python tests 2021-02-23 10:53:00 +01:00
run-tests.sh #915 remove old REST API from run-test.sh 2020-10-23 13:27:36 +02:00
run_schedule.json #915 Add POST "run/schedule" command to REST API in ogAdmServer 2019-10-25 14:12:09 +02:00
session.json #915 add POST session command to REST API in ogAdmServer 2019-05-27 13:03:05 +02:00
setup_image.json Add test for POST /image/create command 2019-10-07 11:15:28 +02:00
stop.json #915 add POST stop command to REST API in ogAdmServer 2019-05-30 15:32:22 +02:00
task.json #942 Add /run/task to API REST 2020-06-02 12:32:36 +02:00
wol.json #915 add wol command to REST API in ogAdmServer 2019-05-27 13:02:52 +02:00