From a5ec80a275ccfe0eb3c45a4bef150bc03091a272 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 8 Jan 2017 12:49:37 -0800 Subject: [PATCH] JCLOUDS-1123: Azure REST API version 2016-05-31 This enables larger block blobs: https://azure.microsoft.com/en-us/blog/general-availability-larger-block-blobs-in-azure-storage/ --- providers/azureblob/pom.xml | 2 +- .../azureblob/AzureBlobApiMetadata.java | 2 +- .../azureblob/AzureBlobClientTest.java | 50 +++++++++---------- .../blobstore/AzureBlobRequestSignerTest.java | 12 ++--- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/providers/azureblob/pom.xml b/providers/azureblob/pom.xml index 3f07522e41..f1fbfebe0c 100644 --- a/providers/azureblob/pom.xml +++ b/providers/azureblob/pom.xml @@ -33,7 +33,7 @@ https://${jclouds.identity}.blob.core.windows.net - 2013-08-15 + 2016-05-31 ${test.azure.identity} ${test.azure.credential} diff --git a/providers/azureblob/src/main/java/org/jclouds/azureblob/AzureBlobApiMetadata.java b/providers/azureblob/src/main/java/org/jclouds/azureblob/AzureBlobApiMetadata.java index c193852c4e..cb7e74111f 100644 --- a/providers/azureblob/src/main/java/org/jclouds/azureblob/AzureBlobApiMetadata.java +++ b/providers/azureblob/src/main/java/org/jclouds/azureblob/AzureBlobApiMetadata.java @@ -62,7 +62,7 @@ public class AzureBlobApiMetadata extends BaseHttpApiMetadata { .name("Microsoft Azure Blob Service API") .identityName("Account Name") .credentialName("Access Key") - .version("2013-08-15") + .version("2016-05-31") .defaultEndpoint("https://${jclouds.identity}.blob.core.windows.net") .documentation(URI.create("http://msdn.microsoft.com/en-us/library/dd135733.aspx")) .defaultProperties(AzureBlobApiMetadata.defaultProperties()) diff --git a/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientTest.java b/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientTest.java index c117d3639f..291c44a540 100644 --- a/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientTest.java +++ b/providers/azureblob/src/test/java/org/jclouds/azureblob/AzureBlobClientTest.java @@ -78,7 +78,7 @@ public class AzureBlobClientTest extends BaseRestAnnotationProcessingTest of("container", "blob")); assertRequestLineEquals(request, "GET https://identity.blob.core.windows.net/container/blob HTTP/1.1"); - assertNonPayloadHeadersEqual(request, "x-ms-version: 2013-08-15\n"); + assertNonPayloadHeadersEqual(request, "x-ms-version: 2016-05-31\n"); assertPayloadEquals(request, null, null, false); assertResponseParserClassEquals(method, request, ParseBlobFromHeadersAndHttpContent.class); @@ -350,7 +350,7 @@ public class AzureBlobClientTest extends BaseRestAnnotationProcessingTest