Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit dae483a

Browse files
committed
Set version to 7.0.0 and misc changes
* Set version to 7.0 * Fix tests * Edit changelogs
1 parent 149df12 commit dae483a

File tree

11 files changed

+21
-16
lines changed

11 files changed

+21
-16
lines changed

BreakingChanges.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
Changes in 7.0.0
22

33
OTHER
4-
* Upgraded Key Vault dependency to 1.0.
4+
* Upgraded Key Vault dependency to 1.0. Users of the IKey and IKeyResolver interfaces should note the interface changes in this version.
5+
* The getErrorCode method of StorageExtendedErrorInformation is now deprecated. Use the corresponding methods in RequestResult and StorageException instead.
56

67
Changes in 6.0.0
78

89
FILE
9-
* Many File service APIs can now throw a URISyntaxException.
10-
* Changed listShares() ShareListingDetails parameter to be an enum set like what is done for listing blobs.
10+
* Many File service APIs can now throw a URISyntaxException.
11+
* Changed listShares() ShareListingDetails parameter to be an enum set like what is done for listing blobs.
1112

1213
OTHER
1314
* DefaultEndpointsProtocol will now be explicitly included in generated connection strings.
1415
* Connection string parsing has been substantially re-written and expanded. Please refer to current documentation about connection string formats.
1516

1617
Changes in 5.1.1
1718
OTHER
18-
* Reverted the code from 5.1.0 because it contained a regression and an accidental change.
19+
* Reverted the code from 5.1.0 because it contained a regression and an accidental change.
1920

2021
Changes in 5.0.0
2122

ChangeLog.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
XXXX.XX.xx Version X.X.X
1+
2018.01.11 Version 7.0.0
22
* Support for 2017-07-29 REST version. Please see our REST api documentation and blogs for information about the related added features.
33
* Added support for soft delete feature. If a delete retention policy is enabled through the set service properties API, then blobs or snapshots can be deleted softly and retained for a specified number of days, before being permanently removed by garbage collection.
4+
* When a storage request fails, the error code may now be retrieved directly from the RequestResult and StorageException classes. This error code is populated even in cases where there is no StorageExtendedErrorInformation available, such as in calls to FetchAttributes.
5+
* Queue messages may now be inserted with infinite duration by specifying -1 as the timeToLiveInSeconds parameter to addMessage.
46
* Improved performance of blob uploadFromFile APIs to avoid unnecessary buffering.
57
* Improved performance when streaming directly from a FileInputStream to avoid unnecessary buffering.
68
* Switched to using fixed length streaming mode in the HTTP client to avoid unnecessary buffering.

microsoft-azure-storage-test/src/com/microsoft/azure/storage/TestHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class TestHelper {
6464
private static StorageCredentialsAccountAndKey premiumBlobCredentials;
6565
private static CloudStorageAccount premiumBlobAccount;
6666

67-
private final static boolean enableFiddler = true;
67+
private final static boolean enableFiddler = false;
6868
private final static boolean requireSecondaryEndpoint = false;
6969

7070
public static CloudBlobClient createCloudBlobClient() throws StorageException {

microsoft-azure-storage-test/src/com/microsoft/azure/storage/TestRunners.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static class CoreTestSuite {
120120
@SuiteClasses({ BlobOutputStreamTests.class, CloudBlobClientTests.class, CloudBlobContainerTests.class,
121121
CloudBlobDirectoryTests.class, CloudAppendBlobTests.class, CloudBlockBlobTests.class, CloudPageBlobTests.class,
122122
CloudBlobClientEncryptionTests.class, CloudBlobServerEncryptionTests.class, LeaseTests.class, SasTests.class,
123-
PremiumBlobTests.class })
123+
PremiumBlobTestSuite.class })
124124
public static class BlobTestSuite {
125125
}
126126

@@ -184,6 +184,7 @@ public static class FastTestSuite {
184184

185185
@RunWith(Categories.class)
186186
@IncludeCategory(PremiumBlobTests.class)
187+
@SuiteClasses(AllTestSuite.class)
187188
public static class PremiumBlobTestSuite {
188189
}
189190
}

microsoft-azure-storage-test/src/com/microsoft/azure/storage/analytics/CloudAnalyticsClientTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public void testCloudAnalyticsClientParseLogErrors() throws ParseException, URIS
401401
CloudAnalyticsClient.parseLogBlobs(null);
402402
}
403403
catch (IllegalArgumentException e) {
404-
assertEquals(e.getMessage(), "The argument must not be null or an empty string. Argument name: logBlobs.");
404+
assertEquals("The argument must not be null. Argument name: logBlobs.", e.getMessage());
405405
}
406406
}
407407

microsoft-azure-storage-test/src/com/microsoft/azure/storage/table/TableBatchOperationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public void testBatchAddNullShouldThrow() {
322322
fail();
323323
}
324324
catch (IllegalArgumentException ex) {
325-
assertEquals(ex.getMessage(), String.format(SR.ARGUMENT_NULL_OR_EMPTY, "element"));
325+
assertEquals(String.format(SR.ARGUMENT_NULL, "element"), ex.getMessage());
326326
}
327327
}
328328

@@ -334,8 +334,8 @@ public void testBatchRetrieveWithNullResolverShouldThrow() {
334334
fail();
335335
}
336336
catch (IllegalArgumentException ex) {
337-
assertEquals(ex.getMessage(),
338-
String.format(SR.ARGUMENT_NULL_OR_EMPTY, SR.QUERY_REQUIRES_VALID_CLASSTYPE_OR_RESOLVER));
337+
assertEquals(String.format(SR.ARGUMENT_NULL, SR.QUERY_REQUIRES_VALID_CLASSTYPE_OR_RESOLVER),
338+
ex.getMessage());
339339
}
340340
}
341341

microsoft-azure-storage-test/src/com/microsoft/azure/storage/table/TableOperationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public void testRetrieveWithNullResolver() {
8383
TableOperation.retrieve("foo", "blah", (EntityResolver<?>) null);
8484
}
8585
catch (IllegalArgumentException ex) {
86-
assertEquals(ex.getMessage(),
87-
String.format(SR.ARGUMENT_NULL_OR_EMPTY, SR.QUERY_REQUIRES_VALID_CLASSTYPE_OR_RESOLVER));
86+
assertEquals(String.format(SR.ARGUMENT_NULL, SR.QUERY_REQUIRES_VALID_CLASSTYPE_OR_RESOLVER),
87+
ex.getMessage());
8888
}
8989
}
9090

microsoft-azure-storage-test/src/com/microsoft/azure/storage/table/TableQueryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void testQueryWithNullClassType() {
8282
TableQuery.from(null);
8383
}
8484
catch (IllegalArgumentException ex) {
85-
assertEquals(ex.getMessage(), String.format(SR.ARGUMENT_NULL_OR_EMPTY, "class type"));
85+
assertEquals(String.format(SR.ARGUMENT_NULL, "class type"), ex.getMessage());
8686
}
8787
}
8888

microsoft-azure-storage/src/com/microsoft/azure/storage/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ public static class HeaderConstants {
670670
/**
671671
* Specifies the value to use for UserAgent header.
672672
*/
673-
public static final String USER_AGENT_VERSION = "6.1.0";
673+
public static final String USER_AGENT_VERSION = "7.0.0";
674674

675675
/**
676676
* The default type for content-type and accept

microsoft-azure-storage/src/com/microsoft/azure/storage/StorageExtendedErrorInformation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public HashMap<String, String[]> getAdditionalDetails() {
6464
*
6565
* @deprecated use the property on {@link RequestResult} instead.
6666
*/
67+
@Deprecated
6768
public String getErrorCode() {
6869
return this.errorCode;
6970
}

0 commit comments

Comments
 (0)