]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
test_s3: reduce multipart tests sizes
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 20 Feb 2013 21:55:35 +0000 (13:55 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 20 Feb 2013 21:55:35 +0000 (13:55 -0800)
Tests were dominating run time

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
s3tests/functional/test_s3.py

index 4e79532c84976aae95e303941dd54ca5343010db..1059301df9b7d05904f532b13a311e696d0a5962 100644 (file)
@@ -4011,8 +4011,8 @@ def test_multipart_upload():
 def test_multipart_upload_contents():
     bucket = get_new_bucket()
     key_name="mymultipart"
-    num_parts=5
-    payload='foo'*10*1024*1024
+    num_parts=3
+    payload='12345'*1024*1024
     mp=bucket.initiate_multipart_upload(key_name)
     for i in range(0, num_parts):
         mp.upload_part_from_file(StringIO(payload), i+1)
@@ -4030,8 +4030,8 @@ def test_multipart_upload_contents():
 def test_multipart_upload_overwrite_existing_object():
     bucket = get_new_bucket()
     key_name="mymultipart"
-    payload='bar'*10*1024*1024
-    num_parts=5
+    payload='12345'*1024*1024
+    num_parts=2
     key=bucket.new_key(key_name)
     key.set_contents_from_string(payload)