diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-10-25 11:44:55 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-25 14:12:09 +0200 |
commit | 2f7e9da5ab8b47ec66820b58a556b3fd8c0a8856 (patch) | |
tree | 639568d4f82e120873003089339d5fd7add1e75f /tests/run-tests.sh | |
parent | 61bbcd9251093a6359634f24b49427c72d633786 (diff) |
#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.
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-x | tests/run-tests.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |