ogserver/tests
Javier Sánchez Parra 41fad11408 #942 Add POST /procedure/add method
This method adds a procedure associated with a center to the database.
Required payload parameters are center and name, description is
optional.

Note: ogServer does not allow to add more than one procedure with the
same name and center.

Request:
POST /procedure/add
{
  "center": "1"
  "name": "procedure1"
  "description": "My procedure"
}

Response:
200 OK

This commit also adds unit tests for /procedure/add POST method.
2021-05-31 13:01:47 +02:00
..
config #915 Add large HTTP response test 2021-04-19 19:05:15 +02:00
units #942 Add POST /procedure/add method 2021-05-31 13:01:47 +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