From 96b9bb865c4d4dbd2df8e5d07e9dbf83dbc25d2c Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Tue, 17 Dec 2019 12:26:28 +0100 Subject: #942 Add /run/task to API REST This patch adds a new command to the REST API to run tasks. A task (tarea) is composed of procedures (procedimientos), each procedure is composed of commands (acciones) that are represented through legacy sockHidra parameters in the database. This results in iterating over the task (tareas_acciones) table in the database to fetch the list of procedures (procedimientos). Then, this iterates over the list commands that compose a procedures represented through procedimientos_acciones table. Finally, this builds and sends the sockHidra legacy message for the client. This patch includes an implementation of the Linux linked list. --- tests/run-tests.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/run-tests.sh') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 893e026..b68dc7f 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -20,3 +20,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/inc curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/basic -d @restore_basic_image.json curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/incremental -d @restore_incremental_image.json curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/run/schedule -d @run_schedule.json +curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/task/run -d @task.json -- cgit v1.2.3-18-g5258