X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FPerformance_Flow_Config%2F040_Stats_Collection_One.robot;h=03b57c6279bc017f1ec65a39fa12e78d78b0e0c4;hb=HEAD;hp=559f4114963d8ea68de3f9421cc0de7b0eecbae3;hpb=a24488972a386c12e4c49ec883ef60974a019ed3;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Performance_Flow_Config/040_Stats_Collection_One.robot b/csit/suites/openflowplugin/Performance_Flow_Config/040_Stats_Collection_One.robot index 559f411496..03b57c6279 100644 --- a/csit/suites/openflowplugin/Performance_Flow_Config/040_Stats_Collection_One.robot +++ b/csit/suites/openflowplugin/Performance_Flow_Config/040_Stats_Collection_One.robot @@ -1,27 +1,35 @@ *** Settings *** -Documentation Suite checks if StatMngr is able to collect flows if all are present on one switch in one table no matter how many switches are connecteded to the controller -Suite Setup Connect Switches -Suite Teardown Stop Switches -Library OperatingSystem -Library Collections -Library XML -Library SSHLibrary -Library RequestsLibrary -Library ../../../../csit/libraries/Common.py -Library ../../../../csit/libraries/ScaleClient.py -Variables ../../../../csit/variables/Variables.py -Resource ../../../../csit/variables/openflowplugin/Variables.robot +Documentation Suite checks if StatMngr is able to collect flows if all are present on one switch in one table no matter how many switches are connecteded to the controller + +Library OperatingSystem +Library Collections +Library XML +Library SSHLibrary +Library RequestsLibrary +Library ../../../../csit/libraries/Common.py +Library ../../../../csit/libraries/ScaleClient.py +Variables ../../../../csit/variables/Variables.py +Resource ../../../../csit/variables/openflowplugin/Variables.robot + +Suite Setup Connect Switches +Suite Teardown Stop Switches + *** Variables *** -${swnr} 17 -${flnr} 17000 -${swspread} first -${tabspread} first -@{cntls} ${ODL_SYSTEM_IP} +${swnr} 17 +${flnr} 17000 +${swspread} first +${tabspread} first +@{cntls} ${ODL_SYSTEM_IP} + *** Test Cases *** Configure Flows - ${flows} ${notes}= Generate New Flow Details flows=${flnr} switches=${swnr} swspread=${swspread} tabspread=${tabspread} + ${flows} ${notes}= Generate New Flow Details + ... flows=${flnr} + ... switches=${swnr} + ... swspread=${swspread} + ... tabspread=${tabspread} Log ${notes} ${res}= Configure Flows flow_details=${flows} controllers=@{cntls} nrthreads=5 Log ${res} @@ -38,6 +46,7 @@ Check No Flows In Operational ${noflows}= Create List Wait Until Keyword Succeeds 110s 20s Check Flows Inventory ${noflows} ${ODL_SYSTEM_IP} + *** Keywords *** Connect Switches [Documentation] Starts mininet with requested number of switches (${swnr}) @@ -62,7 +71,7 @@ Stop Switches Are Switches Connected Topo [Documentation] Checks wheather switches are connected to controller - ${resp}= Get Request session ${RFC8040_OPERATIONAL_TOPO_FLOW1_API} headers=${ACCEPT_XML} + ${resp}= GET On Session session url=${RFC8040_OPERATIONAL_TOPO_FLOW1_API} headers=${ACCEPT_XML} Log ${resp.content} ${count}= Get Element Count ${resp.content} xpath=node Should Be Equal As Numbers ${count} ${swnr}