*** Settings ***
-Documentation DOMRpcBroker testing: RPC Provider Partition And Heal
+Documentation DOMRpcBroker testing: RPC Provider Partition And Heal
...
-... Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
+... Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
...
-... 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
+... 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
...
-... This tests establishes that the RPC service operates correctly when faced
-... with node failures.
-... This suite supports more than three node cluster setup too.
-Suite Setup Setup_Kw
-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
-Library SSHLibrary
-Resource ${CURDIR}/../../../libraries/controller/DrbCommons.robot
-Resource ${CURDIR}/../../../libraries/SetupUtils.robot
-Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
+... This tests establishes that the RPC service operates correctly when faced
+... with node failures.
+... This suite supports more than three node cluster setup too.
+
+Library SSHLibrary
+Resource ${CURDIR}/../../../libraries/controller/DrbCommons.robot
+Resource ${CURDIR}/../../../libraries/SetupUtils.robot
+Resource ${CURDIR}/../../../libraries/WaitForFailure.robot
+
+Suite Setup Setup_Kw
+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
+
*** Variables ***
-@{INSTALLED_RPC_MEMEBER_IDX_LIST} ${1} ${2}
+@{INSTALLED_RPC_MEMEBER_IDX_LIST} ${1} ${2}
# TODO: Consider unregistering one at random for each iteration, as in the precedence longevity suite.
-${TESTED_MEMBER_WITHOUT_RPC_IDX} ${3}
+${TESTED_MEMBER_WITHOUT_RPC_IDX} ${3}
# TODO: change back to 24h when releng has more granular steps to kill VMs than days; now 23h=82800s
-${LONGEVITY_TEST_DURATION_IN_SECS} 82800
+${LONGEVITY_TEST_DURATION_IN_SECS} 82800
+
*** Test Cases ***
Rpc_Provider_Precedence_Longevity
[Documentation] Test register rpc on two of three nodes and repeat the tested scenario for 24h.
DrbCommons.Register_Rpc_On_Nodes ${INSTALLED_RPC_MEMEBER_IDX_LIST}
- WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout ${LONGEVITY_TEST_DURATION_IN_SECS} 1s Test_Scenario
+ WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout
+ ... ${LONGEVITY_TEST_DURATION_IN_SECS}
+ ... 1s
+ ... Test_Scenario
DrbCommons.Unregister_Rpc_On_Nodes ${INSTALLED_RPC_MEMEBER_IDX_LIST}
+
*** Keywords ***
Setup_Kw
[Documentation] Setup keyword. Create ${possible_constants} list with possible variables of remote constants.
DrbCommons.Isolate_Node ${isolated_idx}
BuiltIn.Wait_Until_Keyword_Succeeds 60s 5s DrbCommons.Verify_Constant_On_Active_Nodes
DrbCommons.Rejoin_Node ${isolated_idx}
- WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout 20s 1s DrbCommons.Verify_Constant_On_Active_Nodes
+ WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout
+ ... 20s
+ ... 1s
+ ... DrbCommons.Verify_Constant_On_Active_Nodes