#915 Add test for POST /image/restore/incremental command

This test covers correction of the command.
master
Javier Sánchez Parra 2019-10-10 13:04:05 +02:00 committed by OpenGnSys Support Team
parent d52c6d085a
commit 90672e4a25
2 changed files with 2 additions and 0 deletions

View File

@ -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"}}

View File

@ -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