X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FInventory_Scalability_OF13%2F040__statistics_manager.robot;fp=csit%2Fsuites%2Fopenflowplugin%2FInventory_Scalability_OF13%2F040__statistics_manager.robot;h=0000000000000000000000000000000000000000;hb=99cebc4d85537d44e44df49d44b7e6f904d9b1b9;hp=f0d2a39fb21485a0657fd6f6670a3039c84d690d;hpb=947c6e881126bcf66760ac79448bd680e307b377;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Inventory_Scalability_OF13/040__statistics_manager.robot b/csit/suites/openflowplugin/Inventory_Scalability_OF13/040__statistics_manager.robot deleted file mode 100644 index f0d2a39fb2..0000000000 --- a/csit/suites/openflowplugin/Inventory_Scalability_OF13/040__statistics_manager.robot +++ /dev/null @@ -1,66 +0,0 @@ -*** Settings *** -Documentation Test suite for Statistics Manager -Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTPORT} auth=${AUTH} headers=${HEADERS} -Suite Teardown Delete All Sessions -Library Collections -Library RequestsLibrary -Library ../../../libraries/Common.py -Library ../../../libraries/Topologynew.py -Variables ../../../variables/Variables.py -Resource ../../../libraries/Utils.robot - -*** Variables *** -${nodeprefix} openflow: -${key} portStatistics -${REST_CONTEXT} /controller/nb/v2/statistics - -*** Test Cases *** -get port stats - [Documentation] Show port stats and validate result - [Tags] adsal - ${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}) 1 - @{node_list} Create Nodes List ${topo_nodes} - Wait Until Keyword Succeeds 70s 2s Check For Elements At URI ${REST_CONTEXT}/${CONTAINER}/port ${node_list} - -get flow stats - [Documentation] Show flow stats and validate result - [Tags] adsal - ${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}) - @{node_list} Create Nodes List ${topo_nodes} - Wait Until Keyword Succeeds 70s 2s Check For Elements At URI ${REST_CONTEXT}/${CONTAINER}/flow ${node_list} - -get table stats - [Documentation] Show flow stats and validate result - [Tags] adsal - ${topo_nodes} Get Nodes From Tree Topo (${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}) - @{node_list} Create Nodes List ${topo_nodes} - Wait Until Keyword Succeeds 70s 2s Check For Elements At URI ${REST_CONTEXT}/${CONTAINER}/table ${node_list} - -*** Keywords *** -Check For Correct Number Of Nodes At URI - [Arguments] ${uri} ${topo_nodes} - ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/${uri} - Log ${resp.content} - Should Be Equal As Strings ${resp.status_code} 200 - 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} - -Check For All Nodes At URI - [Arguments] ${uri} ${topo_nodes} - ${resp} RequestsLibrary.Get Request session ${REST_CONTEXT}/${CONTAINER}/${uri} - Log ${resp.content} - Should Be Equal As Strings ${resp.status_code} 200 - : FOR ${ITEM} IN @{topo_nodes} - \ ${IND} Get From Dictionary ${ITEM} id - \ Should Contain ${resp.content} "${IND}" - -Create Nodes List - [Arguments] ${topo_dict} - ##init list - @{node_list}= Create List - : FOR ${ITEM} IN @{topo_dict} - \ ${IND} Get From Dictionary ${ITEM} id - \ Append To List ${node_list} ${IND} - [Return] @{node_list}