forked from TrueCloudLab/s3-tests
Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
|
0e4d198cac | ||
|
125fc8bddd | ||
|
e473dd5cb5 |
3 changed files with 14 additions and 3 deletions
|
@ -6,5 +6,5 @@ bunch >=1.0.0
|
|||
gevent ==0.13.6
|
||||
isodate >=0.4.4
|
||||
requests ==0.14.0
|
||||
pytz
|
||||
pytz >=2011k
|
||||
ordereddict
|
||||
|
|
|
@ -3889,11 +3889,22 @@ def test_list_multipart_upload():
|
|||
bucket = get_new_bucket()
|
||||
key="mymultipart"
|
||||
upload1 = _multipart_upload(bucket, key, 5, 1)
|
||||
upload2 = _multipart_upload(bucket, key, 5, 1)
|
||||
upload2 = _multipart_upload(bucket, key, 6, 1)
|
||||
|
||||
key2="mymultipart2"
|
||||
upload3 = _multipart_upload(bucket, key2, 5, 1)
|
||||
|
||||
l = bucket.list_multipart_uploads()
|
||||
l = list(l)
|
||||
|
||||
index = dict([(key, 2), (key2, 1)])
|
||||
|
||||
for upload in l:
|
||||
index[upload.key_name] -= 1;
|
||||
|
||||
for k, c in index.items():
|
||||
eq(c, 0)
|
||||
|
||||
upload1.cancel_upload()
|
||||
upload2.cancel_upload()
|
||||
upload3.cancel_upload()
|
||||
|
|
|
@ -46,7 +46,7 @@ def upload_objects(bucket, files, seed):
|
|||
print >> sys.stderr, 'sending file with size %dB' % fp.size
|
||||
key = Key(bucket)
|
||||
key.key = name_generator.next()
|
||||
key.set_contents_from_file(fp)
|
||||
key.set_contents_from_file(fp, rewind=True)
|
||||
key.set_acl('public-read')
|
||||
keys.append(key)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue