mirror of
https://github.com/apache/jclouds.git
synced 2025-02-10 12:06:14 +00:00
JCLOUDS-1327: Add tests for zero-length blobs
This commit is contained in:
parent
8ab58f075f
commit
5e9743a226
@ -623,6 +623,21 @@ public class BaseBlobIntegrationTest extends BaseBlobStoreIntegrationTest {
|
||||
testPut(payload, null, new ByteSourcePayload(byteSource), length, new PutOptions());
|
||||
}
|
||||
|
||||
@Test(groups = { "integration", "live" })
|
||||
public void testPutZeroLengthByteSource() throws Exception {
|
||||
long length = 0;
|
||||
Payload payload = new ByteSourcePayload(ByteSource.empty());
|
||||
testPut(payload, null, payload, length, new PutOptions());
|
||||
}
|
||||
|
||||
@Test(groups = { "integration", "live" })
|
||||
public void testPutZeroLengthInputStream() throws Exception {
|
||||
long length = 0;
|
||||
ByteSource byteSource = ByteSource.empty();
|
||||
Payload payload = new InputStreamPayload(byteSource.openStream());
|
||||
testPut(payload, null, payload, length, new PutOptions());
|
||||
}
|
||||
|
||||
@Test(groups = { "integration", "live" })
|
||||
public void testPutMultipartByteSource() throws Exception {
|
||||
long length = Math.max(getMinimumMultipartBlobSize(), MultipartUploadSlicingAlgorithm.DEFAULT_PART_SIZE + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user