Skip to content

Commit

Permalink
refactor(negative): Wait until all replicas rebuilt
Browse files Browse the repository at this point in the history
ref: 7034

Signed-off-by: Chin-Ya Huang <[email protected]>
  • Loading branch information
c3y1huang committed Nov 28, 2023
1 parent db3ff5c commit 8b2695f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions e2e/keywords/volume.resource
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Wait until volume ${volume_name} replica rebuilding started on ${replica_node_ty
Wait until volume ${volume_name} replica rebuilding completed on ${replica_node_type}
wait_for_replica_rebuilding_to_complete_on_node ${volume_name} ${replica_node_type}

Wait until volume ${volume_name} replicas rebuilding completed
wait_for_replica_rebuilding_to_complete ${volume_name}

Check volume ${volume_name} data is intact
check_data_checksum ${volume_name}

Expand All @@ -39,8 +42,3 @@ Check volume ${volume_name} works
#TODO
# write data to a file in the volume instead of writing /dev/longhorn/vol-name
# so the data won't be overwritten and we can compare the checksum

Wait until all replicas rebuilt
wait_for_replica_rebuilding_complete ${volume_name} 0
wait_for_replica_rebuilding_complete ${volume_name} 1
wait_for_replica_rebuilding_complete ${volume_name} 2
2 changes: 1 addition & 1 deletion e2e/tests/replica_rebuilding.robot
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Delete Replica While Replica Rebuilding
And Delete volume lhv-0 replica on test pod node

Then Check volume lhv-0 data is intact
And Wait until all replicas rebuilt
And Wait until volume lhv-0 replicas rebuilding completed
END

Reboot Volume Node While Replica Rebuilding
Expand Down

0 comments on commit 8b2695f

Please sign in to comment.