s3-tests/s3tests_boto3/functional
Casey Bodley 9eacf29594 nuke_prefixed_buckets waits up to 60 seconds for object locks to expire
objects locked in GOVERNANCE mode can be removed with
BypassGovernanceRetention, but some tests may leave an object locked in
COMPLIANCE mode, which blocks deletion until the retention period
expires

nuke_prefixed_buckets now checks the retention policy of objects that it
fails to delete with AccessDenied, and will wait up to 60 seconds for
locks to expire before retrying the deletes. if the wait exceeds 60
seconds, it instead throws an error without deleting the bucket

instead of doing this in nuke_prefixed_buckets, we could potentially
have each object-lock test case handle this manually, but that would
add a separate delay to each test case

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 9c4f15a47e)
2021-08-12 13:46:03 -04:00
..
__init__.py nuke_prefixed_buckets waits up to 60 seconds for object locks to expire 2021-08-12 13:46:03 -04:00
policy.py boto3: Foundation laid for boto3 tests 2019-01-16 16:31:24 -05:00
rgw_interactive.py boto3: Foundation laid for boto3 tests 2019-01-16 16:31:24 -05:00
test_headers.py Port functional tests from python 2 to python 3 2020-01-14 12:20:05 -05:00
test_s3.py rgw/s3_boto3: Add tests for bucket encryption APIs 2021-08-12 13:45:16 -04:00
test_s3select.py modifying tests to be align with change of s3select compare sign( == -> = ) 2021-05-21 20:10:14 -04:00
test_sts.py rgw/sts: Addition of new STS tests for testing 2021-08-12 13:45:07 -04:00
test_utils.py Port functional tests from python 2 to python 3 2020-01-14 12:20:05 -05:00
utils.py Port functional tests from python 2 to python 3 2020-01-14 12:20:05 -05:00