Tidy for clustering test suite.
[integration/test.git] / test / csit / suites / clustering / datastore / 030_car_failover_crud_on_new_leader.robot
index 7de7160a4e0a85f1a56c47816236f2bb932c2605..98aff4efc681a36ae5690583b09dd0766d43d9dd 100644 (file)
@@ -1,66 +1,64 @@
 *** Settings ***
 Documentation     This test brings down the current leader of the "car" shard and then executes CRUD operations on the new leader
-Default Tags  3-node-cluster
-
+Default Tags      3-node-cluster
 Library           ../../../libraries/CrudLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
-Resource           ../../../libraries/ClusterKeywords.txt
+Resource          ../../../libraries/ClusterKeywords.txt
 
 *** Variables ***
 ${CAR_SHARD}      shard-car-config
-${NUM_CARS}  ${50}
-${NUM_ORIG_CARS}  ${10}
+${NUM_CARS}       ${50}
+${NUM_ORIG_CARS}    ${10}
 
 *** Test Cases ***
 Get old car leader
-    ${OLD_CAR_LEADER}    Wait For Leader  ${CAR_SHARD}
+    ${OLD_CAR_LEADER}    Wait For Leader    ${CAR_SHARD}
     Set Suite Variable    ${OLD_CAR_LEADER}
 
 Delete cars on old leader
-    Delete All Cars And Verify   ${OLD_CAR_LEADER}
+    Delete All Cars And Verify    ${OLD_CAR_LEADER}
 
 Add original cars on old leader
-    Add Cars And Verify  ${OLD_CAR_LEADER}  ${NUM_ORIG_CARS}
+    Add Cars And Verify    ${OLD_CAR_LEADER}    ${NUM_ORIG_CARS}
 
 Switch car leader
-    [Documentation]  Stop the leader to cause a new leader to be elected
-    ${NEW_CAR_LEADER}  Switch Leader  ${CAR_SHARD}  ${OLD_CAR_LEADER}
-    Set Suite Variable ${NEW_CAR_LEADER}
+    [Documentation]    Stop the leader to cause a new leader to be elected
+    ${NEW_CAR_LEADER}    Switch Leader    ${CAR_SHARD}    ${OLD_CAR_LEADER}
+    Set Suite Variable    ${NEW_CAR_LEADER}
 
 Get original cars on new leader
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   ${NEW_CAR_LEADER}   ${NUM_ORIG_CARS}
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    ${NEW_CAR_LEADER}    ${NUM_ORIG_CARS}
 
 Delete cars on new leader
-    Delete All Cars And Verify   ${NEW_CAR_LEADER}
+    Delete All Cars And Verify    ${NEW_CAR_LEADER}
 
 Add new cars and get cars from new leader
     [Documentation]    Add cars and get added cars from the Leader
-    Add Cars And Verify   ${NEW_CAR_LEADER}   ${NUM_CARS}
+    Add Cars And Verify    ${NEW_CAR_LEADER}    ${NUM_CARS}
 
 Get Car Followers
-    ${CAR_FOLLOWERS}   Get All Followers   ${CAR_SHARD}
-    Set Suite Variable  ${CAR_FOLLOWERS}
+    ${CAR_FOLLOWERS}    Get All Followers    ${CAR_SHARD}
+    Set Suite Variable    ${CAR_FOLLOWERS}
 
 Get added cars from Follower
-    [Documentation]   Get the added cars from the Follower
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[0]   ${NUM_CARS}
+    [Documentation]    Get the added cars from the Follower
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[0]    ${NUM_CARS}
 
 Delete cars on Follower
-    Delete All Cars And Verify   @{CAR_FOLLOWERS}[0]
+    Delete All Cars And Verify    @{CAR_FOLLOWERS}[0]
 
 Add cars from Follower
     [Documentation]    Add more cars from the Follower
-    Add Cars And Verify   @{CAR_FOLLOWERS}[0]   ${NUM_CARS}
+    Add Cars And Verify    @{CAR_FOLLOWERS}[0]    ${NUM_CARS}
 
 Get added cars from new leader
-    [Documentation]   Get added cars from the new leader
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   ${NEW_CAR_LEADER}   ${NUM_CARS}
+    [Documentation]    Get added cars from the new leader
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    ${NEW_CAR_LEADER}    ${NUM_CARS}
 
 Restart old Car leader
     StartController    ${OLD_CAR_LEADER}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
 
 Get added cars from old leader
-    [Documentation]   Get the added cars from the old leader
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   ${OLD_CAR_LEADER}   ${NUM_CARS}
-
+    [Documentation]    Get the added cars from the old leader
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    ${OLD_CAR_LEADER}    ${NUM_CARS}