2 Documentation Run this test after running test no 05
3 Library ../../../../libraries/CrudLibrary.py
4 Library ../../../../libraries/UtilLibrary.py
5 Library ../../../../libraries/ClusterStateLibrary.py
8 ${SHARD} shard-car-config
12 [Documentation] find new leader
13 ${FOLLOWERS} GetFollowers ${SHARD} ${3} ${3} ${2} ${8181} ${LEADER} ${FOLLOWER1} ${FOLLOWER2}
15 ${LAST_FOLLOWER} Set Variable ${FOLLOWERS[0]}
16 Set Suite Variable ${LAST_FOLLOWER}
17 ${NEW_LEADER} GetLeader ${SHARD} ${3} ${3} ${2} ${8181} ${LEADER} ${FOLLOWER1} ${FOLLOWER2}
19 Stopcontroller ${NEW_LEADER} ${USERNAME} ${PASSWORD} ${KARAFHOME}
23 Get cars from last follower
24 [Documentation] get cars from last follower
25 ${resp} Getcars ${LAST_FOLLOWER} ${PORT} ${0}
26 Should Be Equal As Strings ${resp.status_code} 500
28 Add cars and get cars from last follower
29 [Documentation] Add 80 cars and get added cars from last follower
30 ${resp} AddCar ${LAST_FOLLOWER} ${PORT} ${80}
31 Should Be Equal As Strings ${resp.status_code} 500