Replace Bierman02 with RFC8040 for OpenFlow Plugin
[integration/test.git] / csit / suites / openflowplugin / Flows_Additional_TCs / 010_Lithium_Rps_Calls_Ovs.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_barrier_url}    /rests/operations/flow-capable-transaction:send-barrier
14 ${send_echo_url}    /rests/operations/sal-echo:send-echo
15
16 *** Test Cases ***
17 Sending Barrier
18     [Documentation]    Test to send barrier
19     ${resp}=    RequestsLibrary.Post Request    session    ${send_barrier_url}    data=${RPC_SEND_BARRIER_DATA}    headers=${HEADERS_XML}
20     Log    ${resp.content}
21     Should Be Equal As Strings    ${resp.status_code}    200
22
23 Sending Echo
24     [Documentation]    Test to send echo
25     ${resp}=    RequestsLibrary.Post Request    session    ${send_echo_url}    data=${RPC_SEND_ECHO_DATA}    headers=${HEADERS_XML}
26     Log    ${resp.content}
27     Should Be Equal As Strings    ${resp.status_code}    200
28
29 *** Keywords ***
30 Initialization Phase
31     [Documentation]    Starts mininet and verify if topology is in operational ds
32     Start Mininet
33     Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
34     Wait Until Keyword Succeeds    10s    1s    FlowLib.Check Switches In Topology    1
35
36 Final Phase
37     [Documentation]    Stops mininet
38     Stop Mininet
39     Delete All Sessions