diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-10-07 10:54:42 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-10-07 11:15:28 +0200 |
commit | 8b1c92b1acf5b10b5dda9829de4773b4a1590dc7 (patch) | |
tree | 820f7aadd8de7ebe0dad82328474df1887a2ba6c /admin | |
parent | 2385710ef34d32422735540a872e652b350d5fe0 (diff) |
Add test for POST /image/create command
This test covers correction of the command.
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/Sources/Services/ogAdmServer/tests/run-tests.sh | 1 | ||||
-rw-r--r-- | admin/Sources/Services/ogAdmServer/tests/setup_image.json | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/admin/Sources/Services/ogAdmServer/tests/run-tests.sh b/admin/Sources/Services/ogAdmServer/tests/run-tests.sh index 0ea97bcc..f340f01b 100755 --- a/admin/Sources/Services/ogAdmServer/tests/run-tests.sh +++ b/admin/Sources/Services/ogAdmServer/tests/run-tests.sh @@ -14,3 +14,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @pos curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @post_clients.json 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 diff --git a/admin/Sources/Services/ogAdmServer/tests/setup_image.json b/admin/Sources/Services/ogAdmServer/tests/setup_image.json new file mode 100644 index 00000000..0135e207 --- /dev/null +++ b/admin/Sources/Services/ogAdmServer/tests/setup_image.json @@ -0,0 +1 @@ +{ "clients" : [ "192.168.56.11" ], "disk" : "1", "cache" : "1", "cache_size" : "0", "partition_setup": [{"partition": "1", "code": "LINUX", "filesystem": "EMPTY", "size": "498688", "format": "0"}, {"partition": "2", "code": "LINUX-SWAP", "filesystem": "EMPTY", "size": "199987", "format": "0"}, {"partition": "3", "code": "LINUX", "filesystem": "EMPTY", "size": "31053824", "format": "0"}, {"partition": "4", "code": "EMPTY", "filesystem": "EMPTY", "size": "0", "format": "0"}]} |