diff --git a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md index eb05e1efda2f..ec60373612be 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/CHANGELOG.md @@ -4,6 +4,7 @@ - Fixed bug where DataLakeFileSystem.SetAccessPolicy() would throw an exception if signed identifier permissions were not in the correct order. - Added seekability to DataLakeFileClient.OpenRead(). - Added additional info to exception messages. +- Added DataLakeDirectoryClient.GetPaths(). ## 12.5.0-preview.1 (2020-09-30) - Added support for service version 2020-02-10. 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 18e30be1c6a1..7f8e2846c80b 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 @@ -41,6 +41,8 @@ public DataLakeDirectoryClient(System.Uri directoryUri, Azure.Storage.StorageSha public override Azure.Response GetAccessControl(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override System.Threading.Tasks.Task> GetAccessControlAsync(bool? userPrincipalName = default(bool?), Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Storage.Files.DataLake.DataLakeFileClient GetFileClient(string fileName) { throw null; } + public virtual Azure.Pageable GetPaths(bool recursive = false, bool userPrincipalName = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetPathsAsync(bool recursive = false, bool userPrincipalName = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual new Azure.Response GetProperties(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override System.Threading.Tasks.Task> GetPropertiesAsync(Azure.Storage.Files.DataLake.Models.DataLakeRequestConditions conditions = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Storage.Files.DataLake.DataLakeDirectoryClient GetSubDirectoryClient(string subdirectoryName) { throw null; } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeDirectoryClient.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeDirectoryClient.cs index a80a15ad5c7d..1e4db30a68cf 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeDirectoryClient.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeDirectoryClient.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.Storage.Blobs.Specialized; using Azure.Storage.Files.DataLake.Models; using Metadata = System.Collections.Generic.IDictionary; @@ -2187,5 +2188,95 @@ public virtual async Task DeleteSubDirectoryAsync( } } #endregion Delete Sub Directory + + #region Get Paths + /// + /// The operation returns an async sequence + /// of paths in this directory. Enumerating the paths may make + /// multiple requests to the service while fetching all the values. + /// + /// For more information, see + /// + /// List Path(s). + /// + /// + /// If "true", all paths are listed; otherwise, only paths at the root of the filesystem are listed. + /// + /// + /// Optional. Valid only when Hierarchical Namespace is enabled for the account. If + /// "true", the user identity values returned in the owner and group fields of each list + /// entry will be transformed from Azure Active Directory Object IDs to User Principal + /// Names. If "false", the values will be returned as Azure Active Directory Object IDs. + /// The default value is false. Note that group and application Object IDs are not translated + /// because they do not have unique friendly names. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// An + /// describing the paths in the directory. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual Pageable GetPaths( + bool recursive = default, + bool userPrincipalName = default, + CancellationToken cancellationToken = default) => + new GetPathsAsyncCollection( + FileSystemClient, + Path, + recursive, + userPrincipalName, + $"{nameof(DataLakeDirectoryClient)}.{nameof(GetPaths)}") + .ToSyncCollection(cancellationToken); + + /// + /// The operation returns an async sequence + /// of paths in this directory. Enumerating the paths may make + /// multiple requests to the service while fetching all the values. + /// + /// For more information, see + /// + /// List Path(s). + /// + /// + /// If "true", all paths are listed; otherwise, only paths at the root of the filesystem are listed. + /// + /// + /// Optional. Valid only when Hierarchical Namespace is enabled for the account. If + /// "true", the user identity values returned in the owner and group fields of each list + /// entry will be transformed from Azure Active Directory Object IDs to User Principal + /// Names. If "false", the values will be returned as Azure Active Directory Object IDs. + /// The default value is false. Note that group and application Object IDs are not translated + /// because they do not have unique friendly names. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// An + /// describing the paths in the directory. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual AsyncPageable GetPathsAsync( + bool recursive = default, + bool userPrincipalName = default, + CancellationToken cancellationToken = default) => + new GetPathsAsyncCollection( + FileSystemClient, + Path, + recursive, + userPrincipalName, + $"{nameof(DataLakeDirectoryClient)}.{nameof(GetPaths)}") + .ToAsyncCollection(cancellationToken); + #endregion Get Paths } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileSystemClient.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileSystemClient.cs index 0175d9587243..87a24a027c0a 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileSystemClient.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeFileSystemClient.cs @@ -14,6 +14,7 @@ using System.Text.Json; using System.Collections.Generic; using Azure.Storage.Shared; +using System.ComponentModel; namespace Azure.Storage.Files.DataLake { @@ -1213,9 +1214,10 @@ public virtual async Task> SetMetadataAsync( #region Get Paths /// - /// The operation returns an async sequence - /// of paths in this file system. Enumerating the paths may make - /// multiple requests to the service while fetching all the values. + /// The + /// operation returns an async sequence of paths in this file system. + /// Enumerating the paths may make multiple requests to the service + /// while fetching all the values. /// /// For more information, see /// @@ -1256,12 +1258,14 @@ public virtual Pageable GetPaths( this, path, recursive, - userPrincipalName).ToSyncCollection(cancellationToken); + userPrincipalName, + $"{nameof(DataLakeFileClient)}.{nameof(GetPaths)}") + .ToSyncCollection(cancellationToken); /// - /// The operation returns an async - /// sequence of paths in this file system. Enumerating the paths may - /// make multiple requests to the service while fetching all the + /// The + /// operation returns an async sequence of paths in this file system. Enumerating + /// the paths may make multiple requests to the service while fetching all the /// values. /// /// For more information, see @@ -1302,7 +1306,9 @@ public virtual AsyncPageable GetPathsAsync( new GetPathsAsyncCollection(this, path, recursive, - userPrincipalName).ToAsyncCollection(cancellationToken); + userPrincipalName, + $"{nameof(DataLakeFileClient)}.{nameof(GetPaths)}") + .ToAsyncCollection(cancellationToken); /// /// The operation returns a @@ -1310,7 +1316,8 @@ public virtual AsyncPageable GetPathsAsync( /// from the specified . Use an empty /// to start enumeration from the beginning /// and the if it's not - /// empty to make subsequent calls to + /// empty to make subsequent calls to + /// /// to continue enumerating the paths segment by segment. Paths are /// ordered lexicographically by name. /// @@ -1342,6 +1349,9 @@ public virtual AsyncPageable GetPathsAsync( /// An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, /// the response will include up to 5,000 items. /// + /// + /// The name of the operation. + /// /// /// Whether to invoke the operation asynchronously. /// @@ -1363,6 +1373,7 @@ internal async Task> GetPathsInternal( bool userPrincipalName, string continuation, int? maxResults, + string operationName, bool async, CancellationToken cancellationToken) { @@ -1387,6 +1398,7 @@ internal async Task> GetPathsInternal( upn: userPrincipalName, path: path, async: async, + operationName: operationName, cancellationToken: cancellationToken) .ConfigureAwait(false); diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs index 93315a7d3b3f..b8e8e28c7cd6 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakePathClient.cs @@ -25,15 +25,25 @@ namespace Azure.Storage.Files.DataLake public class DataLakePathClient { /// - /// A associated with the path; + /// A associated with the path. /// internal readonly BlockBlobClient _blockBlobClient; /// - /// BlobClient + /// A associated with the path. /// internal virtual BlockBlobClient BlobClient => _blockBlobClient; + /// + /// A associated with Directory's parent File System. + /// + internal readonly DataLakeFileSystemClient _fileSystemClient; + + /// + /// A associated with Directory's parent File System. + /// + internal virtual DataLakeFileSystemClient FileSystemClient => _fileSystemClient; + /// /// The paths's primary endpoint. /// @@ -360,6 +370,13 @@ internal DataLakePathClient(Uri pathUri, HttpPipeline pipeline, DataLakeClientOp _version = options.Version; _clientDiagnostics = new ClientDiagnostics(options); _blockBlobClient = BlockBlobClientInternals.Create(_blobUri, _pipeline, Version.AsBlobsVersion(), _clientDiagnostics); + + uriBuilder.DirectoryOrFilePath = null; + _fileSystemClient = new DataLakeFileSystemClient( + uriBuilder.ToDfsUri(), + _pipeline, + Version, + ClientDiagnostics); } /// @@ -399,6 +416,13 @@ internal DataLakePathClient( _pipeline, Version.AsBlobsVersion(), _clientDiagnostics); + + uriBuilder.DirectoryOrFilePath = null; + _fileSystemClient = new DataLakeFileSystemClient( + uriBuilder.ToDfsUri(), + pipeline, + version, + clientDiagnostics); } internal DataLakePathClient( @@ -423,6 +447,13 @@ internal DataLakePathClient( _pipeline, Version.AsBlobsVersion(), _clientDiagnostics); + + uriBuilder.DirectoryOrFilePath = null; + _fileSystemClient = new DataLakeFileSystemClient( + uriBuilder.ToDfsUri(), + pipeline, + version, + clientDiagnostics); } /// diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeUriBuilder.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeUriBuilder.cs index 2a81577285bf..2651d27c914c 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeUriBuilder.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/DataLakeUriBuilder.cs @@ -101,7 +101,11 @@ public string DirectoryOrFilePath set { ResetUri(); - if (value == "/") + if (value == null) + { + _directoryOrFilePath = null; + } + else if (value == "/") { _directoryOrFilePath = value; } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/src/Models/GetPathsAsyncCollection.cs b/sdk/storage/Azure.Storage.Files.DataLake/src/Models/GetPathsAsyncCollection.cs index 6626f1a65170..5bf31ed43d2b 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/src/Models/GetPathsAsyncCollection.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/src/Models/GetPathsAsyncCollection.cs @@ -11,19 +11,22 @@ internal class GetPathsAsyncCollection : StorageCollectionEnumerator { private readonly DataLakeFileSystemClient _client; private readonly string _path; - private readonly bool _recursive; - private readonly bool _upn; + private readonly bool? _recursive; + private readonly bool? _upn; + private readonly string _operationName; public GetPathsAsyncCollection( DataLakeFileSystemClient client, string path, - bool recursive, - bool upn) + bool? recursive, + bool? upn, + string operationName) { _client = client; _path = path; _recursive = recursive; _upn = upn; + _operationName = operationName; } public override async ValueTask> GetNextPageAsync( @@ -34,10 +37,11 @@ public override async ValueTask> GetNextPageAsync( { Response response = await _client.GetPathsInternal( _path, - _recursive, - _upn, + _recursive.GetValueOrDefault(), + _upn.GetValueOrDefault(), continuationToken, pageSizeHint, + _operationName, async, cancellationToken).ConfigureAwait(false); diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs index fb3379134645..5cd6866649f5 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/DataLakeTestBase.cs @@ -434,5 +434,19 @@ public async ValueTask DisposeAsync() } } } - } + + public string[] PathNames + => new[] + { + "foo", + "bar", + "baz", + "baz/bar", + "foo/foo", + "foo/bar", + "baz/foo", + "baz/foo/bar", + "baz/bar/foo" + }; + } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/DirectoryClientTests.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/DirectoryClientTests.cs index 29e74d6c9246..08e3aae053df 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/DirectoryClientTests.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/DirectoryClientTests.cs @@ -4716,5 +4716,123 @@ public async Task CreateSubDirectoryAndSubDirectoryAsync() Assert.AreEqual($"{subdirectory.BlobUri.AbsoluteUri}/{lowerSubDirectoryName}", lowerSubDirectory.BlobUri.AbsoluteUri); Assert.AreEqual($"{subdirectory.Path}/{lowerSubDirectoryName}", lowerSubDirectory.Path); } + + [Test] + public async Task GetPathsAsync() + { + // Arrange + await using DisposingFileSystem test = await GetNewFileSystem(); + string directoryName = GetNewDirectoryName(); + DataLakeDirectoryClient directory = await test.FileSystem.CreateDirectoryAsync(directoryName); + await SetUpDirectoryForListing(directory); + + // Act + AsyncPageable response = directory.GetPathsAsync(); + IList paths = await response.ToListAsync(); + + // Assert + Assert.AreEqual(3, paths.Count); + Assert.AreEqual($"{directoryName}/bar", paths[0].Name); + Assert.AreEqual($"{directoryName}/baz", paths[1].Name); + Assert.AreEqual($"{directoryName}/foo", paths[2].Name); + } + + [Test] + public async Task GetPathsAsync_Recursive() + { + // Arrange + await using DisposingFileSystem test = await GetNewFileSystem(); + string directoryName = GetNewDirectoryName(); + DataLakeDirectoryClient directory = await test.FileSystem.CreateDirectoryAsync(directoryName); + await SetUpDirectoryForListing(directory); + + // Act + AsyncPageable response = directory.GetPathsAsync( + recursive: true); + IList paths = await response.ToListAsync(); + + // Assert + Assert.AreEqual(PathNames.Length, paths.Count); + Assert.AreEqual($"{directoryName}/bar", paths[0].Name); + Assert.AreEqual($"{directoryName}/baz", paths[1].Name); + Assert.AreEqual($"{directoryName}/baz/bar", paths[2].Name); + Assert.AreEqual($"{directoryName}/baz/bar/foo", paths[3].Name); + Assert.AreEqual($"{directoryName}/baz/foo", paths[4].Name); + Assert.AreEqual($"{directoryName}/baz/foo/bar", paths[5].Name); + Assert.AreEqual($"{directoryName}/foo", paths[6].Name); + Assert.AreEqual($"{directoryName}/foo/bar", paths[7].Name); + Assert.AreEqual($"{directoryName}/foo/foo", paths[8].Name); + } + + [Test] + public async Task GetPathsAsync_Upn() + { + // Arrange + await using DisposingFileSystem test = await GetNewFileSystem(); + string directoryName = GetNewDirectoryName(); + DataLakeDirectoryClient directory = await test.FileSystem.CreateDirectoryAsync(directoryName); + await SetUpDirectoryForListing(directory); + + // Act + AsyncPageable response = directory.GetPathsAsync( + userPrincipalName: true); + IList paths = await response.ToListAsync(); + + // Assert + Assert.AreEqual(3, paths.Count); + Assert.IsNotNull(paths[0].Group); + Assert.IsNotNull(paths[0].Owner); + + Assert.AreEqual($"{directoryName}/bar", paths[0].Name); + Assert.AreEqual($"{directoryName}/baz", paths[1].Name); + Assert.AreEqual($"{directoryName}/foo", paths[2].Name); + } + + [Test] + [AsyncOnly] + public async Task GetPathsAsync_MaxResults() + { + // Arrange + await using DisposingFileSystem test = await GetNewFileSystem(); + string directoryName = GetNewDirectoryName(); + DataLakeDirectoryClient directory = await test.FileSystem.CreateDirectoryAsync(directoryName); + await SetUpDirectoryForListing(directory); + + // Act + Page page = await directory.GetPathsAsync().AsPages(pageSizeHint: 2).FirstAsync(); + + // Assert + Assert.AreEqual(2, page.Values.Count); + Assert.AreEqual($"{directoryName}/bar", page.Values[0].Name); + Assert.AreEqual($"{directoryName}/baz", page.Values[1].Name); + } + + [Test] + public async Task GetPathsAsync_Error() + { + // Arrange + DataLakeServiceClient service = GetServiceClient_SharedKey(); + DataLakeFileSystemClient fileSystem = InstrumentClient(service.GetFileSystemClient(GetNewFileSystemName())); + DataLakeDirectoryClient directory = InstrumentClient(fileSystem.GetDirectoryClient(GetNewDirectoryName())); + + // Act + await TestHelper.AssertExpectedExceptionAsync( + directory.GetPathsAsync().ToListAsync(), + e => Assert.AreEqual("FilesystemNotFound", e.ErrorCode)); + } + + private async Task SetUpDirectoryForListing(DataLakeDirectoryClient directoryClient) + { + string[] pathNames = PathNames; + DataLakeDirectoryClient[] subDirectories = new DataLakeDirectoryClient[pathNames.Length]; + + // Upload directories + for (var i = 0; i < pathNames.Length; i++) + { + DataLakeDirectoryClient directory = InstrumentClient(directoryClient.GetSubDirectoryClient(pathNames[i])); + subDirectories[i] = directory; + await directory.CreateIfNotExistsAsync(); + } + } } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/FileSystemClientTests.cs b/sdk/storage/Azure.Storage.Files.DataLake/tests/FileSystemClientTests.cs index c60a937800be..e890da2695ce 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/tests/FileSystemClientTests.cs +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/FileSystemClientTests.cs @@ -541,6 +541,9 @@ public async Task GetPathsAsync() // Assert Assert.AreEqual(3, paths.Count); + Assert.AreEqual("bar", paths[0].Name); + Assert.AreEqual("baz", paths[1].Name); + Assert.AreEqual("foo", paths[2].Name); } [Test] @@ -552,11 +555,21 @@ public async Task GetPathsAsync_Recursive() await SetUpFileSystemForListing(test.FileSystem); // Act - AsyncPageable response = test.FileSystem.GetPathsAsync(recursive: true); + AsyncPageable response = test.FileSystem.GetPathsAsync( + recursive: true); IList paths = await response.ToListAsync(); // Assert Assert.AreEqual(PathNames.Length, paths.Count); + Assert.AreEqual("bar", paths[0].Name); + Assert.AreEqual("baz", paths[1].Name); + Assert.AreEqual("baz/bar", paths[2].Name); + Assert.AreEqual("baz/bar/foo", paths[3].Name); + Assert.AreEqual("baz/foo", paths[4].Name); + Assert.AreEqual("baz/foo/bar", paths[5].Name); + Assert.AreEqual("foo", paths[6].Name); + Assert.AreEqual("foo/bar", paths[7].Name); + Assert.AreEqual("foo/foo", paths[8].Name); } [Test] @@ -568,11 +581,19 @@ public async Task GetPathsAsync_Upn() await SetUpFileSystemForListing(test.FileSystem); // Act - AsyncPageable response = test.FileSystem.GetPathsAsync(userPrincipalName: true); + AsyncPageable response = test.FileSystem.GetPathsAsync( + userPrincipalName: true); + ; IList paths = await response.ToListAsync(); // Assert Assert.AreEqual(3, paths.Count); + Assert.IsNotNull(paths[0].Group); + Assert.IsNotNull(paths[0].Owner); + + Assert.AreEqual("bar", paths[0].Name); + Assert.AreEqual("baz", paths[1].Name); + Assert.AreEqual("foo", paths[2].Name); } [Test] @@ -584,11 +605,14 @@ public async Task GetPathsAsync_Path() await SetUpFileSystemForListing(test.FileSystem); // Act - AsyncPageable response = test.FileSystem.GetPathsAsync(path: "foo"); + AsyncPageable response = test.FileSystem.GetPathsAsync( + path: "foo"); IList paths = await response.ToListAsync(); // Assert Assert.AreEqual(2, paths.Count); + Assert.AreEqual("foo/bar", paths[0].Name); + Assert.AreEqual("foo/foo", paths[1].Name); } [Test] @@ -605,6 +629,8 @@ public async Task GetPathsAsync_MaxResults() // Assert Assert.AreEqual(2, page.Values.Count); + Assert.AreEqual("bar", page.Values[0].Name); + Assert.AreEqual("baz", page.Values[1].Name); } [Test] @@ -2001,10 +2027,10 @@ private class AccessConditionParameters private async Task SetUpFileSystemForListing(DataLakeFileSystemClient fileSystem) { - var pathNames = PathNames; - var directories = new DataLakeDirectoryClient[pathNames.Length]; + string[] pathNames = PathNames; + DataLakeDirectoryClient[] directories = new DataLakeDirectoryClient[pathNames.Length]; - // Upload Blobs + // Upload directories for (var i = 0; i < pathNames.Length; i++) { DataLakeDirectoryClient directory = InstrumentClient(fileSystem.GetDirectoryClient(pathNames[i])); @@ -2012,19 +2038,5 @@ private async Task SetUpFileSystemForListing(DataLakeFileSystemClient fileSystem await directory.CreateIfNotExistsAsync(); } } - - private string[] PathNames - => new[] - { - "foo", - "bar", - "baz", - "baz/bar", - "foo/foo", - "foo/bar", - "baz/foo", - "baz/foo/bar", - "baz/bar/foo" - }; - } + } } diff --git a/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync.json new file mode 100644 index 000000000000..287f3905e42b --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dcf0c7b2e521c74db1e26f6aa386aa27-4eeb6064a70d4340-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "dcd23b29-7c46-4f2f-7ddc-8ca6bc269e5e", + "x-ms-date": "Mon, 19 Oct 2020 18:47:52 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:52 GMT", + "ETag": "\u00220x8D8745F7C78AABF\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:53 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "dcd23b29-7c46-4f2f-7ddc-8ca6bc269e5e", + "x-ms-request-id": "f6b6e0cc-001e-0074-4048-a67950000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e94a80ac2d07e84783fe0782efd91440-1e550e47281f7c46-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "54f76a10-c6a2-5860-1b82-e26355160c86", + "x-ms-date": "Mon, 19 Oct 2020 18:47:53 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:52 GMT", + "ETag": "\u00220x8D8745F7CC08794\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:53 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "54f76a10-c6a2-5860-1b82-e26355160c86", + "x-ms-request-id": "5976cf04-201f-0063-7a48-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-cbc0da1c9df5ca4a9c0adb835589c5b5-4762d4c059647244-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d7085496-22ff-fc7f-2fdf-cb252f24f869", + "x-ms-date": "Mon, 19 Oct 2020 18:47:53 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7CD7D00C\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:53 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "d7085496-22ff-fc7f-2fdf-cb252f24f869", + "x-ms-request-id": "5976cf05-201f-0063-7b48-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-8dbd64851c056b469538f263b6ddcda6-c6489b7e0dd63a4a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "01cdfbb9-340d-4286-e9e7-fd0eec906afb", + "x-ms-date": "Mon, 19 Oct 2020 18:47:53 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7CE1D159\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:53 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "01cdfbb9-340d-4286-e9e7-fd0eec906afb", + "x-ms-request-id": "5976cf06-201f-0063-7c48-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-95cea7b262c6604e8be7d34c54013feb-5c38e28f15320c46-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "336c5602-f757-895b-47d3-334722d56c23", + "x-ms-date": "Mon, 19 Oct 2020 18:47:53 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7CEBDDC2\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:53 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "336c5602-f757-895b-47d3-334722d56c23", + "x-ms-request-id": "5976cf09-201f-0063-7f48-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-90ebfd995144a64580b23c51dc894d37-8c6963c16bd69d40-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "960bbd5d-3624-62a4-8e29-64bc7871539b", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7CF5C51E\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "960bbd5d-3624-62a4-8e29-64bc7871539b", + "x-ms-request-id": "5976cf0a-201f-0063-8048-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-348b5b1d260fb541ba6b5a0d85414d18-ca768da3ed2f0743-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "64ea7980-d6c9-bdff-9493-fa12cb2a94d1", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7D006D78\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "64ea7980-d6c9-bdff-9493-fa12cb2a94d1", + "x-ms-request-id": "5976cf0b-201f-0063-0148-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-028796a4566ad147b2e9f687b95fe87d-2746f00e59c6914f-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ff3b01b1-ee87-6ed1-fff0-22a606f00745", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7D0AF3E9\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ff3b01b1-ee87-6ed1-fff0-22a606f00745", + "x-ms-request-id": "5976cf0c-201f-0063-0248-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-e5eef464f3f70b42858e93fbd9c18f5f-d4d166fb4b9a704e-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c9606b97-95ee-1549-23aa-11467ada55c9", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7D1562C0\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c9606b97-95ee-1549-23aa-11467ada55c9", + "x-ms-request-id": "5976cf0d-201f-0063-0348-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-52058ebcd712f04490eb13f287ad51fd-3bd4e303f40e9441-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "9a0e3279-3e8f-3357-d5e6-4f3b54e5691e", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7D200B96\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "9a0e3279-3e8f-3357-d5e6-4f3b54e5691e", + "x-ms-request-id": "5976cf0e-201f-0063-0448-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece/test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-20e0e9085a3bc74a960969eef5b5a2c9-7dce8f4a79e6724c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "47cc4bec-bacb-f239-88c7-51c2396cf6f1", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "ETag": "\u00220x8D8745F7D2A31B0\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "47cc4bec-bacb-f239-88c7-51c2396cf6f1", + "x-ms-request-id": "5976cf0f-201f-0063-0548-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece?resource=filesystem\u0026recursive=false\u0026directory=test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "084f6c13-2118-7e53-a86e-4777fe84d455", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:47:53 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "084f6c13-2118-7e53-a86e-4777fe84d455", + "x-ms-request-id": "5976cf10-201f-0063-0648-a6d05b000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:53 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7CE1D159\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:53 GMT\u0022,\u0022name\u0022:\u0022test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:53 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7CEBDDC2\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:53 GMT\u0022,\u0022name\u0022:\u0022test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:53 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7CD7D00C\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:53 GMT\u0022,\u0022name\u0022:\u0022test-directory-d3a0a7ab-d03b-5020-f9e3-261842f77722/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-1fecb163-0cc7-739b-655c-2a61227beece?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-69ee5852995e7047bde3fea6c97a6ee5-c0bee8014c47cd4e-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "cdaecc23-ed1d-cdd8-9341-b971a6102b66", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "cdaecc23-ed1d-cdd8-9341-b971a6102b66", + "x-ms-request-id": "f6b6e13f-001e-0074-0b48-a67950000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "2004167959", + "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/DirectoryClientTests/GetPathsAsyncAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsyncAsync.json new file mode 100644 index 000000000000..8bb9b2bb2dc0 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsyncAsync.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-aa9b83834b6cf24f90c0488a921d869f-1548f72d03fbb740-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "4a1cd6ff-50d3-d068-a9b3-f10972c93a71", + "x-ms-date": "Mon, 19 Oct 2020 18:47:58 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F7FA31A88\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:58 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "4a1cd6ff-50d3-d068-a9b3-f10972c93a71", + "x-ms-request-id": "247adaae-d01e-0077-0448-a69834000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3224a63127a072409b261534bf48a16a-66df9735530f1c47-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8614f870-2a62-ca4c-ddda-23190598d497", + "x-ms-date": "Mon, 19 Oct 2020 18:47:58 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F7FEA807D\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:58 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "8614f870-2a62-ca4c-ddda-23190598d497", + "x-ms-request-id": "81430d61-901f-0066-6148-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-7310ad641461ab44aa807892b7820517-0310bb348499cd4c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "035f9599-00fd-8f7f-b8fe-185b01f525d6", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F7FF4896D\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "035f9599-00fd-8f7f-b8fe-185b01f525d6", + "x-ms-request-id": "81430d62-901f-0066-6248-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-3c836d227d9dcd4fb581108db4f8381a-72aa2bf8c0aa5a41-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6f7f5620-d139-2a99-8fc0-b5022be07c8e", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F7FFE8ED2\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "6f7f5620-d139-2a99-8fc0-b5022be07c8e", + "x-ms-request-id": "81430d63-901f-0066-6348-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-0565a193c546574bb544c6269be4b82a-3892f24b9d5d4d40-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "aa3b6beb-b576-4c9c-4d71-e94afdb100dc", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F8007DA63\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "aa3b6beb-b576-4c9c-4d71-e94afdb100dc", + "x-ms-request-id": "81430d64-901f-0066-6448-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-76d931e13024b248a6ea1958b62154ef-242b66e63813b843-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c0165815-d1a4-ee17-d386-83225776e92f", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F8011E56E\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c0165815-d1a4-ee17-d386-83225776e92f", + "x-ms-request-id": "81430d65-901f-0066-6548-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-471a31e211291e4593c805ab69ba9a2c-360244fbba71b04a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a5354144-3f9a-4938-5d06-a1ffbff6871f", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F801BC4CE\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "a5354144-3f9a-4938-5d06-a1ffbff6871f", + "x-ms-request-id": "81430d66-901f-0066-6648-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-e897b48023724f4aa2e3a58850af7146-15c4e1acc1087a45-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "16de68c4-4441-f394-3202-2ceb94d6e95b", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F80251B72\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "16de68c4-4441-f394-3202-2ceb94d6e95b", + "x-ms-request-id": "81430d67-901f-0066-6748-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-e5179ce3266dd540a9f972f3368470d8-f2f12245ffbc024b-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "573b643f-7117-6bde-cae0-eee377cb4baa", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F802E79DB\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "573b643f-7117-6bde-cae0-eee377cb4baa", + "x-ms-request-id": "81430d68-901f-0066-6848-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-dc7ae9a3f45eff459e1d68fcace9ec23-5da6f61056b9e247-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2fab0875-929b-6244-17c3-fde2b35029be", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F803856F5\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "2fab0875-929b-6244-17c3-fde2b35029be", + "x-ms-request-id": "81430d69-901f-0066-6948-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2/test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-91bea297f2135c4f88895b4ead3b31b1-d69017baef767a47-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6e6eacbe-1c1f-f10e-cf10-af4700976fe2", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "ETag": "\u00220x8D8745F80423B47\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "6e6eacbe-1c1f-f10e-cf10-af4700976fe2", + "x-ms-request-id": "81430d6a-901f-0066-6a48-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2?resource=filesystem\u0026recursive=false\u0026directory=test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "06249a78-bae2-ed9f-6ab7-ee6b17d04053", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "06249a78-bae2-ed9f-6ab7-ee6b17d04053", + "x-ms-request-id": "81430d6b-901f-0066-6b48-a60280000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:59 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7FFE8ED2\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:59 GMT\u0022,\u0022name\u0022:\u0022test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:59 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F8007DA63\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:59 GMT\u0022,\u0022name\u0022:\u0022test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:59 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7FF4896D\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:59 GMT\u0022,\u0022name\u0022:\u0022test-directory-b4f393a2-35e4-41f8-27ba-4ad0fb1287e2/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-ca4e8bbb-657a-a1c9-3899-35c8cc526fe2?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-04c21f0c175c244bb75ee05e31b241bf-e72530e306f5794e-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "66cf8993-6872-5900-2df5-3b0676599620", + "x-ms-date": "Mon, 19 Oct 2020 18:47:59 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "66cf8993-6872-5900-2df5-3b0676599620", + "x-ms-request-id": "247adb4d-d01e-0077-0548-a69834000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "992772166", + "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/DirectoryClientTests/GetPathsAsync_Error.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_Error.json new file mode 100644 index 000000000000..3907433f97c8 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_Error.json @@ -0,0 +1,44 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-7b51477b-6a53-4c8b-cfd0-aeaf86d78970?resource=filesystem\u0026recursive=false\u0026directory=test-directory-041eba33-715b-3e7f-4040-36a1839d386d\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "47f41942-9c7a-0985-c813-3a1333e9c831", + "x-ms-date": "Mon, 19 Oct 2020 18:47:54 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "175", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:47:54 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "47f41942-9c7a-0985-c813-3a1333e9c831", + "x-ms-error-code": "FilesystemNotFound", + "x-ms-request-id": "f20a18dd-901f-0092-7848-a6c976000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": { + "error": { + "code": "FilesystemNotFound", + "message": "The specified filesystem does not exist.\nRequestId:f20a18dd-901f-0092-7848-a6c976000000\nTime:2020-10-19T18:47:55.1032337Z" + } + } + } + ], + "Variables": { + "RandomSeed": "771856370", + "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/DirectoryClientTests/GetPathsAsync_ErrorAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_ErrorAsync.json new file mode 100644 index 000000000000..8de8692f1c0c --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_ErrorAsync.json @@ -0,0 +1,44 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-b93b4545-804d-24e5-b053-c8fc1ed315f7?resource=filesystem\u0026recursive=false\u0026directory=test-directory-04fe66fc-999f-3c8d-1441-86573f2bd866\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "83f2ef5f-efed-abf7-b7fe-a50bf98de585", + "x-ms-date": "Mon, 19 Oct 2020 18:48:00 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Content-Length": "175", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:47:59 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "83f2ef5f-efed-abf7-b7fe-a50bf98de585", + "x-ms-error-code": "FilesystemNotFound", + "x-ms-request-id": "c68b5932-001f-0080-3548-a6b2a6000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": { + "error": { + "code": "FilesystemNotFound", + "message": "The specified filesystem does not exist.\nRequestId:c68b5932-001f-0080-3548-a6b2a6000000\nTime:2020-10-19T18:48:00.2944256Z" + } + } + } + ], + "Variables": { + "RandomSeed": "1715968484", + "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/DirectoryClientTests/GetPathsAsync_MaxResultsAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_MaxResultsAsync.json new file mode 100644 index 000000000000..680939222ddc --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_MaxResultsAsync.json @@ -0,0 +1,433 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-47ea748c6c133045befd5933d33c3841-29f66a114319e041-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "1641ed42-07e0-2027-e07f-8f700b274801", + "x-ms-date": "Mon, 19 Oct 2020 18:48:00 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F80D8385E\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:00 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "1641ed42-07e0-2027-e07f-8f700b274801", + "x-ms-request-id": "18de60d9-901e-0059-6a48-a6ca23000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-1a9df1b52be5424fa32c926f31b8ed0f-10a630c141823a4f-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "baee1fcb-5af7-d523-e512-4c1a957024b8", + "x-ms-date": "Mon, 19 Oct 2020 18:48:00 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F810F7290\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:00 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "baee1fcb-5af7-d523-e512-4c1a957024b8", + "x-ms-request-id": "e421ef7b-301f-0050-4748-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-7d6c40d71a5835428be18e17b708e05c-64ef58bf9461974c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "dceb768a-903a-1d1e-9d95-bd8fa04deca8", + "x-ms-date": "Mon, 19 Oct 2020 18:48:00 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F81199EE9\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:00 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "dceb768a-903a-1d1e-9d95-bd8fa04deca8", + "x-ms-request-id": "e421ef7c-301f-0050-4848-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-f03e9fcdbdabf4438c8c9317ca478717-cfe39b14c72b244a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "1f8fb231-4784-a47e-5bdb-ae26e6cff187", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F81245A9C\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "1f8fb231-4784-a47e-5bdb-ae26e6cff187", + "x-ms-request-id": "e421ef7d-301f-0050-4948-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-90f6cee8a944be4fb0757e42f9c43965-e5bf7d693532f641-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ee5ec602-ccbd-0824-f340-785b421840f1", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F812DA11D\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ee5ec602-ccbd-0824-f340-785b421840f1", + "x-ms-request-id": "e421ef7e-301f-0050-4a48-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-a5532056da56f04bbb698c594be57e15-240fa430fe2d7549-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2024378b-0370-3cca-c0a3-ddc79608571e", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F81379202\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "2024378b-0370-3cca-c0a3-ddc79608571e", + "x-ms-request-id": "e421ef7f-301f-0050-4b48-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-86f0be493315c84294ff5046f4557177-2f3e4c4309535842-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0ad03947-1ff3-6780-93bd-26d7e4278c46", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F8140F292\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "0ad03947-1ff3-6780-93bd-26d7e4278c46", + "x-ms-request-id": "e421ef80-301f-0050-4c48-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2a01c6bdf517f14fa583b11293ebf764-f51a10a7fb8ea847-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "5d8089c5-4c38-642a-a90b-b96542245baf", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F814AE6D4\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "5d8089c5-4c38-642a-a90b-b96542245baf", + "x-ms-request-id": "e421ef81-301f-0050-4d48-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-513f1e30eceebf4fa7b06186532ee253-45fd502a7f617a49-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "5b11c965-2fa7-510e-9fd7-5721f3b7df18", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F8157362C\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "5b11c965-2fa7-510e-9fd7-5721f3b7df18", + "x-ms-request-id": "e421ef84-301f-0050-5048-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-3a5bd2d6f2103946ad8880824d766303-b06ee439a889314b-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "79ff2707-ff12-7f08-49d8-7b518504a764", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F8165F181\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "79ff2707-ff12-7f08-49d8-7b518504a764", + "x-ms-request-id": "e421ef85-301f-0050-5148-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447/test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-640dbfd1ac8b354f847232e6ff2ac458-f5903c0706a08f49-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "cb1af948-66b8-8805-9206-c300c0e2645e", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:00 GMT", + "ETag": "\u00220x8D8745F81753E63\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "cb1af948-66b8-8805-9206-c300c0e2645e", + "x-ms-request-id": "e421ef86-301f-0050-5248-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447?resource=filesystem\u0026recursive=false\u0026directory=test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15\u0026maxResults=2\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8b08f705-dbea-68ac-b0fe-a8bf33b868b2", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "8b08f705-dbea-68ac-b0fe-a8bf33b868b2", + "x-ms-continuation": "VBak8\u002BiX74mZx8MBGBwYA2ZvbxaK7N7wi5LT1gMYABbUgpXqi5LT1gMAAA==", + "x-ms-request-id": "e421ef88-301f-0050-5348-a68ff0000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:01 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F81245A9C\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:01 GMT\u0022,\u0022name\u0022:\u0022test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:01 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F812DA11D\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:01 GMT\u0022,\u0022name\u0022:\u0022test-directory-a7773c7f-6d70-2e07-c9c6-72b7fc284a15/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-950e690b-1ecb-4096-8479-53ae90e40447?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-11be8abdb28a6d4f861128079b4f725f-a1dcb10136c83d4f-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c9fafd76-d8d9-6373-2e52-1795aad8dcb6", + "x-ms-date": "Mon, 19 Oct 2020 18:48:01 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:01 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c9fafd76-d8d9-6373-2e52-1795aad8dcb6", + "x-ms-request-id": "18de6166-901e-0059-5748-a6ca23000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "613029601", + "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/DirectoryClientTests/GetPathsAsync_Recursive.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_Recursive.json new file mode 100644 index 000000000000..997977215927 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_Recursive.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6612e01f78dae24bb97fb03ff5f10ee4-e5d1a444e442d34c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "c2631ba1-775a-94f4-41b3-72a295ae0d18", + "x-ms-date": "Mon, 19 Oct 2020 18:47:55 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:55 GMT", + "ETag": "\u00220x8D8745F7DCAD791\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:55 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c2631ba1-775a-94f4-41b3-72a295ae0d18", + "x-ms-request-id": "7d44b9b4-801e-006a-6c48-a69588000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-8bc7b936dbc8a14ebf5a6dc351d7dc5e-d4ca95120dfe7549-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "56afbbba-5ff7-fc66-03d9-3369d8e2575c", + "x-ms-date": "Mon, 19 Oct 2020 18:47:55 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:55 GMT", + "ETag": "\u00220x8D8745F7E0AB56E\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:55 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "56afbbba-5ff7-fc66-03d9-3369d8e2575c", + "x-ms-request-id": "feeccfc3-501f-009d-1648-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2b61fddccdfb0f46a8ede04e611e790d-e374aedf1f2d2946-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "81585085-6135-b89f-57ae-c44cc9b5df0f", + "x-ms-date": "Mon, 19 Oct 2020 18:47:55 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:55 GMT", + "ETag": "\u00220x8D8745F7E1492FC\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:55 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "81585085-6135-b89f-57ae-c44cc9b5df0f", + "x-ms-request-id": "feeccfc4-501f-009d-1748-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-e034ed2574496942bca04f2f6b26aa9d-c0cc92054fa3b444-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "87e48ba4-d689-9926-3bd3-805480a6c904", + "x-ms-date": "Mon, 19 Oct 2020 18:47:55 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:55 GMT", + "ETag": "\u00220x8D8745F7E1F4238\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:55 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "87e48ba4-d689-9926-3bd3-805480a6c904", + "x-ms-request-id": "feeccfc5-501f-009d-1848-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-9dfe2e3da81374439f8c8881e909de3f-0bf96d569131294c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "3ea7dcbf-58d1-3e86-1468-3e8812f6f422", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:55 GMT", + "ETag": "\u00220x8D8745F7E2BAB71\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "3ea7dcbf-58d1-3e86-1468-3e8812f6f422", + "x-ms-request-id": "feeccfc6-501f-009d-1948-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-a72d79d1165ed44a8f28d139be6abb55-dce6321b87816248-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a495aede-8aff-8d32-068c-bcaf7dc4df0d", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7E366E64\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "a495aede-8aff-8d32-068c-bcaf7dc4df0d", + "x-ms-request-id": "feeccfc7-501f-009d-1a48-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-507bc660790c974b9f897c67808083b3-45e68d1725b7c749-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "63aa7093-4f61-c823-66bd-302e601f6b7a", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7E413239\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "63aa7093-4f61-c823-66bd-302e601f6b7a", + "x-ms-request-id": "feeccfc9-501f-009d-1b48-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-fcf2620a94c0d44ab65b8b397596560b-10d8e88d4ae09942-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0c1bb56b-7b19-9fac-72fc-c6648de841ec", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7E4B4361\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "0c1bb56b-7b19-9fac-72fc-c6648de841ec", + "x-ms-request-id": "feeccfcc-501f-009d-1e48-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-94e7ecaed770774e97fb29c8eb6581e6-a697c2395aacef4a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "abc20904-5e03-9660-c918-164be24693b0", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7E553688\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "abc20904-5e03-9660-c918-164be24693b0", + "x-ms-request-id": "feeccfcd-501f-009d-1f48-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-38113c2dbc03274c8d1e814d2f39f037-41fbe1e45cc36a46-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "8360b3be-9525-f3e8-2636-950e8273087f", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7E5F476F\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "8360b3be-9525-f3e8-2636-950e8273087f", + "x-ms-request-id": "feeccfce-501f-009d-2048-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a/test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-d6b6bf5240620c479f5b8d6895cccfc6-9cefa174ff8c8249-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "2f8c8631-0fe5-1c8a-c2f9-dd4fc3f15083", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7E696F31\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "2f8c8631-0fe5-1c8a-c2f9-dd4fc3f15083", + "x-ms-request-id": "feeccfcf-501f-009d-2148-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a?resource=filesystem\u0026recursive=true\u0026directory=test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "fbdc094f-d9e6-e69a-90a0-4bfa5c3de617", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "fbdc094f-d9e6-e69a-90a0-4bfa5c3de617", + "x-ms-request-id": "feeccfd0-501f-009d-2248-a6bf1a000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:55 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E1F4238\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:55 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E2BAB71\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E366E64\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E696F31\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/bar/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E553688\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E5F476F\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/baz/foo/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:55 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E1492FC\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:55 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E4B4361\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/foo/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7E413239\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:56 GMT\u0022,\u0022name\u0022:\u0022test-directory-8e7ed98f-a54c-8918-8ff0-9f123de5b897/foo/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-9df01850-11db-e824-0c05-6f4ce389bf7a?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-40a1878f4f435e4ab93478d525040050-0eb497f81a30e044-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "baff871e-5415-4e9d-2cb3-03e08e9f28e8", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "baff871e-5415-4e9d-2cb3-03e08e9f28e8", + "x-ms-request-id": "7d44ba12-801e-006a-3548-a69588000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1155927077", + "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/DirectoryClientTests/GetPathsAsync_RecursiveAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_RecursiveAsync.json new file mode 100644 index 000000000000..e3db7a385c7f --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_RecursiveAsync.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c20786dee59cb44790fb729ab97c60b1-88721681b498aa43-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "51001928-7e23-5313-5491-77ee084330fd", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:01 GMT", + "ETag": "\u00220x8D8745F81E54EF3\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "51001928-7e23-5313-5491-77ee084330fd", + "x-ms-request-id": "545c9666-e01e-000e-2c48-a66410000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-896f6203711cb943b17862aeeb5b616b-e9a64a568eda264e-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "5f018139-3d0e-5cbc-c3ef-25080e4fb896", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F8218912F\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "5f018139-3d0e-5cbc-c3ef-25080e4fb896", + "x-ms-request-id": "106b519b-d01f-0048-6d48-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-f6f11609081f0e479f7cacd9b853373f-4061c8e6820c5d46-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "1989b59d-f5bc-80c0-7509-74cb674771a5", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F8222218A\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "1989b59d-f5bc-80c0-7509-74cb674771a5", + "x-ms-request-id": "106b519c-d01f-0048-6e48-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-0767217911dab449b4b9753877caa1ef-d5da0e2ff9d8ee4a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "596a9747-9ec5-46da-e7af-60d48477c4aa", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F822BF94B\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "596a9747-9ec5-46da-e7af-60d48477c4aa", + "x-ms-request-id": "106b519d-d01f-0048-6f48-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-512e525f8569e742bf235f43ac4ff511-5a2e3cfc247e6d42-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d0833227-18dd-b4e0-df52-d9bd4507bcc6", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F82356578\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "d0833227-18dd-b4e0-df52-d9bd4507bcc6", + "x-ms-request-id": "106b519e-d01f-0048-7048-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-db0d88865a651c438673dfa7173ddbb4-eae05da9f8b83147-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "52adaf51-f4f3-0ccc-95f0-e1950c63b1d1", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F823F31BF\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "52adaf51-f4f3-0ccc-95f0-e1950c63b1d1", + "x-ms-request-id": "106b519f-d01f-0048-7148-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2367d337e9ed7642886f5fa13d9b9ce3-39b9033d601f914e-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "956c3b94-6a5a-1cd2-f646-182f3fc55311", + "x-ms-date": "Mon, 19 Oct 2020 18:48:02 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F82487896\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "956c3b94-6a5a-1cd2-f646-182f3fc55311", + "x-ms-request-id": "106b51a0-d01f-0048-7248-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-52223eba16c55742b7d7409db9ea84f0-69ba00723b6abf40-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d100f6fe-1bf7-2276-42b8-cdaf9862c512", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F8251BA3E\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:03 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "d100f6fe-1bf7-2276-42b8-cdaf9862c512", + "x-ms-request-id": "106b51a1-d01f-0048-7348-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-72a9da94b2dcd243b1795ba9a1f2b1d9-9ce525573801954c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "4830e7d0-82c4-a71a-38cc-6b662cf907bb", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F825AEF6C\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:03 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "4830e7d0-82c4-a71a-38cc-6b662cf907bb", + "x-ms-request-id": "106b51a2-d01f-0048-7448-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-0b8274cccb90d54aa9aa783f1d2d9e59-4ae4da45fc8e4944-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "b1de3a35-7d31-4d4e-2efe-afa8d8656e98", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F8264335F\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:03 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "b1de3a35-7d31-4d4e-2efe-afa8d8656e98", + "x-ms-request-id": "106b51a3-d01f-0048-7548-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73/test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-0df1e643a0c6834b8f4f3ae19543f024-b4a3a02a2d6f5341-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f2302a9a-551b-648a-19b3-22bedd14e2c6", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "ETag": "\u00220x8D8745F826D6A34\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:03 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "f2302a9a-551b-648a-19b3-22bedd14e2c6", + "x-ms-request-id": "106b51a4-d01f-0048-7648-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73?resource=filesystem\u0026recursive=true\u0026directory=test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf\u0026upn=false", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ae0e3bfa-7b34-707c-316b-6f4d10176616", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:48:03 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "ae0e3bfa-7b34-707c-316b-6f4d10176616", + "x-ms-request-id": "106b51a5-d01f-0048-7748-a65097000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F822BF94B\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F82356578\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F823F31BF\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F826D6A34\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/bar/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F825AEF6C\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F8264335F\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/baz/foo/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F8222218A\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F8251BA3E\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:03 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/foo/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F82487896\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:02 GMT\u0022,\u0022name\u0022:\u0022test-directory-0f1742b9-cb03-1056-2b1a-6fc39bbd55cf/foo/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-6da0b7f1-1a2e-f778-f50b-f28e51badf73?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2488992e74cefb4cacb4e3a515c3e8b3-4d74cc4bb8551a4a-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a2c3e3a8-3406-7b91-29f4-b6883af1f34c", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:02 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "a2c3e3a8-3406-7b91-29f4-b6883af1f34c", + "x-ms-request-id": "545c9757-e01e-000e-7e48-a66410000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "438625655", + "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/DirectoryClientTests/GetPathsAsync_Upn.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_Upn.json new file mode 100644 index 000000000000..0e23bbfdfadb --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_Upn.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-56b66415640ab34092b7db61807ee84e-dccd6bfe63a17045-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "f0bda5fb-d6a5-8975-a664-5a92f27aefbc", + "x-ms-date": "Mon, 19 Oct 2020 18:47:56 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:56 GMT", + "ETag": "\u00220x8D8745F7EBA4F14\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:56 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "f0bda5fb-d6a5-8975-a664-5a92f27aefbc", + "x-ms-request-id": "281c31b5-f01e-0070-3648-a6f457000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2a323fe1e315124686fa402df386fae8-a9849c2411480e4f-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "19411295-7f69-55be-73d3-bb387f21b6b5", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7EFC6D00\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "19411295-7f69-55be-73d3-bb387f21b6b5", + "x-ms-request-id": "e055d2b9-301f-0032-2548-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-eaa5f98e2ec67c4aa1076fdce32ec0d1-d7eb08d0f03feb40-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c0bd8f55-f5af-4219-9923-d1adfe833500", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F06DC23\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c0bd8f55-f5af-4219-9923-d1adfe833500", + "x-ms-request-id": "e055d2ba-301f-0032-2648-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-d2c74f92aa9c5b48be68b8a646d40403-f829941ad66a7944-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f0e3109c-f663-6006-bc8e-00dcd88f8f6c", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F10D419\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "f0e3109c-f663-6006-bc8e-00dcd88f8f6c", + "x-ms-request-id": "e055d2bb-301f-0032-2748-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2f92898617bf59458f8fcdcdc65c3090-f5e4872ba3579340-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ed101249-45a0-b59c-6ec7-21297cea1346", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F1B8AEB\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ed101249-45a0-b59c-6ec7-21297cea1346", + "x-ms-request-id": "e055d2bc-301f-0032-2848-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-59897b316778044ea00752c624e72882-286f5528c1f69e41-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "c5930851-a17f-64cc-ddbb-97c537ca5add", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F25A6B2\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "c5930851-a17f-64cc-ddbb-97c537ca5add", + "x-ms-request-id": "e055d2bd-301f-0032-2948-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-5dda54f09781da43a76397106a23b49e-0de95cd614e5f74f-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "74d8f432-4e57-82c7-f07a-ae733c6c0d51", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F3124A5\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "74d8f432-4e57-82c7-f07a-ae733c6c0d51", + "x-ms-request-id": "e055d2be-301f-0032-2a48-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-bdf8d67928d7014d834bf3033b371e97-de75a3ba6aba394d-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "42923411-e6f1-6f85-db54-203701553874", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F3BE006\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "42923411-e6f1-6f85-db54-203701553874", + "x-ms-request-id": "e055d2bf-301f-0032-2b48-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-0684cd153cb7704e8be8d1551698d6f4-7a69460606ee5641-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0861db32-cad9-ca5f-c564-8ddf63449fe9", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F469C39\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "0861db32-cad9-ca5f-c564-8ddf63449fe9", + "x-ms-request-id": "e055d2c0-301f-0032-2c48-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2e28f7cf6ac2f448b626142e7c560b0e-c21603ede4e58247-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "250467a1-30f3-f49b-201a-0cd1b3504b34", + "x-ms-date": "Mon, 19 Oct 2020 18:47:57 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F50AC93\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "250467a1-30f3-f49b-201a-0cd1b3504b34", + "x-ms-request-id": "e055d2c1-301f-0032-2d48-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61/test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-4fdec4664827974fb2df7bfb4c68d197-00277174fa1d3d45-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "fc3dc65e-793f-b4f5-d300-2f386acb1db3", + "x-ms-date": "Mon, 19 Oct 2020 18:47:58 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "ETag": "\u00220x8D8745F7F5AAD71\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:47:58 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "fc3dc65e-793f-b4f5-d300-2f386acb1db3", + "x-ms-request-id": "e055d2c2-301f-0032-2e48-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61?resource=filesystem\u0026recursive=false\u0026directory=test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83\u0026upn=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ec739200-4f12-1ff5-579f-271e332d5272", + "x-ms-date": "Mon, 19 Oct 2020 18:47:58 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:47:57 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "ec739200-4f12-1ff5-579f-271e332d5272", + "x-ms-request-id": "e055d2c3-301f-0032-2f48-a64dd7000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:57 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7F10D419\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:57 GMT\u0022,\u0022name\u0022:\u0022test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:57 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7F1B8AEB\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:57 GMT\u0022,\u0022name\u0022:\u0022test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:47:57 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F7F06DC23\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:47:57 GMT\u0022,\u0022name\u0022:\u0022test-directory-9b95ac47-a581-ea31-346d-5753d3f10e83/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-99774ff9-a2d8-d47a-83dd-9875ea3eaa61?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-809a2ad72bbe4e4fa2be91bc8684ec1a-11953de2af09df4c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "d738b40d-3158-48a0-9f01-0c59e3870bd2", + "x-ms-date": "Mon, 19 Oct 2020 18:47:58 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:47:58 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "d738b40d-3158-48a0-9f01-0c59e3870bd2", + "x-ms-request-id": "281c326a-f01e-0070-4048-a6f457000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "1777626952", + "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/DirectoryClientTests/GetPathsAsync_UpnAsync.json b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_UpnAsync.json new file mode 100644 index 000000000000..165ff4b4a1b2 --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.DataLake/tests/SessionRecords/DirectoryClientTests/GetPathsAsync_UpnAsync.json @@ -0,0 +1,432 @@ +{ + "Entries": [ + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151?restype=container", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f19ab426fb1e43478ad0f6cd65af740b-6b23c5804abac648-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-blob-public-access": "container", + "x-ms-client-request-id": "63cadb97-88b0-b4d0-d3ff-ac57a078f7e1", + "x-ms-date": "Mon, 19 Oct 2020 18:48:03 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F82AEE56B\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:03 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "63cadb97-88b0-b4d0-d3ff-ac57a078f7e1", + "x-ms-request-id": "07a37141-f01e-003d-3748-a63bbb000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-11080856e69125498c337be5d8ef1011-f0481d7f00160d4b-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "a41b9fc1-273c-35d1-6ed5-73603bf2cfdb", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:03 GMT", + "ETag": "\u00220x8D8745F831FDA4B\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "a41b9fc1-273c-35d1-6ed5-73603bf2cfdb", + "x-ms-request-id": "12b78dbc-e01f-007c-6a48-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-ad837b614444d54f95b3e3f895d92d62-edf600977989fc4d-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "451ce475-fcdc-e9c3-2f7e-c88f9a40f926", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:03 GMT", + "ETag": "\u00220x8D8745F8329EDD1\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "451ce475-fcdc-e9c3-2f7e-c88f9a40f926", + "x-ms-request-id": "12b78dbd-e01f-007c-6b48-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-1336d59b95e9344a90583dbb071e9ebf-1fa0efa162e02846-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "57eaa688-8ad5-61ff-e95c-6f46f8ecb87d", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:03 GMT", + "ETag": "\u00220x8D8745F8333E3C2\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "57eaa688-8ad5-61ff-e95c-6f46f8ecb87d", + "x-ms-request-id": "12b78dbe-e01f-007c-6c48-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/baz?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2b56924b594efb49a1517c727c129216-761875c22c76934e-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f4060648-a255-fd50-8801-1081cc5d0836", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F833D3A33\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "f4060648-a255-fd50-8801-1081cc5d0836", + "x-ms-request-id": "12b78dbf-e01f-007c-6d48-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/baz/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-27233aadb7800649820bb51d333aef88-1cc12fa6f68b794c-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f1fec09e-c4e5-8c27-84cc-ef48426e6ce3", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F83467658\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "f1fec09e-c4e5-8c27-84cc-ef48426e6ce3", + "x-ms-request-id": "12b78dc0-e01f-007c-6e48-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/foo/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-26f9209f7c630944bcffa72da7d22c15-58ec14cabde14f41-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "0ce2d6b6-175e-4a50-4058-d3ebce30f247", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F834FCDEC\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "0ce2d6b6-175e-4a50-4058-d3ebce30f247", + "x-ms-request-id": "12b78dc1-e01f-007c-6f48-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-5a56b14a8739784b86d499cced291518-141eb22164264641-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "6c915237-5f8c-fb85-99bb-6d71920cbb5e", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F8359C170\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "6c915237-5f8c-fb85-99bb-6d71920cbb5e", + "x-ms-request-id": "12b78dc2-e01f-007c-7048-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/baz/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-2dd6913bb8e54f4abfabe03459807c03-db0652d65cf2a844-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "7bb3e559-869e-e4bb-acab-e4292fffa7bc", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F836476D3\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "7bb3e559-869e-e4bb-acab-e4292fffa7bc", + "x-ms-request-id": "12b78dc3-e01f-007c-7148-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/baz/foo/bar?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-cfccc4456614b7439facdb4b22036e8a-4ee078cd0e1d9547-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ac17aff7-3f58-57bf-3a7a-ad43318fe966", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F836F277B\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "ac17aff7-3f58-57bf-3a7a-ad43318fe966", + "x-ms-request-id": "12b78dc4-e01f-007c-7248-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151/test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/baz/bar/foo?resource=directory", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "If-None-Match": "*", + "traceparent": "00-ff294c6c28a2e548bd63425131f1baf3-700c597f9eb00444-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "80328764-fae7-7863-44dd-55a8f7bbef0a", + "x-ms-date": "Mon, 19 Oct 2020 18:48:04 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "ETag": "\u00220x8D8745F83793EB2\u0022", + "Last-Modified": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "80328764-fae7-7863-44dd-55a8f7bbef0a", + "x-ms-request-id": "12b78dc6-e01f-007c-7348-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://seannsecanary.dfs.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151?resource=filesystem\u0026recursive=false\u0026directory=test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff\u0026upn=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "aadf9bb1-685d-067f-24b8-6b28ddf1bc2b", + "x-ms-date": "Mon, 19 Oct 2020 18:48:05 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 19 Oct 2020 18:48:04 GMT", + "Server": [ + "Windows-Azure-HDFS/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "x-ms-client-request-id": "aadf9bb1-685d-067f-24b8-6b28ddf1bc2b", + "x-ms-request-id": "12b78dc7-e01f-007c-7448-a6635f000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [ + "{\u0022paths\u0022:[{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:04 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F8333E3C2\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:04 GMT\u0022,\u0022name\u0022:\u0022test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/bar\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:04 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F833D3A33\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:04 GMT\u0022,\u0022name\u0022:\u0022test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/baz\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022},{\u0022contentLength\u0022:\u00220\u0022,\u0022creationTime\u0022:\u0022Mon, 19 Oct 2020 18:48:04 GMT\u0022,\u0022etag\u0022:\u00220x8D8745F8329EDD1\u0022,\u0022group\u0022:\u0022$superuser\u0022,\u0022isDirectory\u0022:\u0022true\u0022,\u0022lastModified\u0022:\u0022Mon, 19 Oct 2020 18:48:04 GMT\u0022,\u0022name\u0022:\u0022test-directory-135e5f61-61a8-f46d-f050-4ddee4f7a1ff/foo\u0022,\u0022owner\u0022:\u0022$superuser\u0022,\u0022permissions\u0022:\u0022rwxr-x---\u0022}]}\n" + ] + }, + { + "RequestUri": "https://seannsecanary.blob.core.windows.net/test-filesystem-2ecb6b47-6597-a573-9a4c-7b4b122f7151?restype=container", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46bdd45e2e5beb42a8d1be00954ce9ad-fce33bb4a6929846-00", + "User-Agent": [ + "azsdk-net-Storage.Files.DataLake/12.5.0-alpha.20201019.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "5bf7f206-45dc-26ad-20da-6fb02b2de623", + "x-ms-date": "Mon, 19 Oct 2020 18:48:05 GMT", + "x-ms-return-client-request-id": "true", + "x-ms-version": "2020-02-10" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Mon, 19 Oct 2020 18:48:05 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-client-request-id": "5bf7f206-45dc-26ad-20da-6fb02b2de623", + "x-ms-request-id": "07a3720d-f01e-003d-5a48-a63bbb000000", + "x-ms-version": "2020-02-10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "RandomSeed": "2031102275", + "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