diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-10-10 13:04:05 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-11 11:57:08 +0200 |
commit | 90672e4a255f56d206d5ea885daf634761b06b18 (patch) | |
tree | ad78aa73653fc90e95c35339014f9fe21df6cb59 | |
parent | d52c6d085af04ec5eb5b15410b3e0c93b5407f07 (diff) |
#915 Add test for POST /image/restore/incremental command
This test covers correction of the command.
-rw-r--r-- | tests/restore_incremental_image.json | 1 | ||||
-rwxr-xr-x | tests/run-tests.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/restore_incremental_image.json b/tests/restore_incremental_image.json new file mode 100644 index 0000000..66dfd0a --- /dev/null +++ b/tests/restore_incremental_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":{"diff_id":"1","diff_name":"test","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 d909844..409c876 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -18,3 +18,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/setup -d @ 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 +curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/incremental -d @restore_incremental_image.json |