forked from TrueCloudLab/s3-tests
Adjust wait time for cloud-transition test failures
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 25d05a194b
)
This commit is contained in:
parent
9f1bda4568
commit
852af40fd0
1 changed files with 9 additions and 9 deletions
|
@ -10423,7 +10423,7 @@ def test_lifecycle_cloud_transition():
|
||||||
lc_interval = get_lc_debug_interval()
|
lc_interval = get_lc_debug_interval()
|
||||||
|
|
||||||
# Wait for first expiration (plus fudge to handle the timer window)
|
# 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)
|
expire1_keys = list_bucket_storage_class(client, bucket_name)
|
||||||
eq(len(expire1_keys['STANDARD']), 2)
|
eq(len(expire1_keys['STANDARD']), 2)
|
||||||
|
|
||||||
|
@ -10440,7 +10440,7 @@ def test_lifecycle_cloud_transition():
|
||||||
|
|
||||||
cloud_client = get_cloud_client()
|
cloud_client = get_cloud_client()
|
||||||
|
|
||||||
time.sleep(10*lc_interval)
|
time.sleep(12*lc_interval)
|
||||||
expire1_key1_str = prefix + keys[0]
|
expire1_key1_str = prefix + keys[0]
|
||||||
verify_object(cloud_client, target_path, expire1_key1_str, keys[0], target_sc)
|
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()
|
lc_interval = get_lc_debug_interval()
|
||||||
|
|
||||||
# Wait for first expiration (plus fudge to handle the timer window)
|
# 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)
|
expire1_keys = list_bucket_storage_class(client, bucket_name)
|
||||||
eq(len(expire1_keys['STANDARD']), 2)
|
eq(len(expire1_keys['STANDARD']), 2)
|
||||||
eq(len(expire1_keys[sc[1]]), 2)
|
eq(len(expire1_keys[sc[1]]), 2)
|
||||||
eq(len(expire1_keys[sc[2]]), 0)
|
eq(len(expire1_keys[sc[2]]), 0)
|
||||||
|
|
||||||
# Wait for next expiration cycle
|
# Wait for next expiration cycle
|
||||||
time.sleep(4*lc_interval)
|
time.sleep(7*lc_interval)
|
||||||
expire1_keys = list_bucket_storage_class(client, bucket_name)
|
expire1_keys = list_bucket_storage_class(client, bucket_name)
|
||||||
eq(len(expire1_keys['STANDARD']), 2)
|
eq(len(expire1_keys['STANDARD']), 2)
|
||||||
eq(len(expire1_keys[sc[1]]), 0)
|
eq(len(expire1_keys[sc[1]]), 0)
|
||||||
|
@ -10535,7 +10535,7 @@ def test_lifecycle_cloud_multiple_transition():
|
||||||
eq(len(expire1_keys[sc[2]]), 0)
|
eq(len(expire1_keys[sc[2]]), 0)
|
||||||
|
|
||||||
# Wait for final expiration cycle
|
# Wait for final expiration cycle
|
||||||
time.sleep(4*lc_interval)
|
time.sleep(12*lc_interval)
|
||||||
expire3_keys = list_bucket_storage_class(client, bucket_name)
|
expire3_keys = list_bucket_storage_class(client, bucket_name)
|
||||||
eq(len(expire3_keys['STANDARD']), 2)
|
eq(len(expire3_keys['STANDARD']), 2)
|
||||||
eq(len(expire3_keys[sc[1]]), 0)
|
eq(len(expire3_keys[sc[1]]), 0)
|
||||||
|
@ -10603,13 +10603,13 @@ def test_lifecycle_noncur_cloud_transition():
|
||||||
|
|
||||||
lc_interval = get_lc_debug_interval()
|
lc_interval = get_lc_debug_interval()
|
||||||
|
|
||||||
time.sleep(3*lc_interval)
|
time.sleep(4*lc_interval)
|
||||||
expire1_keys = list_bucket_storage_class(client, bucket)
|
expire1_keys = list_bucket_storage_class(client, bucket)
|
||||||
eq(len(expire1_keys['STANDARD']), 2)
|
eq(len(expire1_keys['STANDARD']), 2)
|
||||||
eq(len(expire1_keys[sc[1]]), 4)
|
eq(len(expire1_keys[sc[1]]), 4)
|
||||||
eq(len(expire1_keys[sc[2]]), 0)
|
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)
|
expire1_keys = list_bucket_storage_class(client, bucket)
|
||||||
eq(len(expire1_keys['STANDARD']), 2)
|
eq(len(expire1_keys['STANDARD']), 2)
|
||||||
eq(len(expire1_keys[sc[1]]), 0)
|
eq(len(expire1_keys[sc[1]]), 0)
|
||||||
|
@ -10670,7 +10670,7 @@ def test_lifecycle_cloud_transition_large_obj():
|
||||||
lc_interval = get_lc_debug_interval()
|
lc_interval = get_lc_debug_interval()
|
||||||
|
|
||||||
# Wait for first expiration (plus fudge to handle the timer window)
|
# 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)
|
expire1_keys = list_bucket_storage_class(client, bucket)
|
||||||
eq(len(expire1_keys['STANDARD']), 1)
|
eq(len(expire1_keys['STANDARD']), 1)
|
||||||
|
|
||||||
|
@ -10686,7 +10686,7 @@ def test_lifecycle_cloud_transition_large_obj():
|
||||||
prefix = bucket + "/"
|
prefix = bucket + "/"
|
||||||
|
|
||||||
# multipart upload takes time
|
# multipart upload takes time
|
||||||
time.sleep(3*lc_interval)
|
time.sleep(12*lc_interval)
|
||||||
cloud_client = get_cloud_client()
|
cloud_client = get_cloud_client()
|
||||||
|
|
||||||
expire1_key1_str = prefix + keys[1]
|
expire1_key1_str = prefix + keys[1]
|
||||||
|
|
Loading…
Reference in a new issue