blob: d4b3a28024864be09bbcfcb9d8ca33cebc33c154 [file] [log] [blame]
Rene Robert53ef77f2019-01-24 18:24:55 +01001{
Rene Robert53ef77f2019-01-24 18:24:55 +01002 "info": {
Rene_Robert11c57832019-10-22 17:27:21 +02003 "_postman_id": "4779261e-f678-4383-b3a9-dfe63f080371",
Rene Robert53ef77f2019-01-24 18:24:55 +01004 "name": "03_Onboard_VSP_part2",
Rene_Robert0ebd04f2019-07-30 17:11:26 +02005 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
Rene Robert53ef77f2019-01-24 18:24:55 +01006 },
7 "item": [
8 {
9 "name": "Upload zip file containing Heat files",
10 "event": [
11 {
12 "listen": "test",
13 "script": {
Rene_Robert0ebd04f2019-07-30 17:11:26 +020014 "id": "033f8cad-de66-4de9-8858-f3c72629c838",
Rene Robert53ef77f2019-01-24 18:24:55 +010015 "exec": [
Rene_Robert0ebd04f2019-07-30 17:11:26 +020016 "pm.test(\"Status code is 200\", function () {",
17 " pm.response.to.have.status(200);",
18 "});",
Rene Robert53ef77f2019-01-24 18:24:55 +010019 "",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020020 "var jsonData = pm.response.json();",
Rene Robert53ef77f2019-01-24 18:24:55 +010021 "",
22 "if (jsonData.status === \"Success\") {",
23 " tests[\"Upload Success\"] = true; ",
24 "}",
25 "",
26 ""
Rene_Robert0ebd04f2019-07-30 17:11:26 +020027 ],
28 "type": "text/javascript"
Rene Robert53ef77f2019-01-24 18:24:55 +010029 }
30 }
31 ],
32 "request": {
Rene Robert53ef77f2019-01-24 18:24:55 +010033 "method": "POST",
34 "header": [
35 {
36 "key": "Content-Type",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020037 "value": "multipart/form-data"
Rene Robert53ef77f2019-01-24 18:24:55 +010038 },
39 {
40 "key": "Accept",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020041 "value": "application/json"
Rene Robert53ef77f2019-01-24 18:24:55 +010042 },
43 {
44 "key": "X-TransactionId",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020045 "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a"
Rene Robert53ef77f2019-01-24 18:24:55 +010046 },
47 {
48 "key": "USER_ID",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020049 "value": "cs0008"
Rene Robert53ef77f2019-01-24 18:24:55 +010050 },
51 {
52 "key": "X-FromAppId",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020053 "value": "robot-ete"
Rene Robert53ef77f2019-01-24 18:24:55 +010054 }
55 ],
56 "body": {
57 "mode": "formdata",
58 "formdata": [
59 {
60 "key": "upload",
61 "type": "file",
Rene_Robert0ebd04f2019-07-30 17:11:26 +020062 "src": ""
Rene Robert53ef77f2019-01-24 18:24:55 +010063 }
64 ]
65 },
Rene_Robert0ebd04f2019-07-30 17:11:26 +020066 "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 }
Rene Robert53ef77f2019-01-24 18:24:55 +010083 },
84 "response": []
85 }
86 ]
87}