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_update_table_url} /restconf/operations/sal-table:update-table
13 ${start} sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,1 --switch user
17 [Documentation] Test to send table update request
18 ${resp}= RequestsLibrary.Post session ${send_update_table_url} data=${RPC_SEND_UPDATE_TABLE_DATA} headers=${HEADERS_XML}
20 Should Be Equal As Strings ${resp.status_code} 200
24 [Documentation] Starts mininet and verify if topology is in operational ds
26 Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
27 Wait Until Keyword Succeeds 10s 1s Are Switches Connected Topo
30 [Documentation] Stops mininet
34 Are Switches Connected Topo
35 [Documentation] Checks wheather switches are connected to controller
36 ${resp}= RequestsLibrary.Get session ${OPERATIONAL_TOPO_API}/topology/flow:1 headers=${ACCEPT_XML}
38 ${count}= Get Element Count ${resp.content} xpath=node
39 Should Be Equal As Numbers ${count} 1