*** Keywords ***
Setup Karaf Keywords
+ [Arguments] ${http_timeout}=1
[Documentation] Initialize ClusterManagement. Open ssh karaf connections to each ODL.
- ClusterManagement.ClusterManagement_Setup
+ ClusterManagement.ClusterManagement_Setup http_timeout=${http_timeout}
BuiltIn.Comment First connections to Karaf console may fail, so WUKS is used. TODO: Track as a Bug.
: FOR ${index} IN @{ClusterManagement__member_index_list}
\ BuiltIn.Wait_Until_Keyword_Succeeds 10x 0.2s Open Controller Karaf Console On Background member_index=${index}
*** Keywords ***
Setup_Utils_For_Setup_And_Teardown
+ [Arguments] ${http_timeout}=1
[Documentation] Prepare both FailFast and Karaf logging, log that the caller suite has started.
... This keyword is to be used in suite setup, and without it the other keywords may not work properly.
FailFast.Do_Not_Fail_Fast_From_Now_On
- KarafKeywords.Setup Karaf Keywords
+ KarafKeywords.Setup Karaf Keywords http_timeout=${http_timeout}
BuiltIn.Run Keyword And Ignore Error KarafKeywords.Log_Test_Suite_Start_To_Controller_Karaf
Setup_Test_With_Logging_And_Fast_Failing
*** Keywords ***
Setup_Keyword
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
CsCommon.Cluster_Singleton_Init
*** Keywords ***
Setup_Keyword
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
CsCommon.Cluster_Singleton_Init
*** Keywords ***
Setup_Keyword
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
CsCommon.Cluster_Singleton_Init
Get_Node_Idx_To_Unregister
*** Keywords ***
Setup_Keyword
[Documentation] Suite setup.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
CsCommon.Cluster_Singleton_Init
*** Keywords ***
Setup_Keyword
[Documentation] Suite setup.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
CsCommon.Cluster_Singleton_Init
Test_Scenario
... leader is shut down cleanly. This is performed by having a steady-stream
... producer execute operations against the shard and then initiate leader shard
... shutdown, then the producer is shut down cleanly.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
Test Template DdbCommons.Clean_Leader_Shutdown_Test_Templ
Library SSHLibrary
Resource ${CURDIR}/../../../libraries/controller/DdbCommons.robot
-Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SetupUtils.robot
*** Test Cases ***
... leader is shut down cleanly. This is performed by having a steady-stream
... producer execute operations against the shard and then initiate leader shard
... shutdown, then the producer is shut down cleanly.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup BuiltIn.Run_Keywords SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
... AND DdbCommons.Create_Prefix_Based_Shard_And_Verify
Suite Teardown BuiltIn.Run_Keywords DdbCommons.Remove_Prefix_Based_Shard_And_Verify
... AND SSHLibrary.Close_All_Connections
Test Template DdbCommons.Clean_Leader_Shutdown_PrefBasedShard_Test_Templ
Library SSHLibrary
Resource ${CURDIR}/../../../libraries/controller/DdbCommons.robot
-Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
Resource ${CURDIR}/../../../libraries/SetupUtils.robot
*** Test Cases ***
... cds-access-client work as expected. This is performed by having a steady
... stream of transactions flowing from the frontend and isolating the node hosting
... the frontend from the rest of the cluster.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
... cds-access-client work as expected. This is performed by having a steady
... stream of transactions flowing from the frontend and isolating the node hosting
... the frontend from the rest of the cluster.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup BuiltIn.Run_Keywords SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
... AND DdbCommons.Create_Prefix_Based_Shard_And_Verify
Suite Teardown BuiltIn.Run_Keywords DdbCommons.Remove_Prefix_Based_Shard_And_Verify
... AND SSHLibrary.Close_All_Connections
... other suites.
... It also verify the ability of the odl-controller-test-app to perform
... several activities.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
... other suites.
... It also verify the ability of the odl-controller-test-app to perform
... several activities.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup BuiltIn.Run_Keywords SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
... AND DdbCommons.Create_Prefix_Based_Shard_And_Verify
Suite Teardown BuiltIn.Run_Keywords DdbCommons.Remove_Prefix_Based_Shard_And_Verify
... AND SSHLibrary.Close_All_Connections
... leader is moved as the result of explicit application request. This is performed
... by having a steady-stream producer execute operations against the shard and then
... initiate shard leader shutdown, then the producer is shut down cleanly.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
... leader is moved as the result of explicit application request. This is performed
... by having a steady-stream producer execute operations against the shard and then
... initiate shard leader shutdown, then the producer is shut down cleanly.
-Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
... leader is moved as the result of explicit application request. This is performed
... by having a steady-stream producer execute operations against the shard and then
... initiate shard leader shutdown, then the producer is shut down cleanly.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup BuiltIn.Run_Keywords SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
... AND DdbCommons.Create_Prefix_Based_Shard_And_Verify
Suite Teardown BuiltIn.Run_Keywords DdbCommons.Remove_Prefix_Based_Shard_And_Verify
... AND SSHLibrary.Close_All_Connections
...
... The goal is to ensure the datastore succeeds in basic isolation/rejoin scenario,
... simulating either a network partition, or a prolonged GC pause.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
...
... The goal is to ensure the datastore succeeds in basic isolation/rejoin scenario,
... simulating either a network partition, or a prolonged GC pause.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup BuiltIn.Run_Keywords SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
... AND DdbCommons.Create_Prefix_Based_Shard_And_Verify
Suite Teardown BuiltIn.Run_Keywords DdbCommons.Remove_Prefix_Based_Shard_And_Verify
... AND SSHLibrary.Close_All_Connections
... The goal is to ensure listeners do no observe disruption when the leader moves.
... This is performed by having a steady stream of transactions being observed by
... the listeners and having the leader move.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
... The goal is to ensure listeners do no observe disruption when the leader moves.
... This is performed by having a steady stream of transactions being observed by
... the listeners and having the leader move.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup BuiltIn.Run_Keywords SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
... AND DdbCommons.Create_Prefix_Based_Shard_And_Verify
Suite Teardown BuiltIn.Run_Keywords DdbCommons.Remove_Prefix_Based_Shard_And_Verify
... AND SSHLibrary.Close_All_Connections
...
... Suite stops all odl nodes, outcomment usage of tell-based protocol in
... config file (means make it false by default) and starts all nodes again.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Library SSHLibrary
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
...
... Suite stops all odl nodes, un-comment usage of tell-based protocol in
... config file (means make it true) and starts all nodes again.
-Suite Setup BuiltIn.Run_Keywords ClusterManagement.ClusterManagement_Setup http_timeout=10
-... AND SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Library SSHLibrary
Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
... The purpose of this test is to determine the broker can forward messages without
... loss. We do this on a single-node setup by incrementally adding publishers and
... subscribers.
-Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
... The purpose of this test is to determine the broker can forward messages without
... loss. We do this on a single-node setup by incrementally adding publishers and
... subscribers.
-Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown
+Suite Setup SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
Suite Teardown SSHLibrary.Close_All_Connections
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
Test Teardown SetupUtils.Teardown_Test_Show_Bugs_If_Test_Failed
*** Keywords ***
Setup_Kw
[Documentation] Setup keyword. Create ${possible_constants} list with possible variables of remote constants.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
${all_indices} = ClusterManagement.List_All_Indices
BuiltIn.Set_Suite_Variable ${all_indices}
${non_installed_rpc_member_idx_list} = ClusterManagement.List_All_Indices
*** Keywords ***
Setup_Keyword
[Documentation] Create a list of possible constant responses on the node with unregistered rpc.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
${full_cluster_index_list} = ClusterManagement.List_All_Indices
BuiltIn.Set_Suite_Variable ${full_cluster_index_list}
${allowed_values} = BuiltIn.Create_List
*** Keywords ***
Setup_Kw
[Documentation] Setup keyword. Create ${possible_constants} list with possible variables of remote constants.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
DrbCommons.DrbCommons_Init
*** Keywords ***
Setup_Kw
[Documentation] Setup keyword. Create ${possible_constants} list with possible variables of remote constants.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
DrbCommons.DrbCommons_Init
Test_Scenario
*** Keywords ***
Setup_Keyword
[Documentation] Create a list of possible constant responses on the node with unregistered rpc.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
DrbCommons.DrbCommons_Init
*** Keywords ***
Setup_Keyword
[Documentation] Create a list of possible constant responses on the node with unregistered rpc.
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
DrbCommons.DrbCommons_Init
Test_Scenario
*** Keywords ***
Setup_Suite
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
SetupUtils.Setup_Logging_For_Debug_Purposes_On_List_Or_All ${TEST_LOG_LEVEL} ${TEST_LOG_COMPONENTS}
Run_Rpc
*** Keywords ***
Setup_Suite
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
SetupUtils.Setup_Logging_For_Debug_Purposes_On_List_Or_All ${TEST_LOG_LEVEL} ${TEST_LOG_COMPONENTS}
Run_Rpc
*** Keywords ***
Setup_Suite
- SetupUtils.Setup_Utils_For_Setup_And_Teardown
+ SetupUtils.Setup_Utils_For_Setup_And_Teardown http_timeout=30
SetupUtils.Setup_Logging_For_Debug_Purposes_On_List_Or_All ${TEST_LOG_LEVEL} ${TEST_LOG_COMPONENTS}
Run_Rpc