blob: e3d0a950ff72542e1057804925cfb1b7ff5d8395 [file] [log] [blame]
rope2521537edf2019-07-25 16:04:10 +00001*** Settings ***
2Library Collections
3Library RequestsLibrary
4Library OperatingSystem
5Library json
6
7*** Variables ***
8${MESSAGE} Hello, world!
9
10*** Test Cases ***
11
12Distribute 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