summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-10-08 12:43:55 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-08 14:01:14 +0200
commit8bf781d4217b574e1df067ba523dbea32a73bdb0 (patch)
tree33570550c0a17d7a4d47eca87dc8cc19407bfebe
parent7258dacbc5202ccac384ee8ddd1e8e534dc3af17 (diff)
#915 Add test for POST /image/create/basic command
This test covers correction of the command.
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/create_basic_image.json1
-rwxr-xr-xadmin/Sources/Services/ogAdmServer/tests/run-tests.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/admin/Sources/Services/ogAdmServer/tests/create_basic_image.json b/admin/Sources/Services/ogAdmServer/tests/create_basic_image.json
new file mode 100644
index 00000000..8000219a
--- /dev/null
+++ b/admin/Sources/Services/ogAdmServer/tests/create_basic_image.json
@@ -0,0 +1 @@
+{"clients":["192.168.56.11"],"disk":"1","partition":"1","code":"131","id":"8","name":"debianbasica","repository":"192.168.56.10","sync_params":{"sync":"1","diff":"0","remove":"1","compress":"0","cleanup":"0","cache":"0","cleanup_cache":"0","remove_dst":"0"}}
diff --git a/admin/Sources/Services/ogAdmServer/tests/run-tests.sh b/admin/Sources/Services/ogAdmServer/tests/run-tests.sh
index f340f01b..8c945da5 100755
--- a/admin/Sources/Services/ogAdmServer/tests/run-tests.sh
+++ b/admin/Sources/Services/ogAdmServer/tests/run-tests.sh
@@ -15,3 +15,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @pos
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
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/setup -d @setup_image.json
+curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/basic -d @create_basic_image.json