3 Library RequestsLibrary
4 Library OperatingSystem
8 ${MESSAGE} Hello, world!
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