summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-10-09 14:03:43 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-10-09 15:27:59 +0200
commit17eeac1284b15ef865e6e8d347a6d490a19b78ae (patch)
treeee8afb6d6822b9422f2d76956bf8b4ba89ce9458 /tests
parentf61fd9a488eca84055c7cec7b617e407bd711a4e (diff)
#915 Add test for POST /image/restore/basic command
This test covers correction of the command.
Diffstat (limited to 'tests')
-rw-r--r--tests/restore_basic_image.json1
-rwxr-xr-xtests/run-tests.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/restore_basic_image.json b/tests/restore_basic_image.json
new file mode 100644
index 0000000..255507c
--- /dev/null
+++ b/tests/restore_basic_image.json
@@ -0,0 +1 @@
+{"clients":["192.168.56.11"],"disk":"1","partition":"1","id":"9","name":"test","repository":"192.168.56.10","profile":"17","type":"UNICAST","sync_params":{"path":"","method":"1","sync":"1","diff":"0","remove":"1","compress":"0","cleanup":"0","cache":"0","cleanup_cache":"0","remove_dst":"0"}}
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index 8c945da..a84ba85 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -16,3 +16,4 @@ 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/restore/basic -d @restore_basic_image.json