summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/create_image.json1
-rwxr-xr-xtests/run-tests.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/create_image.json b/tests/create_image.json
new file mode 100644
index 0000000..bd4ab21
--- /dev/null
+++ b/tests/create_image.json
@@ -0,0 +1 @@
+{ "clients" : [ "192.168.2.1" ], "disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.4" }
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index f22df02..f454bcd 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -12,3 +12,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/stop -d @stop.js
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refresh.json
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