summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/restore_image.json1
-rwxr-xr-xtests/run-tests.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/restore_image.json b/tests/restore_image.json
new file mode 100644
index 0000000..76992ca
--- /dev/null
+++ b/tests/restore_image.json
@@ -0,0 +1 @@
+{ "clients" : [ "192.168.56.11" ], "disk" : "1", "partition" : "1", "name" : "test", "repository" : "192.168.56.10", "type" : "UNICAST", "filesystem": "1", "image_id": "1"}
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index f454bcd..0ea97bc 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -13,3 +13,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refr
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @post_clients.json
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @post_clients.json
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create -d @create_image.json
+curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore -d @restore_image.json