]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
increase time out for restore op in test_restore_object_permanent
authorJiffin Tony Thottan <thottanjiffin@gmail.com>
Fri, 30 May 2025 12:39:21 +0000 (18:09 +0530)
committerCasey Bodley <cbodley@redhat.com>
Thu, 12 Jun 2025 16:11:28 +0000 (12:11 -0400)
and in test_lifecycle_expiration_size_gt() for lc.

Fixes: https://tracker.ceph.com/issues/71348
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit b58d24c95003aa4defb7a5424a7458910bece5df)

s3tests_boto3/functional/test_s3.py

index 951e0aea81f30e8a704138a273787b833288e84a..61447d00d6c08004d6d45e37d9e840bd12bf2580 100644 (file)
@@ -8802,7 +8802,7 @@ def test_lifecycle_expiration_size_gt():
     assert response['ResponseMetadata']['HTTPStatusCode'] == 200
 
     lc_interval = get_lc_debug_interval()
-    time.sleep(2*lc_interval)
+    time.sleep(10*lc_interval)
 
     # we should find only the small object present
     response = client.list_objects(Bucket=bucket_name)
@@ -9962,7 +9962,7 @@ def test_restore_object_temporary():
 
     # Restore object temporarily
     client.restore_object(Bucket=bucket, Key=key, RestoreRequest={'Days': 2})
-    time.sleep(2)
+    time.sleep(5)
 
     # Verify object is restored temporarily
     verify_transition(client, bucket, key, cloud_sc)
@@ -10004,7 +10004,7 @@ def test_restore_object_permanent():
 
     # Restore object permanently
     client.restore_object(Bucket=bucket, Key=key, RestoreRequest={})
-    time.sleep(2)
+    time.sleep(5)
     # Verify object is restored permanently
     verify_transition(client, bucket, key, 'STANDARD')
     response = client.head_object(Bucket=bucket, Key=key)
@@ -10125,7 +10125,7 @@ def test_restore_noncur_obj():
         verify_transition(client, bucket, key, cloud_sc, version_ids[num])
         # Restore object temporarily
         client.restore_object(Bucket=bucket, Key=key, VersionId=version_ids[num], RestoreRequest={'Days': 2})
-        time.sleep(2)
+        time.sleep(5)
 
         # Verify object is restored temporarily
         response = client.head_object(Bucket=bucket, Key=key, VersionId=version_ids[num])