Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions test/suites-ostree/backup-prune.robot
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,10 @@ ${UNKOWN_DIR_REG} unknown_fake*


*** Test Cases ***
Rebooting Healthy System Should Result In Pruning Old Backups
[Documentation] Check that MicroShift backup logic prunes old backups
Rebooting Healthy System Should Result In Pruning Old Backups And Keeping Unknown Directories
[Documentation] Check that MicroShift backup logic prunes old backups and keeps unknown directories

Create Fake Backup Directories
Validate Fake Backups Exist
Reboot MicroShift Host
Wait For MicroShift Service
Validate Fake Backups Have Been Deleted

Rebooting Healthy System Should Not Delete Unknown Directories
[Documentation] Check that MicroShift backup logic does not delete unknown directories

Create Fake Unknown Backup Directories
Validate Unknown Fake Backups Exist
Reboot MicroShift Host
Wait For MicroShift Service
Validate Unknown Fake Backups Exist
Comment thread
eggfoobar marked this conversation as resolved.
Outdated


Expand All @@ -52,7 +40,7 @@ Validate Fake Backups Have Been Deleted
[Documentation] Listing the fake backups should return an error code of 2 if no longer exists
List Backups With Expected RC 2 ${FAKE_DIR_REG}

Create Fake Unknown Backup Directories
Create Unknown Fake Backup Directories
[Documentation] Create unknown fake backup folders
Create Fake Backups 2 True

Expand Down Expand Up @@ -81,6 +69,15 @@ Setup
Check Required Env Variables
Login MicroShift Host

Create Fake Backup Directories
Validate Fake Backups Exist

Create Unknown Fake Backup Directories
Validate Unknown Fake Backups Exist

Reboot MicroShift Host
Wait For Healthy System

Teardown
[Documentation] Test suite teardown
Delete Unkown Fake Backups
Expand Down