-... This program and the accompanying materials are made available under the
-... terms of the Eclipse Public License v1.0 which accompanies this distribution,
-... and is available at http://www.eclipse.org/legal/epl-v10.html
-Suite Setup Setup_Suite
-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
-Default Tags critical
-Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
-Resource ${CURDIR}/../../../libraries/KarafKeywords.robot
-Resource ${CURDIR}/../../../libraries/ShardStability.robot
-Resource ${CURDIR}/../../../libraries/SetupUtils.robot
-Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
-Resource ${CURDIR}/../../../variables/Variables.robot
+... This program and the accompanying materials are made available under the
+... terms of the Eclipse Public License v1.0 which accompanies this distribution,
+... and is available at http://www.eclipse.org/legal/epl-v10.html
+
+Resource ${CURDIR}/../../../libraries/ClusterManagement.robot
+Resource ${CURDIR}/../../../libraries/KarafKeywords.robot
+Resource ${CURDIR}/../../../libraries/ShardStability.robot
+Resource ${CURDIR}/../../../libraries/SetupUtils.robot
+Resource ${CURDIR}/../../../libraries/TemplatedRequests.robot
+Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
+Resource ${CURDIR}/../../../variables/Variables.robot
+
+Suite Setup Setup_Suite
+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
+
+Default Tags critical
+
-${SERVICE} Basic-rpc-test']
-${TEST_LOG_LEVEL} info
-@{TEST_LOG_COMPONENTS} org.opendaylight.controller.remote.rpc
-${EOS_URL} /restconf/operational/entity-owners:entity-owners
+${SERVICE} Basic-rpc-test']
+${TEST_LOG_LEVEL} info
+@{TEST_LOG_COMPONENTS} org.opendaylight.controller.remote.rpc
+${EOS_URL} /rests/data/entity-owners:entity-owners?content=nonconfig
+
- 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}
+ 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}
[Documentation] Run rpc and log the entity ownership service details to karaf log.
... Logging the details was a developer's request during the implementation to improve debugging.
[Documentation] Run rpc and log the entity ownership service details to karaf log.
... Logging the details was a developer's request during the implementation to improve debugging.
- ${session} = Resolve_Http_Session_For_Member member_index=${node_idx}
- ${out} = TemplatedRequests.Get_From_Uri ${EOS_URL} session=${session}
+ [Arguments] ${node_idx}
+ ${session}= Resolve_Http_Session_For_Member member_index=${node_idx}
+ ${out}= TemplatedRequests.Get_From_Uri ${EOS_URL} session=${session}
KarafKeywords.Log_Message_To_Controller_Karaf EOS rest resp: ${out}
TemplatedRequests.Post_To_Uri ${RPC_URL} ${EMPTY} ${HEADERS_XML} ${ACCEPT_XML} session=${session}
Verify_Owner_Elected
KarafKeywords.Log_Message_To_Controller_Karaf EOS rest resp: ${out}
TemplatedRequests.Post_To_Uri ${RPC_URL} ${EMPTY} ${HEADERS_XML} ${ACCEPT_XML} session=${session}
Verify_Owner_Elected
- BuiltIn.Run_Keyword_If ${new_elected} BuiltIn.Should_Not_Be_Equal_As_Numbers ${old_owner} ${owner}
- BuiltIn.Run_Keyword_Unless ${new_elected} BuiltIn.Should_Be_Equal_As_numbers ${old_owner} ${owner}
+ IF ${new_elected}
+ BuiltIn.Should_Not_Be_Equal_As_Numbers ${old_owner} ${owner}
+ END
+ IF not ${new_elected}
+ BuiltIn.Should_Be_Equal_As_numbers ${old_owner} ${owner}
+ END
- ${brt_owner} ${brt_successors}= ClusterManagement.Get_Owner_And_Successors_For_Device ${SERVICE} org.opendaylight.mdsal.ServiceEntityType ${node_to_ask}
- BuiltIn.Run_Keyword_If ${store} BuiltIn.Set_Suite_Variable ${brt_owner} ${brt_owner}
- BuiltIn.Run_Keyword_If ${store} BuiltIn.Set_Suite_Variable ${brt_successors} ${brt_successors}
- BuiltIn.Return_From_Keyword ${brt_owner} ${brt_successors}
+ [Arguments] ${node_to_ask} ${store}=${False}
+ ${brt_owner} ${brt_successors}= ClusterManagement.Get_Owner_And_Successors_For_Device
+ ... ${SERVICE}
+ ... org.opendaylight.mdsal.ServiceEntityType
+ ... ${node_to_ask}
+ IF ${store} BuiltIn.Set_Suite_Variable ${brt_owner} ${brt_owner}
+ IF ${store}
+ BuiltIn.Set_Suite_Variable ${brt_successors} ${brt_successors}
+ END
+ RETURN ${brt_owner} ${brt_successors}