From 852af40fd0e84ace21f1483aaa3bf2fd2054967e Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 13 Apr 2022 15:28:00 +0530 Subject: [PATCH] Adjust wait time for cloud-transition test failures Signed-off-by: Soumya Koduri (cherry picked from commit 25d05a194b09fd35acba5546ac4ebfca64759b1b) --- s3tests_boto3/functional/test_s3.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index feec022..669b456 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -10423,7 +10423,7 @@ def test_lifecycle_cloud_transition(): lc_interval = get_lc_debug_interval() # Wait for first expiration (plus fudge to handle the timer window) - time.sleep(3*lc_interval) + time.sleep(8*lc_interval) expire1_keys = list_bucket_storage_class(client, bucket_name) eq(len(expire1_keys['STANDARD']), 2) @@ -10440,7 +10440,7 @@ def test_lifecycle_cloud_transition(): cloud_client = get_cloud_client() - time.sleep(10*lc_interval) + time.sleep(12*lc_interval) expire1_key1_str = prefix + keys[0] verify_object(cloud_client, target_path, expire1_key1_str, keys[0], target_sc) @@ -10517,14 +10517,14 @@ def test_lifecycle_cloud_multiple_transition(): lc_interval = get_lc_debug_interval() # Wait for first expiration (plus fudge to handle the timer window) - time.sleep(3*lc_interval) + time.sleep(4*lc_interval) expire1_keys = list_bucket_storage_class(client, bucket_name) eq(len(expire1_keys['STANDARD']), 2) eq(len(expire1_keys[sc[1]]), 2) eq(len(expire1_keys[sc[2]]), 0) # Wait for next expiration cycle - time.sleep(4*lc_interval) + time.sleep(7*lc_interval) expire1_keys = list_bucket_storage_class(client, bucket_name) eq(len(expire1_keys['STANDARD']), 2) eq(len(expire1_keys[sc[1]]), 0) @@ -10535,7 +10535,7 @@ def test_lifecycle_cloud_multiple_transition(): eq(len(expire1_keys[sc[2]]), 0) # Wait for final expiration cycle - time.sleep(4*lc_interval) + time.sleep(12*lc_interval) expire3_keys = list_bucket_storage_class(client, bucket_name) eq(len(expire3_keys['STANDARD']), 2) eq(len(expire3_keys[sc[1]]), 0) @@ -10603,13 +10603,13 @@ def test_lifecycle_noncur_cloud_transition(): lc_interval = get_lc_debug_interval() - time.sleep(3*lc_interval) + time.sleep(4*lc_interval) expire1_keys = list_bucket_storage_class(client, bucket) eq(len(expire1_keys['STANDARD']), 2) eq(len(expire1_keys[sc[1]]), 4) eq(len(expire1_keys[sc[2]]), 0) - time.sleep(5*lc_interval) + time.sleep(10*lc_interval) expire1_keys = list_bucket_storage_class(client, bucket) eq(len(expire1_keys['STANDARD']), 2) eq(len(expire1_keys[sc[1]]), 0) @@ -10670,7 +10670,7 @@ def test_lifecycle_cloud_transition_large_obj(): lc_interval = get_lc_debug_interval() # Wait for first expiration (plus fudge to handle the timer window) - time.sleep(3*lc_interval) + time.sleep(8*lc_interval) expire1_keys = list_bucket_storage_class(client, bucket) eq(len(expire1_keys['STANDARD']), 1) @@ -10686,7 +10686,7 @@ def test_lifecycle_cloud_transition_large_obj(): prefix = bucket + "/" # multipart upload takes time - time.sleep(3*lc_interval) + time.sleep(12*lc_interval) cloud_client = get_cloud_client() expire1_key1_str = prefix + keys[1]