From 2f7e9da5ab8b47ec66820b58a556b3fd8c0a8856 Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Fri, 25 Oct 2019 11:44:55 +0200 Subject: #915 Add POST "run/schedule" command to REST API in ogAdmServer This patch implements the command "run/schedule" that kicks in pending commands execution. Request: POST /run/schedule { "clients": ["192.168.56.11"] } Reply: 200 OK This patch also adds a simple test to cover correction of the command. --- 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 409c876..519366f 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -19,3 +19,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/bas curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/incremental -d @create_incremental_image.json 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 -- cgit v1.2.3-18-g5258