f8c98218b61c89006d578a3c9aae802d484ce5d9
[integration/test.git] / test / csit / suites / karaf-l2switch / 020__FlowProgramming_OF13 / 010__restconf_inv_flows.txt
1 ** Settings ***
2 Documentation     Test suite for FlowProgramming in RESTCONF inventory
3 Suite Setup       Create Session   session   http://${CONTROLLER}:${PORT}   auth=${AUTH}   headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           SSHLibrary
6 Library           Collections
7 Library           ../../../libraries/RequestsLibrary.py
8 Library           ../../../libraries/Common.py
9 Variables         ../../../variables/Variables.py
10
11 *** Variables ***
12 ${REST_CONTEXT}    /restconf/operational/opendaylight-inventory:nodes
13
14 *** Test Cases ***
15 Get flows before ping through console
16     [Documentation]    Dump flows should list initial flows (drop, arp, lldp, flood per port)
17         Write   sh ovs-ofctl dump-flows s1 -O OpenFlow13
18         ${result}    Read Until         mininet>
19         Should Contain X Times    ${result}    actions    4
20         Write   sh ovs-ofctl dump-flows s2 -O OpenFlow13
21         ${result}    Read Until         mininet>
22         Should Contain X Times    ${result}    actions    5
23         Write   sh ovs-ofctl dump-flows s3 -O OpenFlow13
24         ${result}    Read Until         mininet>
25         Should Contain X Times    ${result}    actions    4
26
27 # Get flows before ping through restconf
28 #    [Documentation]    Get the inventory, should not contain flows
29 #        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1/table/0
30 #        Should Be Equal As Strings    ${resp.status_code}    200
31 #        Should Not Contain    ${resp.content}    flow
32
33 Ping All
34     [Documentation]    Pingall, verify no packet loss
35     [Tags]   Get
36         Write   pingall
37         ${result}    Read Until         mininet>
38         Should Contain   ${result}   0% dropped
39         Should Not Contain    ${result}    X
40
41 #Get flows after ping through console
42 #    [Documentation]    Dump flows should list flows
43 #        Write   sh ovs-ofctl dump-flows s1 -O OpenFlow13
44 #        ${result}    Read Until        mininet>
45 #        Should Contain X Times    ${result}    actions    4
46 #        Write   sh ovs-ofctl dump-flows s2 -O OpenFlow13
47 #        Sleep   5
48 #        ${result}    Read Until        mininet>
49 #        Should Contain X Times    ${result}    actions    6
50 #        Write   sh ovs-ofctl dump-flows s3 -O OpenFlow13
51 #        Sleep   5
52 #        ${result}    Read Until        mininet>
53 #        Should Contain X Times    ${result}    actions    4
54
55
56 #Get flows after ping through restconf
57 #    [Documentation]    Get the inventory, should not contain flows
58 #        ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1/table/0
59 #        Should Be Equal As Strings    ${resp.status_code}    200