X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FMaximum_Links%2F010__finding_max_links.robot;fp=csit%2Fsuites%2Fopenflowplugin%2FMaximum_Links%2F010__finding_max_links.robot;h=13df49e8761956365d8dee2f4738f4ba2b9912b5;hb=2d7e1faef8f0641941ddf56e73227fc76c127297;hp=f24f4edd297b6417c331da46a03b6b3b232bfd2d;hpb=f3a89dc170858145fb178e3f20f41cf35be3d642;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Maximum_Links/010__finding_max_links.robot b/csit/suites/openflowplugin/Maximum_Links/010__finding_max_links.robot index f24f4edd29..13df49e876 100644 --- a/csit/suites/openflowplugin/Maximum_Links/010__finding_max_links.robot +++ b/csit/suites/openflowplugin/Maximum_Links/010__finding_max_links.robot @@ -1,33 +1,33 @@ *** Settings *** Documentation Test suite for finding out max number of Links -Suite Setup Link Scale Suite Setup -Suite Teardown Scalability Suite Teardown +Suite Setup Workflow Setup +Suite Teardown Workflow Teardown Library OperatingSystem -Library RequestsLibrary -Variables ../../../variables/Variables.py -Resource ../../../libraries/Scalability.robot +Resource ../../../variables/Variables.robot +Resource ../../../libraries/WorkflowsOpenFlow.robot +Resource ../../../libraries/KarafKeywords.robot *** Variables *** -${MIN_SWITCHES} 10 -${MAX_SWITCHES} 200 -${STEP_SWITCHES} 5 +@{SWITCH_LIST} ${16} ${32} ${40} ${48} ${52} ${56} ${60} ${LINKS_RESULT_FILE} links.csv +${TIME_RESULT_FILE} time.csv *** Test Cases *** -Find Max Switch Links +Find Max Links [Documentation] Find max number of Links supported. Fully mesh topology starting from ... ${MIN_SWITCHES} switches till ${MAX_SWITCHES} switches will be attempted in steps of ${STEP_SWITCHES} - Append To File ${LINKS_RESULT_FILE} Max Links \n - ${max-links} Find Max Links ${MIN_SWITCHES} ${MAX_SWITCHES} ${STEP_SWITCHES} - Log ${max-links} - Append To File ${LINKS_RESULT_FILE} ${max-links}\n - -*** Keywords *** -Link Scale Suite Setup - [Documentation] Do initial steps for link scale tests - Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML} - ${mininet_conn_id}= Open Connection ${TOOLS_SYSTEM_IP} prompt=${DEFAULT_LINUX_PROMPT} - Login With Public Key ${TOOLS_SYSTEM_USER} ${USER_HOME}/.ssh/${SSH_KEY} any - Log Copying ${CREATE_FULLYMESH_TOPOLOGY_FILE_PATH} file to Mininet VM - Put File ${CURDIR}/../../../${CREATE_FULLYMESH_TOPOLOGY_FILE_PATH} - Close Connection + ${error_message}= Set Variable Fail initializing suite + ${maximum_links}= Set Variable ${0} + ${discover_time}= Set Variable 0 + : FOR ${switches} IN @{SWITCH_LIST} + \ ${status} ${error_message} ${topology_discover_time} WorkflowsOpenFlow.Workflow Full Mesh Topology ${switches} + \ Exit For Loop If '${status}' == 'FAIL' + \ ${maximum_links}= Evaluate ${switches} * ${switches-1} + \ ${discover_time}= Set Variable ${topology_discover_time} + Log to console ${\n} + Log To Console Execution stopped because: ${error_message} + Log To Console Max Links: ${maximum_links} + OperatingSystem.Append To File ${LINKS_RESULT_FILE} Max Links\n + OperatingSystem.Append To File ${LINKS_RESULT_FILE} ${maximum_links}\n + OperatingSystem.Append To File ${TIME_RESULT_FILE} Discover Time\n + OperatingSystem.Append To File ${TIME_RESULT_FILE} ${discover_time}\n