Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library Collections |
| 3 | Library RequestsLibrary |
| 4 | Library OperatingSystem |
| 5 | Library json |
| 6 | |
| 7 | *** Variables *** |
| 8 | ${MESSAGE} Hello, world! |
| 9 | |
| 10 | *** Test Cases *** |
| 11 | |
| 12 | Create ServiceInstance for invalid input |
| 13 | Create Session refrepo http://${REPO_IP}:8080 |
| 14 | ${data}= Get Binary File ${CURDIR}${/}data${/}createService.json |
| 15 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 16 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 17 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 18 | |
| 19 | Create ServiceInstance for invalid user |
| 20 | Create Session refrepo http://${REPO_IP}:8080 |
| 21 | ${data}= Get Binary File ${CURDIR}${/}data${/}createService.json |
| 22 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI= Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 23 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 24 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 25 | |
| 26 | Delete ServiceInstance for invalid input |
| 27 | Create Session refrepo http://${REPO_IP}:8080 |
| 28 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteService.json |
| 29 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 30 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 31 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 32 | |
| 33 | Delete ServiceInstance for invalid user |
| 34 | Create Session refrepo http://${REPO_IP}:8080 |
| 35 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteService.json |
| 36 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 37 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 38 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 39 | |
| 40 | Activate ServiceInstance |
| 41 | Create Session refrepo http://${REPO_IP}:8080 |
| 42 | ${data}= Get Binary File ${CURDIR}${/}data${/}activateService.json |
| 43 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 44 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/activate data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 45 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 46 | |
| 47 | Deactivate ServiceInstance |
| 48 | Create Session refrepo http://${REPO_IP}:8080 |
| 49 | ${data}= Get Binary File ${CURDIR}${/}data${/}deactivateService.json |
| 50 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 51 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/deactivate data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 52 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 53 | |
| 54 | Create Volume Group instance |
| 55 | Create Session refrepo http://${REPO_IP}:8080 |
| 56 | ${data}= Get Binary File ${CURDIR}${/}data${/}createVG.json |
| 57 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 58 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e/volumeGroups data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 59 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 60 | |
| 61 | Delete Volume Group instance |
| 62 | Create Session refrepo http://${REPO_IP}:8080 |
| 63 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteVG.json |
| 64 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 65 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e/volumeGroups/ff305d54-75b4-ff1b-cdb2-eb6b9e5460ff data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 66 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 67 | |
| 68 | Create VF Module instance |
| 69 | Create Session refrepo http://${REPO_IP}:8080 |
| 70 | ${data}= Get Binary File ${CURDIR}${/}data${/}createVF.json |
| 71 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 72 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e/vfModules data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 73 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 74 | |
| 75 | Update VF Module instance |
| 76 | Create Session refrepo http://${REPO_IP}:8080 |
| 77 | ${data}= Get Binary File ${CURDIR}${/}data${/}updateVF.json |
| 78 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 79 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e/vfModules/ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 80 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 81 | |
| 82 | Delete VF Module instance |
| 83 | Create Session refrepo http://${REPO_IP}:8080 |
| 84 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteVF.json |
| 85 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 86 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e/vfModules/ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 87 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 88 | |
| 89 | Replace VF Module instance |
| 90 | Create Session refrepo http://${REPO_IP}:8080 |
| 91 | ${data}= Get Binary File ${CURDIR}${/}data${/}replaceVF.json |
| 92 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 93 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e/vfModules/ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff/replace data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 94 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 95 | |
| 96 | Create Network instance |
| 97 | Create Session refrepo http://${REPO_IP}:8080 |
| 98 | ${data}= Get Binary File ${CURDIR}${/}data${/}createNetwork.json |
| 99 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 100 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/networks data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 101 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 102 | |
| 103 | Update Network instance |
| 104 | Create Session refrepo http://${REPO_IP}:8080 |
| 105 | ${data}= Get Binary File ${CURDIR}${/}data${/}updateNetwork.json |
| 106 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 107 | ${resp}= Put Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/networks/2b125640-bd1a-4ef0-9ca0-ea76e2a22801 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 108 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 109 | |
| 110 | Delete Network instance |
| 111 | Create Session refrepo http://${REPO_IP}:8080 |
| 112 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteNetwork.json |
| 113 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 114 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/networks/2b125640-bd1a-4ef0-9ca0-ea76e2a22801 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 115 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 116 | |
| 117 | SO ServiceInstance health check |
| 118 | Create Session refrepo http://${REPO_IP}:8080 |
| 119 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 120 | ${resp}= Get Request refrepo /onap/so/infra/orchestrationRequests/v5/rq1234d1-5a33-55df-13ab-12abad84e333 headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 121 | Should Not Contain ${resp.content} null |
| 122 | |
| 123 | Create VnfInstance for invalid input |
| 124 | Create Session refrepo http://${REPO_IP}:8080 |
| 125 | ${data}= Get Binary File ${CURDIR}${/}data${/}createVnf.json |
| 126 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 127 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 128 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 129 | |
| 130 | Update VnfInstance for invalid input |
| 131 | Create Session refrepo http://${REPO_IP}:8080 |
| 132 | ${data}= Get Binary File ${CURDIR}${/}data${/}updateVnf.json |
| 133 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 134 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 135 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 136 | |
| 137 | Create VnfInstance for invalid credential |
| 138 | Create Session refrepo http://${REPO_IP}:8080 |
| 139 | ${data}= Get Binary File ${CURDIR}${/}data${/}createVnf.json |
| 140 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI= Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 141 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 142 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 143 | |
| 144 | Delete VnfInstance for invalid input |
| 145 | Create Session refrepo http://${REPO_IP}:8080 |
| 146 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteVnf.json |
| 147 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 148 | ${resp}= Delete Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-7cef19d9a94e data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 149 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 150 | |
| 151 | Replace VnfInstance |
| 152 | Create Session refrepo http://${REPO_IP}:8080 |
| 153 | ${data}= Get Binary File ${CURDIR}${/}data${/}replaceVnf.json |
| 154 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI= Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 155 | ${resp}= Post Request refrepo /onap/so/infra/serviceInstances/v5/ff305d54-75b4-431b-adb2-eb6b9e5ff000/vnfs/aca51b0a-710d-4155-bc7c-c7cef19d94e/replace data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 156 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 157 | |
| 158 | Get Orchestration Requests |
| 159 | Create Session refrepo http://${REPO_IP}:8080 |
| 160 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 161 | ${resp}= Get Request refrepo /onap/so/infra/orchestrationRequests/v5 headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 162 | Should Not Contain ${resp.content} null |
| 163 | |
| 164 | Get Orchestration Requests Filter criteria |
| 165 | Create Session refrepo http://${REPO_IP}:8080 |
| 166 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 167 | ${resp}= Get Request refrepo /onap/so/infra/orchestrationRequests/v5?filter=serviceInstanceId:EQUALS:bc305d54-75b4-431b-adb2-eb6b9e546014 headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 168 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 169 | |
| 170 | Create E2EService |
| 171 | Create Session refrepo http://${REPO_IP}:8080 |
| 172 | ${data}= Get Binary File ${CURDIR}${/}data${/}createE2eservice.json |
| 173 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 174 | ${resp}= Post Request refrepo /onap/so/infra/e2eServiceInstances/v3 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 175 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 176 | |
| 177 | Create E2EService with invalid credential |
| 178 | Create Session refrepo http://${REPO_IP}:8080 |
| 179 | ${data}= Get Binary File ${CURDIR}${/}data${/}createE2eservice.json |
| 180 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI= Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 181 | ${resp}= Post Request refrepo /onap/so/infra/e2eServiceInstances/v3 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 182 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 183 | |
| 184 | Create E2EService with invalid Input data |
| 185 | Create Session refrepo http://${REPO_IP}:8080 |
| 186 | ${data}= Get Binary File ${CURDIR}${/}data${/}createE2eserviceInvalid.json |
| 187 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI= Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 188 | ${resp}= Post Request refrepo /onap/so/infra/e2eServiceInstances/v3 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 189 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 190 | |
| 191 | Delete E2EService |
| 192 | Create Session refrepo http://${REPO_IP}:8080 |
| 193 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteE2eservice.json |
| 194 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 195 | ${resp}= Delete Request refrepo /onap/so/infra/e2eServiceInstances/v3/ff305d54-75b4-431b-adb2-eb6b9e5ff000 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 196 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 197 | |
| 198 | Delete E2EService with invalid credential |
| 199 | Create Session refrepo http://${REPO_IP}:8080 |
| 200 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteE2eservice.json |
| 201 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQxOnBhc3N3b3JkMTI= Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 202 | ${resp}= Delete Request refrepo /onap/so/infra/e2eServiceInstances/v3/ff305d54-75b4-431b-adb2-eb6b9e5ff000 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 203 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |
| 204 | |
| 205 | Delete E2EService with invalid input data |
| 206 | Create Session refrepo http://${REPO_IP}:8080 |
| 207 | ${data}= Get Binary File ${CURDIR}${/}data${/}deleteE2eserviceInvalid.json |
| 208 | &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json |
seshukm | cf3bde1 | 2018-10-08 16:45:47 +0800 | [diff] [blame] | 209 | ${resp}= Delete Request refrepo /onap/so/infra/e2eServiceInstances/v3/ff305d54-75b4-431b-adb2-eb6b9e5ff000 data=${data} headers=${headers} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 210 | Run Keyword If '${resp.status_code}' == '400' or '${resp.status_code}' == '404' or '${resp.status_code}' == '405' log to console \nexecuted with expected result |