summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-10-25 11:44:55 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-25 14:12:09 +0200
commit2f7e9da5ab8b47ec66820b58a556b3fd8c0a8856 (patch)
tree639568d4f82e120873003089339d5fd7add1e75f /tests
parent61bbcd9251093a6359634f24b49427c72d633786 (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')
-rwxr-xr-xtests/run-tests.sh1
-rw-r--r--tests/run_schedule.json1
2 files changed, 2 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
diff --git a/tests/run_schedule.json b/tests/run_schedule.json
new file mode 100644
index 0000000..60a1034
--- /dev/null
+++ b/tests/run_schedule.json
@@ -0,0 +1 @@
+{"clients":["192.168.56.11"]}