*** 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 Variables ../../../variables/Variables.py *** Variables *** ${node1} "00:00:00:00:00:00:00:01" ${node2} "00:00:00:00:00:00:00:02" ${node3} "00:00:00:00:00:00:00:03" ${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 Should Contain X Times ${resp.content} ${node1} 4 Should Contain X Times ${resp.content} ${node2} 5 Should Contain X Times ${resp.content} ${node3} 5 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 Should Contain ${resp.content} ${node1} Should Contain ${resp.content} ${node2} Should Contain ${resp.content} ${node3} 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 Should Contain ${resp.content} ${node1} Should Contain ${resp.content} ${node2} Should Contain ${resp.content} ${node3}