Replace deprecated variables in suites/l2switch (1).
[integration/test.git] / csit / suites / l2switch / Flow_Programming_OF13 / 010__restconf_inv_flows.robot
1 *** Settings ***
2 Documentation     Test suite for FlowProgramming in RESTCONF inventory
3 Suite Setup       Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           Collections
6 Library           RequestsLibrary
7 Resource          ../../../libraries/Utils.robot
8 Variables         ../../../variables/Variables.py
9
10 *** Variables ***
11
12 *** Test Cases ***
13 Check Stats for node 1
14     [Documentation]    Get the stats for a node
15     Wait Until Keyword Succeeds    10s    2s    Check Nodes Stats    openflow:1
16
17 Check Stats for node 2
18     [Documentation]    Get the stats for a node
19     Wait Until Keyword Succeeds    10s    2s    Check Nodes Stats    openflow:2
20
21 Check Stats for node 3
22     [Documentation]    Get the stats for a node
23     Wait Until Keyword Succeeds    10s    2s    Check Nodes Stats    openflow:3
24
25 Check Flows
26     [Documentation]    Check all flows are present
27     Wait Until Keyword Succeeds    10s    2s    Check For Specific Number Of Elements At URI    ${OPERATIONAL_NODES_API}    "output-node-connector"    21
28
29 Ping All Test
30     [Documentation]    Ping all, verify no packet loss or duplicates
31     Write    pingall
32     ${result}    Read Until    mininet>
33     Should Contain    ${result}    Results: 0% dropped