2 Library RequestsLibrary
3 Library OperatingSystem
4 Resource ../../../libraries/KarafKeywords.robot
5 Variables ../../../variables/Variables.py
6 Resource ../../../libraries/Utils.robot
8 Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
9 Suite Teardown Delete All Sessions
13 ${SET_CONFIGURATION} ${CURDIR}/../../../variables/centinel/set_configuration.json
18 ${body} OperatingSystem.Get File ${SET_CONFIGURATION}
19 ${resp} RequestsLibrary.Post Request session ${SET_CONFIGURATION_URI} ${body}
21 Should Be Equal As Strings ${resp.status_code} 200
24 ${resp} RequestsLibrary.Get Request session ${GET_CONFIGURATION_URI}
26 Should Be Equal As Strings ${resp.status_code} 200