Suite Setup Start_Suite
Suite Teardown Stop_Suite
Test Setup SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
+Default Tags critical
Library RequestsLibrary
Library SSHLibrary
Resource ${CURDIR}/../../../variables/Variables.robot
Verify_New_Car_Leader_Elected
[Documentation] Verify new owner of the car shard is elected.
- [Tags] critical
BuiltIn.Wait_Until_Keyword_Succeeds 5x 2s 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}
Verify_Cars_Configured
[Documentation] Verify that all cars are configured.
- [Tags] critical
BuiltIn.Wait_Until_Keyword_Succeeds 120x 2s SSHLibrary.Read_Until_Prompt
${session} = Resolve_Http_Session_For_Member member_index=${new_leader_index}
Verify_Cars_Count ${ITEM_COUNT} ${session}
Rejoin_Isolated_Member
[Documentation] Rejoin isolated node
- [Tags] @{NO_TAGS}
ClusterManagement.Rejoin_Member_From_List_Or_All ${old_car_leader}
Delete Cars
Ensure_Cars_Being_Configured
[Arguments] ${session}
+ [Documentation] FIXME: Add a documentation.
${count1} = Get_Cars_Count ${session}
${count2} = Get_Cars_Count ${session}
BuiltIn.Should_Not_Be_Equal_As_Integers ${count1} ${count2}
Rejoin_Isolated_node
[Documentation] Rejoin isolated node.
- [Tags] @{NO_TAGS}
CsCommon.Rejoin_Node_And_Verify_Rejoined
Verify_Stability_After_Rejoin
*** Test Cases ***
Rpc_Provider_Precedence_Longevity
+ [Documentation] FIXME: Add a documentation.
WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout ${DURATION_24_HOURS_IN_SECONDS} 1s Test_Scenario
*** Keywords ***
DrbCommons.DrbCommons_Init
Test_Scenario
+ [Documentation] FIXME: Add a documentation.
Setup_Test_Scenario_Variables
DrbCommons.Register_Rpc_On_Nodes ${installed_rpc_member_idx_list}
DrbCommons.Verify_Constant_On_Active_Nodes
*** Test Cases ***
Rpc_Provider_Precedence_Longevity
+ [Documentation] FIXME: Add a documentation.
WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout ${DURATION_24_HOURS_IN_SECONDS} 1s Test_Scenario
*** Keywords ***
DrbCommons.DrbCommons_Init
Test_Scenario
+ [Documentation] FIXME: Add a documentation.
DrbCommons.Register_Rpc_On_Nodes ${all_indices}
${unregistered_rpc_node} = BuiltIn.Evaluate random.choice(${all_indices}) modules=random
${unregistered_rpc_node} = BuiltIn.Convert_To_Integer ${unregistered_rpc_node}
${TEST_LOG_LEVEL} info
@{TEST_LOG_COMPONENTS} org.opendaylight.controller.remote.rpc
${EOS_URL} /restconf/operational/entity-owners:entity-owners
-@{NO_TAGS}
${active_nodes} ${EMPTY}
*** Test Cases ***
Get_Basic_Rpc_Test_Owner
[Documentation] Find a service owner and successors.
- [Tags] @{NO_TAGS}
Get_Present_Brt_Owner_And_Successors 1 store=${True}
Rpc_Before_Freezing_On_Owner
Freeze_Current_Owner_Member
[Documentation] Stop cluster node which is the owner.
- [Tags] @{NO_TAGS}
ClusterManagement.Freeze_Single_Member ${brt_owner}
BuiltIn.Set_Suite_Variable ${old_brt_owner} ${brt_owner}
BuiltIn.Set_Suite_Variable ${old_brt_successors} ${brt_successors}
Unfreeze_Frozen_Member
[Documentation] Restart frozen node
- [Tags] @{NO_TAGS}
ClusterManagement.Unfreeze_Single_Member ${old_brt_owner}
BuiltIn.Set_Suite_Variable ${active_nodes} ${EMPTY}
*** Keywords ***
Setup_Suite
+ [Documentation] FIXME: Add a documentation.
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}
@{TEST_LOG_COMPONENTS} org.opendaylight.controller.remote.rpc
${EOS_URL} /restconf/operational/entity-owners:entity-owners
${RPC_STATUS_ISOLATED} 501
-@{NO_TAGS}
*** Test Cases ***
Get_Basic_Rpc_Test_Owner
[Documentation] Find a service owner and successors.
- [Tags] @{NO_TAGS}
Get_Present_Brt_Owner_And_Successors 1 store=${True}
Rpc_Before_Isolation_On_Owner
Isolate_Current_Owner_Member
[Documentation] Isolating cluster node which is the owner.
- [Tags] @{NO_TAGS}
ClusterManagement.Isolate_Member_From_List_Or_All ${brt_owner}
BuiltIn.Set Suite variable ${old_brt_owner} ${brt_owner}
BuiltIn.Set Suite variable ${old_brt_successors} ${brt_successors}
Rejoin_Isolated_Member
[Documentation] Rejoin isolated node
- [Tags] @{NO_TAGS}
ClusterManagement.Rejoin_Member_From_List_Or_All ${old_brt_owner}
BuiltIn.Wait_Until_Keyword_Succeeds 60s 10s ShardStability.Shards_Stability_Get_Details ${DEFAULT_SHARD_LIST}
*** Keywords ***
Setup_Suite
+ [Documentation] FIXME: Add a documentation.
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}
${TEST_LOG_LEVEL} info
@{TEST_LOG_COMPONENTS} org.opendaylight.controller.remote.rpc
${EOS_URL} /restconf/operational/entity-owners:entity-owners
-@{NO_TAGS}
*** Test Cases ***
Get_Basic_Rpc_Test_Owner
[Documentation] Find a service owner and successors.
- [Tags] @{NO_TAGS}
Get_Present_Brt_Owner_And_Successors 1 store=${True}
Rpc_Before_Killing_On_Owner
Kill_Current_Owner_Member
[Documentation] Kill cluster node which is the owner.
- [Tags] @{NO_TAGS}
ClusterManagement.Kill_Single_Member ${brt_owner}
BuiltIn.Set Suite variable ${old_brt_owner} ${brt_owner}
BuiltIn.Set Suite variable ${old_brt_successors} ${brt_successors}
Restart_Killed_Member
[Documentation] Restart killed node
- [Tags] @{NO_TAGS}
ClusterManagement.Start_Single_Member ${old_brt_owner}
Verify_New_Owner_Remained_After_Rejoin
*** Keywords ***
Setup_Suite
+ [Documentation] FIXME: Add a documentation.
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}