From: Yehuda Sadeh Date: Tue, 1 Apr 2014 19:20:16 +0000 (-0700) Subject: test_s3: extend multipart test X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2902a042fafc8f7ed3f77a8193d1215e53593a2;p=s3-tests.git test_s3: extend multipart test Make test use a multipart upload with different part sizes, to exercise code that triggered #7935. Signed-off-by: Yehuda Sadeh --- diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 464fbe1e..fb777187 100644 --- a/s3tests/functional/test_s3.py +++ b/s3tests/functional/test_s3.py @@ -4132,10 +4132,13 @@ def test_multipart_upload_contents(): for i in range(0, num_parts): mp.upload_part_from_file(StringIO(payload), i+1) + last_payload='123'*1024*1024 + mp.upload_part_from_file(StringIO(last_payload), 4) + mp.complete_upload() key=bucket.get_key(key_name) test_string=key.get_contents_as_string() - assert test_string == payload*num_parts + assert test_string == payload*num_parts+last_payload @attr(resource='object')