Skip to content

Commit

Permalink
prepare real restore test
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed May 7, 2024
1 parent 4342f99 commit f48b728
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions tests/ctst/features/quotas/Quotas.feature
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,10 @@ Feature: Quota Management for APIs
@NonVersioned
Scenario Outline: Quotas are affected by deletion operations
Given an action "DeleteObject"
# First set a big quota to enable the inflights
# and ensure the initial PUT is accepted
And a "STORAGE_MANAGER" type
And a bucket quota set to 10000 B
And an account quota set to 10000 B
# Put an object: fill fill the quota directly
And an upload size of 1000 B for the object "obj-1"
# Set a small quota
And a bucket quota set to <bucketQuota> B
And an account quota set to <accountQuota> B
And a "<userType>" type
Expand Down Expand Up @@ -126,20 +122,20 @@ Feature: Quota Management for APIs
# @ColdStorage
# Scenario Outline: Object restoration implements strict quotas
# Given an action "<action>"
# And a flaky backend that will require <retryNumber> retries for "restore"
# And an upload size of "<uploadSize>" B
# And a "STORAGE_MANAGER" type
# And a bucket quota set to "<bucketQuota>" B
# And an account quota set to "<accountQuota>" B
# And a transition workflow to "e2e-cold" location
# And an upload size of <uploadSize> B
# Then object "" should be "transitioned" and have the storage class "e2e-cold"
# Given a "STORAGE_MANAGER" type
# And a bucket quota set to <bucketQuota> B
# And an account quota set to <accountQuota> B
# And a "<userType>" type
# And an environment setup for the API
# And an "existing" IAM Policy that "applies" with "ALLOW" effect for the current API
# And a transition workflow to "e2e-cold" location
# When i restore object "" for 5 days
# When i restore object "" for5 days
# Then the API should "<result>" with "<expectedError>"

# Examples:
# | action | uploadSize | bucketQuota | accountQuota | userType | result | expectedError | retryNumber |
# | action | uploadSize | bucketQuota | accountQuota | userType | result | expectedError | retryNumber |
# | RestoreObject | 100 | 0 | 0 | ACCOUNT | succeed | | 3 |
# | RestoreObject | 100 | 99 | 0 | ACCOUNT | fail | QuotaExceeded | 3 |
# | RestoreObject | 100 | 0 | 99 | ACCOUNT | fail | QuotaExceeded | 3 |
Expand All @@ -150,5 +146,3 @@ Feature: Quota Management for APIs
# | RestoreObject | 100 | 0 | 99 | IAM_USER | fail | QuotaExceeded | 3 |
# | RestoreObject | 100 | 99 | 99 | IAM_USER | fail | QuotaExceeded | 3 |
# | RestoreObject | 100 | 101 | 101 | IAM_USER | succeed | | 3 |
# TODO test with real restores
# TODO test the deletion

0 comments on commit f48b728

Please sign in to comment.