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
create_basic_image.json
create_image.json
create_schedule.json #942 Add REST API /schedule get function 2020-06-02 12:32:36 +02:00
post_clients.json
post_shell_output.json
post_shell_run.json
poweroff.json
reboot.json
restore_image.json
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
session.json
setup_image.json
stop.json
task.json
wol.json