X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FPerformance_Flow_Config%2F060_Stats_Collection_Basic16kScenario.robot;h=3bd4e15766d7f4a3ac9fd022a98fe75bfb51fe9e;hb=4122a5096fc35c216fa6192d54da4a1d938f0128;hp=df4d87aeea42f33d993f3bb204ed17dba4feef54;hpb=a24488972a386c12e4c49ec883ef60974a019ed3;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Performance_Flow_Config/060_Stats_Collection_Basic16kScenario.robot b/csit/suites/openflowplugin/Performance_Flow_Config/060_Stats_Collection_Basic16kScenario.robot index df4d87aeea..3bd4e15766 100644 --- a/csit/suites/openflowplugin/Performance_Flow_Config/060_Stats_Collection_Basic16kScenario.robot +++ b/csit/suites/openflowplugin/Performance_Flow_Config/060_Stats_Collection_Basic16kScenario.robot @@ -1,24 +1,29 @@ *** Settings *** -Documentation Suite checks if StatMngr is able to collect flows correctly -Suite Setup Create Http Session -Suite Teardown Delete Http Session -Library OperatingSystem -Library Collections -Library XML -Library SSHLibrary -Variables ../../../variables/Variables.py -Library RequestsLibrary -Library ../../../libraries/Common.py -Library ../../../libraries/ScaleClient.py -Resource ../../../variables/openflowplugin/Variables.robot +Documentation Suite checks if StatMngr is able to collect flows correctly + +Library OperatingSystem +Library Collections +Library XML +Library SSHLibrary +Variables ../../../variables/Variables.py +Library RequestsLibrary +Library ../../../libraries/Common.py +Library ../../../libraries/ScaleClient.py +Resource ../../../variables/openflowplugin/Variables.robot + +Suite Setup Create Http Session +Suite Teardown Delete Http Session + *** Variables *** -${swnr} 16 -${flnr} 16000 -${swspread} linear -${tabspread} linear -@{cntls} ${ODL_SYSTEM_IP} -${start_cmd} sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13 +${swnr} 16 +${flnr} 16000 +${swspread} linear +${tabspread} linear +@{cntls} ${ODL_SYSTEM_IP} +${start_cmd} +... sudo mn --controller=remote,ip=${ODL_SYSTEM_IP} --topo linear,${swnr} --switch ovsk,protocols=OpenFlow13 + *** Test Cases *** Connect Mininet @@ -26,7 +31,11 @@ Connect Mininet Configure Flows [Documentation] Configuration of 16k flows into config datastore - ${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} @@ -84,6 +93,7 @@ Check No Flows In Operational Last Stop Mininet End Stop Switches + *** Keywords *** Connect Switches [Documentation] Starts mininet with requested number of switches (${swnr}) @@ -112,7 +122,7 @@ Delete Http Session 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} @@ -123,6 +133,6 @@ Check Flows Inventory Should Be True ${res} Check No Switches Inventory - ${resp}= Get Request session ${RFC8040_OPERATIONAL_NODES_API} + ${resp}= GET On Session session ${RFC8040_OPERATIONAL_NODES_API} Log ${resp.content} Should Be Equal As Strings '${resp.content}' '{"nodes":{}}'