rope252 | 1537edf | 2019-07-25 16:04:10 +0000 | [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 | Distribute Service Template |
| 13 | Create Session refrepo http://${REPO_IP}:8085 |
| 14 | ${data}= Get Binary File ${CURDIR}${/}data${/}distributeServiceTemplate.json |
| 15 | &{headers}= Create Dictionary Authorization=Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ= resource-location=/distribution-test-zip/unzipped Content-Type=application/json Accept=application/json |
| 16 | log to console \nAbout to POST ${REPO_IP} |
| 17 | ${resp}= Post Request refrepo /test/treatNotification/v1 data=${data} headers=${headers} |
| 18 | log to console \nAFRTE POST |
| 19 | Run Keyword If '${resp.status_code}' == '200' log to console \nexecuted with expected result |
| 20 | |