Commit Graph

17 Commits

Author SHA1 Message Date
Markus Kienast 7c22847a45 adding debug code to TestCalcOptimalPartSize 2017-08-26 12:55:07 +02:00
Markus Kienast 5b116e7087 restructuring tests to accommodate optimalPartSize of 0 2017-08-26 12:24:22 +02:00
Markus Kienast 8831a98c34 separated partsize calc and error handling 2017-08-24 02:27:57 +02:00
Markus Kienast f059acc7cc fixed edge cases; pre-cleanup 2017-08-24 01:29:26 +02:00
Markus Kienast e2e3b9ffe4 added error, when size > MaxObjectSize; additional case in algorithm + tests; go fmt 2017-08-23 13:28:59 +02:00
Markus Kienast 381d3326cb calculating PartSize based on size of upload
simplified algorithm, respect MaxObjectSize, updated tests, go fmt
2017-08-20 02:07:58 +02:00
koenvo 1ad6187d6d Take IsTruncated field of S3 ListParts API response into account (#148)
* Take IsTruncated field of S3 ListParts API response into account

* Rename s3store.ListParts to ListAllParts

* Use proper formatting + make listAllParts private + test listAllParts through TestGetInfo

* Update TestFinishUpload to also test paged ListParts response
2017-08-17 21:31:37 +02:00
Markus Kienast 028ba57206 Squashed commit of the following:
commit 5a268dbafb9318b888142931ea27a1af10b9a8e7
Author: Marius <maerious@gmail.com>
Date:   Wed Jul 19 11:47:26 2017 +0200

    Remove manual assignment of upload ID in S3Store

commit a37e149090ee7fd5f170d24ccc33b8af9ae18fae
Author: Marius <maerious@gmail.com>
Date:   Wed Jul 19 11:42:00 2017 +0200

    Format Go code

commit 6643a9be62
Author: Markus Kienast <mark@rickkiste.at>
Date:   Sun Jul 16 17:08:24 2017 +0200

    fixed ID value in .info; adjusted tests; fixed assert(expected, received) swap
2017-07-19 11:54:26 +02:00
Marius 37fe99b37d Define own, minimal S3API interface 2016-12-20 17:13:02 +01:00
Marius 513fe9fcf3 Correct linting issue and misspellings 2016-09-27 22:10:16 +02:00
Marius 015ae39d18 Replace non-ASCII chars in metadata for multipart uploads with question mark
AWS does not handle non-ASCII encoded values for metadata values well since
they are transported in HTTP header values which, by specification, should
only contain ASCII characters. If you still supply AWS with, for example,
UTF-8 encoded strings it will reject the request due to mismatching
signatures. Our solution is to replace these characters with question
marks.
2016-07-06 16:25:06 +02:00
Marius 199487bdf6 Set correct ID in S3Store.GetInfo 2016-03-26 18:23:37 +01:00
Marius bbf706622c Implement Concatentation extension for S3Store 2016-02-03 21:18:21 +01:00
Marius bfde73ff89 Test interface implementations for data stores 2016-01-19 22:37:05 +01:00
Marius 29047eddc2 Add support for meta data in S3Store 2016-01-19 21:39:24 +01:00
Marius 810fa89494 Add support for upload termination in S3Store 2016-01-16 16:12:37 +01:00
Marius 2073521776 Add tests for S3Store 2016-01-05 18:21:53 +01:00