*** Settings *** Documentation Test suite for Statistics Manager Suite Setup Create Session session http://${CONTROLLER}:${RESTPORT} auth=${AUTH} headers=${HEADERS} Suite Teardown Delete All Sessions Library Collections Library ../../../libraries/RequestsLibrary.py Library ../../../libraries/Common.py Library ../../../libraries/Topologynew.py Variables ../../../variables/Variables.py *** Variables *** ${nodeprefix} openflow: ${key} portStatistics ${REST_CONTEXT} /controller/nb/v2/statistics *** Test Cases *** get port stats [Documentation] Show port stats and validate result [Tags] get ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/port Should Be Equal As Strings ${resp.status_code} 200 ${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}) 1 Should Contain X Times ${resp.content} "00:00:00:00:00:00:00:01" ${TOPO_TREE_FANOUT+2} :FOR ${ITEM} IN @{topo_nodes} \ ${IND} Get From Dictionary ${ITEM} id \ Should Contain X Times ${resp.content} "${IND}" ${TOPO_TREE_FANOUT+3} get flow stats [Documentation] Show flow stats and validate result [Tags] get ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/flow Should Be Equal As Strings ${resp.status_code} 200 ${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}) :FOR ${ITEM} IN @{topo_nodes} \ ${IND} Get From Dictionary ${ITEM} id \ Should Contain ${resp.content} "${IND}" get table stats [Documentation] Show flow stats and validate result [Tags] get ${resp} Get session ${REST_CONTEXT}/${CONTAINER}/table Should Be Equal As Strings ${resp.status_code} 200 ${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}) :FOR ${ITEM} IN @{topo_nodes} \ ${IND} Get From Dictionary ${ITEM} id \ Should Contain ${resp.content} "${IND}"