Update Robot Framework format - step 5
[integration/test.git] / csit / suites / controller / cluster_singleton / partition_and_heal.robot
index c67d5566434764a284d532cf1602764ead03b4cf..16e3858acf8b4e8b91466a656bc6ab57ccc495f3 100644 (file)
@@ -1,34 +1,39 @@
 *** Settings ***
-Documentation     Cluster Singleton testing: Partition And Heal
+Documentation       Cluster Singleton testing: 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
 ...
-...               Cluster Singleton service is designed to ensure that only one instance of
-...               an application is registered globally in the cluster.
-...               The goal is to establish the service operates correctly in face of node
-...               failures.
-Suite Setup       Setup_Keyword
-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           Collections
-Library           SSHLibrary
-Library           RequestsLibrary
-Resource          ${CURDIR}/../../../libraries/controller/CsCommon.robot
-Resource          ${CURDIR}/../../../libraries/ClusterManagement.robot
-Resource          ${CURDIR}/../../../libraries/MdsalLowlevel.robot
-Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
-Resource          ${CURDIR}/../../../libraries/WaitForFailure.robot
+...                 Cluster Singleton service is designed to ensure that only one instance of
+...                 an application is registered globally in the cluster.
+...                 The goal is to establish the service operates correctly in face of node
+...                 failures.
+
+Library             Collections
+Library             SSHLibrary
+Library             RequestsLibrary
+Resource            ${CURDIR}/../../../libraries/controller/CsCommon.robot
+Resource            ${CURDIR}/../../../libraries/ClusterManagement.robot
+Resource            ${CURDIR}/../../../libraries/MdsalLowlevel.robot
+Resource            ${CURDIR}/../../../libraries/SetupUtils.robot
+Resource            ${CURDIR}/../../../libraries/WaitForFailure.robot
+
+Suite Setup         Setup_Keyword
+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 ***
-${STABILITY_TIMEOUT_ISOLATED}    120s
-${STABILITY_TIMEOUT_REJOINED}    60s
-@{STATUS_ISOLATED}    ${501}
+${STABILITY_TIMEOUT_ISOLATED}       120s
+${STABILITY_TIMEOUT_REJOINED}       60s
+@{STATUS_ISOLATED}                  ${501}
+
 
 *** Test Cases ***
 Register_Singleton_Constant_On_Each_Node
@@ -39,7 +44,12 @@ Verify_Singleton_Constant_On_Each_Node
     [Documentation]    Store the owner and candidates of the application and initially verify that all
     ...    odl nodes are used.
     ${owner}    ${candidates}=    CsCommon.Get_And_Save_Present_CsOwner_And_CsCandidates    1
-    BuiltIn.Wait_Until_Keyword_Succeeds    15    2s    CsCommon.Verify_Singleton_Constant_On_Nodes    ${cs_all_indices}    ${CS_CONSTANT_PREFIX}${owner}
+    BuiltIn.Wait_Until_Keyword_Succeeds
+    ...    15
+    ...    2s
+    ...    CsCommon.Verify_Singleton_Constant_On_Nodes
+    ...    ${cs_all_indices}
+    ...    ${CS_CONSTANT_PREFIX}${owner}
 
 Isolate_Owner_Node
     [Documentation]    Isolate the cluster node which is the owner. Wait until the new owner is elected and store
@@ -48,7 +58,10 @@ Isolate_Owner_Node
 
 Monitor_Stability_While_Isolated
     [Documentation]    Monitor the stability of the singleton application and fail the the owner is changed during the monitoring.
-    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout    ${STABILITY_TIMEOUT_ISOLATED}    3s    CsCommon.Verify_Singleton_Constant_During_Isolation
+    WaitForFailure.Verify_Keyword_Does_Not_Fail_Within_Timeout
+    ...    ${STABILITY_TIMEOUT_ISOLATED}
+    ...    3s
+    ...    CsCommon.Verify_Singleton_Constant_During_Isolation
 
 Rejoin_Isolated_node
     [Documentation]    Rejoin isolated node.
@@ -58,6 +71,7 @@ Unregister_Singleton_Constant_On_Each_Node
     [Documentation]    Unregister the application on every node.
     CsCommon.Unregister_Singleton_Constant_On_Nodes    ${cs_all_indices}
 
+
 *** Keywords ***
 Setup_Keyword
     [Documentation]    Suite setup.