Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 1 | { |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 2 | "info": { |
Rene_Robert | 11c5783 | 2019-10-22 17:27:21 +0200 | [diff] [blame^] | 3 | "_postman_id": "4779261e-f678-4383-b3a9-dfe63f080371", |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 4 | "name": "03_Onboard_VSP_part2", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 6 | }, |
| 7 | "item": [ |
| 8 | { |
| 9 | "name": "Upload zip file containing Heat files", |
| 10 | "event": [ |
| 11 | { |
| 12 | "listen": "test", |
| 13 | "script": { |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 14 | "id": "033f8cad-de66-4de9-8858-f3c72629c838", |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 15 | "exec": [ |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 16 | "pm.test(\"Status code is 200\", function () {", |
| 17 | " pm.response.to.have.status(200);", |
| 18 | "});", |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 19 | "", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 20 | "var jsonData = pm.response.json();", |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 21 | "", |
| 22 | "if (jsonData.status === \"Success\") {", |
| 23 | " tests[\"Upload Success\"] = true; ", |
| 24 | "}", |
| 25 | "", |
| 26 | "" |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 27 | ], |
| 28 | "type": "text/javascript" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 29 | } |
| 30 | } |
| 31 | ], |
| 32 | "request": { |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 33 | "method": "POST", |
| 34 | "header": [ |
| 35 | { |
| 36 | "key": "Content-Type", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 37 | "value": "multipart/form-data" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 38 | }, |
| 39 | { |
| 40 | "key": "Accept", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 41 | "value": "application/json" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 42 | }, |
| 43 | { |
| 44 | "key": "X-TransactionId", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 45 | "value": "robot-ete-ba84612d-c1c6-4c53-9967-7b1dff276c7a" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 46 | }, |
| 47 | { |
| 48 | "key": "USER_ID", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 49 | "value": "cs0008" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 50 | }, |
| 51 | { |
| 52 | "key": "X-FromAppId", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 53 | "value": "robot-ete" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 54 | } |
| 55 | ], |
| 56 | "body": { |
| 57 | "mode": "formdata", |
| 58 | "formdata": [ |
| 59 | { |
| 60 | "key": "upload", |
| 61 | "type": "file", |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 62 | "src": "" |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 63 | } |
| 64 | ] |
| 65 | }, |
Rene_Robert | 0ebd04f | 2019-07-30 17:11:26 +0200 | [diff] [blame] | 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 | } |
Rene Robert | 53ef77f | 2019-01-24 18:24:55 +0100 | [diff] [blame] | 83 | }, |
| 84 | "response": [] |
| 85 | } |
| 86 | ] |
| 87 | } |