Tidy for clustering test suite.
authorPhillip Shea <phillip.shea@hp.com>
Mon, 15 Jun 2015 22:32:41 +0000 (15:32 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 16 Jun 2015 00:03:32 +0000 (00:03 +0000)
These are all the fixes from running tidy.robot on all files
in the clustering test suite.

Change-Id: I659e57ad133c0928d70022cc29902936828903e2
Signed-off-by: Phillip Shea <phillip.shea@hp.com>
13 files changed:
test/csit/suites/clustering/datastore/001_start_cluster.robot
test/csit/suites/clustering/datastore/010_crud_on_leader.robot
test/csit/suites/clustering/datastore/020_crud_on_any_follower.robot
test/csit/suites/clustering/datastore/030_car_failover_crud_on_new_leader.robot
test/csit/suites/clustering/datastore/040_people_failover_crud_on_new_leader.robot
test/csit/suites/clustering/datastore/050_car_persistence_recovery.robot
test/csit/suites/clustering/datastore/140_recovery_restart_follower.robot
test/csit/suites/clustering/datastore/999_cleanup.robot
test/csit/suites/clustering/longevity/010__longevity.robot
test/csit/suites/clustering/longevity/__init__.robot
test/csit/suites/clustering/routedrpc/001_start_cluster.robot
test/csit/suites/clustering/routedrpc/023_routed_rpc_crud_test.robot
test/csit/suites/clustering/routedrpc/024_routed_rpc_crud_test.robot

index fdfcbed013609eb75c622a97fff492793c8d495a..2d0f1526a08252e564f2a290dc5877ae1f8081da 100644 (file)
@@ -1,7 +1,6 @@
 *** Settings ***
 Documentation     Start the controllers
 *** Settings ***
 Documentation     Start the controllers
-Default Tags  3-node-cluster
-
+Default Tags      3-node-cluster
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
@@ -13,12 +12,11 @@ Variables         ../../../variables/Variables.py
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
-*** Test Cases *** 
+*** Test Cases ***
 Stop All Controllers
     [Documentation]    Stop all the controllers in the cluster
     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
 
 Stop All Controllers
     [Documentation]    Stop all the controllers in the cluster
     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
 
-
 Clean All Journals
     [Documentation]    Clean the journals of all the controllers in the cluster
     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 Clean All Journals
     [Documentation]    Clean the journals of all the controllers in the cluster
     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
@@ -28,6 +26,6 @@ Clean All Journals
 
 Start All Controllers
     [Documentation]    Start all the controllers in the cluster
 
 Start All Controllers
     [Documentation]    Start all the controllers in the cluster
-    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}
-    ...    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
+    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}    ${MEMBER1}
+    ...    ${MEMBER2}    ${MEMBER3}
     Should Be True    ${rc}
     Should Be True    ${rc}
index 795f2298ade208d40374acb81f42cb90f54a6d25..34fa8fdca9511b905c0d1742ec3b9e756041f5b8 100644 (file)
@@ -1,7 +1,6 @@
 *** Settings ***
 Documentation     This test finds the leader for shards in a 3-Node cluster and executes CRUD operations on them
 *** Settings ***
 Documentation     This test finds the leader for shards in a 3-Node cluster and executes CRUD operations on them
-Default Tags  3-node-cluster
-
+Default Tags      3-node-cluster
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
@@ -9,90 +8,89 @@ Library           ../../../libraries/CrudLibrary.py
 Library           ../../../libraries/SettingsLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
 Library           ../../../libraries/SettingsLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
-Resource           ../../../libraries/ClusterKeywords.txt
+Resource          ../../../libraries/ClusterKeywords.txt
 Variables         ../../../variables/Variables.py
 
 Variables         ../../../variables/Variables.py
 
-
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
-${SHARD_CAR_NAME}      shard-car-config
-${SHARD_PEOPLE_NAME}      shard-people-config
-${SHARD_CAR_PERSON_NAME}      shard-car-people-config
-${NUM_ENTRIES}  ${30}
+${SHARD_CAR_NAME}    shard-car-config
+${SHARD_PEOPLE_NAME}    shard-people-config
+${SHARD_CAR_PERSON_NAME}    shard-car-people-config
+${NUM_ENTRIES}    ${30}
 
 *** Test Cases ***
 Get Car Leader And Followers
 
 *** Test Cases ***
 Get Car Leader And Followers
-    ${CURRENT_CAR_LEADER}   Wait For Leader   ${SHARD_CAR_NAME}
-    Set Suite Variable  ${CURRENT_CAR_LEADER}
-    ${CAR_FOLLOWERS}   Get All Followers   ${SHARD_CAR_NAME}
-    Set Suite Variable  ${CAR_FOLLOWERS}
+    ${CURRENT_CAR_LEADER}    Wait For Leader    ${SHARD_CAR_NAME}
+    Set Suite Variable    ${CURRENT_CAR_LEADER}
+    ${CAR_FOLLOWERS}    Get All Followers    ${SHARD_CAR_NAME}
+    Set Suite Variable    ${CAR_FOLLOWERS}
 
 Add cars and get cars from Leader
     [Documentation]    Add some cars and get added cars from Leader
 
 Add cars and get cars from Leader
     [Documentation]    Add some cars and get added cars from Leader
-    Add Cars And Verify   ${CURRENT_CAR_LEADER}  ${NUM_ENTRIES}
+    Add Cars And Verify    ${CURRENT_CAR_LEADER}    ${NUM_ENTRIES}
 
 Get added cars from Follower1
 
 Get added cars from Follower1
-    [Documentation]   Get added cars from Follower1 
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[0]   ${NUM_ENTRIES}
+    [Documentation]    Get added cars from Follower1
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get added cars from Follower2
 
 Get added cars from Follower2
-    [Documentation]   Get added cars from Follower2
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[1]    ${NUM_ENTRIES}
+    [Documentation]    Get added cars from Follower2
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[1]    ${NUM_ENTRIES}
 
 Get People Leader And Followers
 
 Get People Leader And Followers
-    ${CURRENT_PEOPLE_LEADER}   Wait For Leader   ${SHARD_PEOPLE_NAME}
-    Set Suite Variable  ${CURRENT_PEOPLE_LEADER}
-    ${PEOPLE_FOLLOWERS}   Get All Followers   ${SHARD_PEOPLE_NAME}
-    Set Suite Variable  ${PEOPLE_FOLLOWERS}
+    ${CURRENT_PEOPLE_LEADER}    Wait For Leader    ${SHARD_PEOPLE_NAME}
+    Set Suite Variable    ${CURRENT_PEOPLE_LEADER}
+    ${PEOPLE_FOLLOWERS}    Get All Followers    ${SHARD_PEOPLE_NAME}
+    Set Suite Variable    ${PEOPLE_FOLLOWERS}
 
 Add people and get people from Leader
     [Documentation]    Add some people and get people from Leader.
 
 Add people and get people from Leader
     [Documentation]    Add some people and get people from Leader.
-    Add People And Verify   ${CURRENT_PEOPLE_LEADER}   ${NUM_ENTRIES}
+    Add People And Verify    ${CURRENT_PEOPLE_LEADER}    ${NUM_ENTRIES}
 
 Get added people from Follower1
 
 Get added people from Follower1
-   [Documentation]   Get added people from Follower1
-   Wait Until Keyword Succeeds   60s  2s  Get People And Verify   @{PEOPLE_FOLLOWERS}[0]    ${NUM_ENTRIES}
+    [Documentation]    Get added people from Follower1
+    Wait Until Keyword Succeeds    60s    2s    Get People And Verify    @{PEOPLE_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get added people from Follower2
 
 Get added people from Follower2
-   [Documentation]   Get added people from Follower2
-   Wait Until Keyword Succeeds   60s  2s  Get People And Verify   @{PEOPLE_FOLLOWERS}[1]    ${NUM_ENTRIES}
+    [Documentation]    Get added people from Follower2
+    Wait Until Keyword Succeeds    60s    2s    Get People And Verify    @{PEOPLE_FOLLOWERS}[1]    ${NUM_ENTRIES}
 
 Get Car-Person Leader And Followers
 
 Get Car-Person Leader And Followers
-    ${CURRENT_CAR_PERSON_LEADER}   Wait For Leader   ${SHARD_CAR_PERSON_NAME}
-    Set Suite Variable  ${CURRENT_CAR_PERSON_LEADER}
-    ${CAR_PERSON_FOLLOWERS}   Get All Followers   ${SHARD_CAR_PERSON_NAME}
-    Set Suite Variable  ${CAR_PERSON_FOLLOWERS}
+    ${CURRENT_CAR_PERSON_LEADER}    Wait For Leader    ${SHARD_CAR_PERSON_NAME}
+    Set Suite Variable    ${CURRENT_CAR_PERSON_LEADER}
+    ${CAR_PERSON_FOLLOWERS}    Get All Followers    ${SHARD_CAR_PERSON_NAME}
+    Set Suite Variable    ${CAR_PERSON_FOLLOWERS}
 
 Add car-person mapping and get car-person mapping from Leader
 
 Add car-person mapping and get car-person mapping from Leader
-    Add Car Person And Verify   ${CURRENT_CAR_PERSON_LEADER}
+    Add Car Person And Verify    ${CURRENT_CAR_PERSON_LEADER}
 
 Purchase cars on Leader
 
 Purchase cars on Leader
-    [Documentation]  Purchase some cars on the Leader
-    ${NUM_BUY_CARS_ON_LEADER}   Evaluate  ${NUM_ENTRIES}/3
-    ${NUM_BUY_CARS_ON_FOLLOWER1}   Evaluate  ${NUM_ENTRIES}/3
-    ${NUM_BUY_CARS_ON_FOLLOWER2}   Evaluate  ${NUM_ENTRIES}-${NUM_BUY_CARS_ON_LEADER}-${NUM_BUY_CARS_ON_FOLLOWER1}
-    Set Suite Variable   ${NUM_BUY_CARS_ON_LEADER}
-    Set Suite Variable   ${NUM_BUY_CARS_ON_FOLLOWER1}
-    Set Suite Variable   ${NUM_BUY_CARS_ON_FOLLOWER2}
-    Buy Cars And Verify        ${CURRENT_CAR_PERSON_LEADER}   ${NUM_BUY_CARS_ON_LEADER}
+    [Documentation]    Purchase some cars on the Leader
+    ${NUM_BUY_CARS_ON_LEADER}    Evaluate    ${NUM_ENTRIES}/3
+    ${NUM_BUY_CARS_ON_FOLLOWER1}    Evaluate    ${NUM_ENTRIES}/3
+    ${NUM_BUY_CARS_ON_FOLLOWER2}    Evaluate    ${NUM_ENTRIES}-${NUM_BUY_CARS_ON_LEADER}-${NUM_BUY_CARS_ON_FOLLOWER1}
+    Set Suite Variable    ${NUM_BUY_CARS_ON_LEADER}
+    Set Suite Variable    ${NUM_BUY_CARS_ON_FOLLOWER1}
+    Set Suite Variable    ${NUM_BUY_CARS_ON_FOLLOWER2}
+    Buy Cars And Verify    ${CURRENT_CAR_PERSON_LEADER}    ${NUM_BUY_CARS_ON_LEADER}
 
 Purchase cars on Follower1
 
 Purchase cars on Follower1
-    [Documentation]  Purchase some cars on Follower1
-    Buy Cars And Verify  @{CAR_PERSON_FOLLOWERS}[0]   ${NUM_BUY_CARS_ON_FOLLOWER1}   ${NUM_BUY_CARS_ON_LEADER}
+    [Documentation]    Purchase some cars on Follower1
+    Buy Cars And Verify    @{CAR_PERSON_FOLLOWERS}[0]    ${NUM_BUY_CARS_ON_FOLLOWER1}    ${NUM_BUY_CARS_ON_LEADER}
 
 Purchase cars on Follower2
 
 Purchase cars on Follower2
-    [Documentation]  Purchase some cars on Follower2
+    [Documentation]    Purchase some cars on Follower2
     ${start}    Evaluate    ${NUM_BUY_CARS_ON_LEADER}+${NUM_BUY_CARS_ON_FOLLOWER1}
     ${start}    Evaluate    ${NUM_BUY_CARS_ON_LEADER}+${NUM_BUY_CARS_ON_FOLLOWER1}
-    Buy Cars And Verify  @{CAR_PERSON_FOLLOWERS}[1]   ${NUM_BUY_CARS_ON_FOLLOWER2}   ${start}
+    Buy Cars And Verify    @{CAR_PERSON_FOLLOWERS}[1]    ${NUM_BUY_CARS_ON_FOLLOWER2}    ${start}
 
 Get car-person mappings from Leader
 
 Get car-person mappings from Leader
-   [Documentation]     Get car-person mappings from Leader to see all entries
-   Wait Until Keyword Succeeds   60s  2s  Get Car-Person Mappings And Verify   ${CURRENT_CAR_PERSON_LEADER}  ${NUM_ENTRIES} 
+    [Documentation]    Get car-person mappings from Leader to see all entries
+    Wait Until Keyword Succeeds    60s    2s    Get Car-Person Mappings And Verify    ${CURRENT_CAR_PERSON_LEADER}    ${NUM_ENTRIES}
 
 Get car-person mappings from Follower1
 
 Get car-person mappings from Follower1
-   [Documentation]     Get car-person mappings from Follower1 to see all entries
-   Wait Until Keyword Succeeds   60s  2s  Get Car-Person Mappings And Verify   @{CAR_PERSON_FOLLOWERS}[0]  ${NUM_ENTRIES}
+    [Documentation]    Get car-person mappings from Follower1 to see all entries
+    Wait Until Keyword Succeeds    60s    2s    Get Car-Person Mappings And Verify    @{CAR_PERSON_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get car-person mappings from Follower2
 
 Get car-person mappings from Follower2
-   [Documentation]     Get car-person mappings from Follower2 to see all entries
-   Wait Until Keyword Succeeds   60s  2s  Get Car-Person Mappings And Verify   @{CAR_PERSON_FOLLOWERS}[1]  ${NUM_ENTRIES}
+    [Documentation]    Get car-person mappings from Follower2 to see all entries
+    Wait Until Keyword Succeeds    60s    2s    Get Car-Person Mappings And Verify    @{CAR_PERSON_FOLLOWERS}[1]    ${NUM_ENTRIES}
index f22eb1d646817bfa5db73ebf0f81c49bbd66f3dc..e71dfcd36c0157261a2271269f3fc16ab9306429 100644 (file)
@@ -1,7 +1,6 @@
 *** Settings ***
 Documentation     This test finds the followers of certain shards in a 3-Node cluster and executes CRUD operations on any one follower
 *** Settings ***
 Documentation     This test finds the followers of certain shards in a 3-Node cluster and executes CRUD operations on any one follower
-Default Tags  3-node-cluster
-
+Default Tags      3-node-cluster
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
@@ -9,70 +8,70 @@ Library           ../../../libraries/CrudLibrary.py
 Library           ../../../libraries/SettingsLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
 Library           ../../../libraries/SettingsLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
-Resource           ../../../libraries/ClusterKeywords.txt
+Resource          ../../../libraries/ClusterKeywords.txt
 Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
-${SHARD_CAR_NAME}      shard-car-config
-${SHARD_PEOPLE_NAME}      shard-people-config
-${SHARD_CAR_PERSON_NAME}      shard-car-people-config
-${NUM_ENTRIES}  ${40}
+${SHARD_CAR_NAME}    shard-car-config
+${SHARD_PEOPLE_NAME}    shard-people-config
+${SHARD_CAR_PERSON_NAME}    shard-car-people-config
+${NUM_ENTRIES}    ${40}
 
 *** Test Cases ***
 Get Car Followers
 
 *** Test Cases ***
 Get Car Followers
-    ${CAR_FOLLOWERS}   Get All Followers   ${SHARD_CAR_NAME}
-    Set Suite Variable  ${CAR_FOLLOWERS}
+    ${CAR_FOLLOWERS}    Get All Followers    ${SHARD_CAR_NAME}
+    Set Suite Variable    ${CAR_FOLLOWERS}
 
 Get People Followers
 
 Get People Followers
-    ${PEOPLE_FOLLOWERS}   Get All Followers   ${SHARD_PEOPLE_NAME}
-    Set Suite Variable  ${PEOPLE_FOLLOWERS}
+    ${PEOPLE_FOLLOWERS}    Get All Followers    ${SHARD_PEOPLE_NAME}
+    Set Suite Variable    ${PEOPLE_FOLLOWERS}
 
 Get Car-Person Followers
 
 Get Car-Person Followers
-    ${CAR_PERSON_FOLLOWERS}   Get All Followers   ${SHARD_CAR_PERSON_NAME}
-    Set Suite Variable  ${CAR_PERSON_FOLLOWERS}
+    ${CAR_PERSON_FOLLOWERS}    Get All Followers    ${SHARD_CAR_PERSON_NAME}
+    Set Suite Variable    ${CAR_PERSON_FOLLOWERS}
 
 Delete cars from Follower1
     Delete All Cars And Verify    @{CAR_FOLLOWERS}[0]
 
 Delete people from Follower1
 
 Delete cars from Follower1
     Delete All Cars And Verify    @{CAR_FOLLOWERS}[0]
 
 Delete people from Follower1
-    Delete All People And Verify   @{PEOPLE_FOLLOWERS}[0]
+    Delete All People And Verify    @{PEOPLE_FOLLOWERS}[0]
 
 Delete car-persons from Follower1
     Delete All Cars-Persons And Verify    @{CAR_PERSON_FOLLOWERS}[0]
 
 Add cars and get cars from Follower1
     [Documentation]    Add cars and get added cars from Follower1
 
 Delete car-persons from Follower1
     Delete All Cars-Persons And Verify    @{CAR_PERSON_FOLLOWERS}[0]
 
 Add cars and get cars from Follower1
     [Documentation]    Add cars and get added cars from Follower1
-    Add Cars And Verify   @{CAR_FOLLOWERS}[0]   ${NUM_ENTRIES}
+    Add Cars And Verify    @{CAR_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get added cars from Follower2
 
 Get added cars from Follower2
-    [Documentation]   Get added cars from Follower2
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[1]   ${NUM_ENTRIES}
+    [Documentation]    Get added cars from Follower2
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[1]    ${NUM_ENTRIES}
 
 Add people and get people from Follower1
 
 Add people and get people from Follower1
-    [Documentation]  Add people and get people from Follower1
-    Add People And Verify   @{PEOPLE_FOLLOWERS}[0]   ${NUM_ENTRIES}
+    [Documentation]    Add people and get people from Follower1
+    Add People And Verify    @{PEOPLE_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get added people from Follower2
 
 Get added people from Follower2
-    [Documentation]   Get added people from Follower2
-    Wait Until Keyword Succeeds   60s  2s  Get People And Verify   @{PEOPLE_FOLLOWERS}[1]    ${NUM_ENTRIES}
+    [Documentation]    Get added people from Follower2
+    Wait Until Keyword Succeeds    60s    2s    Get People And Verify    @{PEOPLE_FOLLOWERS}[1]    ${NUM_ENTRIES}
 
 Add car-person mapping and get car-person mapping from Follower1
 
 Add car-person mapping and get car-person mapping from Follower1
-    Add Car Person And Verify   @{CAR_PERSON_FOLLOWERS}[0]
+    Add Car Person And Verify    @{CAR_PERSON_FOLLOWERS}[0]
 
 Purchase cars on Follower1
 
 Purchase cars on Follower1
-    [Documentation]  Purchase cars using Follower1
-    Buy Cars And Verify   @{CAR_PERSON_FOLLOWERS}[0]   ${NUM_ENTRIES}
+    [Documentation]    Purchase cars using Follower1
+    Buy Cars And Verify    @{CAR_PERSON_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get car-person mappings from Follower1
 
 Get car-person mappings from Follower1
-    [Documentation]    Get car-person mappings from Follower1 to see all entries
-    Wait Until Keyword Succeeds   60s  2s  Get Car-Person Mappings And Verify   @{CAR_PERSON_FOLLOWERS}[0]  ${NUM_ENTRIES}
+    [Documentation]    Get car-person mappings from Follower1 to see all entries
+    Wait Until Keyword Succeeds    60s    2s    Get Car-Person Mappings And Verify    @{CAR_PERSON_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get car-person mappings from Leader
 
 Get car-person mappings from Leader
-    [Documentation]    Get car-person mappings from the Leader to see all entries
-    ${CURRENT_CAR_LEADER}   Wait For Leader   ${SHARD_CAR_PERSON_NAME}
-    Wait Until Keyword Succeeds   60s  2s  Get Car-Person Mappings And Verify   ${CURRENT_CAR_LEADER}  ${NUM_ENTRIES}
+    [Documentation]    Get car-person mappings from the Leader to see all entries
+    ${CURRENT_CAR_LEADER}    Wait For Leader    ${SHARD_CAR_PERSON_NAME}
+    Wait Until Keyword Succeeds    60s    2s    Get Car-Person Mappings And Verify    ${CURRENT_CAR_LEADER}    ${NUM_ENTRIES}
 
 Get car-person mappings from Follower2
 
 Get car-person mappings from Follower2
-    [Documentation]    Get car-person mappings from Follower2 to see all entries
-    Wait Until Keyword Succeeds   60s  2s  Get Car-Person Mappings And Verify   @{CAR_PERSON_FOLLOWERS}[1]  ${NUM_ENTRIES}
+    [Documentation]    Get car-person mappings from Follower2 to see all entries
+    Wait Until Keyword Succeeds    60s    2s    Get Car-Person Mappings And Verify    @{CAR_PERSON_FOLLOWERS}[1]    ${NUM_ENTRIES}
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
 *** 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
 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
 
 *** 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
 
 *** 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
     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 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
 
 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
 
 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 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 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
 
 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
 
 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 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 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
 
 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
 
 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}
index f62c289a3f9bad5d13cbc5f07b881f76ce49f34c..c75128d60d3c25f2cb321adceb335bf87c659d8e 100644 (file)
@@ -1,50 +1,49 @@
 *** Settings ***
 Documentation     This test brings down the current leader of the "car" shard and then executes CRUD operations on the new leader
 *** 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
 Library           ../../../libraries/CrudLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
-Resource           ../../../libraries/ClusterKeywords.txt
+Resource          ../../../libraries/ClusterKeywords.txt
 
 *** Variables ***
 
 *** Variables ***
-${PEOPLE_SHARD}   shard-people-config
-${NUM_ENTRIES}  ${50}
+${PEOPLE_SHARD}    shard-people-config
+${NUM_ENTRIES}    ${50}
 
 *** Test Cases ***
 Switch People Leader
     [Documentation]    Stop the leader to cause a new leader to be elected
 
 *** Test Cases ***
 Switch People Leader
     [Documentation]    Stop the leader to cause a new leader to be elected
-    ${OLD_PEOPLE_LEADER}   Wait For Leader  ${PEOPLE_SHARD}
-    ${NEW_PEOPLE_LEADER}   Switch Leader  ${PEOPLE_SHARD}  ${OLD_PEOPLE_LEADER}
-    Set Suite Variable   ${OLD_PEOPLE_LEADER}
-    Set Suite Variable   ${NEW_PEOPLE_LEADER}
+    ${OLD_PEOPLE_LEADER}    Wait For Leader    ${PEOPLE_SHARD}
+    ${NEW_PEOPLE_LEADER}    Switch Leader    ${PEOPLE_SHARD}    ${OLD_PEOPLE_LEADER}
+    Set Suite Variable    ${OLD_PEOPLE_LEADER}
+    Set Suite Variable    ${NEW_PEOPLE_LEADER}
 
 Delete people from new leader
 
 Delete people from new leader
-    Delete All People And Verify   ${NEW_PEOPLE_LEADER}
+    Delete All People And Verify    ${NEW_PEOPLE_LEADER}
 
 Add people and get from new leader
     [Documentation]    Add people and get people from new leader
 
 Add people and get from new leader
     [Documentation]    Add people and get people from new leader
-    Add People And Verify   ${NEW_PEOPLE_LEADER}   ${NUM_ENTRIES}
+    Add People And Verify    ${NEW_PEOPLE_LEADER}    ${NUM_ENTRIES}
 
 Get People Followers
 
 Get People Followers
-    ${PEOPLE_FOLLOWERS}   Get All Followers   ${PEOPLE_SHARD}
-    Set Suite Variable  ${PEOPLE_FOLLOWERS}
+    ${PEOPLE_FOLLOWERS}    Get All Followers    ${PEOPLE_SHARD}
+    Set Suite Variable    ${PEOPLE_FOLLOWERS}
 
 Get added people from Follower
 
 Get added people from Follower
-    Wait Until Keyword Succeeds   60s  2s  Get People And Verify   @{PEOPLE_FOLLOWERS}[0]   ${NUM_ENTRIES}
+    Wait Until Keyword Succeeds    60s    2s    Get People And Verify    @{PEOPLE_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Delete people from new Follower
 
 Delete people from new Follower
-    Delete All People And Verify   @{PEOPLE_FOLLOWERS}[0]
+    Delete All People And Verify    @{PEOPLE_FOLLOWERS}[0]
 
 Add people from new Follower
     [Documentation]    Add people and get people from follower
 
 Add people from new Follower
     [Documentation]    Add people and get people from follower
-    Add People And Verify   @{PEOPLE_FOLLOWERS}[0]   ${NUM_ENTRIES}
+    Add People And Verify    @{PEOPLE_FOLLOWERS}[0]    ${NUM_ENTRIES}
 
 Get added people from new leader
 
 Get added people from new leader
-    Wait Until Keyword Succeeds   60s  2s  Get People And Verify   ${NEW_PEOPLE_LEADER}   ${NUM_ENTRIES}
+    Wait Until Keyword Succeeds    60s    2s    Get People And Verify    ${NEW_PEOPLE_LEADER}    ${NUM_ENTRIES}
 
 Restart old People leader
     StartController    ${OLD_PEOPLE_LEADER}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
 
 Get added people from old leader
 
 Restart old People leader
     StartController    ${OLD_PEOPLE_LEADER}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
 
 Get added people from old leader
-    Wait Until Keyword Succeeds   60s  2s  Get People And Verify   ${OLD_PEOPLE_LEADER}   ${NUM_ENTRIES}
+    Wait Until Keyword Succeeds    60s    2s    Get People And Verify    ${OLD_PEOPLE_LEADER}    ${NUM_ENTRIES}
index e5358aab5157ede27af6fd39a9b9b7139d40f7f6..3d8a40c3aa608d5f7fcc051425e59e84631a492e 100644 (file)
@@ -1,7 +1,6 @@
 *** Settings ***
 Documentation     This test restarts all controllers to verify recovery of car data from persistene
 *** Settings ***
 Documentation     This test restarts all controllers to verify recovery of car data from persistene
-Default Tags  3-node-cluster
-
+Default Tags      3-node-cluster
 Library           ../../../libraries/CrudLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
 Library           ../../../libraries/CrudLibrary.py
 Library           ../../../libraries/UtilLibrary.py
 Library           ../../../libraries/ClusterStateLibrary.py
@@ -10,49 +9,48 @@ Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${CAR_SHARD}      shard-car-config
 
 *** Variables ***
 ${CAR_SHARD}      shard-car-config
-${NUM_CARS}  ${50}
+${NUM_CARS}       ${50}
 
 *** Test Cases ***
 Get car leader
 
 *** Test Cases ***
 Get car leader
-    ${CAR_LEADER}    Wait For Leader  ${CAR_SHARD}
+    ${CAR_LEADER}    Wait For Leader    ${CAR_SHARD}
     Set Suite Variable    ${CAR_LEADER}
 
 Delete cars from leader
     Set Suite Variable    ${CAR_LEADER}
 
 Delete cars from leader
-    Delete All Cars And Verify   ${CAR_LEADER}
+    Delete All Cars And Verify    ${CAR_LEADER}
 
 Stop all controllers after delete
     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
 
 Start all controllers after delete
 
 Stop all controllers after delete
     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
 
 Start all controllers after delete
-    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}
-    ...    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
+    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}    ${MEMBER1}
+    ...    ${MEMBER2}    ${MEMBER3}
     Should Be True    ${rc}
 
 Verify no cars on leader after restart
     Should Be True    ${rc}
 
 Verify no cars on leader after restart
-    ${resp}  Getcars   ${CAR_LEADER}   ${PORT}   ${0}
+    ${resp}    Getcars    ${CAR_LEADER}    ${PORT}    ${0}
     Should Be Equal As Strings    ${resp.status_code}    404
 
 Add cars on leader
     Should Be Equal As Strings    ${resp.status_code}    404
 
 Add cars on leader
-    Add Cars And Verify  ${CAR_LEADER}   ${NUM_CARS}
+    Add Cars And Verify    ${CAR_LEADER}    ${NUM_CARS}
 
 Stop all controllers after add
     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
 
 Start all controllers after add
 
 Stop all controllers after add
     StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
 
 Start all controllers after add
-    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}
-    ...    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
+    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}    ${MEMBER1}
+    ...    ${MEMBER2}    ${MEMBER3}
     Should Be True    ${rc}
 
 Get cars from leader after restart
     Should Be True    ${rc}
 
 Get cars from leader after restart
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   ${CAR_LEADER}   ${NUM_CARS}
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    ${CAR_LEADER}    ${NUM_CARS}
 
 Get car followers
 
 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 cars from Follower1 after restart
 
 Get cars from Follower1 after restart
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[0]   ${NUM_CARS}
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[0]    ${NUM_CARS}
 
 Get cars from Follower2 after restart
 
 Get cars from Follower2 after restart
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[1]   ${NUM_CARS}
-
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[1]    ${NUM_CARS}
index 5d84fa6c61892f4905f00d22cff3a59bdd82f0f6..3ae9680a857734573f74b9f6f6774f50a967e806 100644 (file)
@@ -1,7 +1,6 @@
 *** Settings ***
 Documentation     This test kills any of the followers and verifies that when that follower is restarted it can join the cluster
 *** Settings ***
 Documentation     This test kills any of the followers and verifies that when that follower is restarted it can join the cluster
-Default Tags  3-node-cluster
-
+Default Tags      3-node-cluster
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
@@ -14,8 +13,8 @@ Variables         ../../../variables/Variables.py
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
-${CAR_SHARD}      shard-car-config
-${NUM_CARS}     ${60}
+${CAR_SHARD}      shard-car-config
+${NUM_CARS}       ${60}
 
 *** Test Cases ***
 Stop All Controllers
 
 *** Test Cases ***
 Stop All Controllers
@@ -30,41 +29,42 @@ Clean All Journals
 
 Start All Controllers
     [Documentation]    Start all the controllers in the cluster
 
 Start All Controllers
     [Documentation]    Start all the controllers in the cluster
-    ${rc}   StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}
-    ...    ${MEMBER1}    ${MEMBER2}    ${MEMBER3}
+    ${rc}    StartAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${RESTCONFPORT}    ${MEMBER1}
+    ...    ${MEMBER2}    ${MEMBER3}
     Should Be True    ${rc}
 
 Get car leader and followers
     Should Be True    ${rc}
 
 Get car leader and followers
-    ${CURRENT_CAR_LEADER}   Wait For Leader   ${CAR_SHARD}
+    ${CURRENT_CAR_LEADER}    Wait For Leader    ${CAR_SHARD}
     Set Suite Variable    ${CURRENT_CAR_LEADER}
     Set Suite Variable    ${CURRENT_CAR_LEADER}
-    ${CAR_FOLLOWERS}  Get All Followers  ${CAR_SHARD}
+    ${CAR_FOLLOWERS}    Get All Followers    ${CAR_SHARD}
     Set Suite Variable    ${CAR_FOLLOWERS}
 
 Stop both of the followers
     Set Suite Variable    ${CAR_FOLLOWERS}
 
 Stop both of the followers
-    StopAllControllers    ${USER_NAME}   ${PASSWORD}   ${KARAF_HOME}   @{CAR_FOLLOWERS}[0]    @{CAR_FOLLOWERS}[1]
-    Wait Until Keyword Succeeds   30s  2s  Expect No Leader
+    StopAllControllers    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    @{CAR_FOLLOWERS}[0]    @{CAR_FOLLOWERS}[1]
+    Wait Until Keyword Succeeds    30s    2s    Expect No Leader
 
 Attempt to add a car from the leader
     [Documentation]    Should fail as both followers are down
 
 Attempt to add a car from the leader
     [Documentation]    Should fail as both followers are down
-    AddCar  ${CURRENT_CAR_LEADER}    ${PORT}    ${1}
-    Sleep  2
+    AddCar    ${CURRENT_CAR_LEADER}    ${PORT}    ${1}
+    Sleep    2
     ${resp}    Getcars    ${CURRENT_CAR_LEADER}    ${PORT}    ${1}
     Should Not Be Equal As Strings    ${resp.status_code}    200
 
 Restart the first follower
     ${resp}    Getcars    ${CURRENT_CAR_LEADER}    ${PORT}    ${1}
     Should Not Be Equal As Strings    ${resp.status_code}    200
 
 Restart the first follower
-    StartController    @{CAR_FOLLOWERS}[0]   ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
+    StartController    @{CAR_FOLLOWERS}[0]    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
     Sleep    1
 
 Add cars from the first follower
     Sleep    1
 
 Add cars from the first follower
-    Wait Until Keyword Succeeds   60s  2s  Add Cars And Verify   @{CAR_FOLLOWERS}[0]   ${NUM_CARS}  4s
+    Wait Until Keyword Succeeds    60s    2s    Add Cars And Verify    @{CAR_FOLLOWERS}[0]    ${NUM_CARS}    4s
 
 Restart the second follower
 
 Restart the second follower
-    StartController    @{CAR_FOLLOWERS}[1]   ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
+    StartController    @{CAR_FOLLOWERS}[1]    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}    ${PORT}
 
 Get all the cars from the second follower
 
 Get all the cars from the second follower
-    Wait Until Keyword Succeeds   60s  2s  Get Cars And Verify   @{CAR_FOLLOWERS}[1]   ${NUM_CARS}
+    Wait Until Keyword Succeeds    60s    2s    Get Cars And Verify    @{CAR_FOLLOWERS}[1]    ${NUM_CARS}
 
 *** Keywords ***
 Expect No Leader
 
 *** Keywords ***
 Expect No Leader
-    ${leader}   GetLeader   ${CAR_SHARD}   ${3}    ${1}    ${1}    ${PORT}     ${CURRENT_CAR_LEADER}
-    Should Be Equal As Strings   ${leader}   None
+    ${leader}    GetLeader    ${CAR_SHARD}    ${3}    ${1}    ${1}    ${PORT}
+    ...    ${CURRENT_CAR_LEADER}
+    Should Be Equal As Strings    ${leader}    None
index f11e0483965f085a5c0406f2fc31e35518c1ff97..ec7496f19bdbedb910f19ef3f620cd8553109e19 100644 (file)
@@ -1,15 +1,14 @@
 *** Settings ***
 *** Settings ***
-Documentation  Test cleanup
-Default Tags  3-node-cluster
-
+Documentation     Test cleanup
+Default Tags      3-node-cluster
 Library           ../../../libraries/UtilLibrary.py
 Variables         ../../../variables/Variables.py
 
 *** Test Cases ***
 Kill All Controllers
 Library           ../../../libraries/UtilLibrary.py
 Variables         ../../../variables/Variables.py
 
 *** Test Cases ***
 Kill All Controllers
-    KillController    ${MEMBER1}   ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
-    KillController    ${MEMBER2}   ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
-    KillController    ${MEMBER3}   ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
+    KillController    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
+    KillController    ${MEMBER2}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
+    KillController    ${MEMBER3}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 
 Clean All Journals
     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 
 Clean All Journals
     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
index 3e6230b14722ad92a4e449055e12b5a95a1229dc..59aac1c510fcee9b57fa9cfc9718aa8503fd2103 100644 (file)
@@ -4,8 +4,7 @@ Library           ../../../../libraries/CrudLibrary.py
 
 *** Variables ***
 
 
 *** Variables ***
 
-
 *** Test Cases ***
 Run Tests in Loop for Specified Time
     [Documentation]    Run CRUD operation from nodes for specified time
 *** Test Cases ***
 Run Tests in Loop for Specified Time
     [Documentation]    Run CRUD operation from nodes for specified time
-  Testlongevity  ${DURATION}  ${PORT}  ${IP1}  ${IP2}  ${IP3}
+    Testlongevity    ${DURATION}    ${PORT}    ${IP1}    ${IP2}    ${IP3}
index a26accedac30e8644bd625f12e43d430f1d16f8e..75b97d1309e84b32e6f5bca35077b640df679c79 100644 (file)
@@ -2,9 +2,9 @@
 Documentation     Test suite for Longevity test of cluster datastore
 Suite Setup       Start Suite
 Suite Teardown    Stop Suite
 Documentation     Test suite for Longevity test of cluster datastore
 Suite Setup       Start Suite
 Suite Teardown    Stop Suite
-Library     SSHLibrary
+Library           SSHLibrary
 
 
+*** Keywords ***
+Start Suite
 
 
-** Keywords ***
-Start Suite  
 Stop Suite
 Stop Suite
index da9264a2f4b9dc1d7796ec3efb7e424fd524fc8c..e33150314f36b9fac184255d60efbb2598a31ecf 100644 (file)
@@ -11,7 +11,7 @@ Variables         ../../../variables/Variables.py
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
-*** Test Cases *** 
+*** Test Cases ***
 Stop All Controllers
     [Documentation]    Stop all the controllers in the cluster
     Stopcontroller    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 Stop All Controllers
     [Documentation]    Stop all the controllers in the cluster
     Stopcontroller    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
@@ -22,7 +22,6 @@ Stop All Controllers
     KillController    ${MEMBER2}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     KillController    ${MEMBER3}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 
     KillController    ${MEMBER2}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     KillController    ${MEMBER3}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 
-
 Clean All Journals
     [Documentation]    Clean the journals of all the controllers in the cluster
     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
 Clean All Journals
     [Documentation]    Clean the journals of all the controllers in the cluster
     CleanJournal    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
@@ -35,4 +34,4 @@ Start All Controllers
     Startcontroller    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     Startcontroller    ${MEMBER2}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     Startcontroller    ${MEMBER3}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     Startcontroller    ${MEMBER1}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     Startcontroller    ${MEMBER2}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
     Startcontroller    ${MEMBER3}    ${USER_NAME}    ${PASSWORD}    ${KARAF_HOME}
-    Sleep    120
\ No newline at end of file
+    Sleep    120
index ca01fba910360e0391b9ed2f2ee1b4d3e1059e24..bfa3d8e4f121d20994a6ef633e5822f8baab43db 100644 (file)
@@ -1,5 +1,5 @@
 *** Settings ***
 *** Settings ***
-Documentation     Test suite for Routed RPC. 
+Documentation     Test suite for Routed RPC.
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
@@ -11,55 +11,52 @@ Variables         ../../../variables/Variables.py
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
 *** Variables ***
 ${REST_CONTEXT}    /restconf/config/
 
-
 *** Test Cases ***
 Add cars and get cars from Leader
     [Documentation]    Add 100 cars and get added cars from Leader
 *** Test Cases ***
 Add cars and get cars from Leader
     [Documentation]    Add 100 cars and get added cars from Leader
-       ${resp}         InitCar ${MEMBER1}      ${PORT}
-       ${resp}         AddCar  ${MEMBER1}      ${PORT} ${100}
-       ${resp}         Getcars ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain     ${resp.content}   manufacturer1
+    ${resp}    InitCar    ${MEMBER1}    ${PORT}
+    ${resp}    AddCar    ${MEMBER1}    ${PORT}    ${100}
+    ${resp}    Getcars    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    manufacturer1
 
 Add persons and get persons from Leader
 
 Add persons and get persons from Leader
-    [Documentation]    Add 100 persons and get persons
-    [Documentation]    Note: There should be one person added first to enable rpc
-       ${resp}         AddPerson       ${MEMBER1}      ${PORT} ${0}
-       ${resp}         AddPerson       ${MEMBER1}      ${PORT} ${100}
-       ${resp}         GetPersons      ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain     ${resp.content}   user5
-       SLEEP   10
+    [Documentation]    Add 100 persons and get persons Note: There should be one person added first to enable rpc
+    ${resp}    AddPerson    ${MEMBER1}    ${PORT}    ${0}
+    ${resp}    AddPerson    ${MEMBER1}    ${PORT}    ${100}
+    ${resp}    GetPersons    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user5
+    SLEEP    10
 
 Add car-person mapping and get car-person mapping from Follower1
 
 Add car-person mapping and get car-person mapping from Follower1
-    [Documentation]    Add car-person and get car-person from Leader
-    [Documentation]    Note: This is done to enable working of rpc
-        ${resp}                AddCarPerson    ${MEMBER2}      ${PORT} ${0}
-        ${resp}                GetCarPersonMappings    ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings      ${resp.status_code}     200
-        Should Contain ${resp.content} user0
-       SLEEP   5
+    [Documentation]    Add car-person and get car-person from Leader Note: This is done to enable working of rpc
+    ${resp}    AddCarPerson    ${MEMBER2}    ${PORT}    ${0}
+    ${resp}    GetCarPersonMappings    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user0
+    SLEEP    5
 
 Purchase 100 cars using Follower1
 
 Purchase 100 cars using Follower1
-    [Documentation]  Purchase 100 cars using Follower1
-       ${resp}         BuyCar  ${MEMBER2}      ${PORT} ${100}
-       ${resp}         GetCarPersonMappings    ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
+    [Documentation]    Purchase 100 cars using Follower1
+    ${resp}    BuyCar    ${MEMBER2}    ${PORT}    ${100}
+    ${resp}    GetCarPersonMappings    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
 
 Get Cars from Leader
     [Documentation]    Get 100 using Leader
 
 Get Cars from Leader
     [Documentation]    Get 100 using Leader
-       ${resp}         Getcars ${MEMBER1}      ${PORT} ${0}
-        Should Be Equal As Strings    ${resp.status_code}    200
-        Should Contain     ${resp.content}   manufacturer99
+    ${resp}    Getcars    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    manufacturer99
 
 Get persons from Leader
     [Documentation]    Get 101 Persons from Leader
 
 Get persons from Leader
     [Documentation]    Get 101 Persons from Leader
-       ${resp}         GetPersons      ${MEMBER1}      ${PORT} ${0}
-        Should Be Equal As Strings    ${resp.status_code}    200
-        Should Contain     ${resp.content}   user100
+    ${resp}    GetPersons    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user100
 
 Get car-person mappings using Leader
 
 Get car-person mappings using Leader
-   [Documentation]     Get 101 car-person mappings using Leader to see 100 entry
-       ${resp}         GetCarPersonMappings    ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain     ${resp.content}   user100
+    [Documentation]    Get 101 car-person mappings using Leader to see 100 entry
+    ${resp}    GetCarPersonMappings    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user100
index 94af65c4f25fe13d9447de248fb2a1ae95229dfd..b4344cdf242fe3d4a45948f28dcbe524b8f8c97e 100644 (file)
@@ -1,5 +1,5 @@
 *** Settings ***
 *** Settings ***
-Documentation     Test suite for Routed RPC. 
+Documentation     Test suite for Routed RPC.
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
 Library           Collections
 Library           ../../../libraries/RequestsLibrary.py
 Library           ../../../libraries/Common.py
@@ -15,105 +15,101 @@ ${REST_CONTEXT}    /restconf/config/
 *** Test Cases ***
 Add cars and get cars from Leader
     [Documentation]    Add 100 cars and get added cars from Leader
 *** Test Cases ***
 Add cars and get cars from Leader
     [Documentation]    Add 100 cars and get added cars from Leader
-    ${resp}            InitCar ${MEMBER1}      ${PORT}
-    ${resp}            AddCar  ${MEMBER1}      ${PORT} ${100}
-       ${resp}         Getcars ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain     ${resp.content}   manufacturer1
+    ${resp}    InitCar    ${MEMBER1}    ${PORT}
+    ${resp}    AddCar    ${MEMBER1}    ${PORT}    ${100}
+    ${resp}    Getcars    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    manufacturer1
 
 Add persons and get persons from Leader
 
 Add persons and get persons from Leader
-    [Documentation]    Add 100 persons and get persons
-    [Documentation]    Note: There should be one person added first to enable rpc
-       ${resp}         AddPerson       ${MEMBER1}      ${PORT} ${0}
-       ${resp}         AddPerson       ${MEMBER1}      ${PORT} ${100}
-       ${resp}         GetPersons      ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain     ${resp.content}   user5
+    [Documentation]    Add 100 persons and get persons Note: There should be one person added first to enable rpc
+    ${resp}    AddPerson    ${MEMBER1}    ${PORT}    ${0}
+    ${resp}    AddPerson    ${MEMBER1}    ${PORT}    ${100}
+    ${resp}    GetPersons    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user5
 
 Add car-person mapping and get car-person mapping from Follower1
 
 Add car-person mapping and get car-person mapping from Follower1
-    [Documentation]     Add car-person and get car-person from Follower1
-    [Documentation]  Note: This is done to enable working of rpc
-       ${resp}         AddCarPerson    ${MEMBER2}      ${PORT} ${0}
-       ${resp}         GetCarPersonMappings    ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content} user0
+    [Documentation]    Add car-person and get car-person from Follower1 Note: This is done to enable working of rpc
+    ${resp}    AddCarPerson    ${MEMBER2}    ${PORT}    ${0}
+    ${resp}    GetCarPersonMappings    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user0
 
 Purchase 100 cars using Follower
 
 Purchase 100 cars using Follower
-    [Documentation]  Purchase 100 cars using Follower
-       SLEEP   10
-       ${resp}         BuyCar  ${MEMBER2}      ${PORT} ${100}  
-       ${resp}         GetCarPersonMappings    ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
+    [Documentation]    Purchase 100 cars using Follower
+    SLEEP    10
+    ${resp}    BuyCar    ${MEMBER2}    ${PORT}    ${100}
+    ${resp}    GetCarPersonMappings    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
 
 Get Cars from Leader
     [Documentation]    Get 100 using Leader
 
 Get Cars from Leader
     [Documentation]    Get 100 using Leader
-       ${resp}         Getcars ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         manufacturer9
+    ${resp}    Getcars    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    manufacturer9
 
 Get persons from Leader
     [Documentation]    Get 11 Persons from Leader
 
 Get persons from Leader
     [Documentation]    Get 11 Persons from Leader
-       ${resp}         GetPersons      ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         user100
+    ${resp}    GetPersons    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user100
 
 Get car-person mappings using Leader
 
 Get car-person mappings using Leader
-   [Documentation]     Get car-person mappings using Leader to see 100 entry
-       ${resp}         GetCarPersonMappings    ${MEMBER1}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         user100
+    [Documentation]    Get car-person mappings using Leader to see 100 entry
+    ${resp}    GetCarPersonMappings    ${MEMBER1}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user100
 
 Stop Leader
 
 Stop Leader
-   [Documentation]     Stop Leader controller
-       ${resp}         Stopcontroller  ${MEMBER1}      ${USERNAME}     ${PASSWORD}     ${KARAF_HOME}
-       SLEEP   30
-       ${resp}         Killcontroller  ${MEMBER1}      ${USERNAME}     ${PASSWORD}     ${KARAF_HOME}
+    [Documentation]    Stop Leader controller
+    ${resp}    Stopcontroller    ${MEMBER1}    ${USERNAME}    ${PASSWORD}    ${KARAF_HOME}
+    SLEEP    30
+    ${resp}    Killcontroller    ${MEMBER1}    ${USERNAME}    ${PASSWORD}    ${KARAF_HOME}
 
 Add cars and get cars from Follower1
     [Documentation]    Add 100 cars and get added cars from Follower
 
 Add cars and get cars from Follower1
     [Documentation]    Add 100 cars and get added cars from Follower
-       ${resp          InitCar ${MEMBER2}      ${PORT}
-       ${resp}         AddCar  ${MEMBER2}      ${PORT} ${100}
-       ${resp}         Getcars ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         manufacturer1
+    ${resp    InitCar    ${MEMBER2}    ${PORT}
+    ${resp}    AddCar    ${MEMBER2}    ${PORT}    ${100}
+    ${resp}    Getcars    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    manufacturer1
 
 Add persons and get persons from Follower1
 
 Add persons and get persons from Follower1
-    [Documentation]    Add 100 persons and get persons
-    [Documentation]    Note: There should be one person added first to enable rpc
-       ${resp}         AddPerson       ${MEMBER2}      ${PORT} ${0}
-       ${resp}         AddPerson       ${MEMBER2}      ${PORT} ${100}
-       ${resp}         GetPersons      ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         user5
-       SLEEP   10
+    [Documentation]    Add 100 persons and get persons Note: There should be one person added first to enable rpc
+    ${resp}    AddPerson    ${MEMBER2}    ${PORT}    ${0}
+    ${resp}    AddPerson    ${MEMBER2}    ${PORT}    ${100}
+    ${resp}    GetPersons    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user5
+    SLEEP    10
 
 Purchase 100 cars using Follower2
 
 Purchase 100 cars using Follower2
-    [Documentation]  Purchase 100 cars using Follower2
-       ${resp}         BuyCar  ${MEMBER3}      ${PORT} ${100}
-       SLEEP   10
-       ${resp}         GetCarPersonMappings    ${MEMBER3}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
+    [Documentation]    Purchase 100 cars using Follower2
+    ${resp}    BuyCar    ${MEMBER3}    ${PORT}    ${100}
+    SLEEP    10
+    ${resp}    GetCarPersonMappings    ${MEMBER3}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
 
 Get Cars from Follower1
     [Documentation]    Get 100 using Follower1
 
 Get Cars from Follower1
     [Documentation]    Get 100 using Follower1
-       ${resp}         Getcars ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         manufacturer9
+    ${resp}    Getcars    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    manufacturer9
 
 Get persons from Follower1
     [Documentation]    Get 11 Persons from Follower1
 
 Get persons from Follower1
     [Documentation]    Get 11 Persons from Follower1
-       ${resp}         GetPersons      ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         user100
+    ${resp}    GetPersons    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user100
 
 Get car-person mappings using Follower1
 
 Get car-person mappings using Follower1
-   [Documentation]     Get car-person mappings using Follower1 to see 100 entry
-       ${resp}         GetCarPersonMappings    ${MEMBER2}      ${PORT} ${0}
-       Should Be Equal As Strings    ${resp.status_code}    200
-       Should Contain  ${resp.content}         user100
+    [Documentation]    Get car-person mappings using Follower1 to see 100 entry
+    ${resp}    GetCarPersonMappings    ${MEMBER2}    ${PORT}    ${0}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    user100
 
 Start Leader
 
 Start Leader
-   [Documentation]     Start Leader controller 
-       ${resp}         Startcontroller ${MEMBER1}      ${USERNAME}     ${PASSWORD}     ${KARAF_HOME}
-       SLEEP   20
-
+    [Documentation]    Start Leader controller
+    ${resp}    Startcontroller    ${MEMBER1}    ${USERNAME}    ${PASSWORD}    ${KARAF_HOME}
+    SLEEP    20