Skip to content

Commit

Permalink
Merge branch 'w/2.9/bugfix/ZENKO-4891-add-expiration-test-for-dmf' in…
Browse files Browse the repository at this point in the history
…to tmp/octopus/w/2.10/bugfix/ZENKO-4891-add-expiration-test-for-dmf
  • Loading branch information
bert-e committed Sep 23, 2024
2 parents 8086340 + df53dc6 commit b48b06a
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 b48b06a

Please sign in to comment.