From 74061887ee64f5f04c444be1341f83568bb8319e Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 8 Oct 2019 12:43:55 +0200 Subject: #915 Add test for POST /image/create/basic command This test covers correction of the command. --- tests/create_basic_image.json | 1 + tests/run-tests.sh | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/create_basic_image.json (limited to 'tests') diff --git a/tests/create_basic_image.json b/tests/create_basic_image.json new file mode 100644 index 0000000..8000219 --- /dev/null +++ b/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/tests/run-tests.sh b/tests/run-tests.sh index f340f01..8c945da 100755 --- a/tests/run-tests.sh +++ b/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 -- cgit v1.2.3-18-g5258