Replace Bierman02 with RFC8040 for OpenFlow Plugin
[integration/test.git] / csit / suites / openflowplugin / Flows_Additional_TCs / 020_Lithium_Rps_Calls_Cpqd.robot
1 *** Settings ***
2 Documentation     Test suite to test various rcp calls
3 Suite Setup       Initialization Phase
4 Suite Teardown    Final Phase
5 Library           XML
6 Library           RequestsLibrary
7 Library           SSHLibrary
8 Resource          ../../../libraries/Utils.robot
9 Resource          ../../../libraries/FlowLib.robot
10 Variables         ../../../variables/ofplugin/RpcVariables.py
11
12 *** Variables ***
13 ${send_update_table_url}    /rests/operations/sal-table:update-table
14 ${start}          sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo tree,1 --switch user
15
16 *** Test Cases ***
17 Sending Update Table
18     [Documentation]    Test to send table update request
19     ${resp}=    RequestsLibrary.Post Request    session    ${send_update_table_url}    data=${RPC_SEND_UPDATE_TABLE_DATA}    headers=${HEADERS_XML}
20     Log    ${resp.content}
21     Should Be Equal As Strings    ${resp.status_code}    200
22
23 *** Keywords ***
24 Initialization Phase
25     [Documentation]    Starts mininet and verify if topology is in operational ds
26     Start Mininet
27     Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
28     Wait Until Keyword Succeeds    90s    1s    FlowLib.Check Switches In Topology    1
29
30 Final Phase
31     [Documentation]    Stops mininet
32     Stop Mininet
33     Delete All Sessions