ogserver/tests
Javier Sánchez Parra 1fdb7e6d1c #915 Add commands and procedures to procedure creation
Adds the possibility to create a procedure with commands and other
procedures integrated as steps.

Note: "steps" parameter is optional and "steps" array object order
defines execution order.

Request:
POST /procedure/add
{
  "center": "1",
  "name": "procedure",
  "description": "My procedure",
  "steps": [
             {
               "command": "wol",
               "params": { "type": "broadcast" }
             },
             {
               "procedure": 22
             },
             {
               "command": "poweroff",
               "params": {}
             }
           ]
}

Response:
200 OK

This commit also updates unit tests for /procedure/add POST method to
include steps.
2021-06-10 17:00:01 +02:00
..
config #915 Add large HTTP response test 2021-04-19 19:05:15 +02:00
units #915 Add commands and procedures to procedure creation 2021-06-10 17:00:01 +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 large HTTP response test 2021-04-19 19:05:15 +02: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