[Return] ${odl_connection}
Open_Connection_To_Tools_System
- [Arguments] ${ip_address}=${TOOLS_SYSTEM_IP} ${timeout}=10s
+ [Arguments] ${ip_address}=${TOOLS_SYSTEM_IP} ${timeout}=10s ${prompt}=${TOOLS_SYSTEM_PROMPT}
[Documentation] Open a connection to the tools system at ${ip_address} and return its identifier.
- ${tools_connection} = SSHLibrary.Open_Connection ${ip_address} prompt=${TOOLS_SYSTEM_PROMPT} timeout=${timeout}
+ ${tools_connection} = SSHLibrary.Open_Connection ${ip_address} prompt=${prompt} timeout=${timeout}
Flexible_Mininet_Login
[Return] ${tools_connection}
... log files if they happen to run in one job.
${name}= BuiltIn.Evaluate """${SUITE_NAME}""".replace(" ","-").replace("/","-").replace(".","-")
${suffix}= BuiltIn.Set_Variable_If '${testcase}' != '' --${testcase} ${EMPTY}
- [Return] ${testtool}--${name}${suffix}.log
+ ${date} = DateTime.Get Current Date
+ ${timestamp} = DateTime.Convert Date ${date} epoch
+ [Return] ${testtool}--${name}${suffix}.${timestamp}.log
Set_User_Configurable_Variable_Default
[Arguments] ${name} ${value}
${follower_ip} = ClusterManagement.Resolve_IP_Address_For_Member member_index=${idx}
Start Tool ${ADDCMD} --host ${follower_ip} ${TOOL_OPTIONS}
${session} = Resolve_Http_Session_For_Member member_index=${car_leader_index}
- BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s Ensure_Cars_Being_Configured ${session}
+ BuiltIn.Wait_Until_Keyword_Succeeds 10x 5s Ensure_Cars_Being_Configured ${session}
Isolate_Current_Car_Leader
[Documentation] Isolating cluster node which is the car shard leader.
Verify_New_Car_Leader_Elected
[Documentation] Verify new owner of the car shard is elected.
- BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s ClusterManagement.Verify_Shard_Leader_Elected ${SHARD_NAME} ${SHARD_TYPE} ${True}
+ BuiltIn.Wait_Until_Keyword_Succeeds 10x 5s ClusterManagement.Verify_Shard_Leader_Elected ${SHARD_NAME} ${SHARD_TYPE} ${True}
... ${old_car_leader} member_index_list=${old_car_followers}
CarPeople.Set_Tmp_Variables_For_Shard_For_Nodes ${old_car_followers} shard_name=${SHARD_NAME} shard_type=${SHARD_TYPE}
[Documentation] Upload the script file and create a virtual env
SetupUtils.Setup_Utils_For_Setup_And_Teardown
SetupUtils.Setup_Logging_For_Debug_Purposes_On_List_Or_All ${TEST_LOG_LEVEL} ${TEST_LOG_COMPONENTS}
- ${mininet_conn_id} = SSHKeywords.Open_Connection_To_Tools_System
+ ${mininet_conn_id} = SSHKeywords.Open_Connection_To_Tools_System prompt=~]>
Builtin.Set Suite Variable ${mininet_conn_id}
SSHLibrary.Put File ${CURDIR}/../../../../tools/odl-mdsal-clustering-tests/scripts/${TOOL_NAME} .
${stdout} ${stderr} ${rc}= SSHLibrary.Execute Command ls return_stdout=True return_stderr=True
Stop Suite
[Documentation] Stop the tool, remove virtual env and close ssh connection towards tools vm.
Stop_Tool
+ ${session} = Resolve_Http_Session_For_Member member_index=${new_leader_index}
+ # best effort to make sure cars are deleted in case more suites will run after this and the delete test case had trouble
+ ${rsp}= RequestsLibrary.Delete Request ${session} ${CARURL}
+ BuiltIn.Log ${rsp.status_code} : ${rsp.text}
SSHKeywords.Virtual_Env_Delete
Store_File_To_Workspace ${out_file} ${out_file}
SSHLibrary.Close All Connections
# Place the suites in run order:
integration/test/csit/suites/controller/ThreeNodes_Datastore/010_crud_mdsal_perf.robot
integration/test/csit/suites/controller/ThreeNodes_Datastore/puts_during_isolation.robot
+integration/test/csit/suites/controller/dom_data_broker/restart_odl_with_tell_based_true.robot
+integration/test/csit/suites/controller/ThreeNodes_Datastore/010_crud_mdsal_perf.robot
+integration/test/csit/suites/controller/ThreeNodes_Datastore/puts_during_isolation.robot
logger.info("Add %s car(s) to %s:%s (%s per request)",
item_count, odl_ip, port, items_per_request)
- retry_rcs = [401, 404, 503]
+ retry_rcs = [401, 404, 500, 503]
res = _task_executor(_prepare_add_car, odl_ip=odl_ip, port=port,
thread_count=thread_count, item_count=item_count,
items_per_request=items_per_request, auth=auth,