2 Documentation This test restarts all controllers to verify recovery of car data from persistene
3 Default Tags 3-node-cluster
4 Library ../../../libraries/CrudLibrary.py
5 Library ../../../libraries/UtilLibrary.py
6 Library ../../../libraries/ClusterStateLibrary.py
7 Resource ../../../libraries/ClusterKeywords.robot
8 Variables ../../../variables/Variables.py
11 ${CAR_SHARD} shard-car-config
13 ${KARAF_HOME} ${WORKSPACE}/${BUNDLEFOLDER}
14 @{controllers} ${CONTROLLER} ${CONTROLLER1} ${CONTROLLER2}
18 ${CAR_LEADER} Wait For Leader To Be Found ${CAR_SHARD}
19 Set Suite Variable ${CAR_LEADER}
21 Delete cars from leader
22 Delete All Cars And Verify ${CAR_LEADER}
24 Stop all controllers after delete
25 Stop One Or More Controllers @{controllers}
27 Start all controllers after delete
28 Start One Or More Controllers @{controllers}
30 Verify no cars on leader after restart
31 ${resp} Getcars ${CAR_LEADER} ${RESTCONFPORT} ${0}
32 Should Be Equal As Strings ${resp.status_code} 404
35 Add Cars And Verify ${CAR_LEADER} ${NUM_CARS}
37 Stop all controllers after add
38 Stop One Or More Controllers @{controllers}
40 Start all controllers after add
41 Start One Or More Controllers @{controllers}
43 Get cars from leader after restart
44 Wait Until Keyword Succeeds 60s 2s Get Cars And Verify ${CAR_LEADER} ${NUM_CARS}
47 ${CAR_FOLLOWERS} Get All Followers ${CAR_SHARD}
48 Set Suite Variable ${CAR_FOLLOWERS}
50 Get cars from Follower1 after restart
51 Wait Until Keyword Succeeds 60s 2s Get Cars And Verify @{CAR_FOLLOWERS}[0] ${NUM_CARS}
53 Get cars from Follower2 after restart
54 Wait Until Keyword Succeeds 60s 2s Get Cars And Verify @{CAR_FOLLOWERS}[1] ${NUM_CARS}