diff --git a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs index 3b30a1877b6c4..7346e6ed1b5c6 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/api/Azure.Storage.Files.DataLake.netstandard2.0.cs @@ -312,6 +312,7 @@ public partial class DataLakeFileOpenWriteOptions { public DataLakeFileOpenWriteOptions() { } public long? BufferSize { get { throw null; } set { } } + public bool? Close { get { throw null; } set { } } public Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions OpenConditions { get { throw null; } set { } } public System.IProgress ProgressHandler { get { throw null; } set { } } } @@ -324,7 +325,6 @@ public DataLakeFileUploadOptions() { } public System.Collections.Generic.IDictionary Metadata { get { throw null; } set { } } public string Permissions { get { throw null; } set { } } public System.IProgress ProgressHandler { get { throw null; } set { } } - public bool? RetainUncommittedData { get { throw null; } set { } } public Azure.Storage.StorageTransferOptions TransferOptions { get { throw null; } set { } } public string Umask { get { throw null; } set { } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileClient.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileClient.cs index 192016047540e..d675f8d6e322a 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileClient.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileClient.cs @@ -4136,7 +4136,8 @@ private async Task OpenWriteInternal( bufferSize: options?.BufferSize ?? Constants.DefaultBufferSize, position: position, conditions: conditions, - progressHandler: options?.ProgressHandler); + progressHandler: options?.ProgressHandler, + closeEvent: options?.Close); } catch (Exception ex) { @@ -4196,7 +4197,7 @@ await client.AppendInternal( // Flush data return await client.FlushInternal( position: newPosition, - retainUncommittedData: args.RetainUncommittedData, + retainUncommittedData: default, close: args.Close, args.HttpHeaders, args.Conditions, @@ -4223,7 +4224,7 @@ await client.AppendInternal( return await client.FlushInternal( offset + size, - retainUncommittedData: args.RetainUncommittedData, + retainUncommittedData: default, close: args.Close, httpHeaders: args.HttpHeaders, conditions: args.Conditions, diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileWriteStream.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileWriteStream.cs index ce947f7506c46..132ed2316e050 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileWriteStream.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileWriteStream.cs @@ -13,6 +13,7 @@ internal class DataLakeFileWriteStream : StorageWriteStream { private readonly DataLakeFileClient _fileClient; private readonly DataLakeRequestConditions _conditions; + private readonly bool? _closeEvent; private long _writeIndex; public DataLakeFileWriteStream( @@ -20,7 +21,8 @@ public DataLakeFileWriteStream( long bufferSize, long position, DataLakeRequestConditions conditions, - IProgress progressHandler) : base( + IProgress progressHandler, + bool? closeEvent) : base( position, bufferSize, progressHandler) @@ -29,6 +31,7 @@ public DataLakeFileWriteStream( _fileClient = fileClient; _conditions = conditions ?? new DataLakeRequestConditions(); _writeIndex = position; + _closeEvent = closeEvent; } protected override async Task AppendInternal(bool async, CancellationToken cancellationToken) @@ -59,7 +62,7 @@ protected override async Task FlushInternal(bool async, CancellationToken cancel Response response = await _fileClient.FlushInternal( position: _writeIndex, retainUncommittedData: default, - close: default, + close: _closeEvent, httpHeaders: default, conditions: _conditions, async: async, diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileOpenWriteOptions.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileOpenWriteOptions.cs index 8a073deefaf38..55d5adbdbfca1 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileOpenWriteOptions.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileOpenWriteOptions.cs @@ -27,5 +27,17 @@ public class DataLakeFileOpenWriteOptions /// progress updates about data transfers. /// public IProgress ProgressHandler { get; set; } + + /// + /// Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, + /// a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the + /// difference between an intermediate flush to a file stream and the final close of a file stream. The close query parameter + /// is valid only when the action is "flush" and change notifications are enabled. If the value of close is "true" and the + /// flush operation completes successfully, the service raises a file change notification with a property indicating that + /// this is the final update (the file stream has been closed). If "false" a change notification is raised indicating the + /// file has changed. The default is false. This query parameter is set to true by the Hadoop ABFS driver to indicate that + /// the file stream has been closed. + /// + public bool? Close { get; set; } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileUploadOptions.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileUploadOptions.cs index 8cab05ec5677b..0bc0f6806b5ec 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileUploadOptions.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Models/DataLakeFileUploadOptions.cs @@ -50,14 +50,6 @@ public class DataLakeFileUploadOptions /// public IProgress ProgressHandler { get; set; } - /// - /// If "true", uncommitted data is retained after the flush operation completes; otherwise, the uncommitted data is deleted - /// after the flush operation. The default is false. Data at offsets less than the specified position are written to the - /// file when flush succeeds, but this optional parameter allows data after the flush position to be retained for a future - /// flush operation. - /// - public bool? RetainUncommittedData { get; set; } - /// /// Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, /// a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs index 6725275bbcef0..9e36c43fde46c 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs @@ -2878,7 +2878,7 @@ await file.UploadAsync( } [Test] - public async Task UploadAsync_CloseAndRetainData() + public async Task UploadAsync_Close() { // Arrange await using DisposingFileSystem test = await GetNewFileSystem(); @@ -2889,7 +2889,6 @@ public async Task UploadAsync_CloseAndRetainData() DataLakeFileUploadOptions options = new DataLakeFileUploadOptions { Close = true, - RetainUncommittedData = true }; // Act @@ -4201,6 +4200,7 @@ await TestHelper.AssertExpectedExceptionAsync( openWriteStream.FlushAsync(), e => Assert.AreEqual("ConditionNotMet", e.ErrorCode)); } + [Test] public async Task OpenWriteAsync_ProgressReporting() { @@ -4337,5 +4337,30 @@ await file.OpenWriteAsync( }); } } + + [Test] + public async Task OpenWriteAsync_Close() + { + // Arrange + await using DisposingFileSystem test = await GetNewFileSystem(); + DataLakeFileClient file = InstrumentClient(test.FileSystem.GetFileClient(GetNewFileName())); + await file.CreateAsync(); + + byte[] data = GetRandomBuffer(Constants.KB); + using Stream stream = new MemoryStream(data); + + DataLakeFileOpenWriteOptions options = new DataLakeFileOpenWriteOptions + { + Close = true, + BufferSize = 256 + }; + + // Act + Stream openWriteStream = await file.OpenWriteAsync( + overwrite: false, + options); + await stream.CopyToAsync(openWriteStream); + await openWriteStream.FlushAsync(); + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/OpenWriteAsync_Close.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/OpenWriteAsync_Close.json new file mode 100644 index 0000000000000..cae1569db9eae --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/OpenWriteAsync_Close.json @@ -0,0 +1,302 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-caaf5cae593dd04daa4908bc328d5341-d291fa97aaf20c4d-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "33c73464-806e-71fe-15ca-ce11d67577c6", + "x-ms-date": "Mon, 14 Sep 2020 20:10:40 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:41 GMT", + "ETag": "\u00220x8D858EA41B8445D\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "33c73464-806e-71fe-15ca-ce11d67577c6", + "x-ms-request-id": "9d2cfe7b-501e-0046-5dd3-8a7927000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1?resource=file", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e7eddb302d57dc488c16e9c39ea5349c-25fa248a1c78da45-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "5e075d92-6ffa-b469-b2e4-2815d2f33df8", + "x-ms-date": "Mon, 14 Sep 2020 20:10:41 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "ETag": "\u00220x8D858EA4225E0E9\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "5e075d92-6ffa-b469-b2e4-2815d2f33df8", + "x-ms-request-id": "64212629-001f-0064-35d3-8abc38000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4cce66e154d8134587ee948239e5a345-c096672c04bc8a42-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "234ce03d-ac7b-3f05-1e94-343b027e798f", + "x-ms-date": "Mon, 14 Sep 2020 20:10:41 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "ETag": "\u00220x8D858EA4225E0E9\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-client-request-id": "234ce03d-ac7b-3f05-1e94-343b027e798f", + "x-ms-creation-time": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-request-id": "9d2cfeb1-501e-0046-7bd3-8a7927000000", + "x-ms-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1?action=append\u0026position=0", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "02b214ad-544c-a39d-c729-0a4c409048ab", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "5ezXxQrlFTiPYsySbj1Mk78zeNcVhufJp7bfy9NG9pHiSV\u002Bqn9RvrEfOz5ei10Z0l5VVnntm414FDR1UBUplSWs7sCTeovPrw8uPRrZPJ9BvajQ\u002B8FgWe2YApJG2G6b9aYYsZyYhlvWhatuv1p2ntuZN5JsVJ1gTJTS\u002B3f1hNKgkkd0wI7\u002BpTtQ\u002BnIZ8Z6XIWO6raDYL50EuGELxYrj3QDUzikTAd5Mmo5bG14vRlr2P9YUPtstxGaqbAgp9t\u002BsbRltRSd1gCOFbhMWgRBC2XIGEYmwz6IppwXCaJHWIqeuqq5AvgE3gL\u002ByjszEG0NSZ5aWI\u002BVV\u002B517R54dsxeRr0g==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "02b214ad-544c-a39d-c729-0a4c409048ab", + "x-ms-request-id": "6421262a-001f-0064-36d3-8abc38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1?action=append\u0026position=256", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "ee8db611-76cb-fd42-70c8-84aa3ef12ed0", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "2tn2mYCG3DSjMn\u002BPNVhi8ZwAP88AsJYrwzJdmMV0aQg34Fct2ToZXslTVSL/WCh5hZbPxKSb0ipCytVOKENvL8l3V1QBNRdh5\u002BEGrFtzLGsJ5BMvpKVkmw4s6g5kyzWF5CVZhwDUeE9\u002Bbt3DlSbPz55qREQwP4ojErtF1EoI/Bysgcc1GqRrNGzDsTbIoQboXRtw\u002BobwVKSbNXVEjqMEdXHAFhNemrT6/xDXbY5TW3G1XXcvmAKVuywjmeQvJ6XIvjvFB4rzicJmdvt2GecVR9kDjjEs1d1uK1vmOgDQytdqDq5TjlTnwtO0yCIHH6JFDVIKLJh0nOleVtwvDE/Clg==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ee8db611-76cb-fd42-70c8-84aa3ef12ed0", + "x-ms-request-id": "6421262b-001f-0064-37d3-8abc38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1?action=append\u0026position=512", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "893af22c-5a02-80df-048c-ca1a97d6b5b1", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "qyMLCjjCuIUbzF14DLpnC7ihLa7Fnj/2csX1N3i4tYTxMnbjFJgMS5mFEMsWI9yj7tB2aiIT0QzjFZdzzYANYxbZhtlEg/YgleEVP45030/oUUmnQkti3WFpAP8AmH4YeKy0PZwCX2rZVdRA/pF\u002BbzVIins3ZSHLdqh42oP3H/xi/Mfhv6Gy5fLezex2Id7Q65HJuA0D4BKL6cb0ioXn4jbY3gLJna\u002BTlqWJWZc0VFXKp\u002B/xLWfuXxy0Vdbbvlpt9uu2nkPcBk7iNiJoeod6VpRxKeKW9bTO6X7mFEfYuNhKG2KsfrUR7aChD/dEhuWUOf5BaZR41wA257XE9vIGCQ==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "893af22c-5a02-80df-048c-ca1a97d6b5b1", + "x-ms-request-id": "6421262c-001f-0064-38d3-8abc38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1?action=append\u0026position=768", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "4b7d2e42-a4b6-18cd-041e-f5ef7d7ff9bd", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "fUodXiTO2N5fPEH15b2KYplR2kiXT0PSRGJ2lgBM9q6aBnn6aIZwayZiCVc24ht4XVIrpRe\u002BcS4GSxnCV0HeEkWTWt5Dj/kS4G4iNEXsm2JG/jmtIVGW3JRL8xxsrhTkhPYRo4c8NM1YGMSomz3oGbC3e1gHMPH0/H5K95vdpjJaPbBO2vjaCslsVAmN7kBXY9pstTK73VMFHaYJ8j0xe3KRTl6NmT\u002B33HCPm9voZg498pTBcPH/nmBcSb1R0RiMO9mW\u002B5/hysmatdjBLEF3HLaYy/\u002BobwuAkq/\u002BMFCBZQtYAmACUWtuXCjLJrsYPXIe5CwGuQUY5MvNFmjw4pl4GQ==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "4b7d2e42-a4b6-18cd-041e-f5ef7d7ff9bd", + "x-ms-request-id": "6421262d-001f-0064-39d3-8abc38000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca/test-file-512bea34-b0b2-e382-0a59-ad0a341ce5e1?action=flush\u0026position=1024\u0026close=true", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "0", + "If-Match": "\u00220x8D858EA4225E0E9\u0022", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "69d83720-6958-09fa-2435-32b30dab4b9c", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:42 GMT", + "ETag": "\u00220x8D858EA42787658\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:43 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "69d83720-6958-09fa-2435-32b30dab4b9c", + "x-ms-request-id": "6421262e-001f-0064-3ad3-8abc38000000", + "x-ms-request-server-encrypted": "false", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-9ec99348-5814-2e58-07fa-2dcfc6772eca?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dd21b9930c49434aa6402b546ad8db9c-8873d839f175764a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "46cec3b4-90a6-9f65-b3b8-7a5a1bd11bab", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:43 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "46cec3b4-90a6-9f65-b3b8-7a5a1bd11bab", + "x-ms-request-id": "9d2cfee3-501e-0046-16d3-8a7927000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1116691881", + "Storage_TestConfigHierarchicalNamespace": "NamespaceTenant\nseannsecanary\nU2FuaXRpemVk\nhttps://seannsecanary.blob.core.windows.net\nhttps://seannsecanary.file.core.windows.net\nhttps://seannsecanary.queue.core.windows.net\nhttps://seannsecanary.table.core.windows.net\n\n\n\n\nhttps://seannsecanary-secondary.blob.core.windows.net\nhttps://seannsecanary-secondary.file.core.windows.net\nhttps://seannsecanary-secondary.queue.core.windows.net\nhttps://seannsecanary-secondary.table.core.windows.net\n68390a19-a643-458b-b726-408abf67b4fc\nSanitized\n72f988bf-86f1-41af-91ab-2d7cd011db47\nhttps://login.microsoftonline.com/\nCloud\nBlobEndpoint=https://seannsecanary.blob.core.windows.net/;QueueEndpoint=https://seannsecanary.queue.core.windows.net/;FileEndpoint=https://seannsecanary.file.core.windows.net/;BlobSecondaryEndpoint=https://seannsecanary-secondary.blob.core.windows.net/;QueueSecondaryEndpoint=https://seannsecanary-secondary.queue.core.windows.net/;FileSecondaryEndpoint=https://seannsecanary-secondary.file.core.windows.net/;AccountName=seannsecanary;AccountKey=Sanitized\n" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/OpenWriteAsync_CloseAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/OpenWriteAsync_CloseAsync.json new file mode 100644 index 0000000000000..454234167ecfb --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/OpenWriteAsync_CloseAsync.json @@ -0,0 +1,302 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5aaa1eef0118fc479268518da2176b6c-2cced5edfc24a74c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "3df6c4ae-248c-e69a-4036-c9455c28d65f", + "x-ms-date": "Mon, 14 Sep 2020 20:10:44 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:45 GMT", + "ETag": "\u00220x8D858EA43C62711\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:45 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "3df6c4ae-248c-e69a-4036-c9455c28d65f", + "x-ms-request-id": "c4a3c0ae-f01e-0002-5ed3-8af318000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63?resource=file", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0686758109eee743ad86676b0b156b64-36944398d8c78b45-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "86df12fe-e781-e87f-978c-1eacd936601c", + "x-ms-date": "Mon, 14 Sep 2020 20:10:45 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "ETag": "\u00220x8D858EA44539318\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:46 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "86df12fe-e781-e87f-978c-1eacd936601c", + "x-ms-request-id": "ce2d81a5-e01f-0098-4cd3-8a6dc1000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cf719aab28eed4498c1cdeec625bc9fa-a6100f4f4ce6994b-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "96ca59ba-bf7c-631f-8904-79802c5a0295", + "x-ms-date": "Mon, 14 Sep 2020 20:10:45 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "0", + "Content-Type": "application/octet-stream", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "ETag": "\u00220x8D858EA44539318\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:46 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-client-request-id": "96ca59ba-bf7c-631f-8904-79802c5a0295", + "x-ms-creation-time": "Mon, 14 Sep 2020 20:10:46 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-request-id": "c4a3c10b-f01e-0002-25d3-8af318000000", + "x-ms-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63?action=append\u0026position=0", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "ad6c4204-bf86-0715-a9c8-96af1c1a4ada", + "x-ms-date": "Mon, 14 Sep 2020 20:10:45 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "OmaUcUbcbIAkQBWsFislcbzBZXNEdeLIbPliZs0dz955ksbeGLJDIqVeYUDR0tFrZqzvGNHt2MSEywRNeQazB3E3M4RkR1gJfUPN5RSh95kn9/8gLrYMjLoCWk2t9aifq1rPmZ9NBh9U5ZqNIPKw4tRrJYEGkti6K6bKYu0LW4eaLTm60V352vHgzEgcfmzHUnd4QtAmmBiBFW74g6MxSIkS8/K49RF3cUuQJsaPnqw6AhB2kxm3dJQgOLvuAVdNroO/CYt5DlxlANCFlXJS8XfCvoCTu7VvW39emLxViXDzQ3dC0JQgwPS0EJJIMt4hzUdELELWuvPOT64MG3afEA==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ad6c4204-bf86-0715-a9c8-96af1c1a4ada", + "x-ms-request-id": "ce2d81a6-e01f-0098-4dd3-8a6dc1000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63?action=append\u0026position=256", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "e97b0977-55ee-990f-d055-45e197c4097b", + "x-ms-date": "Mon, 14 Sep 2020 20:10:45 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "d2CRUvsQIeOh/YzeqyInKKA8ynUQXS0ciYRzgOUUpX0U/xvooIsmvSVhikVK20esKIVr36wq/xkydMl2naD9jFcOyqsGPogVFQxQr9Lo0q08x1hgqcbR6v8BtivCryCEY/3uOxCbpen9Vsmf2VBHSqIbOtZIneORPd\u002BsBYdcU2bsy0vV\u002BpacoCFuYlP9MhCvumyJpnVKO8YZXP4x76BioAJisg4EcU8Mfpm02jqQkwrP/Eob06zwoo\u002BFu52Xa7GBDMJQmn8CqkgcfSfclWGLiMn0YfJVR81VcQ9\u002Bf7aydBPoMs54QPiLzVEB/lWFFAwu\u002BTLUowq\u002BLMX0\u002BihwhCuSag==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "e97b0977-55ee-990f-d055-45e197c4097b", + "x-ms-request-id": "ce2d81a7-e01f-0098-4ed3-8a6dc1000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63?action=append\u0026position=512", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "1338c70f-609f-e9eb-4c61-9aa62996f321", + "x-ms-date": "Mon, 14 Sep 2020 20:10:46 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "CBT0Y5MTSNBolKBTSHfQXQJPhYTe0QkpBQiERdAbSSZvlE1xIKmb5uoDOnUd2Xx9KsttNKYOizcLyl6KjwIATUt647QqXj1ZtJ6a2paTDCyMBhsErRSAYQgVZlVLEFfnA\u002BwqovXIUsuNE38Hc7Chd70x/ojn\u002B6A2\u002BoGrFfjnDqRHstepaWo2w7RPd5mVee1YdO6YGRLP/whM86h0HT3TpgXbv8HZ9w5T\u002BjrTmIQGoYGTU6AJTvSRd7LPXXXBwqZ2e9CUurksfnzgRR/Y\u002B2eERlIn4MqcylcRSUgOCpqYkTeTXByzcubHZ9QkKAnVuHtLShcjmuLc2rF4gnBxHnTiSA==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "1338c70f-609f-e9eb-4c61-9aa62996f321", + "x-ms-request-id": "ce2d81a8-e01f-0098-4fd3-8a6dc1000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63?action=append\u0026position=768", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "256", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "d0d22cdd-f68c-94dc-6a66-015e86cd6b34", + "x-ms-date": "Mon, 14 Sep 2020 20:10:46 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "tOdEn0rQ02tfefV4oU47kMzDv4N09lW2gms673ZWSF9C4FXtdNwAeUO3OmjmYg8qR9\u002BkW7Re072SjR3eluT1CTCWNsH5ThzvwkVAvLvs0B9cEKiWse2q4wyXW\u002Ba/IuNfwjE4UCxOMPjCtZhvHhYBpb39goY7XldC61O1YfI2MKBi4PqKtH/zDt\u002Bv0/xVO8T1lbYowZ9dI2TZ9WXZmM4GjIT4DT0cd/E\u002BCXSmjIpb7a\u002BOv8w8Dm8ABL2VsL4aGnUQqUd4XC6G2B3E6rcrtpbZfge1StkCyn0V9wiAh8cyI\u002B//luND45GACOeudyS31U4nvDG2ZNCbDd/JYmQmBlFVkQ==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "d0d22cdd-f68c-94dc-6a66-015e86cd6b34", + "x-ms-request-id": "ce2d81a9-e01f-0098-50d3-8a6dc1000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956/test-file-2ae9ee6c-c586-6a2d-1fe0-4a648523fb63?action=flush\u0026position=1024\u0026close=true", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "0", + "If-Match": "\u00220x8D858EA44539318\u0022", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "fdc8a387-23c4-a494-a7b1-cfda6ab0cfc7", + "x-ms-date": "Mon, 14 Sep 2020 20:10:46 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:46 GMT", + "ETag": "\u00220x8D858EA44B1FF8B\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:47 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "fdc8a387-23c4-a494-a7b1-cfda6ab0cfc7", + "x-ms-request-id": "ce2d81aa-e01f-0098-51d3-8a6dc1000000", + "x-ms-request-server-encrypted": "false", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-fd611178-f838-7070-cdc3-f190bee92956?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-51958fdfa17aaf48a8265a70b68662ec-9e4d9708f250b74b-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "e3d6e10a-6e05-c96f-11a3-94e06ffc3908", + "x-ms-date": "Mon, 14 Sep 2020 20:10:46 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:47 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "e3d6e10a-6e05-c96f-11a3-94e06ffc3908", + "x-ms-request-id": "c4a3c14d-f01e-0002-62d3-8af318000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "738291464", + "Storage_TestConfigHierarchicalNamespace": "NamespaceTenant\nseannsecanary\nU2FuaXRpemVk\nhttps://seannsecanary.blob.core.windows.net\nhttps://seannsecanary.file.core.windows.net\nhttps://seannsecanary.queue.core.windows.net\nhttps://seannsecanary.table.core.windows.net\n\n\n\n\nhttps://seannsecanary-secondary.blob.core.windows.net\nhttps://seannsecanary-secondary.file.core.windows.net\nhttps://seannsecanary-secondary.queue.core.windows.net\nhttps://seannsecanary-secondary.table.core.windows.net\n68390a19-a643-458b-b726-408abf67b4fc\nSanitized\n72f988bf-86f1-41af-91ab-2d7cd011db47\nhttps://login.microsoftonline.com/\nCloud\nBlobEndpoint=https://seannsecanary.blob.core.windows.net/;QueueEndpoint=https://seannsecanary.queue.core.windows.net/;FileEndpoint=https://seannsecanary.file.core.windows.net/;BlobSecondaryEndpoint=https://seannsecanary-secondary.blob.core.windows.net/;QueueSecondaryEndpoint=https://seannsecanary-secondary.queue.core.windows.net/;FileSecondaryEndpoint=https://seannsecanary-secondary.file.core.windows.net/;AccountName=seannsecanary;AccountKey=Sanitized\n" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_Close.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_Close.json new file mode 100644 index 0000000000000..b2fadc65d3ebe --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_Close.json @@ -0,0 +1,210 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-e9ca08fa-90c6-cbbe-b9ff-8cb4473692d5?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c751f9a9f51fd740ab3a435c5cf0dee8-0298b29e4ee51d49-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "3d41b23d-337f-c78c-9d04-8faa07f9707a", + "x-ms-date": "Mon, 14 Sep 2020 20:10:42 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:44 GMT", + "ETag": "\u00220x8D858EA42D23B73\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:43 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "3d41b23d-337f-c78c-9d04-8faa07f9707a", + "x-ms-request-id": "4248b6c0-601e-005d-2dd3-8a4724000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-e9ca08fa-90c6-cbbe-b9ff-8cb4473692d5/test-file-30ca7173-65d8-2281-8db9-df801aa3a47d?resource=file", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-965a307b0e17d742bda376724e97cf02-22f6ab36dd5f5543-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "1aee00d6-28b7-8e36-41d9-f9658b2a274c", + "x-ms-date": "Mon, 14 Sep 2020 20:10:43 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:43 GMT", + "ETag": "\u00220x8D858EA432DEF62\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:44 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "1aee00d6-28b7-8e36-41d9-f9658b2a274c", + "x-ms-request-id": "0e98b389-801f-008e-6cd3-8a9b16000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-e9ca08fa-90c6-cbbe-b9ff-8cb4473692d5/test-file-30ca7173-65d8-2281-8db9-df801aa3a47d?action=append\u0026position=0", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "1024", + "traceparent": "00-0c0d373c8062e449ba3f60644e8e4f28-0d88b6b4dfc0a74a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "1681c9ad-1a14-92e7-3b13-5e0167cf84e2", + "x-ms-date": "Mon, 14 Sep 2020 20:10:43 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "Lyx3lPVVVSMwqtmDSM8JENX8p7RwnofXMB6vxlMLrfpfEXrbgtuFHRynAC6M/dq\u002BsM\u002BrHfvvDZGkn2TWpo7PJPzeIzZULo35d4qYyZ5ZSzJD8BaEYI/\u002BbwTpNuN3rnaN19wxrdqkaoFCsaZwV0PzS1QxkrZ4S8Ns37MxavepgcgTCvLBJ51Yn4WUQa/pjhjB9uqPRhvAFYwYxM0mcgCKmC/dXU1RMSS22PMw4wkUg1GbcHQNGjutU/RlqGLPMiyFCql/CzDLcMTG2G0ojzKCBEF7igKLfX70MAlY64jB5qbGqtlglHch0ACvRkHNhMPC46QhVKcp\u002BYwqi9sncoQ8BPHHYeRYIXDJWroC3DY8JqtFlQfkoJL\u002BnbFMNQmc\u002Bl17ckJQBSPfasEzV/ntJx1W7mQv4d18V2NfycQzDOtnLWBdh2n07CGIZitGsEmYEXWT9UekbRh//hve8Dxeq13VzCqYj6CzYgJDp3qxNqcaxrdOnxakwsBH3YhOFfvkKbrNcOQfAIHV35NFYcWezch0xCqEEAtHMQppUbIXZUwGXn2/5MbC\u002B8Y2eMCCXmD6qA/A2lHRYBivhj7ata7OvnpGPwNH3\u002BkBschjTZdLxNKpb6ijV4v7NP5lEF6H6EUXaLpFPB9dssklviiIbRKBY8FsMEUGK2fuSwoF4s\u002BLesmCTOXdBYiyTL3efZhicsfr462cG7cAETxTVvAVWM/6mkRfBiEso104ueSIJ63OjNhCGf4i7l8Rgjuoiq6XnfTt5ONUAmymvkBPY2HTd\u002BmPhMoY0j7Q2KvkToPmgxmuoBzwm0PJeopsnFq\u002B0or9PgtRGQXkf8q1HQw4b7TovzsmocNF4tymxgo/rDbkEQUg5xB4lGoTySBROn03kQrWg9wflzHHt1svq1L7pNOU0QsGF4ijcCvQE9ei86hebzX/aShZxHrUWC\u002B0SOkXGCRNvWlyMHmBMhKxT4RZJcSz0Tsd\u002BzqqOgyRMr9Z7yhBuPuyVTY\u002B6z67fTcWp3X1ejNrAXet\u002BhzqooJc4f66KEPqcJaJp9CNdOX9Yn0Dk5KXm7eL7e2wk77eyLKz4gpAAVX0LDfebNNj3Y2SsJie5g7wxUVHLjpVOdzYqt4d2pHavGAoDmdbuC/jKBBfHuMlP\u002BGjwxzF\u002BdManvJbBcL1RQL7t/M3dtenlQwVYwUq9hv4smr8ehd0FcOMDnB0/7Js7uMNY2fv7skK/C4Pr5XN8KjXY1NY\u002BMvrhqEwq2hnMpVaqHQiHJK0CcSg8n3pZWUuvx3HnZxfFPYXIt3Fv0NhosqYtQYgqtMWI1qOtwZOAiE7AetKn5T5\u002BpR\u002BC/m17kmBP0\u002ByUK9fDRVJsHpC0V3wySC7ib1XFwM1ng==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:43 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "1681c9ad-1a14-92e7-3b13-5e0167cf84e2", + "x-ms-request-id": "0e98b38a-801f-008e-6dd3-8a9b16000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-e9ca08fa-90c6-cbbe-b9ff-8cb4473692d5/test-file-30ca7173-65d8-2281-8db9-df801aa3a47d?action=flush\u0026position=1024\u0026close=true", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-5cb6d0de4cf27042bdec7d6f8ade4bf1-f3056a589160c742-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "c2b7b069-10a8-6238-ca61-b057176ee776", + "x-ms-date": "Mon, 14 Sep 2020 20:10:43 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:43 GMT", + "ETag": "\u00220x8D858EA43437AC5\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:44 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c2b7b069-10a8-6238-ca61-b057176ee776", + "x-ms-request-id": "0e98b38b-801f-008e-6ed3-8a9b16000000", + "x-ms-request-server-encrypted": "false", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-e9ca08fa-90c6-cbbe-b9ff-8cb4473692d5/test-file-30ca7173-65d8-2281-8db9-df801aa3a47d", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4f12a3d43503704e88c70d4c84c960b6-8b76e309b686464d-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "b6974bbe-c217-3f39-32bb-341c3e304922", + "x-ms-date": "Mon, 14 Sep 2020 20:10:43 GMT", + "x-ms-range": "bytes=0-268435455", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 206, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "1024", + "Content-Range": "bytes 0-1023/1024", + "Content-Type": "application/octet-stream", + "Date": "Mon, 14 Sep 2020 20:10:44 GMT", + "ETag": "\u00220x8D858EA43437AC5\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:44 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-blob-type": "BlockBlob", + "x-ms-client-request-id": "b6974bbe-c217-3f39-32bb-341c3e304922", + "x-ms-creation-time": "Mon, 14 Sep 2020 20:10:44 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-request-id": "4248b774-601e-005d-17d3-8a4724000000", + "x-ms-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": "Lyx3lPVVVSMwqtmDSM8JENX8p7RwnofXMB6vxlMLrfpfEXrbgtuFHRynAC6M/dq\u002BsM\u002BrHfvvDZGkn2TWpo7PJPzeIzZULo35d4qYyZ5ZSzJD8BaEYI/\u002BbwTpNuN3rnaN19wxrdqkaoFCsaZwV0PzS1QxkrZ4S8Ns37MxavepgcgTCvLBJ51Yn4WUQa/pjhjB9uqPRhvAFYwYxM0mcgCKmC/dXU1RMSS22PMw4wkUg1GbcHQNGjutU/RlqGLPMiyFCql/CzDLcMTG2G0ojzKCBEF7igKLfX70MAlY64jB5qbGqtlglHch0ACvRkHNhMPC46QhVKcp\u002BYwqi9sncoQ8BPHHYeRYIXDJWroC3DY8JqtFlQfkoJL\u002BnbFMNQmc\u002Bl17ckJQBSPfasEzV/ntJx1W7mQv4d18V2NfycQzDOtnLWBdh2n07CGIZitGsEmYEXWT9UekbRh//hve8Dxeq13VzCqYj6CzYgJDp3qxNqcaxrdOnxakwsBH3YhOFfvkKbrNcOQfAIHV35NFYcWezch0xCqEEAtHMQppUbIXZUwGXn2/5MbC\u002B8Y2eMCCXmD6qA/A2lHRYBivhj7ata7OvnpGPwNH3\u002BkBschjTZdLxNKpb6ijV4v7NP5lEF6H6EUXaLpFPB9dssklviiIbRKBY8FsMEUGK2fuSwoF4s\u002BLesmCTOXdBYiyTL3efZhicsfr462cG7cAETxTVvAVWM/6mkRfBiEso104ueSIJ63OjNhCGf4i7l8Rgjuoiq6XnfTt5ONUAmymvkBPY2HTd\u002BmPhMoY0j7Q2KvkToPmgxmuoBzwm0PJeopsnFq\u002B0or9PgtRGQXkf8q1HQw4b7TovzsmocNF4tymxgo/rDbkEQUg5xB4lGoTySBROn03kQrWg9wflzHHt1svq1L7pNOU0QsGF4ijcCvQE9ei86hebzX/aShZxHrUWC\u002B0SOkXGCRNvWlyMHmBMhKxT4RZJcSz0Tsd\u002BzqqOgyRMr9Z7yhBuPuyVTY\u002B6z67fTcWp3X1ejNrAXet\u002BhzqooJc4f66KEPqcJaJp9CNdOX9Yn0Dk5KXm7eL7e2wk77eyLKz4gpAAVX0LDfebNNj3Y2SsJie5g7wxUVHLjpVOdzYqt4d2pHavGAoDmdbuC/jKBBfHuMlP\u002BGjwxzF\u002BdManvJbBcL1RQL7t/M3dtenlQwVYwUq9hv4smr8ehd0FcOMDnB0/7Js7uMNY2fv7skK/C4Pr5XN8KjXY1NY\u002BMvrhqEwq2hnMpVaqHQiHJK0CcSg8n3pZWUuvx3HnZxfFPYXIt3Fv0NhosqYtQYgqtMWI1qOtwZOAiE7AetKn5T5\u002BpR\u002BC/m17kmBP0\u002ByUK9fDRVJsHpC0V3wySC7ib1XFwM1ng==" + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-e9ca08fa-90c6-cbbe-b9ff-8cb4473692d5?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c0f61d8547127347894a206f05e18c1b-097a630efec94f48-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "cc99c633-30d6-ea5f-a854-9d553bad7e10", + "x-ms-date": "Mon, 14 Sep 2020 20:10:44 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:44 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "cc99c633-30d6-ea5f-a854-9d553bad7e10", + "x-ms-request-id": "4248b7a0-601e-005d-3dd3-8a4724000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1853894837", + "Storage_TestConfigHierarchicalNamespace": "NamespaceTenant\nseannsecanary\nU2FuaXRpemVk\nhttps://seannsecanary.blob.core.windows.net\nhttps://seannsecanary.file.core.windows.net\nhttps://seannsecanary.queue.core.windows.net\nhttps://seannsecanary.table.core.windows.net\n\n\n\n\nhttps://seannsecanary-secondary.blob.core.windows.net\nhttps://seannsecanary-secondary.file.core.windows.net\nhttps://seannsecanary-secondary.queue.core.windows.net\nhttps://seannsecanary-secondary.table.core.windows.net\n68390a19-a643-458b-b726-408abf67b4fc\nSanitized\n72f988bf-86f1-41af-91ab-2d7cd011db47\nhttps://login.microsoftonline.com/\nCloud\nBlobEndpoint=https://seannsecanary.blob.core.windows.net/;QueueEndpoint=https://seannsecanary.queue.core.windows.net/;FileEndpoint=https://seannsecanary.file.core.windows.net/;BlobSecondaryEndpoint=https://seannsecanary-secondary.blob.core.windows.net/;QueueSecondaryEndpoint=https://seannsecanary-secondary.queue.core.windows.net/;FileSecondaryEndpoint=https://seannsecanary-secondary.file.core.windows.net/;AccountName=seannsecanary;AccountKey=Sanitized\n" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAndRetainData.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAndRetainData.json deleted file mode 100644 index f4b1fe38acfdc..0000000000000 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAndRetainData.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-5f201bfb-6364-0ec2-5428-c60b1a409893?restype=container", - "RequestMethod": "PUT", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-373b0b5b7090114bab665f27f84c0671-ba5da75fd3da8344-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-blob-public-access": "container", - "x-ms-client-request-id": "f9633d39-0f65-bd69-c5a3-7bde6e980f24", - "x-ms-date": "Thu, 10 Sep 2020 00:43:18 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:20 GMT", - "ETag": "\u00220x8D8552283917719\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:19 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "f9633d39-0f65-bd69-c5a3-7bde6e980f24", - "x-ms-request-id": "273d8469-a01e-0052-2d0b-873148000000", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-5f201bfb-6364-0ec2-5428-c60b1a409893/test-file-3262640f-b458-48b9-51b8-361557bdde2d?resource=file", - "RequestMethod": "PUT", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-ac6c6a98f932f74488978ac7e2ffa588-a8cde5c73dac094c-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "ba29be66-0f23-2261-e53b-52d41ee064f2", - "x-ms-date": "Thu, 10 Sep 2020 00:43:18 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:19 GMT", - "ETag": "\u00220x8D855228405DBFD\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:20 GMT", - "Server": [ - "Windows-Azure-HDFS/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "ba29be66-0f23-2261-e53b-52d41ee064f2", - "x-ms-request-id": "a691112f-a01f-0030-0c0b-87f36f000000", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-5f201bfb-6364-0ec2-5428-c60b1a409893/test-file-3262640f-b458-48b9-51b8-361557bdde2d?action=append\u0026position=0", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Authorization": "Sanitized", - "Content-Length": "1024", - "traceparent": "00-1b67afa1f37e3e4084b8e6aa91e51789-350cab00836a8a40-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "3078a384-512e-0243-3a6b-bc26f75af09b", - "x-ms-date": "Thu, 10 Sep 2020 00:43:19 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": "0EnR3NyeLTxHVYNvNuv5jz/o9svEJSSFhBqorNlUZgjETg4kxzNHcDcl6gMwSRJmv6bVb8cTaKolTFfB9oBj8\u002B97qujc1MgLoIWTnzshVDoIQu0yfvZAseZj/3vbhXq3wvcTtZ8pieveys5Cf8lvA/ccubSTMXT4OvkBedRNLxoK3N1DDp\u002Bb3rgBU7Qo/jEd8/yDv8zGI5CCGnqlKBAWkJq0N6PsLPVYgdr8kd3A0DvI5IXYynBNRLhMwfMk9ban6sMadMeOMccHKj3yyZKywUo/3UOKPsYpZvLqn2oBNIsjVKYaplx0ObO\u002B0Z8yW3ommv\u002Bo5BhzHKz88A3UpJFdBfayz3Xrlxvuy6OQzGwn9gt4wwVqWU9zsDf5HrVOn5UhYMuogIsEOwLkuhl04k8/1fkCXOCM8qymPx8\u002B8XlmoCsOb2uhfnZ/c4gChp42/s3nukm7S0O1lG4fAkBsxkmJfRruZnLjnleDguhXimsNcEBRVjcwqlToWNv9gXw1E6w/eAiER5hbAxvxOMhaXQkCEZEAGnARWdPFBg2X5h3bTW48GBFiiSin9lIcPnKLjfvR\u002Bm/qNfk8LR81v0GLxB3\u002BFupaHkT4n4hoWCQd9RthOXgSxeyt8Bh1AOvyLcrmHDI1HSeHMW622VrmgdzVHjcD04XJef4wUCbS5B5ZBXK\u002BgTzy6Nf02ggKW\u002BuRx247oOGz7llEHaMzBM0BtUxQXNToJ/\u002Bg4zZgD/l8vx0Sn4m3lkQ8phYYeWSZvuMJ8iW7uf4XqZ9um72rUt9fyF6FIGVESR4IE7a9z62bByRSVhzUwAUe\u002B/XpSPqGkVM3uLEFE519xagGsqZIWdnx05SYWPzCiwdZZyVvWgEjgYJihhf8lfSG1ZBzzg5e1aEc93Vl7jhXdS2qrKt4DWqn4jAk5tPC9T2gEoNrTrz5\u002BpKDU2KMvpNJChHpUuhIDsclzOzdOu/OWQI3xdy06yZwsLIZ9boIGySc2tvB2KNUWAO8RYHQHL\u002BjtPpgVPi3lB/qeKE2LxgNHbDHQF8TDIBe423Y\u002BKWkoJTydkC/p8cr5EW812ACHijrryjQCdxgj6h5AXGL35x5RdgNQ7nYTXXpm1sZVzUgXMRE7El905e4kuaXRqZWoAWpQpGH9NtvEmGy522ARjhzWKSsR/JT\u002B3FBVbDSQAbPk/tWcBSjmWfp1Nrny\u002BwqN0yuJO0BqVgSVkcfRp8rndFb4lRxKtYjz789w3IYay\u002BFFx1kJBwYzemiQxnNg1LHvTcIjOiYuAx1ilQuxObm\u002BeoXmi\u002BCx3i1QhRqzua8VktsdQU6EN9H7F4R7pnH6gkDvEoutekjRfa/UkrULuoluDMJwU/grOkL0K3RcNje7lcLZg==", - "StatusCode": 202, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:19 GMT", - "Server": [ - "Windows-Azure-HDFS/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "3078a384-512e-0243-3a6b-bc26f75af09b", - "x-ms-request-id": "a6911130-a01f-0030-0d0b-87f36f000000", - "x-ms-request-server-encrypted": "true", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-5f201bfb-6364-0ec2-5428-c60b1a409893/test-file-3262640f-b458-48b9-51b8-361557bdde2d?action=flush\u0026position=1024\u0026retainUncommittedData=true\u0026close=true", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Authorization": "Sanitized", - "Content-Length": "0", - "traceparent": "00-70c3b5ee11922143b24b597a010f61d0-5287c4753746214d-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "7a50f54d-3467-77c4-84d5-4ebfd68080c5", - "x-ms-date": "Thu, 10 Sep 2020 00:43:19 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:19 GMT", - "ETag": "\u00220x8D85522841E8BF6\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:20 GMT", - "Server": [ - "Windows-Azure-HDFS/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "7a50f54d-3467-77c4-84d5-4ebfd68080c5", - "x-ms-request-id": "a6911131-a01f-0030-0e0b-87f36f000000", - "x-ms-request-server-encrypted": "false", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-5f201bfb-6364-0ec2-5428-c60b1a409893/test-file-3262640f-b458-48b9-51b8-361557bdde2d", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-6b91fe17957b6b42bc80beb1081af195-b6d7cbed5e85974e-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "02d934bf-760a-2533-de32-72c7134afd97", - "x-ms-date": "Thu, 10 Sep 2020 00:43:19 GMT", - "x-ms-range": "bytes=0-268435455", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 206, - "ResponseHeaders": { - "Accept-Ranges": "bytes", - "Content-Length": "1024", - "Content-Range": "bytes 0-1023/1024", - "Content-Type": "application/octet-stream", - "Date": "Thu, 10 Sep 2020 00:43:20 GMT", - "ETag": "\u00220x8D85522841E8BF6\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:20 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-blob-type": "BlockBlob", - "x-ms-client-request-id": "02d934bf-760a-2533-de32-72c7134afd97", - "x-ms-creation-time": "Thu, 10 Sep 2020 00:43:20 GMT", - "x-ms-lease-state": "available", - "x-ms-lease-status": "unlocked", - "x-ms-request-id": "273d8513-a01e-0052-2c0b-873148000000", - "x-ms-server-encrypted": "true", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": "0EnR3NyeLTxHVYNvNuv5jz/o9svEJSSFhBqorNlUZgjETg4kxzNHcDcl6gMwSRJmv6bVb8cTaKolTFfB9oBj8\u002B97qujc1MgLoIWTnzshVDoIQu0yfvZAseZj/3vbhXq3wvcTtZ8pieveys5Cf8lvA/ccubSTMXT4OvkBedRNLxoK3N1DDp\u002Bb3rgBU7Qo/jEd8/yDv8zGI5CCGnqlKBAWkJq0N6PsLPVYgdr8kd3A0DvI5IXYynBNRLhMwfMk9ban6sMadMeOMccHKj3yyZKywUo/3UOKPsYpZvLqn2oBNIsjVKYaplx0ObO\u002B0Z8yW3ommv\u002Bo5BhzHKz88A3UpJFdBfayz3Xrlxvuy6OQzGwn9gt4wwVqWU9zsDf5HrVOn5UhYMuogIsEOwLkuhl04k8/1fkCXOCM8qymPx8\u002B8XlmoCsOb2uhfnZ/c4gChp42/s3nukm7S0O1lG4fAkBsxkmJfRruZnLjnleDguhXimsNcEBRVjcwqlToWNv9gXw1E6w/eAiER5hbAxvxOMhaXQkCEZEAGnARWdPFBg2X5h3bTW48GBFiiSin9lIcPnKLjfvR\u002Bm/qNfk8LR81v0GLxB3\u002BFupaHkT4n4hoWCQd9RthOXgSxeyt8Bh1AOvyLcrmHDI1HSeHMW622VrmgdzVHjcD04XJef4wUCbS5B5ZBXK\u002BgTzy6Nf02ggKW\u002BuRx247oOGz7llEHaMzBM0BtUxQXNToJ/\u002Bg4zZgD/l8vx0Sn4m3lkQ8phYYeWSZvuMJ8iW7uf4XqZ9um72rUt9fyF6FIGVESR4IE7a9z62bByRSVhzUwAUe\u002B/XpSPqGkVM3uLEFE519xagGsqZIWdnx05SYWPzCiwdZZyVvWgEjgYJihhf8lfSG1ZBzzg5e1aEc93Vl7jhXdS2qrKt4DWqn4jAk5tPC9T2gEoNrTrz5\u002BpKDU2KMvpNJChHpUuhIDsclzOzdOu/OWQI3xdy06yZwsLIZ9boIGySc2tvB2KNUWAO8RYHQHL\u002BjtPpgVPi3lB/qeKE2LxgNHbDHQF8TDIBe423Y\u002BKWkoJTydkC/p8cr5EW812ACHijrryjQCdxgj6h5AXGL35x5RdgNQ7nYTXXpm1sZVzUgXMRE7El905e4kuaXRqZWoAWpQpGH9NtvEmGy522ARjhzWKSsR/JT\u002B3FBVbDSQAbPk/tWcBSjmWfp1Nrny\u002BwqN0yuJO0BqVgSVkcfRp8rndFb4lRxKtYjz789w3IYay\u002BFFx1kJBwYzemiQxnNg1LHvTcIjOiYuAx1ilQuxObm\u002BeoXmi\u002BCx3i1QhRqzua8VktsdQU6EN9H7F4R7pnH6gkDvEoutekjRfa/UkrULuoluDMJwU/grOkL0K3RcNje7lcLZg==" - }, - { - "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-5f201bfb-6364-0ec2-5428-c60b1a409893?restype=container", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-062d8411f046ec4c9559bf3a5fc2ef51-db3081cbc7100f46-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "a10049b1-7da6-6aba-62ac-f68084f90e4e", - "x-ms-date": "Thu, 10 Sep 2020 00:43:19 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:20 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "a10049b1-7da6-6aba-62ac-f68084f90e4e", - "x-ms-request-id": "273d8525-a01e-0052-3a0b-873148000000", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - } - ], - "Variables": { - "RandomSeed": "244692557", - "Storage_TestConfigHierarchicalNamespace": "NamespaceTenant\nseannsecanary\nU2FuaXRpemVk\nhttps://seannsecanary.blob.core.windows.net\nhttps://seannsecanary.file.core.windows.net\nhttps://seannsecanary.queue.core.windows.net\nhttps://seannsecanary.table.core.windows.net\n\n\n\n\nhttps://seannsecanary-secondary.blob.core.windows.net\nhttps://seannsecanary-secondary.file.core.windows.net\nhttps://seannsecanary-secondary.queue.core.windows.net\nhttps://seannsecanary-secondary.table.core.windows.net\n68390a19-a643-458b-b726-408abf67b4fc\nSanitized\n72f988bf-86f1-41af-91ab-2d7cd011db47\nhttps://login.microsoftonline.com/\nCloud\nBlobEndpoint=https://seannsecanary.blob.core.windows.net/;QueueEndpoint=https://seannsecanary.queue.core.windows.net/;FileEndpoint=https://seannsecanary.file.core.windows.net/;BlobSecondaryEndpoint=https://seannsecanary-secondary.blob.core.windows.net/;QueueSecondaryEndpoint=https://seannsecanary-secondary.queue.core.windows.net/;FileSecondaryEndpoint=https://seannsecanary-secondary.file.core.windows.net/;AccountName=seannsecanary;AccountKey=Sanitized\n" - } -} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAndRetainDataAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAndRetainDataAsync.json deleted file mode 100644 index 419d1811cf8e8..0000000000000 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAndRetainDataAsync.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-90cb53a9-2493-ef7a-1818-ac8cd5d65a7f?restype=container", - "RequestMethod": "PUT", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-2b05dcb1629ea14bb60946c4283dfa00-421da9e7002fa44b-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-blob-public-access": "container", - "x-ms-client-request-id": "0a0473e5-f93e-51ff-0a78-51e6d19d40c0", - "x-ms-date": "Thu, 10 Sep 2020 00:43:19 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:21 GMT", - "ETag": "\u00220x8D85522848A91BC\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:21 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "0a0473e5-f93e-51ff-0a78-51e6d19d40c0", - "x-ms-request-id": "2d0a73b3-701e-0051-1a0b-87d02c000000", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-90cb53a9-2493-ef7a-1818-ac8cd5d65a7f/test-file-06eaa4a9-b9fb-7ab0-17c2-84a99a77555a?resource=file", - "RequestMethod": "PUT", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-6a0a5ebc6fd07740aaeedbf68376b6e0-517b83dcc7411d42-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "e83e3cb4-4d86-3bd5-5adc-513e2e48e68b", - "x-ms-date": "Thu, 10 Sep 2020 00:43:20 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:21 GMT", - "ETag": "\u00220x8D85522851CB390\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:22 GMT", - "Server": [ - "Windows-Azure-HDFS/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "e83e3cb4-4d86-3bd5-5adc-513e2e48e68b", - "x-ms-request-id": "8d65ceb6-101f-001a-3e0b-872c7f000000", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-90cb53a9-2493-ef7a-1818-ac8cd5d65a7f/test-file-06eaa4a9-b9fb-7ab0-17c2-84a99a77555a?action=append\u0026position=0", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Authorization": "Sanitized", - "Content-Length": "1024", - "traceparent": "00-3f4b96b4afeb4447afc7d1190f197f90-c710ba955c5caf4e-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "3bdfadf8-f875-eaec-efec-06664756a5a2", - "x-ms-date": "Thu, 10 Sep 2020 00:43:21 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": "x6OmYtJPQBK7zEYs3VU4bqrJWPTUSg0rwonzfHVWtpIi9h8t9t7tWWPXSi5zhJzBiRb\u002B0B5ghnyVep9IXMSdZRa0Cuc2C3fM2/\u002BR/ADfuD7tMfJfV\u002BVzwXCil3s\u002BpfyeOuQXvnm1i32eMvUfz4p8tcFhWivRPg4xQEh2lHP7jTYC8sEbyPrEN6Z0wCXwVPHmJuG63ErRzfzW5n4xPvcKoqS\u002BHN3IYO3HnSOEXH3pQexWkG2RQbHrMCTEReF7kvmvah6AMTcTHcb08j4nTXB/7aSS266JeWDz0\u002By4BBoLSwsp1PJfaBC0QnKnnU9yw\u002BO0RVg96bdKJvG9jF1LWhmr6KYz/Xh9IISU3Zg74tsRgA8IBL7CzmJT3q4BoduyaedZ/LWoP8VrNiXTqQsfD0QVqwxOQlZa6BlE3x/JfH6o4XSw4uYmaEFJnc2Z7yVWNM9q7PbPZCaR/hObZGCmobqnK8eXbi1e7kPKBKSJwfnz7apPXo\u002BH2H1NH\u002BPSiwThovsS8cRevsaiDP6yBF\u002BCCDwap3a1V0MqH1JJSk9Ji2M/6WGpds81lS7krVGR1NQdyxemuOONK0u46NJxFXR3WIGacxr\u002B2JFt5BJH0anxmEp\u002BK343otJ/sb4V8I79w4C6bFTQ9mG5H/KFOdPRRVmhx0\u002BH8\u002Bn2P7WuGsJc6OgDbyGRjWRUIKLpxQuMsmj/rmtkdCk\u002Bdc\u002BWwy2eItueXDcKgcqyP7j1TKetni7daY1NrmxW93S/xPlS\u002Bsk3tv3GSmjUgjCeTW\u002BzbyeBkdeguVmfUXNvR2XDSrzQX0TuvZap51PGCeddrmH9o4hMPTMhsUFwmGSKVgMDETdzze0qxLKQ2KqE2q9xQqMRcqTcdg2Jrq4DfiUyH5BPw/iw6eB00t7WvGWIndaR/lXBeOReJpoq6R4\u002BJ0aNXrkaNBe3wVjCnZ/FBrmoARHYcYDPcaas8Zxdhv/CNauYSF6rbmi/2Tz9/9pEmR/hgugMZrXGvu0SbUN6WjtYAGfzLb1b/JOpGJdD0XHLZ1d8fAQXtc/20YpxmAAkRH8BpP5zUWthhYVUY00dgux7Rgbr/d42QEqY/Vsz6mOThNQYQi1yWBbsG/Z\u002Bw1GB2E\u002Be9VL5OEagymO02lMPLpshwd55BUC\u002BCO3w/\u002BLouH34FiUMlPQRmUyNeHfKvn7C3exbXAFzCNMP4O1kCTlkuBLlu8QuApqmECiS7I3I9ElvLSL2jFt8hQ1S/bQGrI8SKb9l5AO5lNpStEzZ4BxFRuyk9NwXbSu2aTW23AXmoGSYf8PNYw9FtplHpNgPoqTxDLfIYrey\u002B7uTrnvNArjUaxPnQGFZeOPcXj5Dz8lSp8aRxM9OHj6s5YQIObSUeLPgcw==", - "StatusCode": 202, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:21 GMT", - "Server": [ - "Windows-Azure-HDFS/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "3bdfadf8-f875-eaec-efec-06664756a5a2", - "x-ms-request-id": "8d65ceb7-101f-001a-3f0b-872c7f000000", - "x-ms-request-server-encrypted": "true", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-90cb53a9-2493-ef7a-1818-ac8cd5d65a7f/test-file-06eaa4a9-b9fb-7ab0-17c2-84a99a77555a?action=flush\u0026position=1024\u0026retainUncommittedData=true\u0026close=true", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Authorization": "Sanitized", - "Content-Length": "0", - "traceparent": "00-2833c42d5c655f428602714a4745f6a6-10f98f746ac6044d-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "81453a83-aa68-6a16-6fa6-9f935ee6e4e5", - "x-ms-date": "Thu, 10 Sep 2020 00:43:21 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:21 GMT", - "ETag": "\u00220x8D855228535065A\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:22 GMT", - "Server": [ - "Windows-Azure-HDFS/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "81453a83-aa68-6a16-6fa6-9f935ee6e4e5", - "x-ms-request-id": "8d65ceb8-101f-001a-400b-872c7f000000", - "x-ms-request-server-encrypted": "false", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-90cb53a9-2493-ef7a-1818-ac8cd5d65a7f/test-file-06eaa4a9-b9fb-7ab0-17c2-84a99a77555a", - "RequestMethod": "GET", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-15698b713c76d341b92c1f625e7e344b-bc5c71e7c23bfe47-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "0de322e4-2410-7339-d7a2-5fb813f3f107", - "x-ms-date": "Thu, 10 Sep 2020 00:43:21 GMT", - "x-ms-range": "bytes=0-268435455", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 206, - "ResponseHeaders": { - "Accept-Ranges": "bytes", - "Content-Length": "1024", - "Content-Range": "bytes 0-1023/1024", - "Content-Type": "application/octet-stream", - "Date": "Thu, 10 Sep 2020 00:43:22 GMT", - "ETag": "\u00220x8D855228535065A\u0022", - "Last-Modified": "Thu, 10 Sep 2020 00:43:22 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-blob-type": "BlockBlob", - "x-ms-client-request-id": "0de322e4-2410-7339-d7a2-5fb813f3f107", - "x-ms-creation-time": "Thu, 10 Sep 2020 00:43:22 GMT", - "x-ms-lease-state": "available", - "x-ms-lease-status": "unlocked", - "x-ms-request-id": "2d0a7418-701e-0051-690b-87d02c000000", - "x-ms-server-encrypted": "true", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": "x6OmYtJPQBK7zEYs3VU4bqrJWPTUSg0rwonzfHVWtpIi9h8t9t7tWWPXSi5zhJzBiRb\u002B0B5ghnyVep9IXMSdZRa0Cuc2C3fM2/\u002BR/ADfuD7tMfJfV\u002BVzwXCil3s\u002BpfyeOuQXvnm1i32eMvUfz4p8tcFhWivRPg4xQEh2lHP7jTYC8sEbyPrEN6Z0wCXwVPHmJuG63ErRzfzW5n4xPvcKoqS\u002BHN3IYO3HnSOEXH3pQexWkG2RQbHrMCTEReF7kvmvah6AMTcTHcb08j4nTXB/7aSS266JeWDz0\u002By4BBoLSwsp1PJfaBC0QnKnnU9yw\u002BO0RVg96bdKJvG9jF1LWhmr6KYz/Xh9IISU3Zg74tsRgA8IBL7CzmJT3q4BoduyaedZ/LWoP8VrNiXTqQsfD0QVqwxOQlZa6BlE3x/JfH6o4XSw4uYmaEFJnc2Z7yVWNM9q7PbPZCaR/hObZGCmobqnK8eXbi1e7kPKBKSJwfnz7apPXo\u002BH2H1NH\u002BPSiwThovsS8cRevsaiDP6yBF\u002BCCDwap3a1V0MqH1JJSk9Ji2M/6WGpds81lS7krVGR1NQdyxemuOONK0u46NJxFXR3WIGacxr\u002B2JFt5BJH0anxmEp\u002BK343otJ/sb4V8I79w4C6bFTQ9mG5H/KFOdPRRVmhx0\u002BH8\u002Bn2P7WuGsJc6OgDbyGRjWRUIKLpxQuMsmj/rmtkdCk\u002Bdc\u002BWwy2eItueXDcKgcqyP7j1TKetni7daY1NrmxW93S/xPlS\u002Bsk3tv3GSmjUgjCeTW\u002BzbyeBkdeguVmfUXNvR2XDSrzQX0TuvZap51PGCeddrmH9o4hMPTMhsUFwmGSKVgMDETdzze0qxLKQ2KqE2q9xQqMRcqTcdg2Jrq4DfiUyH5BPw/iw6eB00t7WvGWIndaR/lXBeOReJpoq6R4\u002BJ0aNXrkaNBe3wVjCnZ/FBrmoARHYcYDPcaas8Zxdhv/CNauYSF6rbmi/2Tz9/9pEmR/hgugMZrXGvu0SbUN6WjtYAGfzLb1b/JOpGJdD0XHLZ1d8fAQXtc/20YpxmAAkRH8BpP5zUWthhYVUY00dgux7Rgbr/d42QEqY/Vsz6mOThNQYQi1yWBbsG/Z\u002Bw1GB2E\u002Be9VL5OEagymO02lMPLpshwd55BUC\u002BCO3w/\u002BLouH34FiUMlPQRmUyNeHfKvn7C3exbXAFzCNMP4O1kCTlkuBLlu8QuApqmECiS7I3I9ElvLSL2jFt8hQ1S/bQGrI8SKb9l5AO5lNpStEzZ4BxFRuyk9NwXbSu2aTW23AXmoGSYf8PNYw9FtplHpNgPoqTxDLfIYrey\u002B7uTrnvNArjUaxPnQGFZeOPcXj5Dz8lSp8aRxM9OHj6s5YQIObSUeLPgcw==" - }, - { - "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-90cb53a9-2493-ef7a-1818-ac8cd5d65a7f?restype=container", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Authorization": "Sanitized", - "traceparent": "00-988b7a34fc02ae499a631c832adcad82-97347ec7ae977d4a-00", - "User-Agent": [ - "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200909.1", - "(.NET Core 4.6.29017.01; Microsoft Windows 10.0.18362 )" - ], - "x-ms-client-request-id": "3baf4bd7-d703-b1d4-56a9-6ec629fd3233", - "x-ms-date": "Thu, 10 Sep 2020 00:43:21 GMT", - "x-ms-return-client-request-id": "true", - "x-ms-version": "2019-12-12" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Content-Length": "0", - "Date": "Thu, 10 Sep 2020 00:43:22 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-client-request-id": "3baf4bd7-d703-b1d4-56a9-6ec629fd3233", - "x-ms-request-id": "2d0a7421-701e-0051-710b-87d02c000000", - "x-ms-version": "2019-12-12" - }, - "ResponseBody": [] - } - ], - "Variables": { - "RandomSeed": "724741532", - "Storage_TestConfigHierarchicalNamespace": "NamespaceTenant\nseannsecanary\nU2FuaXRpemVk\nhttps://seannsecanary.blob.core.windows.net\nhttps://seannsecanary.file.core.windows.net\nhttps://seannsecanary.queue.core.windows.net\nhttps://seannsecanary.table.core.windows.net\n\n\n\n\nhttps://seannsecanary-secondary.blob.core.windows.net\nhttps://seannsecanary-secondary.file.core.windows.net\nhttps://seannsecanary-secondary.queue.core.windows.net\nhttps://seannsecanary-secondary.table.core.windows.net\n68390a19-a643-458b-b726-408abf67b4fc\nSanitized\n72f988bf-86f1-41af-91ab-2d7cd011db47\nhttps://login.microsoftonline.com/\nCloud\nBlobEndpoint=https://seannsecanary.blob.core.windows.net/;QueueEndpoint=https://seannsecanary.queue.core.windows.net/;FileEndpoint=https://seannsecanary.file.core.windows.net/;BlobSecondaryEndpoint=https://seannsecanary-secondary.blob.core.windows.net/;QueueSecondaryEndpoint=https://seannsecanary-secondary.queue.core.windows.net/;FileSecondaryEndpoint=https://seannsecanary-secondary.file.core.windows.net/;AccountName=seannsecanary;AccountKey=Sanitized\n" - } -} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAsync.json new file mode 100644 index 0000000000000..a9bca5d8d36bb --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/FileClientTests/UploadAsync_CloseAsync.json @@ -0,0 +1,210 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-6ba777ef-01fe-69bc-4761-6046567b962b?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-672fd0eded270a40aaa8428ae2338608-0633ddb56133384c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "ddc12af9-eab6-16fc-f3c6-eb2757085dda", + "x-ms-date": "Mon, 14 Sep 2020 20:10:46 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:49 GMT", + "ETag": "\u00220x8D858EA451EDF45\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:47 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ddc12af9-eab6-16fc-f3c6-eb2757085dda", + "x-ms-request-id": "71922606-501e-0069-18d3-8a74ec000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6ba777ef-01fe-69bc-4761-6046567b962b/test-file-606d7309-da34-d946-b478-fdb2d9afdb48?resource=file", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4bd4f194effac94ab72e43d9eec16924-c902233d58d1fa41-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "780ede9e-741b-3fda-b6fa-1b9c2294151f", + "x-ms-date": "Mon, 14 Sep 2020 20:10:48 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:49 GMT", + "ETag": "\u00220x8D858EA466580CF\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:49 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "780ede9e-741b-3fda-b6fa-1b9c2294151f", + "x-ms-request-id": "d14d7f1c-f01f-0002-13d3-8af318000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6ba777ef-01fe-69bc-4761-6046567b962b/test-file-606d7309-da34-d946-b478-fdb2d9afdb48?action=append\u0026position=0", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "1024", + "traceparent": "00-640b048e6cd75f47b92604ffbabe1ce1-caa1a609c8f76d4f-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "8c71758a-2fb1-9769-1dd7-91566226ca19", + "x-ms-date": "Mon, 14 Sep 2020 20:10:49 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": "ZtVNK7m4dURKJOALK5rXZO5OAxqSmlYf5OgpPexKPUTqosGBuzIgUP0oFRD5O60ZoJjEiqvAtst/LUbRjzdYAOacIIjZVqm7LrMdaoVGJak6D51ThrOYKez2Ao3rTsHGzxQpXRolQErvCFz4o0xGOQedln\u002BaBHozA/eb4lMb0N/xVppwHMiOFc5SZH5WoIWgsMmFTbhBK8ua9lojiV720zd9B02y1Rw/DoGwR5/83GNx\u002BzKKloInryrO1SVta4twW5FG2Zg47dqsRj82keMrnhr2sY0rbDy1VVci4//30aL2QOwOtgLKOQ1X3k9D8B5GojcKd7r\u002BRe9UkINBFQrbtXScQFH3HegYLHh/1I7tcmU520DI7Fro\u002BPr8uSV\u002BiCMDfCjbprDNToVP8kpCfnFhZx4eCDnJE8gZs0hW\u002BmTCmqNUe1dlEcu0a4y7ePkQpnmJm1EHX4DpOmlgwfNod1QgjVin7QIZ/FVSapysDprPCQ3OzF8SujoiakHuBU/YTPQ4muuhaLh3cJ/7tPXjPCvOkLjmmar0DdIdhILAK/YFeh6odHOvLaBUV1y/FwVFPi0WH3SX8bJJRIwZg\u002BQ1tkSo9TrWO8i3H2IXkUJONPbM2EVUqguCbohrXi/nlqq8HqAXFyHLbgNlXgARgGBw\u002Bw\u002BVTKqe4Aw5Joeyat2Y0Im4WnKhNh3UAGlC70wLce0o\u002B2IgUUn/Hj6U3vGaGQMlzI12WSbtzsTxwUtBXPG/LbSaiW96eH9AuDw0DVgsOudlHSO\u002BlBjGOi2eLpD9vsJM1LA8/4\u002BUqlQNNqDquMFrxYZk2z/NAZmc009B3EnvQvp65zio7zpY0XLPsF133IJsMmkJmOKDf9MWnyxAUs0KHvSmcNCIwtVLDArM/lA7JPbN1arg5akX92hkkk8OF36kxJJp0Wyx42\u002BTvozYtoCD2no1c30jKjlKj3hnIzCFPfSMJzq90lOKG/I6TCcdPkDo4bfU2KQBgZlZH0HzSb8\u002BDYCXTI5FxQgnq1eK6N4RLFA4f0J5sGVQiqagZLISltIy\u002Bz6nhfGyohuurSxMdpi7R/Pwu8l9xVwbR8HnpWFWFBWFWOyfaqZehd0mywM4AxQN5Ry/IdoItTbhiz4wyv26V5gXxx6rG91MkTXsVvpZ4kOt2r9ElvM6faK2vd5oLrvfbHNqIDz2Ysk\u002Bco\u002BlG147h6n6g/A9dcCl3Up79F7/5GN5DOqH78IHtnf2BiRjlWFDejU1bavLovayxELye21rP44sKw50tJjm8sx4R2\u002BcQUjoN3ooyXa3rmrz1St/FTsKi8aVN2lSz8adTnrfU1qHFYP6CUPzQnUXdH2kgd9tZt2QbbyoBwrelWizi3v72FoPa7\u002BohQ==", + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:49 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "8c71758a-2fb1-9769-1dd7-91566226ca19", + "x-ms-request-id": "d14d7f1d-f01f-0002-14d3-8af318000000", + "x-ms-request-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6ba777ef-01fe-69bc-4761-6046567b962b/test-file-606d7309-da34-d946-b478-fdb2d9afdb48?action=flush\u0026position=1024\u0026close=true", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "0", + "traceparent": "00-a5530737f84b604ca9e0261a3a0eca73-fdb443ef0bac4a45-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "ad11bd67-8923-956d-773a-7a7ee1012720", + "x-ms-date": "Mon, 14 Sep 2020 20:10:49 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:49 GMT", + "ETag": "\u00220x8D858EA467BE2BA\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:50 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ad11bd67-8923-956d-773a-7a7ee1012720", + "x-ms-request-id": "d14d7f1e-f01f-0002-15d3-8af318000000", + "x-ms-request-server-encrypted": "false", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-6ba777ef-01fe-69bc-4761-6046567b962b/test-file-606d7309-da34-d946-b478-fdb2d9afdb48", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-464c577c4acb6f44b7b186cca56e70d0-c6d8f30c0161bf46-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "a4ee3664-1d14-aef5-5ad5-8f913a104885", + "x-ms-date": "Mon, 14 Sep 2020 20:10:49 GMT", + "x-ms-range": "bytes=0-268435455", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 206, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "1024", + "Content-Range": "bytes 0-1023/1024", + "Content-Type": "application/octet-stream", + "Date": "Mon, 14 Sep 2020 20:10:50 GMT", + "ETag": "\u00220x8D858EA467BE2BA\u0022", + "Last-Modified": "Mon, 14 Sep 2020 20:10:50 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-blob-type": "BlockBlob", + "x-ms-client-request-id": "a4ee3664-1d14-aef5-5ad5-8f913a104885", + "x-ms-creation-time": "Mon, 14 Sep 2020 20:10:49 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-request-id": "719226a0-501e-0069-12d3-8a74ec000000", + "x-ms-server-encrypted": "true", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": "ZtVNK7m4dURKJOALK5rXZO5OAxqSmlYf5OgpPexKPUTqosGBuzIgUP0oFRD5O60ZoJjEiqvAtst/LUbRjzdYAOacIIjZVqm7LrMdaoVGJak6D51ThrOYKez2Ao3rTsHGzxQpXRolQErvCFz4o0xGOQedln\u002BaBHozA/eb4lMb0N/xVppwHMiOFc5SZH5WoIWgsMmFTbhBK8ua9lojiV720zd9B02y1Rw/DoGwR5/83GNx\u002BzKKloInryrO1SVta4twW5FG2Zg47dqsRj82keMrnhr2sY0rbDy1VVci4//30aL2QOwOtgLKOQ1X3k9D8B5GojcKd7r\u002BRe9UkINBFQrbtXScQFH3HegYLHh/1I7tcmU520DI7Fro\u002BPr8uSV\u002BiCMDfCjbprDNToVP8kpCfnFhZx4eCDnJE8gZs0hW\u002BmTCmqNUe1dlEcu0a4y7ePkQpnmJm1EHX4DpOmlgwfNod1QgjVin7QIZ/FVSapysDprPCQ3OzF8SujoiakHuBU/YTPQ4muuhaLh3cJ/7tPXjPCvOkLjmmar0DdIdhILAK/YFeh6odHOvLaBUV1y/FwVFPi0WH3SX8bJJRIwZg\u002BQ1tkSo9TrWO8i3H2IXkUJONPbM2EVUqguCbohrXi/nlqq8HqAXFyHLbgNlXgARgGBw\u002Bw\u002BVTKqe4Aw5Joeyat2Y0Im4WnKhNh3UAGlC70wLce0o\u002B2IgUUn/Hj6U3vGaGQMlzI12WSbtzsTxwUtBXPG/LbSaiW96eH9AuDw0DVgsOudlHSO\u002BlBjGOi2eLpD9vsJM1LA8/4\u002BUqlQNNqDquMFrxYZk2z/NAZmc009B3EnvQvp65zio7zpY0XLPsF133IJsMmkJmOKDf9MWnyxAUs0KHvSmcNCIwtVLDArM/lA7JPbN1arg5akX92hkkk8OF36kxJJp0Wyx42\u002BTvozYtoCD2no1c30jKjlKj3hnIzCFPfSMJzq90lOKG/I6TCcdPkDo4bfU2KQBgZlZH0HzSb8\u002BDYCXTI5FxQgnq1eK6N4RLFA4f0J5sGVQiqagZLISltIy\u002Bz6nhfGyohuurSxMdpi7R/Pwu8l9xVwbR8HnpWFWFBWFWOyfaqZehd0mywM4AxQN5Ry/IdoItTbhiz4wyv26V5gXxx6rG91MkTXsVvpZ4kOt2r9ElvM6faK2vd5oLrvfbHNqIDz2Ysk\u002Bco\u002BlG147h6n6g/A9dcCl3Up79F7/5GN5DOqH78IHtnf2BiRjlWFDejU1bavLovayxELye21rP44sKw50tJjm8sx4R2\u002BcQUjoN3ooyXa3rmrz1St/FTsKi8aVN2lSz8adTnrfU1qHFYP6CUPzQnUXdH2kgd9tZt2QbbyoBwrelWizi3v72FoPa7\u002BohQ==" + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-6ba777ef-01fe-69bc-4761-6046567b962b?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a0e17c7d99d21745a7401fe69794212b-e11803def6cef14a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20200914.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19041 )" + ], + "x-ms-client-request-id": "ab1a1d30-8212-0a0b-d734-aa1afc009ad6", + "x-ms-date": "Mon, 14 Sep 2020 20:10:49 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2019-12-12" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 14 Sep 2020 20:10:50 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ab1a1d30-8212-0a0b-d734-aa1afc009ad6", + "x-ms-request-id": "719226b7-501e-0069-26d3-8a74ec000000", + "x-ms-version": "2019-12-12" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1988782202", + "Storage_TestConfigHierarchicalNamespace": "NamespaceTenant\nseannsecanary\nU2FuaXRpemVk\nhttps://seannsecanary.blob.core.windows.net\nhttps://seannsecanary.file.core.windows.net\nhttps://seannsecanary.queue.core.windows.net\nhttps://seannsecanary.table.core.windows.net\n\n\n\n\nhttps://seannsecanary-secondary.blob.core.windows.net\nhttps://seannsecanary-secondary.file.core.windows.net\nhttps://seannsecanary-secondary.queue.core.windows.net\nhttps://seannsecanary-secondary.table.core.windows.net\n68390a19-a643-458b-b726-408abf67b4fc\nSanitized\n72f988bf-86f1-41af-91ab-2d7cd011db47\nhttps://login.microsoftonline.com/\nCloud\nBlobEndpoint=https://seannsecanary.blob.core.windows.net/;QueueEndpoint=https://seannsecanary.queue.core.windows.net/;FileEndpoint=https://seannsecanary.file.core.windows.net/;BlobSecondaryEndpoint=https://seannsecanary-secondary.blob.core.windows.net/;QueueSecondaryEndpoint=https://seannsecanary-secondary.queue.core.windows.net/;FileSecondaryEndpoint=https://seannsecanary-secondary.file.core.windows.net/;AccountName=seannsecanary;AccountKey=Sanitized\n" + } +} \ No newline at end of file