2 Documentation Test suite to test various rcp calls
3 Suite Setup Initialization Phase
4 Suite Teardown Final Phase
6 Library RequestsLibrary
8 Resource ../../../libraries/Utils.robot
9 Variables ../../../variables/ofplugin/RpcVariables.py
12 ${send_barrier_url} /restconf/operations/flow-capable-transaction:send-barrier
13 ${send_echo_url} /restconf/operations/sal-echo:send-echo
17 [Documentation] Test to send barrier
18 ${resp}= RequestsLibrary.Post session ${send_barrier_url} data=${RPC_SEND_BARRIER_DATA} headers=${HEADERS_XML}
20 Should Be Equal As Strings ${resp.status_code} 200
23 [Documentation] Test to send echo
24 ${resp}= RequestsLibrary.Post session ${send_echo_url} data=${RPC_SEND_ECHO_DATA} headers=${HEADERS_XML}
26 Should Be Equal As Strings ${resp.status_code} 200
30 [Documentation] Starts mininet and verify if topology is in operational ds
32 Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
33 Wait Until Keyword Succeeds 10s 1s Are Switches Connected Topo
36 [Documentation] Stops mininet
40 Are Switches Connected Topo
41 [Documentation] Checks wheather switches are connected to controller
42 ${resp}= RequestsLibrary.Get session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
44 ${count}= Get Element Count ${resp.content} xpath=node
45 Should Be Equal As Numbers ${count} 1