Update Robot Framework format - step 5
[integration/test.git] / csit / suites / controller / Clustering_Datastore / car_persistence_recovery.robot
index b9914fe61a32eacdd6ded6be826a3aa57225cefe..39575870d03fd3e4d03749f0c5875129aa27d39b 100644 (file)
@@ -1,39 +1,53 @@
 *** Settings ***
-Documentation     This test restarts all controllers to verify recovery of car data from persistence.
-...           
-...               Copyright (c) 2016 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
-...           
-...           
-...               Other models and shards (people, car-people) are not accessed by this suite.
-...           
-...               All data is deleted at the end of the suite.
-...               This suite expects car module to have a separate Shard.
-Suite Setup       Setup
-Test Setup        SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
-Default Tags      clustering    carpeople    critical
-Library           Collections
-Resource          ${CURDIR}/../../../libraries/CarPeople.robot
-Resource          ${CURDIR}/../../../libraries/ClusterManagement.robot
-Resource          ${CURDIR}/../../../libraries/SetupUtils.robot
-Resource          ${CURDIR}/../../../libraries/TemplatedRequests.robot
-Variables         ${CURDIR}/../../../variables/Variables.py
+Documentation       This test restarts all controllers to verify recovery of car data from persistence.
+...
+...                 Copyright (c) 2016 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
+...
+...
+...                 Other models and shards (people, car-people) are not accessed by this suite.
+...
+...                 All data is deleted at the end of the suite.
+...                 This suite expects car module to have a separate Shard.
+
+Library             Collections
+Resource            ${CURDIR}/../../../libraries/CarPeople.robot
+Resource            ${CURDIR}/../../../libraries/ClusterManagement.robot
+Resource            ${CURDIR}/../../../libraries/SetupUtils.robot
+Resource            ${CURDIR}/../../../libraries/TemplatedRequests.robot
+Variables           ${CURDIR}/../../../variables/Variables.py
+
+Suite Setup         Setup
+Test Setup          SetupUtils.Setup_Test_With_Logging_And_Without_Fast_Failing
+
+Default Tags        clustering    carpeople    critical
+
 
 *** Variables ***
-${CAR_ITEMS}      50
-${MEMBER_START_TIMEOUT}    300s
-${VAR_DIR}        ${CURDIR}/../../../variables/carpeople/crud
+${CAR_ITEMS}                50
+${MEMBER_START_TIMEOUT}     300s
+${VAR_DIR}                  ${CURDIR}/../../../variables/carpeople/crud
+
 
 *** Test Cases ***
 Add_Cars_On_Leader_And_Verify
     [Documentation]    Single big PUT to datastore to add cars to car Leader.
-    TemplatedRequests.Put_As_Json_Templated    folder=${VAR_DIR}/cars    session=${car_leader_session}    iterations=${CAR_ITEMS}
+    TemplatedRequests.Put_As_Json_Templated
+    ...    folder=${VAR_DIR}/cars
+    ...    session=${car_leader_session}
+    ...    iterations=${CAR_ITEMS}
     FOR    ${session}    IN    @{ClusterManagement__session_list}
-        BuiltIn.Wait_Until_Keyword_Succeeds    10s    2s    TemplatedRequests.Get_As_Json_Templated    folder=${VAR_DIR}/cars    session=${session}
-        ...    verify=True    iterations=${CAR_ITEMS}
+        BuiltIn.Wait_Until_Keyword_Succeeds
+        ...    10s
+        ...    2s
+        ...    TemplatedRequests.Get_As_Json_Templated
+        ...    folder=${VAR_DIR}/cars
+        ...    session=${session}
+        ...    verify=True
+        ...    iterations=${CAR_ITEMS}
     END
 
 Stop_All_Members
@@ -50,18 +64,27 @@ Memorize_Leader_And_Followers
 
 See_Cars_On_Leader
     [Documentation]    GET cars from Leader, should match the PUT data.
-    TemplatedRequests.Get_As_Json_Templated    folder=${VAR_DIR}/cars    session=${car_leader_session}    verify=True    iterations=${CAR_ITEMS}
+    TemplatedRequests.Get_As_Json_Templated
+    ...    folder=${VAR_DIR}/cars
+    ...    session=${car_leader_session}
+    ...    verify=True
+    ...    iterations=${CAR_ITEMS}
 
 See_Cars_On_Followers
     [Documentation]    The same check on other members.
     FOR    ${session}    IN    @{car_follower_sessions}
-        TemplatedRequests.Get_As_Json_Templated    folder=${VAR_DIR}/cars    session=${session}    verify=True    iterations=${CAR_ITEMS}
+        TemplatedRequests.Get_As_Json_Templated
+        ...    folder=${VAR_DIR}/cars
+        ...    session=${session}
+        ...    verify=True
+        ...    iterations=${CAR_ITEMS}
     END
 
 Delete_Cars_On_Leader
     [Documentation]    Delete cars on the new Leader.
     TemplatedRequests.Delete_Templated    folder=${VAR_DIR}/cars    session=${car_leader_session}
 
+
 *** Keywords ***
 Setup
     [Documentation]    Initialize resources, memorize car shard leader and followers.