summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/create_schedule.json1
-rwxr-xr-xtests/run-tests.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/create_schedule.json b/tests/create_schedule.json
new file mode 100644
index 0000000..cfdfb7f
--- /dev/null
+++ b/tests/create_schedule.json
@@ -0,0 +1 @@
+{"task":"1","name":"test",","time_params":{"years":1024,"months":1,"days":536870912,"hours":2048,"am_pm":0,"minutes":0}}
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index b68dc7f..88d8c78 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -21,3 +21,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/ba
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
+curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/schedule/create -d @create_schedule.json