blob: 5d411eae02f628afea796e50643d8f6214bebbe4 [file] [log] [blame]
Rene Robert53ef77f2019-01-24 18:24:55 +01001{
2 "variables": [],
3 "info": {
4 "name": "03_Onboard_VSP_part2",
5 "_postman_id": "296fe94c-89fd-6a70-53ee-e5e5faa6f570",
6 "description": "",
7 "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
8 },
9 "item": [
10 {
11 "name": "Upload zip file containing Heat files",
12 "event": [
13 {
14 "listen": "test",
15 "script": {
16 "type": "text/javascript",
17 "exec": [
18 "tests[\"Status code is 200\"] = responseCode.code === 200;",
19 "",
20 "var jsonData = JSON.parse(responseBody);",
21 "",
22 "if (jsonData.status === \"Success\") {",
23 " tests[\"Upload Success\"] = true; ",
24 "}",
25 "",
26 ""
27 ]
28 }
29 }
30 ],
31 "request": {
32 "url": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products/{{auto_vsp_id}}/versions/{{auto_vsp_version_id}}/orchestration-template-candidate",
33 "method": "POST",
34 "header": [
35 {
36 "key": "Content-Type",
37 "value": "multipart/form-data",
38 "description": ""
39 },
40 {
41 "key": "Accept",
42 "value": "application/json",
43 "description": ""
44 },
45 {
46 "key": "X-TransactionId",
47 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a",
48 "description": ""
49 },
50 {
51 "key": "USER_ID",
52 "value": "cs0008",
53 "description": ""
54 },
55 {
56 "key": "X-FromAppId",
57 "value": "robot-ete",
58 "description": ""
59 }
60 ],
61 "body": {
62 "mode": "formdata",
63 "formdata": [
64 {
65 "key": "upload",
66 "type": "file",
67 "src": "ubuntu16.zip",
68 "value": ""
69 }
70 ]
71 },
72 "description": ""
73 },
74 "response": []
75 }
76 ]
77}