From 53ef77f254223e19e8185ffd9de85f101ad187a6 Mon Sep 17 00:00:00 2001 From: Rene Robert Date: Thu, 24 Jan 2019 18:24:55 +0100 Subject: add Postman Collection Issue-ID: INT-825 Change-Id: I95b99798462ab5852d8da90bb337d818e80c0ef8 Signed-off-by: Rene Robert --- .../03_Onboard_VSP_part2.postman_collection.json | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 test/postman/03_Onboard_VSP_part2.postman_collection.json (limited to 'test/postman/03_Onboard_VSP_part2.postman_collection.json') diff --git a/test/postman/03_Onboard_VSP_part2.postman_collection.json b/test/postman/03_Onboard_VSP_part2.postman_collection.json new file mode 100644 index 000000000..5d411eae0 --- /dev/null +++ b/test/postman/03_Onboard_VSP_part2.postman_collection.json @@ -0,0 +1,77 @@ +{ + "variables": [], + "info": { + "name": "03_Onboard_VSP_part2", + "_postman_id": "296fe94c-89fd-6a70-53ee-e5e5faa6f570", + "description": "", + "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json" + }, + "item": [ + { + "name": "Upload zip file containing Heat files", + "event": [ + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "tests[\"Status code is 200\"] = responseCode.code === 200;", + "", + "var jsonData = JSON.parse(responseBody);", + "", + "if (jsonData.status === \"Success\") {", + " tests[\"Upload Success\"] = true; ", + "}", + "", + "" + ] + } + } + ], + "request": { + "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products/{{auto_vsp_id}}/versions/{{auto_vsp_version_id}}/orchestration-template-candidate", + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "multipart/form-data", + "description": "" + }, + { + "key": "Accept", + "value": "application/json", + "description": "" + }, + { + "key": "X-TransactionId", + "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a", + "description": "" + }, + { + "key": "USER_ID", + "value": "cs0008", + "description": "" + }, + { + "key": "X-FromAppId", + "value": "robot-ete", + "description": "" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "upload", + "type": "file", + "src": "ubuntu16.zip", + "value": "" + } + ] + }, + "description": "" + }, + "response": [] + } + ] +} \ No newline at end of file -- cgit 1.2.3-korg