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 On Session
25 ... url=${send_barrier_url}
26 ... data=${RPC_SEND_BARRIER_DATA}
27 ... headers=${HEADERS_XML}
28 ... expected_status=200
32 [Documentation] Test to send echo
33 ${resp}= RequestsLibrary.POST On Session
35 ... url=${send_echo_url}
36 ... data=${RPC_SEND_ECHO_DATA}
37 ... headers=${HEADERS_XML}
38 ... expected_status=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