... - 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
*** Variables ***
${DEVICE_COUNT} 500
+${TIMEOUT_FACTOR} 10
+${device_type} full-uri-device
*** 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}
+ 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
- ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*10
+ ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
NetconfKeywords.Perform_Operation_On_Each_Device Configure_Device timeout=${timeout}
Get_Data_From_Devices
[Documentation] Ask testtool devices for data.
- ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*2
+ ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
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
- ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*10
+ ${timeout}= BuiltIn.Evaluate ${DEVICE_COUNT}*${TIMEOUT_FACTOR}
NetconfKeywords.Perform_Operation_On_Each_Device Deconfigure_Device timeout=${timeout}
[Teardown] Report_Failure_Due_To_Bug 4547
SetupUtils.Setup_Utils_For_Setup_And_Teardown
NetconfKeywords.Setup_Netconf_Keywords
KarafKeywords.Configure_Timeout_For_Karaf_Console 120s
- # 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}
+ ${device_type}= BuiltIn.Set_Variable_If ${USE_NETCONF_CONNECTOR}==${True} default ${device_type}
+ BuiltIn.Set_Suite_Variable ${device_type}
Teardown_Everything
[Documentation] Teardown the test infrastructure, perform cleanup and release all resources.
- Teardown_Netconf_Via_Restconf
RequestsLibrary.Delete_All_Sessions
NetconfKeywords.Stop_Testtool
[Arguments] ${current_name}
[Documentation] Operation for configuring the device in the Netconf subsystem and connecting to it.
KarafKeywords.Log_Message_To_Controller_Karaf Connecting device ${current_name}
- NetconfKeywords.Configure_Device_In_Netconf ${current_name} device_port=${current_port}
+ NetconfKeywords.Configure_Device_In_Netconf ${current_name} device_type=${device_type} device_port=${current_port}
KarafKeywords.Log_Message_To_Controller_Karaf Waiting for device ${current_name} to connect
NetconfKeywords.Wait_Device_Connected ${current_name} period=0.5s
KarafKeywords.Log_Message_To_Controller_Karaf Device ${current_name} connected