2 Library RequestsLibrary
6 Library OperatingSystem
7 Resource ../../../libraries/KarafKeywords.robot
8 Variables ../../../variables/Variables.py
10 Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
11 Suite Teardown Delete All Sessions
15 ${SET_STREAMRECORD_JSON} ${CURDIR}/../../../variables/centinel/set_streamRecord.json
20 ${body} OperatingSystem.Get File ${SET_STREAMRECORD_JSON}
21 ${resp} RequestsLibrary.Post Request session ${SET_STREAMRECORD} ${body}
23 Should Be Equal As Strings ${resp.status_code} 200
25 Get StreamRecordConfig
26 ${resp} RequestsLibrary.Get Request session ${STREAMRECORD_CONFIG}
28 Should Be Equal As Strings ${resp.status_code} 200
31 ${delresp} RequestsLibrary.Delete Request session ${STREAMRECORD_CONFIG}
32 Should Be Equal As Strings ${delresp.status_code} 200