@{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}
Verify_New_Basic_Rpc_Test_Owner_Elected
[Documentation] Verify new owner of the service is elected.
${idx}= Collections.Get_From_List ${old_brt_successors} 0
- BuiltIn.Wait_Until_Keyword_Succeeds 60s 10s ShardStability.Shards_Stability_Get_Details ${DEFAULT_SHARD_LIST} member_index_list=${old_brt_successors}
- BuiltIn.Wait_Until_Keyword_Succeeds 10s 2s Verify_Owner_Elected ${True} ${old_brt_owner} ${idx}
+ BuiltIn.Wait_Until_Keyword_Succeeds 70s 10s ShardStability.Shards_Stability_Get_Details ${DEFAULT_SHARD_LIST} member_index_list=${old_brt_successors}
+ BuiltIn.Wait_Until_Keyword_Succeeds 60s 5s Verify_Owner_Elected ${True} ${old_brt_owner} ${idx}
Get_Present_Brt_Owner_And_Successors ${idx} store=${True}
Rpc_On_Isolated_Node
Rpc_On_Non_Isolated_Cluster_Nodes
[Documentation] Run rpc on remained cluster nodes.
: FOR ${idx} IN @{old_brt_successors}
- \ BuiltIn.Wait_Until_Keyword_Succeeds 60s 3s Run_Rpc ${idx}
+ \ BuiltIn.Wait_Until_Keyword_Succeeds 60s 5s Run_Rpc ${idx}
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}
-
-Verify_New_Owner_Remained_After_Rejoin
- [Documentation] Verify no owner change happened after rejoin.
- WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout 15s 2s Verify_Owner_Elected ${False} ${brt_owner} ${brt_owner}
+ BuiltIn.Wait_Until_Keyword_Succeeds 70s 10s ShardStability.Shards_Stability_Get_Details ${DEFAULT_SHARD_LIST}
Rpc_After_Rejoin_On_New_Owner
[Documentation] Run rpc on the new service owner node.
*** 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}
... Logging the details was a developer's request during the implementation to improve debugging.
${session} = Resolve_Http_Session_For_Member member_index=${node_idx}
Get_And_Log_EOS_Output_To_Karaf_Log ${session}
- TemplatedRequests.Post_To_Uri ${RPC_URL} ${EMPTY} ${EMPTY_DICT} ${EMPTY_DICT} session=${session}
+ TemplatedRequests.Post_To_Uri ${RPC_URL} ${EMPTY} ${HEADERS_XML} ${ACCEPT_XML} session=${session}
Verify_Owner_Elected
[Arguments] ${new_elected} ${old_owner} ${node_to_ask}