1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
{
"info": {
"_postman_id": "cbb6c6d5-bcfb-4867-b6a3-36c2b56325bb",
"name": "03_Onboard_VSP_part2",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Upload zip file containing Heat files",
"event": [
{
"listen": "test",
"script": {
"id": "033f8cad-de66-4de9-8858-f3c72629c838",
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"var jsonData = pm.response.json();",
"",
"if (jsonData.status === \"Success\") {",
" tests[\"Upload Success\"] = true; ",
"}",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "multipart/form-data"
},
{
"key": "Accept",
"value": "application/json"
},
{
"key": "X-TransactionId",
"value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
},
{
"key": "USER_ID",
"value": "cs0008"
},
{
"key": "X-FromAppId",
"value": "robot-ete"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "upload",
"type": "file",
"src": ""
}
]
},
"url": {
"raw": "{{url-sdc2}}/sdc1/feProxy/onboarding-api/v1.0/vendor-software-products/{{auto_vsp_id}}/versions/{{auto_vsp_version_id}}/orchestration-template-candidate",
"host": [
"{{url-sdc2}}"
],
"path": [
"sdc1",
"feProxy",
"onboarding-api",
"v1.0",
"vendor-software-products",
"{{auto_vsp_id}}",
"versions",
"{{auto_vsp_version_id}}",
"orchestration-template-candidate"
]
}
},
"response": []
}
]
}
|