2 Documentation Test suite to test various rcp calls
5 Library RequestsLibrary
7 Resource ../../../libraries/Utils.robot
8 Resource ../../../libraries/FlowLib.robot
9 Variables ../../../variables/ofplugin/RpcVariables.py
11 Suite Setup Initialization Phase
12 Suite Teardown Final Phase
16 ${send_barrier_url} /rests/operations/flow-capable-transaction:send-barrier
17 ${send_echo_url} /rests/operations/sal-echo:send-echo
22 [Documentation] Test to send barrier
23 ${resp}= RequestsLibrary.Post Request
25 ... ${send_barrier_url}
26 ... data=${RPC_SEND_BARRIER_DATA}
27 ... headers=${HEADERS_XML}
29 Should Be Equal As Strings ${resp.status_code} 200
32 [Documentation] Test to send echo
33 ${resp}= RequestsLibrary.Post Request
36 ... data=${RPC_SEND_ECHO_DATA}
37 ... headers=${HEADERS_XML}
39 Should Be Equal As Strings ${resp.status_code} 200
44 [Documentation] Starts mininet and verify if topology is in operational ds
46 Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
47 Wait Until Keyword Succeeds 10s 1s FlowLib.Check Switches In Topology 1
50 [Documentation] Stops mininet