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
7 Library ../../../libraries/RequestsLibrary.py
8 Library ../../../libraries/Common.py
9 Variables ../../../variables/Variables.py
12 ${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
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
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
34 [Documentation] Pingall, verify no packet loss
37 ${result} Read Until mininet>
38 Should Contain ${result} 0% dropped
39 Should Not Contain ${result} X
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
48 # ${result} Read Until mininet>
49 # Should Contain X Times ${result} actions 6
50 # Write sh ovs-ofctl dump-flows s3 -O OpenFlow13
52 # ${result} Read Until mininet>
53 # Should Contain X Times ${result} actions 4
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