summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0004_post_shell_run.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-06-04 12:46:15 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-06-10 17:00:01 +0200
commit1fdb7e6d1cf0709b1079b2d9990c0d53d8740461 (patch)
treee13f19f28e2ee379150171bad00fecec59168901 /tests/units/test_0004_post_shell_run.py
parent893101ffc6162d64cfbe5827c32d4e6de5e35f42 (diff)
#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.
Diffstat (limited to 'tests/units/test_0004_post_shell_run.py')
0 files changed, 0 insertions, 0 deletions