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