summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-10-10 13:10:07 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-11 11:57:08 +0200
commitca96a723d15d86ed5856b36d35b889724fa64528 (patch)
tree9e87a2e85f4cb9685da42d06da7a7d92deb684ff
parentf72c984d83c8500193be47caa8e8ff78f3a806e7 (diff)
#915 Add test for POST "image/create/incremental" command
This test covers correction of the command.
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/create_incremental_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_incremental_image.json b/admin/Sources/Services/ogAdmServer/tests/create_incremental_image.json
new file mode 100644
index 00000000..94b3a4d0
--- /dev/null
+++ b/admin/Sources/Services/ogAdmServer/tests/create_incremental_image.json
@@ -0,0 +1 @@
+{"clients":["192.168.56.11"], "disk":"1", "partition":"1", "id":"3", "name":"basica1", "repository":"192.168.56.10", "sync_params":{"sync":"1", "path":"", "diff":"0", "diff_id":"4", "diff_name":"p2", "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 a84ba857..d9098443 100755
--- a/admin/Sources/Services/ogAdmServer/tests/run-tests.sh
+++ b/admin/Sources/Services/ogAdmServer/tests/run-tests.sh
@@ -16,4 +16,5 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create -d
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
+curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/incremental -d @create_incremental_image.json
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/basic -d @restore_basic_image.json