From f2902a042fafc8f7ed3f77a8193d1215e53593a2 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 1 Apr 2014 12:20:16 -0700 Subject: [PATCH] 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 --- s3tests/functional/test_s3.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/s3tests/functional/test_s3.py b/s3tests/functional/test_s3.py index 464fbe1..fb77718 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')