Skip to content

Commit

Permalink
Add skeleton for test_engine_crash_during_live_upgrade
Browse files Browse the repository at this point in the history
ref: 7859

Signed-off-by: Chris <chris.chien@suse.com>
  • Loading branch information
chriscchien committed Feb 7, 2024
1 parent 607cc88 commit 31d8cfe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions manager/integration/tests/test_engine_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,3 +1196,18 @@ def test_engine_live_upgrade_while_replica_concurrent_rebuild(client, # NOQA
for replica in volume2.replicas:
assert replica.image == engine_upgrade_image
assert replica.currentImage == engine_upgrade_image

@pytest.mark.skip(reason="TODO") # NOQA
def test_engine_crash_during_live_upgrade():
"""
1. Create and attach a volume to a worklod, then write data into the
volume.
2. Deploy an extra engine image.
3. Send live upgrade request then immediately delete the related engine
manager pod/engine process (The new replicas are not in active in this
case).
4. Verify the volume will detach then reattach automatically.
5. Verify the upgrade is done during the reattachment.
(It actually becomes offline upgrade.)
6. Verify volume healthy and the data is correct.
"""

0 comments on commit 31d8cfe

Please sign in to comment.