From c2d9b555d8eb44074f45a18e3981e1e0499def51 Mon Sep 17 00:00:00 2001 From: Phillip Shea Date: Mon, 15 Jun 2015 15:32:41 -0700 Subject: [PATCH] Tidy for clustering test suite. 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 --- .../datastore/001_start_cluster.robot | 10 +- .../datastore/010_crud_on_leader.robot | 96 ++++++------- .../datastore/020_crud_on_any_follower.robot | 61 ++++---- .../030_car_failover_crud_on_new_leader.robot | 48 +++---- ...0_people_failover_crud_on_new_leader.robot | 35 +++-- .../050_car_persistence_recovery.robot | 32 ++--- .../140_recovery_restart_follower.robot | 36 ++--- .../clustering/datastore/999_cleanup.robot | 11 +- .../clustering/longevity/010__longevity.robot | 3 +- .../clustering/longevity/__init__.robot | 6 +- .../routedrpc/001_start_cluster.robot | 5 +- .../routedrpc/023_routed_rpc_crud_test.robot | 69 +++++---- .../routedrpc/024_routed_rpc_crud_test.robot | 136 +++++++++--------- 13 files changed, 264 insertions(+), 284 deletions(-) diff --git a/test/csit/suites/clustering/datastore/001_start_cluster.robot b/test/csit/suites/clustering/datastore/001_start_cluster.robot index fdfcbed013..2d0f1526a0 100644 --- a/test/csit/suites/clustering/datastore/001_start_cluster.robot +++ b/test/csit/suites/clustering/datastore/001_start_cluster.robot @@ -1,7 +1,6 @@ *** 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 @@ -13,12 +12,11 @@ Variables ../../../variables/Variables.py *** 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} - 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 - ${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} diff --git a/test/csit/suites/clustering/datastore/010_crud_on_leader.robot b/test/csit/suites/clustering/datastore/010_crud_on_leader.robot index 795f2298ad..34fa8fdca9 100644 --- a/test/csit/suites/clustering/datastore/010_crud_on_leader.robot +++ b/test/csit/suites/clustering/datastore/010_crud_on_leader.robot @@ -1,7 +1,6 @@ *** 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 @@ -9,90 +8,89 @@ Library ../../../libraries/CrudLibrary.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/ -${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 - ${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 Verify ${CURRENT_CAR_LEADER} ${NUM_ENTRIES} + Add Cars And Verify ${CURRENT_CAR_LEADER} ${NUM_ENTRIES} 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 - [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 - ${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 Verify ${CURRENT_PEOPLE_LEADER} ${NUM_ENTRIES} + Add People And Verify ${CURRENT_PEOPLE_LEADER} ${NUM_ENTRIES} 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 - [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 - ${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 And Verify ${CURRENT_CAR_PERSON_LEADER} + Add Car Person And Verify ${CURRENT_CAR_PERSON_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 - [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 - [Documentation] Purchase some cars on Follower2 + [Documentation] Purchase some cars on Follower2 ${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 - [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 - [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 - [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} diff --git a/test/csit/suites/clustering/datastore/020_crud_on_any_follower.robot b/test/csit/suites/clustering/datastore/020_crud_on_any_follower.robot index f22eb1d646..e71dfcd36c 100644 --- a/test/csit/suites/clustering/datastore/020_crud_on_any_follower.robot +++ b/test/csit/suites/clustering/datastore/020_crud_on_any_follower.robot @@ -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 -Default Tags 3-node-cluster - +Default Tags 3-node-cluster 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 -Resource ../../../libraries/ClusterKeywords.txt +Resource ../../../libraries/ClusterKeywords.txt 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 - ${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 - ${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 - ${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 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 - Add Cars And Verify @{CAR_FOLLOWERS}[0] ${NUM_ENTRIES} + Add Cars And Verify @{CAR_FOLLOWERS}[0] ${NUM_ENTRIES} 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 - [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 - [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 And Verify @{CAR_PERSON_FOLLOWERS}[0] + Add Car Person And Verify @{CAR_PERSON_FOLLOWERS}[0] 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 - [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 - [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 - [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} diff --git a/test/csit/suites/clustering/datastore/030_car_failover_crud_on_new_leader.robot b/test/csit/suites/clustering/datastore/030_car_failover_crud_on_new_leader.robot index 7de7160a4e..98aff4efc6 100644 --- a/test/csit/suites/clustering/datastore/030_car_failover_crud_on_new_leader.robot +++ b/test/csit/suites/clustering/datastore/030_car_failover_crud_on_new_leader.robot @@ -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} diff --git a/test/csit/suites/clustering/datastore/040_people_failover_crud_on_new_leader.robot b/test/csit/suites/clustering/datastore/040_people_failover_crud_on_new_leader.robot index f62c289a3f..c75128d60d 100644 --- a/test/csit/suites/clustering/datastore/040_people_failover_crud_on_new_leader.robot +++ b/test/csit/suites/clustering/datastore/040_people_failover_crud_on_new_leader.robot @@ -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 -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 *** -${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 - ${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 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 Verify ${NEW_PEOPLE_LEADER} ${NUM_ENTRIES} + Add People And Verify ${NEW_PEOPLE_LEADER} ${NUM_ENTRIES} 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 - 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 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 And Verify @{PEOPLE_FOLLOWERS}[0] ${NUM_ENTRIES} + Add People And Verify @{PEOPLE_FOLLOWERS}[0] ${NUM_ENTRIES} 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 - 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} diff --git a/test/csit/suites/clustering/datastore/050_car_persistence_recovery.robot b/test/csit/suites/clustering/datastore/050_car_persistence_recovery.robot index e5358aab51..3d8a40c3aa 100644 --- a/test/csit/suites/clustering/datastore/050_car_persistence_recovery.robot +++ b/test/csit/suites/clustering/datastore/050_car_persistence_recovery.robot @@ -1,7 +1,6 @@ *** 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 @@ -10,49 +9,48 @@ Variables ../../../variables/Variables.py *** Variables *** ${CAR_SHARD} shard-car-config -${NUM_CARS} ${50} +${NUM_CARS} ${50} *** 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 - 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 - ${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 - ${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 - 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 - ${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 - 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 - ${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 - 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 - 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} diff --git a/test/csit/suites/clustering/datastore/140_recovery_restart_follower.robot b/test/csit/suites/clustering/datastore/140_recovery_restart_follower.robot index 5d84fa6c61..3ae9680a85 100644 --- a/test/csit/suites/clustering/datastore/140_recovery_restart_follower.robot +++ b/test/csit/suites/clustering/datastore/140_recovery_restart_follower.robot @@ -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 -Default Tags 3-node-cluster - +Default Tags 3-node-cluster Library Collections Library ../../../libraries/RequestsLibrary.py Library ../../../libraries/Common.py @@ -14,8 +13,8 @@ Variables ../../../variables/Variables.py *** 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 @@ -30,41 +29,42 @@ Clean All Journals 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 - ${CURRENT_CAR_LEADER} Wait For Leader ${CAR_SHARD} + ${CURRENT_CAR_LEADER} Wait For Leader ${CAR_SHARD} 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 - 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 - 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 - 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 - 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 - 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 - 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 - ${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 diff --git a/test/csit/suites/clustering/datastore/999_cleanup.robot b/test/csit/suites/clustering/datastore/999_cleanup.robot index f11e048396..ec7496f19b 100644 --- a/test/csit/suites/clustering/datastore/999_cleanup.robot +++ b/test/csit/suites/clustering/datastore/999_cleanup.robot @@ -1,15 +1,14 @@ *** 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 - 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} diff --git a/test/csit/suites/clustering/longevity/010__longevity.robot b/test/csit/suites/clustering/longevity/010__longevity.robot index 3e6230b147..59aac1c510 100644 --- a/test/csit/suites/clustering/longevity/010__longevity.robot +++ b/test/csit/suites/clustering/longevity/010__longevity.robot @@ -4,8 +4,7 @@ Library ../../../../libraries/CrudLibrary.py *** Variables *** - *** 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} diff --git a/test/csit/suites/clustering/longevity/__init__.robot b/test/csit/suites/clustering/longevity/__init__.robot index a26accedac..75b97d1309 100644 --- a/test/csit/suites/clustering/longevity/__init__.robot +++ b/test/csit/suites/clustering/longevity/__init__.robot @@ -2,9 +2,9 @@ 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 diff --git a/test/csit/suites/clustering/routedrpc/001_start_cluster.robot b/test/csit/suites/clustering/routedrpc/001_start_cluster.robot index da9264a2f4..e33150314f 100644 --- a/test/csit/suites/clustering/routedrpc/001_start_cluster.robot +++ b/test/csit/suites/clustering/routedrpc/001_start_cluster.robot @@ -11,7 +11,7 @@ Variables ../../../variables/Variables.py *** 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} @@ -22,7 +22,6 @@ Stop All Controllers 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} @@ -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} - Sleep 120 \ No newline at end of file + Sleep 120 diff --git a/test/csit/suites/clustering/routedrpc/023_routed_rpc_crud_test.robot b/test/csit/suites/clustering/routedrpc/023_routed_rpc_crud_test.robot index ca01fba910..bfa3d8e4f1 100644 --- a/test/csit/suites/clustering/routedrpc/023_routed_rpc_crud_test.robot +++ b/test/csit/suites/clustering/routedrpc/023_routed_rpc_crud_test.robot @@ -1,5 +1,5 @@ *** Settings *** -Documentation Test suite for Routed RPC. +Documentation Test suite for Routed RPC. Library Collections Library ../../../libraries/RequestsLibrary.py Library ../../../libraries/Common.py @@ -11,55 +11,52 @@ Variables ../../../variables/Variables.py *** Variables *** ${REST_CONTEXT} /restconf/config/ - *** 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 - [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 - [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 - [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 - ${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 - ${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 - [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 diff --git a/test/csit/suites/clustering/routedrpc/024_routed_rpc_crud_test.robot b/test/csit/suites/clustering/routedrpc/024_routed_rpc_crud_test.robot index 94af65c4f2..b4344cdf24 100644 --- a/test/csit/suites/clustering/routedrpc/024_routed_rpc_crud_test.robot +++ b/test/csit/suites/clustering/routedrpc/024_routed_rpc_crud_test.robot @@ -1,5 +1,5 @@ *** Settings *** -Documentation Test suite for Routed RPC. +Documentation Test suite for Routed RPC. 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 - ${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 - [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 - [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 - [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 - ${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 - ${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 - [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 - [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 - ${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 - [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 - [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 - ${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 - ${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 - [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 - [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 -- 2.36.6