You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2018/02/09 06:38:26 UTC
[1/3] jclouds git commit: JCLOUDS-1368: Fix off-by-one in slicing
algorithm
Repository: jclouds
Updated Branches:
refs/heads/master 90498ae04 -> 3ab335e77
JCLOUDS-1368: Fix off-by-one in slicing algorithm
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/eb5db026
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/eb5db026
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/eb5db026
Branch: refs/heads/master
Commit: eb5db026da3e205356e7629aec89cd6768073d88
Parents: 90498ae
Author: Andrew Gaul <ga...@apache.org>
Authored: Thu Feb 8 21:00:33 2018 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Thu Feb 8 21:00:33 2018 -0800
----------------------------------------------------------------------
.../main/java/org/jclouds/blobstore/internal/BaseBlobStore.java | 2 +-
.../blobstore/integration/internal/BaseBlobIntegrationTest.java | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/eb5db026/blobstore/src/main/java/org/jclouds/blobstore/internal/BaseBlobStore.java
----------------------------------------------------------------------
diff --git a/blobstore/src/main/java/org/jclouds/blobstore/internal/BaseBlobStore.java b/blobstore/src/main/java/org/jclouds/blobstore/internal/BaseBlobStore.java
index 97d4553..eed9ab1 100644
--- a/blobstore/src/main/java/org/jclouds/blobstore/internal/BaseBlobStore.java
+++ b/blobstore/src/main/java/org/jclouds/blobstore/internal/BaseBlobStore.java
@@ -360,7 +360,7 @@ public abstract class BaseBlobStore implements BlobStore {
long partSize = algorithm.calculateChunkSize(contentLength);
int partNumber = 1;
// TODO: for InputStream payloads, this buffers all parts in-memory!
- while (partNumber < algorithm.getParts()) {
+ while (partNumber <= algorithm.getParts()) {
Payload payload = slicer.slice(blob.getPayload(), algorithm.getCopied(), partSize);
BlobUploader b =
new BlobUploader(mpu, partNumber++, payload);
http://git-wip-us.apache.org/repos/asf/jclouds/blob/eb5db026/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java
----------------------------------------------------------------------
diff --git a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java
index af713fe..023c870 100644
--- a/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java
+++ b/blobstore/src/test/java/org/jclouds/blobstore/integration/internal/BaseBlobIntegrationTest.java
@@ -828,6 +828,8 @@ public class BaseBlobIntegrationTest extends BaseBlobStoreIntegrationTest {
assertThat(etag).isNotNull();
Blob blob = blobStore.getBlob(container, blobName);
+ assertThat(blob.getMetadata().getContentMetadata().getContentLength()).isEqualTo(length);
+
InputStream is = null;
try {
is = blob.getPayload().openStream();
[3/3] jclouds git commit: JCLOUDS-1335: Expect hot when no tier
specified
Posted by ga...@apache.org.
JCLOUDS-1335: Expect hot when no tier specified
This worked earlier; GetBlobProperties must unconditionally emit the
access tier now that it is out of public preview.
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/3ab335e7
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/3ab335e7
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/3ab335e7
Branch: refs/heads/master
Commit: 3ab335e776b2e11ce32a856f71a4852120011c84
Parents: 5598381
Author: Andrew Gaul <ga...@apache.org>
Authored: Thu Feb 8 22:34:09 2018 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Thu Feb 8 22:35:49 2018 -0800
----------------------------------------------------------------------
.../test/java/org/jclouds/azureblob/AzureBlobClientLiveTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/3ab335e7/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientLiveTest.java
----------------------------------------------------------------------
diff --git a/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientLiveTest.java b/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientLiveTest.java
index 306ecb7..7d727df 100644
--- a/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientLiveTest.java
+++ b/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientLiveTest.java
@@ -606,7 +606,7 @@ public class AzureBlobClientLiveTest extends BaseBlobStoreIntegrationTest {
// default
BlobProperties properties = getApi().getBlobProperties(privateContainer, blobName);
- assertThat(properties.getTier()).isNull();
+ assertThat(properties.getTier()).isEqualTo(AccessTier.HOT);
// hot
getApi().setBlobTier(privateContainer, blobName, AccessTier.HOT);
[2/3] jclouds git commit: JCLOUDS-1335: Use consistent Azure test
version
Posted by ga...@apache.org.
JCLOUDS-1335: Use consistent Azure test version
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/55983819
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/55983819
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/55983819
Branch: refs/heads/master
Commit: 55983819a2954e621093107eb959a5fe7ea760af
Parents: eb5db02
Author: Andrew Gaul <ga...@apache.org>
Authored: Thu Feb 8 21:20:11 2018 -0800
Committer: Andrew Gaul <ga...@apache.org>
Committed: Thu Feb 8 22:07:18 2018 -0800
----------------------------------------------------------------------
providers/azureblob/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/55983819/providers/azureblob/pom.xml
----------------------------------------------------------------------
diff --git a/providers/azureblob/pom.xml b/providers/azureblob/pom.xml
index f1fbfeb..e604825 100644
--- a/providers/azureblob/pom.xml
+++ b/providers/azureblob/pom.xml
@@ -33,7 +33,7 @@
<properties>
<test.azureblob.endpoint>https://${jclouds.identity}.blob.core.windows.net</test.azureblob.endpoint>
- <test.azureblob.api-version>2016-05-31</test.azureblob.api-version>
+ <test.azureblob.api-version>2017-04-17</test.azureblob.api-version>
<test.azureblob.build-version />
<test.azureblob.identity>${test.azure.identity}</test.azureblob.identity>
<test.azureblob.credential>${test.azure.credential}</test.azureblob.credential>