diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-09-24 11:51:38 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-01 12:56:10 +0200 |
commit | 1a8ada191f779aec01e00ff429f437992bf8919c (patch) | |
tree | 0ad33248d8417f09d586f4a233260ecdd26419d5 /tests/run-tests.sh | |
parent | 7bdc8fdf756c068f070d27c644d7fc7cf9910dc4 (diff) |
#915: Add POST /image/create command to REST API in ogAdmServer
This patch implements the command "image/create" that creates an image
in a client.
Request:
POST /image/create
{ "clients" : [ "192.168.2.1" ], "disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.2" }
Reply:
200 OK
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 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 |