X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fnetconf%2Fscale%2Fgetsingle.robot;h=ac9186cdef48178c6b5b2b0a3c232bff64946c7a;hb=61a8da7890252940305763b44f75c4330e6457d7;hp=b3812d582ea63a082882cf4915dccd7af84f5b24;hpb=3971c396d85c8085a1765e7dc5cfbafb9e9cc776;p=integration%2Ftest.git diff --git a/csit/suites/netconf/scale/getsingle.robot b/csit/suites/netconf/scale/getsingle.robot index b3812d582e..ac9186cdef 100644 --- a/csit/suites/netconf/scale/getsingle.robot +++ b/csit/suites/netconf/scale/getsingle.robot @@ -14,6 +14,7 @@ Documentation netconf-connector scaling test suite (single-threaded GET requ ... - Deconfiguring devices one by one. Suite Setup Setup_Everything Suite Teardown Teardown_Everything +Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing Library RequestsLibrary Library SSHLibrary timeout=10s Resource ${CURDIR}/../../../libraries/KarafKeywords.robot @@ -24,22 +25,28 @@ Variables ${CURDIR}/../../../variables/Variables.py *** Variables *** ${DEVICE_COUNT} 500 -${memory_usage_leeway} 16 # in MB *** Test Cases *** +Start_Test_Tool + [Documentation] Deploy and start test tool, then wait for all its devices to become online. + NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} mdsal=false + Configure_Devices_Onto_Netconf [Documentation] Make requests to configure the testtool devices. [Tags] critical - NetconfKeywords.Perform_Operation_On_Each_Device Configure_Device + ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*10 + NetconfKeywords.Perform_Operation_On_Each_Device Configure_Device timeout=${timeout} Get_Data_From_Devices [Documentation] Ask testtool devices for data. - NetconfKeywords.Perform_Operation_On_Each_Device Check_Device_Data + ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*2 + NetconfKeywords.Perform_Operation_On_Each_Device Check_Device_Data timeout=${timeout} Deconfigure_Devices_From_Netconf [Documentation] Make requests to deconfigure the testtool devices. [Tags] critical - NetconfKeywords.Perform_Operation_On_Each_Device Deconfigure_Device + ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*10 + NetconfKeywords.Perform_Operation_On_Each_Device Deconfigure_Device timeout=${timeout} [Teardown] Report_Failure_Due_To_Bug 4547 *** Keywords *** @@ -51,11 +58,7 @@ Setup_Everything SSHLibrary.Set_Default_Configuration prompt=${TOOLS_SYSTEM_PROMPT} SetupUtils.Setup_Utils_For_Setup_And_Teardown NetconfKeywords.Setup_Netconf_Keywords - # Connect to the tools machine - SSHLibrary.Open_Connection ${TOOLS_SYSTEM_IP} - Utils.Flexible_Mininet_Login - # Deploy testtool on it - NetconfKeywords.Install_And_Start_Testtool device-count=${DEVICE_COUNT} + KarafKeywords.Configure_Timeout_For_Karaf_Console 120s Teardown_Everything [Documentation] Teardown the test infrastructure, perform cleanup and release all resources. @@ -86,5 +89,5 @@ Deconfigure_Device KarafKeywords.Log_Message_To_Controller_Karaf Removing device ${current_name} NetconfKeywords.Remove_Device_From_Netconf ${current_name} KarafKeywords.Log_Message_To_Controller_Karaf Waiting for device ${current_name} to disappear - NetconfKeywords.Wait_Device_Fully_Removed ${current_name} period=0.5s + NetconfKeywords.Wait_Device_Fully_Removed ${current_name} period=0.5s timeout=120s KarafKeywords.Log_Message_To_Controller_Karaf Device ${current_name} removed