X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fcontroller%2FClustering_Datastore%2F010_crud_on_leader.robot;h=32fc8672be8a9b00548f2ff02ef38431f9871ca5;hb=7d2063bdec07fd06d64e56f7924b5583200b8305;hp=e14e07af888ce469d3246c92d966dfdb61d3007e;hpb=59e81c38620fa1b61e15771191e35771450b9499;p=integration%2Ftest.git diff --git a/csit/suites/controller/Clustering_Datastore/010_crud_on_leader.robot b/csit/suites/controller/Clustering_Datastore/010_crud_on_leader.robot index e14e07af88..32fc8672be 100644 --- a/csit/suites/controller/Clustering_Datastore/010_crud_on_leader.robot +++ b/csit/suites/controller/Clustering_Datastore/010_crud_on_leader.robot @@ -1,14 +1,8 @@ *** 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 -Library Collections -Library RequestsLibrary -Library ../../../libraries/Common.py -Library ../../../libraries/CrudLibrary.py -Library ../../../libraries/SettingsLibrary.py -Library ../../../libraries/UtilLibrary.py -Library ../../../libraries/ClusterStateLibrary.py Resource ../../../libraries/ClusterKeywords.robot +Resource ../../../libraries/CarsAndPeople.robot Variables ../../../variables/Variables.py *** Variables *** @@ -19,51 +13,55 @@ ${NUM_ENTRIES} ${30} *** Test Cases *** Get Car Leader And Followers - ${CURRENT_CAR_LEADER} Wait For Leader To Be Found ${SHARD_CAR_NAME} + [Documentation] Find leader and followers in the car shard + ${CURRENT_CAR_LEADER} Get Leader And Verify ${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 +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} -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} + 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} + Get Cars And Verify @{CAR_FOLLOWERS}[1] ${NUM_ENTRIES} Get People Leader And Followers - ${CURRENT_PEOPLE_LEADER} Wait For Leader To Be Found ${SHARD_PEOPLE_NAME} + [Documentation] Find leader and followers in the people shard + ${CURRENT_PEOPLE_LEADER} Get Leader And Verify ${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 +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} -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} + 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} + Get People And Verify @{PEOPLE_FOLLOWERS}[1] ${NUM_ENTRIES} Get Car-Person Leader And Followers - ${CURRENT_CAR_PERSON_LEADER} Wait For Leader To Be Found ${SHARD_CAR_PERSON_NAME} + [Documentation] Find leader and followers in the car-person shard + ${CURRENT_CAR_PERSON_LEADER} Get Leader And Verify ${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 + [Documentation] Initialize car-person shard 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 @@ -73,23 +71,23 @@ Purchase cars on Leader 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} -Purchase cars on Follower2 +Purchase 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} -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} + 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} + 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} + Get Car-Person Mappings And Verify @{CAR_PERSON_FOLLOWERS}[1] ${NUM_ENTRIES}