3 Library RequestsLibrary
4 Library OperatingSystem
7 ${BASIC_AUTH}= Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ=
8 ${DISTRIBUTE_SERVICE_TEMPLATE}= ${CURDIR}${/}data${/}distributeCnfServiceTemplate.json
9 ${RESOURCE_LOCATION}= /distribution-test-zip/unzipped/
12 Distribute Service Template Containing ASD
13 Create Session sdc_controller_session http://${REPO_IP}:8085
14 ${data}= Get Binary File ${DISTRIBUTE_SERVICE_TEMPLATE}
15 &{headers}= Create Dictionary Authorization=${BASIC_AUTH} resource-location=${RESOURCE_LOCATION} Content-Type=application/json Accept=application/json
16 ${resp}= Post On Session sdc_controller_session /test/treatNotification/v1 data=${data} headers=${headers}
17 Should Be Equal As Strings '${resp.status_code}' '200'