Skip to content

Commit

Permalink
Add expiration tests for DMF
Browse files Browse the repository at this point in the history
Issue: ZENKO-4891
  • Loading branch information
KillianG committed Sep 20, 2024
1 parent dae3b4d commit 3522822
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/ctst/features/dmf.feature
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,37 @@ Feature: DMF
| versioningConfiguration | objectCount | objectSize |
| Non versioned | 1 | 100 |
| Suspended | 1 | 100 |


@2.7.0
@PreMerge
@Flaky
@Dmf
@ColdStorage
Scenario Outline: Restore an already restored object
Given a "<versioningConfiguration>" bucket
And a transition workflow to "e2e-cold" location
And <objectCount> objects "obj" of size <objectSize> bytes
Then object "obj-1" should be "transitioned" and have the storage class "e2e-cold"
And object "obj-2" should be "transitioned" and have the storage class "e2e-cold"
When i restore object "obj-1" for <restoreDays> days
And i restore object "obj-2" for <restoreDays> days
Then object "obj-1" should be "restored" and have the storage class "e2e-cold"
And object "obj-2" should be "restored" and have the storage class "e2e-cold"
And object "obj-1" should expire in <restoreDays> days
And object "obj-2" should expire in <restoreDays> days
When i restore object "obj-1" for 30 days
And i restore object "obj-2" for 5 days
Then object "obj-1" should expire in 30 days
And object "obj-2" should expire in 5 days
When i wait for 5 days
Then object "obj-1" should expire in 25 days
And object "obj-2" should be "cold" and have the storage class "e2e-cold"
When i wait for 25 days
Then object "obj-1" should be "cold" and have the storage class "e2e-cold"

Examples:
| versioningConfiguration | objectCount | objectSize | restoreDays |
| Non versioned | 2 | 100 | 15 |
| Versioned | 2 | 100 | 15 |
| Suspended | 2 | 100 | 15 |

0 comments on commit 3522822

Please sign in to comment.