2 Documentation Test suite for Statistics Manager
3 Suite Setup Create Session session http://${CONTROLLER}:${RESTPORT} auth=${AUTH} headers=${HEADERS}
4 Suite Teardown Delete All Sessions
6 Library ../../../libraries/RequestsLibrary.py
7 Library ../../../libraries/Common.py
8 Variables ../../../variables/Variables.py
9 Resource ../../../libraries/Utils.txt
12 ${node1} "00:00:00:00:00:00:00:01"
13 ${node2} "00:00:00:00:00:00:00:02"
14 ${node3} "00:00:00:00:00:00:00:03"
15 @{macaddr_list} ${node1} ${node2} ${node3}
16 @{node_list} openflow:1 openflow:2 openflow:3
18 ${REST_CONTEXT} /controller/nb/v2/statistics
23 [Documentation] Show port stats and validate result
25 Wait Until Keyword Succeeds 10s 2s Check For Elements At URI ${REST_CONTEXT}/${CONTAINER}/port ${macaddr_list}
26 Wait Until Keyword Succeeds 60s 2s Check That Port Count Is Ok ${node1} 4
27 Wait Until Keyword Succeeds 60s 1s Check That Port Count Is Ok ${node2} 5
28 Wait Until Keyword Succeeds 60s 1s Check That Port Count Is Ok ${node3} 5
31 [Documentation] Show flow stats and validate result
33 Wait Until Keyword Succeeds 10s 2s Check For Elements At URI ${REST_CONTEXT}/${CONTAINER}/flow ${macaddr_list}
36 [Documentation] Show flow stats and validate result
38 Wait Until Keyword Succeeds 10s 2s Check For Elements At URI ${REST_CONTEXT}/${CONTAINER}/table ${macaddr_list}