diff --git a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md index cc0613e9720f6..73fc6a48410fc 100644 --- a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md +++ b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md @@ -1,7 +1,8 @@ # Release History ## 12.3.0-beta.1 (Unreleased) -- Added support for the 2019-02-10 service version. +- Added support for the 2020-02-10 service version. +- Added support for setting, modifying, and removing ACLs recursively. - Added support to schedule file expiration. - Added support to specify Arrow Output Serialization when querying a file. - Added support to generate directory SAS and added support to specify additional user ids and correlation ids for user delegation SAS. diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java index c13a47006376d..496c46439f5f8 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java @@ -5,6 +5,7 @@ import com.azure.core.http.HttpPipeline; import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.ResponseBase; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.CoreUtils; @@ -17,6 +18,7 @@ import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.Utility; import com.azure.storage.common.implementation.Constants; +import com.azure.storage.common.implementation.StorageImplUtils; import com.azure.storage.common.implementation.SasImplUtils; import com.azure.storage.file.datalake.implementation.DataLakeStorageClientBuilder; import com.azure.storage.file.datalake.implementation.DataLakeStorageClientImpl; @@ -25,10 +27,16 @@ import com.azure.storage.file.datalake.implementation.models.PathGetPropertiesAction; import com.azure.storage.file.datalake.implementation.models.PathRenameMode; import com.azure.storage.file.datalake.implementation.models.PathResourceType; +import com.azure.storage.file.datalake.implementation.models.PathSetAccessControlRecursiveMode; +import com.azure.storage.file.datalake.implementation.models.PathsSetAccessControlRecursiveResponse; import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.DataLakeSasImplUtil; import com.azure.storage.file.datalake.implementation.util.TransformUtils; +import com.azure.storage.file.datalake.models.AccessControlChangeCounters; +import com.azure.storage.file.datalake.models.AccessControlChangeFailure; +import com.azure.storage.file.datalake.models.AccessControlChangeResult; +import com.azure.storage.file.datalake.models.AccessControlChanges; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathAccessControl; import com.azure.storage.file.datalake.models.PathAccessControlEntry; @@ -37,7 +45,11 @@ import com.azure.storage.file.datalake.models.PathItem; import com.azure.storage.file.datalake.models.PathPermissions; import com.azure.storage.file.datalake.models.PathProperties; +import com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry; import com.azure.storage.file.datalake.models.UserDelegationKey; +import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import reactor.core.publisher.Mono; @@ -47,6 +59,9 @@ import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.function.Consumer; +import java.util.stream.Collectors; import static com.azure.core.util.FluxUtil.monoError; import static com.azure.core.util.FluxUtil.withContext; @@ -639,6 +654,265 @@ Mono> setAccessControlWithResponse(ListCode Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlRecursive#List} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControlList The POSIX access control list for the file or directory. + * @return A reactive response containing the result of the operation. + */ + public Mono setAccessControlRecursive(List accessControlList) { + try { + return setAccessControlRecursiveWithResponse(new PathSetAccessControlRecursiveOptions(accessControlList)) + .flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Recursively sets the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlRecursiveWithResponse#PathSetAccessControlRecursiveOptions} + * + *

For more information, see the + * Azure Docs

+ * + * @param options {@link PathSetAccessControlRecursiveOptions} + * @return A reactive response containing the result of the operation. + */ + public Mono> setAccessControlRecursiveWithResponse( + PathSetAccessControlRecursiveOptions options) { + StorageImplUtils.assertNotNull("options", options); + try { + return withContext(context -> setAccessControlRecursiveWithResponse( + PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(), + PathSetAccessControlRecursiveMode.SET, options.getBatchSize(), options.getMaxBatches(), + options.isContinuingOnFailure(), options.getContinuationToken(), context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Recursively updates the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.updateAccessControlRecursive#List} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControlList The POSIX access control list for the file or directory. + * @return A reactive response containing the result of the operation. + */ + public Mono updateAccessControlRecursive(List accessControlList) + { + try { + return updateAccessControlRecursiveWithResponse( + new PathUpdateAccessControlRecursiveOptions(accessControlList)) + .flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Recursively updates the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.updateAccessControlRecursiveWithResponse#PathUpdateAccessControlRecursiveOptions} + * + *

For more information, see the + * Azure Docs

+ * + * @param options {@link PathUpdateAccessControlRecursiveOptions} + * @return A reactive response containing the result of the operation. + */ + public Mono> updateAccessControlRecursiveWithResponse( + PathUpdateAccessControlRecursiveOptions options) { + StorageImplUtils.assertNotNull("options", options); + try { + return withContext(context -> setAccessControlRecursiveWithResponse( + PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(), + PathSetAccessControlRecursiveMode.MODIFY, options.getBatchSize(), options.getMaxBatches(), + options.isContinuingOnFailure(), options.getContinuationToken(), context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Recursively removes the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.removeAccessControlRecursive#List} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControlList The POSIX access control list for the file or directory. + * @return A reactive response containing the result of the operation. + */ + public Mono removeAccessControlRecursive( + List accessControlList) { + try { + return removeAccessControlRecursiveWithResponse( + new PathRemoveAccessControlRecursiveOptions(accessControlList)) + .flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Recursively removes the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.removeAccessControlRecursiveWithResponse#PathRemoveAccessControlRecursiveOptions} + * + *

For more information, see the + * Azure Docs

+ * + * @param options {@link PathRemoveAccessControlRecursiveOptions} + * @return A reactive response containing the result of the operation. + */ + public Mono> removeAccessControlRecursiveWithResponse( + PathRemoveAccessControlRecursiveOptions options) { + StorageImplUtils.assertNotNull("options", options); + try { + return withContext(context -> setAccessControlRecursiveWithResponse( + PathRemoveAccessControlEntry.serializeList(options.getAccessControlList()), + options.getProgressHandler(), PathSetAccessControlRecursiveMode.REMOVE, options.getBatchSize(), + options.getMaxBatches(), options.isContinuingOnFailure(), options.getContinuationToken(), context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + Mono> setAccessControlRecursiveWithResponse( + String accessControlList, Consumer> progressHandler, + PathSetAccessControlRecursiveMode mode, Integer batchSize, Integer maxBatches, Boolean continueOnFailure, + String continuationToken, Context context) { + StorageImplUtils.assertNotNull("accessControlList", accessControlList); + + context = context == null ? Context.NONE : context; + Context contextFinal = context.addData(AZ_TRACING_NAMESPACE_KEY, STORAGE_TRACING_NAMESPACE_VALUE); + + AtomicInteger directoriesSuccessfulCount = new AtomicInteger(0); + AtomicInteger filesSuccessfulCount = new AtomicInteger(0); + AtomicInteger failureCount = new AtomicInteger(0); + AtomicInteger batchesCount = new AtomicInteger(0); + + return this.dataLakeStorage.paths().setAccessControlRecursiveWithRestResponseAsync(mode, null, + continuationToken, continueOnFailure, batchSize, accessControlList, null, contextFinal) + .flatMap(response -> setAccessControlRecursiveWithResponseHelper(response, maxBatches, + directoriesSuccessfulCount, filesSuccessfulCount, failureCount, batchesCount, progressHandler, + accessControlList, mode, batchSize, continueOnFailure, continuationToken, contextFinal)); + } + + Mono> setAccessControlRecursiveWithResponseHelper( + PathsSetAccessControlRecursiveResponse response, Integer maxBatches, AtomicInteger directoriesSuccessfulCount, + AtomicInteger filesSuccessfulCount, AtomicInteger failureCount, AtomicInteger batchesCount, + Consumer> progressHandler, String accessControlStr, + PathSetAccessControlRecursiveMode mode, Integer batchSize, Boolean continueOnFailure, String lastToken, + Context context) { + + // We only enter the helper after making a service call, so increment the counter immediately. + batchesCount.incrementAndGet(); + + // Update counters + directoriesSuccessfulCount.addAndGet(response.getValue().getDirectoriesSuccessful()); + filesSuccessfulCount.addAndGet(response.getValue().getFilesSuccessful()); + failureCount.addAndGet(response.getValue().getFailureCount()); + + /* + Determine which token we should report/return/use next. + If there was a token present on the response (still processing and either no errors or forceFlag set), + use that one. + If there were no failures or force flag set and still nothing present, we are at the end, so use that. + If there were failures and no force flag set, use the last token (no token is returned in this case). + */ + String newToken = response.getDeserializedHeaders().getContinuation(); + String effectiveNextToken; + if (newToken != null && !newToken.isEmpty()) { + effectiveNextToken = newToken; + } else { + if (failureCount.get() == 0 || (continueOnFailure == null || continueOnFailure)) { + effectiveNextToken = newToken; + } else { + effectiveNextToken = lastToken; + } + } + + // Report progress + if (progressHandler != null) { + AccessControlChanges changes = new AccessControlChanges(); + + changes.setContinuationToken(effectiveNextToken); + + changes.setBatchFailures( + response.getValue().getFailedEntries() + .stream() + .map(aclFailedEntry -> new AccessControlChangeFailure() + .setDirectory(aclFailedEntry.getType().equals("DIRECTORY")) + .setName(aclFailedEntry.getName()) + .setErrorMessage(aclFailedEntry.getErrorMessage()) + ).collect(Collectors.toList()) + ); + + changes.setBatchCounters(new AccessControlChangeCounters() + .setChangedDirectoriesCount(response.getValue().getDirectoriesSuccessful()) + .setChangedFilesCount(response.getValue().getFilesSuccessful()) + .setFailedChangesCount(response.getValue().getFailureCount())); + + changes.setAggregateCounters(new AccessControlChangeCounters() + .setChangedDirectoriesCount(directoriesSuccessfulCount.get()) + .setChangedFilesCount(filesSuccessfulCount.get()) + .setFailedChangesCount(failureCount.get())); + + progressHandler.accept( + new ResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), changes, + response.getDeserializedHeaders())); + } + + /* + Determine if we are finished either because there is no new continuation (failure or finished) token or we have + hit maxBatches. + */ + if ((newToken == null || newToken.isEmpty()) || (maxBatches != null && batchesCount.get() >= maxBatches)) { + AccessControlChangeResult result = new AccessControlChangeResult() + .setContinuationToken(effectiveNextToken) + .setCounters(new AccessControlChangeCounters() + .setChangedDirectoriesCount(directoriesSuccessfulCount.get()) + .setChangedFilesCount(filesSuccessfulCount.get()) + .setFailedChangesCount(failureCount.get())); + + return Mono.just(new ResponseBase<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), + result, response.getDeserializedHeaders() + )); + } + + // If we're not finished, issue another request + return this.dataLakeStorage.paths().setAccessControlRecursiveWithRestResponseAsync(mode, null, + effectiveNextToken, continueOnFailure, batchSize, accessControlStr, null, context) + .flatMap(response2 -> setAccessControlRecursiveWithResponseHelper(response2, maxBatches, + directoriesSuccessfulCount, filesSuccessfulCount, failureCount, batchesCount, progressHandler, + accessControlStr, mode, batchSize, continueOnFailure, effectiveNextToken, context)); + } + /** * Returns the access control for a resource. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java index d74e8165053e1..f8d50134b238d 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java @@ -17,8 +17,10 @@ import com.azure.storage.file.datalake.implementation.models.LeaseAccessConditions; import com.azure.storage.file.datalake.implementation.models.ModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.models.PathRenameMode; +import com.azure.storage.file.datalake.implementation.models.PathSetAccessControlRecursiveMode; import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; +import com.azure.storage.file.datalake.models.AccessControlChangeResult; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathAccessControl; import com.azure.storage.file.datalake.models.PathAccessControlEntry; @@ -26,7 +28,11 @@ import com.azure.storage.file.datalake.models.PathInfo; import com.azure.storage.file.datalake.models.PathPermissions; import com.azure.storage.file.datalake.models.PathProperties; +import com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry; import com.azure.storage.file.datalake.models.UserDelegationKey; +import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import reactor.core.publisher.Mono; @@ -354,6 +360,140 @@ public Response setPermissionsWithResponse(PathPermissions permissions return StorageImplUtils.blockWithOptionalTimeout(response, timeout); } + /** + * Recursively sets the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setAccessControlRecursive#List} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControlList The POSIX access control list for the file or directory. + * @return The result of the operation. + */ + public AccessControlChangeResult setAccessControlRecursive(List accessControlList) { + return setAccessControlRecursiveWithResponse(new PathSetAccessControlRecursiveOptions(accessControlList), null, + Context.NONE).getValue(); + } + + /** + * Recursively sets the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setAccessControlRecursiveWithResponse#PathSetAccessControlRecursiveOptions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param options {@link PathSetAccessControlRecursiveOptions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the result of the operation. + */ + public Response setAccessControlRecursiveWithResponse( + PathSetAccessControlRecursiveOptions options, Duration timeout, Context context) { + Mono> response = + dataLakePathAsyncClient.setAccessControlRecursiveWithResponse( + PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(), + PathSetAccessControlRecursiveMode.SET, options.getBatchSize(), options.getMaxBatches(), + options.isContinuingOnFailure(), options.getContinuationToken(), context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Recursively updates the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.updateAccessControlRecursive#List} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControlList The POSIX access control list for the file or directory. + * @return The result of the operation. + */ + public AccessControlChangeResult updateAccessControlRecursive(List accessControlList) { + return updateAccessControlRecursiveWithResponse(new PathUpdateAccessControlRecursiveOptions(accessControlList), + null, Context.NONE).getValue(); + } + + /** + * Recursively updates the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.updateAccessControlRecursiveWithResponse#PathUpdateAccessControlRecursiveOptions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param options {@link PathUpdateAccessControlRecursiveOptions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the result of the operation. + */ + public Response updateAccessControlRecursiveWithResponse( + PathUpdateAccessControlRecursiveOptions options, Duration timeout, Context context) { + Mono> response = + dataLakePathAsyncClient.setAccessControlRecursiveWithResponse( + PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(), + PathSetAccessControlRecursiveMode.MODIFY, options.getBatchSize(), options.getMaxBatches(), + options.isContinuingOnFailure(), options.getContinuationToken(), context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Recursively removes the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.removeAccessControlRecursive#List} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControlList The POSIX access control list for the file or directory. + * @return The result of the operation. + */ + public AccessControlChangeResult removeAccessControlRecursive( + List accessControlList) { + return removeAccessControlRecursiveWithResponse(new PathRemoveAccessControlRecursiveOptions(accessControlList), + null, Context.NONE).getValue(); + } + + /** + * Recursively removes the access control on a path and all subpaths. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.removeAccessControlRecursiveWithResponse#PathRemoveAccessControlRecursiveOptions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param options {@link PathRemoveAccessControlRecursiveOptions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the result of the operation. + */ + public Response removeAccessControlRecursiveWithResponse( + PathRemoveAccessControlRecursiveOptions options, Duration timeout, Context context) { + Mono> response = + dataLakePathAsyncClient.setAccessControlRecursiveWithResponse( + PathRemoveAccessControlEntry.serializeList(options.getAccessControlList()), + options.getProgressHandler(), PathSetAccessControlRecursiveMode.REMOVE, options.getBatchSize(), + options.getMaxBatches(), options.isContinuingOnFailure(), options.getContinuationToken(), context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** * Returns the access control for a resource. * @@ -456,7 +596,7 @@ public Boolean exists() { *

Note that this method does not guarantee that the path type (file/directory) matches expectations.

*

For example, a DataLakeFileClient representing a path to a datalake directory will return true, and vice * versa.

- * + * *

Code Samples

* * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.existsWithResponse#Duration-Context} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java index c0a9676efbb26..8a7e142fcf675 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java @@ -123,7 +123,7 @@ private interface PathsService { @Patch("{filesystem}/{path}") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(DataLakeStorageException.class) - Mono setAccessControlRecursive(@HostParam("url") String url, @QueryParam("timeout") Integer timeout, @QueryParam("continuation") String continuation, @QueryParam("mode") PathSetAccessControlRecursiveMode mode, @QueryParam("forceFlag") Boolean forceFlag, @QueryParam("maxRecords") Integer maxRecords, @HeaderParam("x-ms-acl") String acl, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, @QueryParam("action") String action, Context context); + Mono setAccessControlRecursive(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("timeout") Integer timeout, @QueryParam("continuation") String continuation, @QueryParam("mode") PathSetAccessControlRecursiveMode mode, @QueryParam("forceFlag") Boolean forceFlag, @QueryParam("maxRecords") Integer maxRecords, @HeaderParam("x-ms-acl") String acl, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, @QueryParam("action") String action, Context context); @Patch("{filesystem}/{path}") @ExpectedResponses({200}) @@ -726,7 +726,7 @@ public Mono setAccessControlRecursiveWit final String acl = null; final String requestId = null; final String action = "setAccessControlRecursive"; - return service.setAccessControlRecursive(this.client.getUrl(), timeout, continuation, mode, forceFlag, maxRecords, acl, requestId, this.client.getVersion(), action, context); + return service.setAccessControlRecursive(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), timeout, continuation, mode, forceFlag, maxRecords, acl, requestId, this.client.getVersion(), action, context); } /** @@ -746,7 +746,7 @@ public Mono setAccessControlRecursiveWit @ServiceMethod(returns = ReturnType.SINGLE) public Mono setAccessControlRecursiveWithRestResponseAsync(PathSetAccessControlRecursiveMode mode, Integer timeout, String continuation, Boolean forceFlag, Integer maxRecords, String acl, String requestId, Context context) { final String action = "setAccessControlRecursive"; - return service.setAccessControlRecursive(this.client.getUrl(), timeout, continuation, mode, forceFlag, maxRecords, acl, requestId, this.client.getVersion(), action, context); + return service.setAccessControlRecursive(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), timeout, continuation, mode, forceFlag, maxRecords, acl, requestId, this.client.getVersion(), action, context); } /** diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/AppendMode.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/AppendMode.java new file mode 100644 index 0000000000000..414fcd6303ccd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/AppendMode.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for AppendMode. + */ +public enum AppendMode { + /** + * Enum value autoCreate. + */ + AUTO_CREATE("autoCreate"); + + /** + * The actual serialized value for a AppendMode instance. + */ + private final String value; + + AppendMode(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a AppendMode instance. + * + * @param value the serialized value to parse. + * @return the parsed AppendMode object, or null if unable to parse. + */ + @JsonCreator + public static AppendMode fromString(String value) { + AppendMode[] items = AppendMode.values(); + for (AppendMode item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/BlobType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/BlobType.java new file mode 100644 index 0000000000000..d9456cccad0e0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/BlobType.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for BlobType. + */ +public enum BlobType { + /** + * Enum value appendblob. + */ + APPENDBLOB("appendblob"); + + /** + * The actual serialized value for a BlobType instance. + */ + private final String value; + + BlobType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a BlobType instance. + * + * @param value the serialized value to parse. + * @return the parsed BlobType object, or null if unable to parse. + */ + @JsonCreator + public static BlobType fromString(String value) { + BlobType[] items = BlobType.values(); + for (BlobType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathConcurrentAppendHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathConcurrentAppendHeaders.java new file mode 100644 index 0000000000000..c1c8dd82141bc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathConcurrentAppendHeaders.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for ConcurrentAppend operation. + */ +@Fluent +public final class PathConcurrentAppendHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * If a client request id header is sent in the request, this header will + * be present in the response with the same value. + */ + @JsonProperty(value = "x-ms-client-request-id") + private String clientRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathConcurrentAppendHeaders object itself. + */ + public PathConcurrentAppendHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the PathConcurrentAppendHeaders object itself. + */ + public PathConcurrentAppendHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @return the clientRequestId value. + */ + public String getClientRequestId() { + return this.clientRequestId; + } + + /** + * Set the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @param clientRequestId the clientRequestId value to set. + * @return the PathConcurrentAppendHeaders object itself. + */ + public PathConcurrentAppendHeaders setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the PathConcurrentAppendHeaders object itself. + */ + public PathConcurrentAppendHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the PathConcurrentAppendHeaders object itself. + */ + public PathConcurrentAppendHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsConcurrentAppendResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsConcurrentAppendResponse.java new file mode 100644 index 0000000000000..e5cf449ae3f68 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsConcurrentAppendResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the concurrentAppend operation. + */ +public final class PathsConcurrentAppendResponse extends ResponseBase { + /** + * Creates an instance of PathsConcurrentAppendResponse. + * + * @param request the request which resulted in this PathsConcurrentAppendResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsConcurrentAppendResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathConcurrentAppendHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeCounters.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeCounters.java new file mode 100644 index 0000000000000..939cce1babff9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeCounters.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * AccessControlChangeCounters contains counts of operations that change Access Control Lists recursively. + */ +public class AccessControlChangeCounters { + private long changedDirectoriesCount; + private long changedFilesCount; + private long failedChangesCount; + + /** + * The number of directories where Access Control List has been updated successfully. + * + * @return The number of directories where Access Control List has been updated successfully. + */ + public long getChangedDirectoriesCount() { + return this.changedDirectoriesCount; + } + + /** + * Sets the number of directories where Access Control List has been updated successfully. + * @param changedDirectoriesCount The number of directories where Access Control List has been updated + * successfully. + * @return The updated object. + */ + public AccessControlChangeCounters setChangedDirectoriesCount(long changedDirectoriesCount) { + this.changedDirectoriesCount = changedDirectoriesCount; + return this; + } + + /** + * Returns the number of files where Access Control List has been updated successfully. + * + * @return The number of files where Access Control List has been updated successfully. + */ + public long getChangedFilesCount() { + return this.changedFilesCount; + } + + /** + * Sets number of files where Access Control List has been updated successfully. + * + * @param changedFilesCount The number of files where Access Control List has been updated successfully. + * @return The updated object + */ + public AccessControlChangeCounters setChangedFilesCount(long changedFilesCount) { + this.changedFilesCount = changedFilesCount; + return this; + } + + /** + * Returns the number of paths where Access Control List update has failed. + * + * @return The number of paths where Access Control List update has failed. + */ + public long getFailedChangesCount() { + return failedChangesCount; + } + + /** + * Sets the number of paths where Access Control List update has failed. + * @param failedChangesCount The number of paths where Access Control List update has failed. + * @return The updated object. + */ + public AccessControlChangeCounters setFailedChangesCount(long failedChangesCount) { + this.failedChangesCount = failedChangesCount; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeFailure.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeFailure.java new file mode 100644 index 0000000000000..e6f23cd7871d3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeFailure.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * Represents an entry that failed to update Access Control List. + */ +public class AccessControlChangeFailure { + private String name; + private boolean isDirectory; + private String errorMessage; + + /** + * Returns the name of an entry. + * + * @return The name of an entry. + */ + public String getName() { + return name; + } + + /** + * Sets the name of an entry. + * + * @param name The name of an entry. + * @return The updated object. + */ + public AccessControlChangeFailure setName(String name) { + this.name = name; + return this; + } + + /** + * Returns whether entry is a directory. + * + * @return Whether the entry is a directory. + */ + public boolean isDirectory() { + return isDirectory; + } + + /** + * Sets whether entry is a directory. + * + * @param directory Whether entry is a directory. + * @return The updated object. + */ + public AccessControlChangeFailure setDirectory(boolean directory) { + isDirectory = directory; + return this; + } + + /** + * Returns error message that is the reason why entry failed to update. + * + * @return The error message that is the reason why entry failed to update. + */ + public String getErrorMessage() { + return errorMessage; + } + + /** + * Sets the error message that is the reason why entry failed to update. + * + * @param errorMessage The error message that is the reason why entry failed to update. + * @return The updated object. + */ + public AccessControlChangeFailure setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeResult.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeResult.java new file mode 100644 index 0000000000000..6905244a380e1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeResult.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * AccessControlChangeResult contains result of operations that change Access Control Lists recursively. + */ +public class AccessControlChangeResult { + private AccessControlChangeCounters counters; + private String continuationToken; + + /** + * Returns the {@link AccessControlChangeCounters}. + * + * @return {@link AccessControlChangeCounters} + */ + public AccessControlChangeCounters getCounters() { + return counters; + } + + /** + * Sets the {@link AccessControlChangeCounters}. + * + * @param counters {@link AccessControlChangeCounters} + * @return The updated object. + */ + public AccessControlChangeResult setCounters(AccessControlChangeCounters counters) { + this.counters = counters; + return this; + } + + /** + * Optional continuation token. Value is present when operation is split into multiple batches and can be used to + * resume progress. + * + * @return The continuation token to pass on the next request. + */ + public String getContinuationToken() { + return continuationToken; + } + + /** + * Sets the continuation token. + * + * @param continuationToken Optional continuation token. Value is present when operation is split into multiple + * batches and can be used to resume progress. + * @return The updated object. + */ + public AccessControlChangeResult setContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChanges.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChanges.java new file mode 100644 index 0000000000000..6997589b91ccd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChanges.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * AccessControlChanges contains batch and cumulative counts of operations that change Access Control Lists recursively. + * Additionally it exposes path entries that failed to update while these operations progress. + */ +public class AccessControlChanges { + private Iterable batchFailures; + private AccessControlChangeCounters batchCounters; + private AccessControlChangeCounters aggregateCounters; + private String continuationToken; + + /** + * Returns an iterable of path entries that failed to update Access Control List within a single batch. + * + * @return An iterable of path entries that failed to update Access Control List within a single batch. + */ + public Iterable getBatchFailures() { + return batchFailures; + } + + /** + * Sets an iterable of path entries that failed to update Access Control List within a single batch. + * + * @param batchFailures An iterable of path entries that failed to update Access Control List within a single batch. + * @return The updated object + */ + public AccessControlChanges setBatchFailures(Iterable batchFailures) { + this.batchFailures = batchFailures; + return this; + } + + /** + * Returns an {@link AccessControlChangeCounters} that contains counts of paths changed within a single batch. + * + * @return {@link AccessControlChangeCounters} + */ + public AccessControlChangeCounters getBatchCounters() { + return batchCounters; + } + + /** + * Sets an {@link AccessControlChangeCounters} that contains counts of paths changed within a single batch. + * + * @param batchCounters {@link AccessControlChangeCounters} + * @return The updated object. + */ + public AccessControlChanges setBatchCounters(AccessControlChangeCounters batchCounters) { + this.batchCounters = batchCounters; + return this; + } + + /** + * Returns an {@link AccessControlChangeCounters} that contains counts of paths changed from start of the operation. + * + * @return {@link AccessControlChangeCounters} + */ + public AccessControlChangeCounters getAggregateCounters() { + return aggregateCounters; + } + + /** + * Sets an {@link AccessControlChangeCounters} that contains counts of paths changed from start of the operation. + * + * @param aggregateCounters {@link AccessControlChangeCounters} + * @return The updated object. + */ + public AccessControlChanges setAggregateCounters(AccessControlChangeCounters aggregateCounters) { + this.aggregateCounters = aggregateCounters; + return this; + } + + /** + * Returns the continuation token. + *

+ * Value is present when operation is split into multiple batches and can be used to resume progress. + * + * @return The continuation token + */ + public String getContinuationToken() { + return continuationToken; + } + + /** + * Sets the continuation token. + * + * @param continuationToken The continuation token. + * @return The updated object. + */ + public AccessControlChanges setContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControlEntry.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControlEntry.java index 71d5ca41f7252..1122374a49295 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControlEntry.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControlEntry.java @@ -46,12 +46,12 @@ */ public class PathAccessControlEntry { - private static final String ACCESS_CONTROL_ENTRY_INVALID_SCOPE = "Scope must be default or otherwise omitted"; + static final String ACCESS_CONTROL_ENTRY_INVALID_SCOPE = "Scope must be default or otherwise omitted"; /** * The string to specify default scope for an Access Control Entry. */ - private static final String DEFAULT_SCOPE = "default"; + static final String DEFAULT_SCOPE = "default"; /** * Indicates whether this entry belongs to the default ACL for a directory. diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRemoveAccessControlEntry.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRemoveAccessControlEntry.java new file mode 100644 index 0000000000000..8cf4ba9222c7c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRemoveAccessControlEntry.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.datalake.models; + +import com.azure.storage.common.implementation.StorageImplUtils; + +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; + +import static com.azure.storage.file.datalake.models.PathAccessControlEntry.ACCESS_CONTROL_ENTRY_INVALID_SCOPE; +import static com.azure.storage.file.datalake.models.PathAccessControlEntry.DEFAULT_SCOPE; + +/** + * Represents an access control in a file access control list for removal. + */ +public class PathRemoveAccessControlEntry { + private boolean defaultScope; + private AccessControlType accessControlType; + private String entityId; + + /** + * Initializes an empty instance of {@code PathRemoveAccessControlEntry}. + */ + public PathRemoveAccessControlEntry() { + this.accessControlType = new AccessControlType(); + } + + /** + * Indicates whether this is the default entry for the ACL. + * + * @return Whether this is the default entry for the ACL. + */ + public boolean isDefaultScope() { + return defaultScope; + } + + /** + * Sets whether this is the default entry for the ACL. + * + * @param defaultScope Whether this is the default entry for the ACL. + * @return The updated object. + */ + public PathRemoveAccessControlEntry setDefaultScope(boolean defaultScope) { + this.defaultScope = defaultScope; + return this; + } + + /** + * Specifies which role this entry targets. + * + * @return Which role this entry targets. + */ + public AccessControlType getAccessControlType() { + return accessControlType; + } + + /** + * Specifies which role this entry targets. + * + * @param accessControlType Which role this entry targets. + * @return The updated object. + */ + public PathRemoveAccessControlEntry setAccessControlType(AccessControlType accessControlType) { + this.accessControlType = accessControlType; + return this; + } + + /** + * Specifies the entity for which this entry applies. + * Must be omitted for types mask or other. It must also be omitted when the user or group is the owner. + * + * @return The entity for which this entry applies. + */ + public String getEntityId() { + return entityId; + } + + /** + * Specifies the entity for which this entry applies. + * Must be omitted for types mask or other. It must also be omitted when the user or group is the owner. + * + * @param entityId The entity for which this entry applies. + * @return The updated object. + */ + public PathRemoveAccessControlEntry setEntityId(String entityId) { + this.entityId = entityId; + return this; + } + + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + + if (this.defaultScope) { + builder.append(DEFAULT_SCOPE); + builder.append(":"); + } + builder.append(accessControlType.toString().toLowerCase(Locale.ROOT)); + builder.append(':'); + builder.append(entityId == null ? "" : entityId); + + return builder.toString(); + } + + /** + * Parses the provided string into a {@code PathAccessControlEntry}. + * + * Must be of the format "[scope:][type]:[id]". + * + * @param str The string representation of the ACL. + * @return The deserialized list. + * @throws IllegalArgumentException if the String provided does not match the format. + */ + public static PathRemoveAccessControlEntry parse(String str) { + PathRemoveAccessControlEntry res = new PathRemoveAccessControlEntry(); + String[] parts = str.split(":"); + int indexOffset = 0; + + StorageImplUtils.assertInBounds("parts.length", parts.length, 1, 3); + + if (parts.length == 3) { + if (!parts[0].equals(DEFAULT_SCOPE)) { + throw new IllegalArgumentException(ACCESS_CONTROL_ENTRY_INVALID_SCOPE); + } + res.defaultScope = true; + indexOffset = 1; + } + res.accessControlType = AccessControlType.fromString(parts[indexOffset]); + res.entityId = ((1 + indexOffset) < parts.length) && !parts[1 + indexOffset].equals("") ? parts[1 + indexOffset] : null; + return res; + } + + /** + * Converts the Access Control List to a {@code String}. The format is specified in the description of this type. + * + * @param acl The Access Control List to serialize. + * @return A {@code String} representing the serialized Access Control List + */ + public static String serializeList(List acl) { + StringBuilder sb = new StringBuilder(); + for (PathRemoveAccessControlEntry entry : acl) { + sb.append(entry.toString()); + sb.append(','); + } + sb.deleteCharAt(sb.length() - 1); + return sb.toString(); + } + + /** + * Deserializes an ACL to the format "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx" + * + * @param str The {@code String} representation of the ACL. + * @return The ACL deserialized into a {@code java.util.List} + */ + public static List parseList(String str) { + String[] strs = str.split(","); + List acl = new ArrayList<>(strs.length); + for (String entry : strs) { + acl.add(PathRemoveAccessControlEntry.parse(entry)); + } + return acl; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathRemoveAccessControlRecursiveOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathRemoveAccessControlRecursiveOptions.java new file mode 100644 index 0000000000000..462dcc30bfb7a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathRemoveAccessControlRecursiveOptions.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.options; + +import com.azure.core.http.rest.Response; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.models.AccessControlChanges; +import com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry; + +import java.util.List; +import java.util.function.Consumer; + +/** + * Optional parameters for Remove Access Control Recursive. + */ +public class PathRemoveAccessControlRecursiveOptions { + private final List accessControlList; + private Integer batchSize; + private Integer maxBatches; + private Consumer> progressHandler; + private String continuationToken; + private boolean continueOnFailure; + + /** + * Constructs a new options object. + * @param accessControlList The POSIX access control list for the file or directory. + */ + public PathRemoveAccessControlRecursiveOptions(List accessControlList) { + StorageImplUtils.assertNotNull("accessControllList", accessControlList); + this.accessControlList = accessControlList; + } + + /** + * Returns the POSIX access control list for the file or directory. + * + * @return The POSIX access control list for the file or directory. + */ + public List getAccessControlList() { + return accessControlList; + } + + /** + * Gets the batch size. + *

+ * If data set size exceeds batch size then operation will be split into multiple requests so that progress can be + * tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000. + * + * @return The size of the batch. + */ + public Integer getBatchSize() { + return batchSize; + } + + /** + * Sets the batch size. + *

+ * If data set size exceeds batch size then operation will be split into multiple requests so that progress can be + * tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000. + * + * @param batchSize The size of the batch. + * @return The updated object. + */ + public PathRemoveAccessControlRecursiveOptions setBatchSize(Integer batchSize) { + this.batchSize = batchSize; + return this; + } + + /** + * Gets the maximum number of batches that single change Access Control operation can execute. + *

+ * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation. + * Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may + * * also halt if an error is hit and {@code continueOnFailure} is false. + * + * @return The maximum number of batches. + */ + public Integer getMaxBatches() { + return maxBatches; + } + + /** + * Sets the maximum number of batches that single change Access Control operation can execute. + *

+ * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation. + * Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may + * * also halt if an error is hit and {@code continueOnFailure} is false. + * + * @param maxBatches The maximum number of batches. + * @return The updated object. + */ + public PathRemoveAccessControlRecursiveOptions setMaxBatches(Integer maxBatches) { + this.maxBatches = maxBatches; + return this; + } + + /** + * Gets a callback where caller can track progress of the operation as well as collect paths that failed to change + * Access Control. + * + * @return The progress handler. + */ + public Consumer> getProgressHandler() { + return progressHandler; + } + + /** + * Sets a callback where caller can track progress of the operation as well as collect paths that failed to change + * Access Control. + * + * @param progressHandler The progress handler. + * @return The updated object. + */ + public PathRemoveAccessControlRecursiveOptions setProgressHandler( + Consumer> progressHandler) { + this.progressHandler = progressHandler; + return this; + } + + /** + * Returns a token that can be used to resume previously stopped operation. + * + * @return A token that can be used to resume previously stopped operation. + */ + public String getContinuationToken() { + return continuationToken; + } + + /** + * Sets a token that can be used to resume previously stopped operation. + * + * @param continuationToken A token that can be used to resume previously stopped operation. + * @return The updated object. + */ + public PathRemoveAccessControlRecursiveOptions setContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Returns if the operation should continue on user failure. + *

+ * If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will + * ignore user failures and proceed with the operation on other sub-entities of the directory. + * + * @return If the operation should continue on user failure. + */ + public boolean isContinuingOnFailure() { + return continueOnFailure; + } + + /** + * Sets if the operation should continue on user failure. + *

+ * If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will + * ignore user failures and proceed with the operation on other sub-entities of the directory. + * + * @param continueOnFailure Whether the operation should continue on user failure. + * @return The updated object. + */ + public PathRemoveAccessControlRecursiveOptions setContinueOnFailure(boolean continueOnFailure) { + this.continueOnFailure = continueOnFailure; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathSetAccessControlRecursiveOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathSetAccessControlRecursiveOptions.java new file mode 100644 index 0000000000000..2b075f6f03169 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathSetAccessControlRecursiveOptions.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.options; + +import com.azure.core.http.rest.Response; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.models.AccessControlChanges; +import com.azure.storage.file.datalake.models.PathAccessControlEntry; + +import java.util.List; +import java.util.function.Consumer; + +/** + * Optional parameters for Set Access Control Recursive. + */ +public class PathSetAccessControlRecursiveOptions { + private final List accessControlList; + private Integer batchSize; + private Integer maxBatches; + private Consumer> progressHandler; + private String continuationToken; + private boolean continueOnFailure; + + /** + * Constructs a new options object. + * @param accessControlList The POSIX access control list for the file or directory. + */ + public PathSetAccessControlRecursiveOptions(List accessControlList) { + StorageImplUtils.assertNotNull("accessControllList", accessControlList); + this.accessControlList = accessControlList; + } + + /** + * Returns the POSIX access control list for the file or directory. + * + * @return The POSIX access control list for the file or directory. + */ + public List getAccessControlList() { + return this.accessControlList; + } + + /** + * Gets the batch size. + *

+ * If data set size exceeds batch size then operation will be split into multiple requests so that progress can be + * tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000. + * + * @return The size of the batch. + */ + public Integer getBatchSize() { + return batchSize; + } + + /** + * Sets the batch size. + *

+ * If data set size exceeds batch size then operation will be split into multiple requests so that progress can be + * tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000. + * + * @param batchSize The size of the batch. + * @return The updated object. + */ + public PathSetAccessControlRecursiveOptions setBatchSize(Integer batchSize) { + this.batchSize = batchSize; + return this; + } + + /** + * Gets the maximum number of batches that single change Access Control operation can execute. + *

+ * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation. + * Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may + * * also halt if an error is hit and {@code continueOnFailure} is false. + * + * @return The maximum number of batches. + */ + public Integer getMaxBatches() { + return maxBatches; + } + + /** + * Sets the maximum number of batches that single change Access Control operation can execute. + *

+ * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation. + * Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may + * * also halt if an error is hit and {@code continueOnFailure} is false. + * + * @param maxBatches The maximum number of batches. + * @return The updated object. + */ + public PathSetAccessControlRecursiveOptions setMaxBatches(Integer maxBatches) { + this.maxBatches = maxBatches; + return this; + } + + /** + * Gets a callback where caller can track progress of the operation as well as collect paths that failed to change + * Access Control. + * + * @return The progress handler. + */ + public Consumer> getProgressHandler() { + return progressHandler; + } + + /** + * Sets a callback where caller can track progress of the operation as well as collect paths that failed to change + * Access Control. + * + * @param progressHandler The progress handler. + * @return The updated object. + */ + public PathSetAccessControlRecursiveOptions setProgressHandler( + Consumer> progressHandler) { + this.progressHandler = progressHandler; + return this; + } + + /** + * Returns a token that can be used to resume previously stopped operation. + * + * @return A token that can be used to resume previously stopped operation. + */ + public String getContinuationToken() { + return continuationToken; + } + + /** + * Sets a token that can be used to resume previously stopped operation. + * + * @param continuationToken A token that can be used to resume previously stopped operation. + * @return The updated object. + */ + public PathSetAccessControlRecursiveOptions setContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Returns if the operation should continue on user failure. + *

+ * If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will + * ignore user failures and proceed with the operation on other sub-entities of the directory. + * + * @return If the operation should continue on user failure. + */ + public boolean isContinuingOnFailure() { + return continueOnFailure; + } + + /** + * Sets if the operation should continue on user failure. + *

+ * If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will + * ignore user failures and proceed with the operation on other sub-entities of the directory. + * + * @param continueOnFailure Whether the operation should continue on user failure. + * @return The updated object. + */ + public PathSetAccessControlRecursiveOptions setContinueOnFailure(boolean continueOnFailure) { + this.continueOnFailure = continueOnFailure; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathUpdateAccessControlRecursiveOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathUpdateAccessControlRecursiveOptions.java new file mode 100644 index 0000000000000..709328596b8aa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/PathUpdateAccessControlRecursiveOptions.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.options; + +import com.azure.core.http.rest.Response; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.models.AccessControlChanges; +import com.azure.storage.file.datalake.models.PathAccessControlEntry; + +import java.util.List; +import java.util.function.Consumer; + +/** + * Optional parameters for Update Access Control Recursive. + */ +public class PathUpdateAccessControlRecursiveOptions { + private final List accessControlList; + private Integer batchSize; + private Integer maxBatches; + private Consumer> progressHandler; + private String continuationToken; + private boolean continueOnFailure; + + /** + * Constructs a new options object. + * @param accessControlList The POSIX access control list for the file or directory. + */ + public PathUpdateAccessControlRecursiveOptions(List accessControlList) { + StorageImplUtils.assertNotNull("accessControllList", accessControlList); + this.accessControlList = accessControlList; + } + + /** + * Returns the POSIX access control list for the file or directory. + * + * @return The POSIX access control list for the file or directory. + */ + public List getAccessControlList() { + return this.accessControlList; + } + + /** + * Gets the batch size. + *

+ * If data set size exceeds batch size then operation will be split into multiple requests so that progress can be + * tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000. + * + * @return The size of the batch. + */ + public Integer getBatchSize() { + return batchSize; + } + + /** + * Sets the batch size. + *

+ * If data set size exceeds batch size then operation will be split into multiple requests so that progress can be + * tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000. + * + * @param batchSize The size of the batch. + * @return The updated object. + */ + public PathUpdateAccessControlRecursiveOptions setBatchSize(Integer batchSize) { + this.batchSize = batchSize; + return this; + } + + /** + * Gets the maximum number of batches that single change Access Control operation can execute. + *

+ * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation. + * Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may + * also halt if an error is hit and {@code continueOnFailure} is false. + * + * @return The maximum number of batches. + */ + public Integer getMaxBatches() { + return maxBatches; + } + + /** + * Sets the maximum number of batches that single change Access Control operation can execute. + *

+ * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation. + * Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may + * * also halt if an error is hit and {@code continueOnFailure} is false. + * + * @param maxBatches The maximum number of batches. + * @return The updated object. + */ + public PathUpdateAccessControlRecursiveOptions setMaxBatches(Integer maxBatches) { + this.maxBatches = maxBatches; + return this; + } + + /** + * Gets a callback where caller can track progress of the operation as well as collect paths that failed to change + * Access Control. + * + * @return The progress handler. + */ + public Consumer> getProgressHandler() { + return progressHandler; + } + + /** + * Sets a callback where caller can track progress of the operation as well as collect paths that failed to change + * Access Control. + * + * @param progressHandler The progress handler. + * @return The updated object. + */ + public PathUpdateAccessControlRecursiveOptions setProgressHandler( + Consumer> progressHandler) { + this.progressHandler = progressHandler; + return this; + } + + /** + * Returns a token that can be used to resume previously stopped operation. + * + * @return A token that can be used to resume previously stopped operation. + */ + public String getContinuationToken() { + return continuationToken; + } + + /** + * Sets a token that can be used to resume previously stopped operation. + * + * @param continuationToken A token that can be used to resume previously stopped operation. + * @return The updated object. + */ + public PathUpdateAccessControlRecursiveOptions setContinuationToken(String continuationToken) { + this.continuationToken = continuationToken; + return this; + } + + /** + * Returns if the operation should continue on user failure. + *

+ * If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will + * ignore user failures and proceed with the operation on other sub-entities of the directory. + * + * @return If the operation should continue on user failure. + */ + public boolean isContinuingOnFailure() { + return continueOnFailure; + } + + /** + * Sets if the operation should continue on user failure. + *

+ * If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will + * ignore user failures and proceed with the operation on other sub-entities of the directory. + * + * @param continueOnFailure Whether the operation should continue on user failure. + * @return The updated object. + */ + public PathUpdateAccessControlRecursiveOptions setContinueOnFailure(boolean continueOnFailure) { + this.continueOnFailure = continueOnFailure; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathAsyncClientJavaDocCodeSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathAsyncClientJavaDocCodeSamples.java index 73c2dc8261f40..c63e73e6fd84b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathAsyncClientJavaDocCodeSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathAsyncClientJavaDocCodeSamples.java @@ -3,12 +3,18 @@ package com.azure.storage.file.datalake; +import com.azure.core.http.rest.Response; +import com.azure.storage.file.datalake.models.AccessControlChanges; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathAccessControlEntry; import com.azure.storage.file.datalake.models.PathHttpHeaders; import com.azure.storage.file.datalake.models.PathPermissions; +import com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry; import com.azure.storage.file.datalake.models.RolePermissions; import com.azure.storage.file.datalake.models.UserDelegationKey; +import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import com.azure.storage.file.datalake.sas.PathSasPermission; @@ -17,6 +23,7 @@ import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.function.Consumer; /** * Code snippets for {@link DataLakeFileSystemClient} @@ -185,6 +192,151 @@ public void setAccessControlWithResponseCodeSnippets() { // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlListWithResponse#List-String-String-DataLakeRequestConditions } + /** + * Code snippets for {@link DataLakePathAsyncClient#setAccessControlRecursive(List)} + */ + public void setAccessControlRecursiveCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlRecursive#List + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + client.setAccessControlRecursive(pathAccessControlEntries).subscribe( + response -> System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlRecursive#List + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#setAccessControlRecursiveWithResponse(PathSetAccessControlRecursiveOptions)} + */ + public void setAccessControlRecursiveWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlRecursiveWithResponse#PathSetAccessControlRecursiveOptions + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + Integer batchSize = 2; + Integer maxBatches = 10; + boolean continueOnFailure = false; + String continuationToken = null; + Consumer> progressHandler = + response -> System.out.println("Received response"); + + PathSetAccessControlRecursiveOptions options = + new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(batchSize) + .setMaxBatches(maxBatches) + .setContinueOnFailure(continueOnFailure) + .setContinuationToken(continuationToken) + .setProgressHandler(progressHandler); + + client.setAccessControlRecursive(pathAccessControlEntries).subscribe( + response -> System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlRecursiveWithResponse#PathSetAccessControlRecursiveOptions + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#updateAccessControlRecursive(List)} + */ + public void updateAccessControlRecursiveCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.updateAccessControlRecursive#List + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + client.updateAccessControlRecursive(pathAccessControlEntries).subscribe( + response -> System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.updateAccessControlRecursive#List + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#updateAccessControlRecursiveWithResponse(PathUpdateAccessControlRecursiveOptions)} + */ + public void updateAccessControlRecursiveWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.updateAccessControlRecursiveWithResponse#PathUpdateAccessControlRecursiveOptions + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + Integer batchSize = 2; + Integer maxBatches = 10; + boolean continueOnFailure = false; + String continuationToken = null; + Consumer> progressHandler = + response -> System.out.println("Received response"); + + PathUpdateAccessControlRecursiveOptions options = + new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(batchSize) + .setMaxBatches(maxBatches) + .setContinueOnFailure(continueOnFailure) + .setContinuationToken(continuationToken) + .setProgressHandler(progressHandler); + + client.updateAccessControlRecursive(pathAccessControlEntries).subscribe( + response -> System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.updateAccessControlRecursiveWithResponse#PathUpdateAccessControlRecursiveOptions + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#removeAccessControlRecursive(List)} + */ + public void removeAccessControlRecursiveCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.removeAccessControlRecursive#List + PathRemoveAccessControlEntry pathAccessControlEntry = new PathRemoveAccessControlEntry() + .setEntityId("entityId"); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + client.removeAccessControlRecursive(pathAccessControlEntries).subscribe( + response -> System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.removeAccessControlRecursive#List + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#removeAccessControlRecursiveWithResponse(PathRemoveAccessControlRecursiveOptions)} + */ + public void removeAccessControlRecursiveWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.removeAccessControlRecursiveWithResponse#PathRemoveAccessControlRecursiveOptions + PathRemoveAccessControlEntry pathAccessControlEntry = new PathRemoveAccessControlEntry() + .setEntityId("entityId"); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + Integer batchSize = 2; + Integer maxBatches = 10; + boolean continueOnFailure = false; + String continuationToken = null; + Consumer> progressHandler = + response -> System.out.println("Received response"); + + PathRemoveAccessControlRecursiveOptions options = + new PathRemoveAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(batchSize) + .setMaxBatches(maxBatches) + .setContinueOnFailure(continueOnFailure) + .setContinuationToken(continuationToken) + .setProgressHandler(progressHandler); + + client.removeAccessControlRecursive(pathAccessControlEntries).subscribe( + response -> System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.removeAccessControlRecursiveWithResponse#PathRemoveAccessControlRecursiveOptions + } + /** * Code snippets for {@link DataLakePathAsyncClient#setPermissions(PathPermissions, String, String)} */ diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientJavaDocCodeSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientJavaDocCodeSamples.java index 915aabd19c1dc..2a5c56538a6c7 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientJavaDocCodeSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientJavaDocCodeSamples.java @@ -5,6 +5,8 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.AccessControlChangeResult; +import com.azure.storage.file.datalake.models.AccessControlChanges; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathAccessControl; import com.azure.storage.file.datalake.models.PathAccessControlEntry; @@ -12,8 +14,12 @@ import com.azure.storage.file.datalake.models.PathInfo; import com.azure.storage.file.datalake.models.PathPermissions; import com.azure.storage.file.datalake.models.PathProperties; +import com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry; import com.azure.storage.file.datalake.models.RolePermissions; import com.azure.storage.file.datalake.models.UserDelegationKey; +import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; +import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import com.azure.storage.file.datalake.sas.PathSasPermission; @@ -23,6 +29,7 @@ import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.function.Consumer; /** * Code snippets for {@link DataLakeFileSystemClient} @@ -200,6 +207,160 @@ public void setAccessControlListWithResponseCodeSnippets() { // END: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlListWithResponse#List-String-String-DataLakeRequestConditions-Duration-Context } + /** + * Code snippets for {@link DataLakePathClient#setAccessControlRecursive(List)} + */ + public void setAccessControlListRecursiveCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlRecursive#List + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + AccessControlChangeResult response = client.setAccessControlRecursive(pathAccessControlEntries); + + System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount()); + // END: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlRecursive#List + } + + /** + * Code snippets for {@link DataLakePathClient#setAccessControlRecursiveWithResponse(com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions, Duration, Context)} + */ + public void setAccessControlRecursiveWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlRecursiveWithResponse#PathSetAccessControlRecursiveOptions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + Integer batchSize = 2; + Integer maxBatches = 10; + boolean continueOnFailure = false; + String continuationToken = null; + Consumer> progressHandler = + response -> System.out.println("Received response"); + + PathSetAccessControlRecursiveOptions options = + new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(batchSize) + .setMaxBatches(maxBatches) + .setContinueOnFailure(continueOnFailure) + .setContinuationToken(continuationToken) + .setProgressHandler(progressHandler); + + Response response = client.setAccessControlRecursiveWithResponse(options, timeout, + new Context(key2, value2)); + System.out.printf("Successful changed file operations: %d", + response.getValue().getCounters().getChangedFilesCount()); + // END: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlRecursiveWithResponse#PathSetAccessControlRecursiveOptions-Duration-Context + } + + /** + * Code snippets for {@link DataLakePathClient#updateAccessControlRecursive(List)} + */ + public void updateAccessControlListRecursiveCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.updateAccessControlRecursive#List + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + AccessControlChangeResult response = client.updateAccessControlRecursive(pathAccessControlEntries); + + System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount()); + // END: com.azure.storage.file.datalake.DataLakePathClient.updateAccessControlRecursive#List + } + + /** + * Code snippets for {@link DataLakePathClient#updateAccessControlRecursiveWithResponse(com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions, Duration, Context)} + */ + public void updateAccessControlRecursiveWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.updateAccessControlRecursiveWithResponse#PathUpdateAccessControlRecursiveOptions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + PathAccessControlEntry pathAccessControlEntry = new PathAccessControlEntry() + .setEntityId("entityId") + .setPermissions(new RolePermissions().setReadPermission(true)); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + Integer batchSize = 2; + Integer maxBatches = 10; + boolean continueOnFailure = false; + String continuationToken = null; + Consumer> progressHandler = + response -> System.out.println("Received response"); + + PathUpdateAccessControlRecursiveOptions options = + new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(batchSize) + .setMaxBatches(maxBatches) + .setContinueOnFailure(continueOnFailure) + .setContinuationToken(continuationToken) + .setProgressHandler(progressHandler); + + Response response = client.updateAccessControlRecursiveWithResponse(options, timeout, + new Context(key2, value2)); + System.out.printf("Successful changed file operations: %d", + response.getValue().getCounters().getChangedFilesCount()); + // END: com.azure.storage.file.datalake.DataLakePathClient.updateAccessControlRecursiveWithResponse#PathUpdateAccessControlRecursiveOptions-Duration-Context + } + + /** + * Code snippets for {@link DataLakePathClient#removeAccessControlRecursive(List)} + */ + public void removeAccessControlListRecursiveCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.removeAccessControlRecursive#List + PathRemoveAccessControlEntry pathAccessControlEntry = new PathRemoveAccessControlEntry() + .setEntityId("entityId"); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + AccessControlChangeResult response = client.removeAccessControlRecursive(pathAccessControlEntries); + + System.out.printf("Successful changed file operations: %d", + response.getCounters().getChangedFilesCount()); + // END: com.azure.storage.file.datalake.DataLakePathClient.removeAccessControlRecursive#List + } + + /** + * Code snippets for {@link DataLakePathClient#removeAccessControlRecursiveWithResponse(com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions, Duration, Context)} + */ + public void removeAccessControlRecursiveWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.removeAccessControlRecursiveWithResponse#PathRemoveAccessControlRecursiveOptions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + PathRemoveAccessControlEntry pathAccessControlEntry = new PathRemoveAccessControlEntry() + .setEntityId("entityId"); + List pathAccessControlEntries = new ArrayList<>(); + pathAccessControlEntries.add(pathAccessControlEntry); + + Integer batchSize = 2; + Integer maxBatches = 10; + boolean continueOnFailure = false; + String continuationToken = null; + Consumer> progressHandler = + response -> System.out.println("Received response"); + + PathRemoveAccessControlRecursiveOptions options = + new PathRemoveAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(batchSize) + .setMaxBatches(maxBatches) + .setContinueOnFailure(continueOnFailure) + .setContinuationToken(continuationToken) + .setProgressHandler(progressHandler); + + Response response = client.removeAccessControlRecursiveWithResponse(options, timeout, + new Context(key2, value2)); + System.out.printf("Successful changed file operations: %d", + response.getValue().getCounters().getChangedFilesCount()); + // END: com.azure.storage.file.datalake.DataLakePathClient.removeAccessControlRecursiveWithResponse#PathRemoveAccessControlRecursiveOptions-Duration-Context + } + /** * Code snippets for {@link DataLakePathClient#setPermissions(PathPermissions, String, String)} */ diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy index 70b3af9c24229..badf3d4976ac5 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy @@ -7,8 +7,13 @@ import com.azure.storage.blob.BlobUrlParts import com.azure.storage.blob.models.BlobErrorCode import com.azure.storage.file.datalake.models.* +import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions +import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions +import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions import spock.lang.Unroll +import java.util.function.Consumer + class DirectoryAPITest extends APISpec { DataLakeDirectoryClient dc String directoryName @@ -19,6 +24,11 @@ class DirectoryAPITest extends APISpec { .setOther(new RolePermissions().setReadPermission(true)) List pathAccessControlEntries = PathAccessControlEntry.parseList("user::rwx,group::r--,other::---,mask::rwx") + List executeOnlyAccessControlEntries = PathAccessControlEntry.parseList("user::--x,group::--x,other::--x") + List removeAccessControlEntries = PathRemoveAccessControlEntry.parseList("mask," + + "default:user,default:group," + + "user:ec3595d6-2c17-4696-8caa-7e139758d24a,group:ec3595d6-2c17-4696-8caa-7e139758d24a," + + "default:user:ec3595d6-2c17-4696-8caa-7e139758d24a,default:group:ec3595d6-2c17-4696-8caa-7e139758d24a") String group = null String owner = null @@ -434,6 +444,786 @@ class DirectoryAPITest extends APISpec { thrown(DataLakeStorageException) } + def "Set ACL recursive min"() { + setup: + setupStandardRecursiveAclTest() + + when: + def result = dc.setAccessControlRecursive(pathAccessControlEntries) + + then: + result.getCounters().getChangedDirectoriesCount() == 3 // Including the top level + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + } + + def "Set ACL recursive batches"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2) + + when: + def result = dc.setAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + result.getCounters().getChangedDirectoriesCount() == 3 // Including the top level + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + } + + def "Set ACL recursive batches resume"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setMaxBatches(1) + + when: + def result = dc.setAccessControlRecursiveWithResponse(options, null, null).getValue() + + and: + options.setMaxBatches(null).setContinuationToken(result.getContinuationToken()) + def result2 = dc.setAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + (result.getCounters().getChangedDirectoriesCount() + result2.getCounters().getChangedDirectoriesCount()) == 3 // Including the top level + (result.getCounters().getChangedFilesCount() + result2.getCounters().getChangedFilesCount()) == 4 + (result.getCounters().getFailedChangesCount() + result2.getCounters().getFailedChangesCount()) == 0 + result2.getContinuationToken() == null + } + + def "Set ACL recursive batches progress"() { + setup: + setupStandardRecursiveAclTest() + + def progress = new InMemoryAccessControlRecursiveChangeProgress() + + def options = new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setProgressHandler(progress) + + when: + def result = dc.setAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + result.getCounters().getChangedDirectoriesCount() == 3 + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + progress.batchCounters.size() == 4 + (progress.batchCounters[0].getChangedFilesCount() + progress.batchCounters[0].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[1].getChangedFilesCount() + progress.batchCounters[1].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[2].getChangedFilesCount() + progress.batchCounters[2].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[3].getChangedFilesCount() + progress.batchCounters[3].getChangedDirectoriesCount()) == 1 + progress.cumulativeCounters.size() == 4 + (progress.cumulativeCounters[0].getChangedFilesCount() + progress.cumulativeCounters[0].getChangedDirectoriesCount()) == 2 + (progress.cumulativeCounters[1].getChangedFilesCount() + progress.cumulativeCounters[1].getChangedDirectoriesCount()) == 4 + (progress.cumulativeCounters[2].getChangedFilesCount() + progress.cumulativeCounters[2].getChangedDirectoriesCount()) == 6 + (progress.cumulativeCounters[3].getChangedFilesCount() + progress.cumulativeCounters[3].getChangedDirectoriesCount()) == 7 + } + + def "Set ACL recursive batches follow token"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setMaxBatches(2) + + when: + String continuation = "null" + def failedChanges = 0 + def directoriesChanged = 0 + def filesChanged = 0 + def iterations = 0 + while(continuation != null && continuation != "" && iterations < 10) { + if (iterations == 0) { + continuation = null // do while not supported in Groovy + } + options.setContinuationToken(continuation) + def result = dc.setAccessControlRecursiveWithResponse(options, null, null) + failedChanges += result.getValue().getCounters().getFailedChangesCount() + directoriesChanged += result.getValue().getCounters().getChangedDirectoriesCount() + filesChanged += result.getValue().getCounters().getChangedFilesCount() + iterations++ + continuation = result.getValue().getContinuationToken() + } + + then: + failedChanges == 0 + directoriesChanged == 3 + filesChanged == 4 + iterations == 2 + } + + def "Set ACL recursive progress with failure"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create file4 as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + + def progress = new InMemoryAccessControlRecursiveChangeProgress() + + when: + def result = topDirOauthClient.setAccessControlRecursiveWithResponse( + new PathSetAccessControlRecursiveOptions(pathAccessControlEntries).setProgressHandler(progress), null, null) + + then: + result.getValue().getCounters().getFailedChangesCount() == 1 + progress.failures.size() == 1 + progress.batchCounters.findIndexOf {counter -> counter.getFailedChangesCount() > 0} >= 0 + progress.cumulativeCounters.findIndexOf {counter -> counter.getFailedChangesCount() > 0} >= 0 + progress.failures[0].getName().contains(file4.getObjectName()) + !progress.failures[0].isDirectory() + progress.failures[0].getErrorMessage() + } + + def "Set ACL recursive continue on failure"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create resources as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file5 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file6 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def subdir3 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createSubdirectory(generatePathName()) + + when: + def result = topDirOauthClient.setAccessControlRecursiveWithResponse( + new PathSetAccessControlRecursiveOptions(pathAccessControlEntries).setContinueOnFailure(true), null, null) + + then: + result.getValue().getCounters().getChangedDirectoriesCount() == 3 + result.getValue().getCounters().getChangedFilesCount() == 3 + result.getValue().getCounters().getFailedChangesCount() == 4 + result.getValue().getContinuationToken() == null + } + + def "Set ACL recursive continue on failure batches resume"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create resources as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file5 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file6 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def subdir3 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createSubdirectory(generatePathName()) + + // Create more files as app + def file7 = subdir1.createFile(generatePathName()) + def file8 = subdir1.createFile(generatePathName()) + def subdir4 = topDirOauthClient.createSubdirectory(generatePathName()) + def file9 = subdir4.createFile(generatePathName()) + + def options = new PathSetAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setContinueOnFailure(true).setMaxBatches(1) + + when: + def intermediateResult = topDirOauthClient.setAccessControlRecursiveWithResponse(options, null, null) + + then: + intermediateResult.getValue().getContinuationToken() != null + + when: + options.setMaxBatches(null).setContinuationToken(intermediateResult.getValue().getContinuationToken()) + def result = topDirOauthClient.setAccessControlRecursiveWithResponse(options, null, null) + + then: + (result.getValue().getCounters().getChangedDirectoriesCount() + intermediateResult.getValue().getCounters().getChangedDirectoriesCount()) == 4 + (result.getValue().getCounters().getChangedFilesCount() + intermediateResult.getValue().getCounters().getChangedFilesCount()) == 6 + (result.getValue().getCounters().getFailedChangesCount() + intermediateResult.getValue().getCounters().getFailedChangesCount()) == 4 + result.getValue().getContinuationToken() == null + } + + def "Set ACL recursive error"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + + String topDirName = generatePathName() + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + + when: + topDirOauthClient.setAccessControlRecursiveWithResponse( + new PathSetAccessControlRecursiveOptions(pathAccessControlEntries), null, null) + + then: + thrown(DataLakeStorageException) + } + + def "Update ACL recursive"() { + setup: + setupStandardRecursiveAclTest() + + when: + def result = dc.updateAccessControlRecursive(pathAccessControlEntries) + + then: + result.getCounters().getChangedDirectoriesCount() == 3 + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + } + + def "Update ACL recursive batches"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2) + + when: + def result = dc.updateAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + result.getCounters().getChangedDirectoriesCount() == 3 // Including the top level + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + } + + def "Update ACL recursive batches resume"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setMaxBatches(1) + + when: + def result = dc.updateAccessControlRecursiveWithResponse(options, null, null).getValue() + + and: + options.setMaxBatches(null).setContinuationToken(result.getContinuationToken()) + def result2 = dc.updateAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + (result.getCounters().getChangedDirectoriesCount() + result2.getCounters().getChangedDirectoriesCount()) == 3 // Including the top level + (result.getCounters().getChangedFilesCount() + result2.getCounters().getChangedFilesCount()) == 4 + (result.getCounters().getFailedChangesCount() + result2.getCounters().getFailedChangesCount()) == 0 + result2.getContinuationToken() == null + } + + def "Update ACL recursive batches progress"() { + setup: + setupStandardRecursiveAclTest() + + def progress = new InMemoryAccessControlRecursiveChangeProgress() + + def options = new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setProgressHandler(progress) + + when: + def result = dc.updateAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + result.getCounters().getChangedDirectoriesCount() == 3 + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + progress.batchCounters.size() == 4 + (progress.batchCounters[0].getChangedFilesCount() + progress.batchCounters[0].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[1].getChangedFilesCount() + progress.batchCounters[1].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[2].getChangedFilesCount() + progress.batchCounters[2].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[3].getChangedFilesCount() + progress.batchCounters[3].getChangedDirectoriesCount()) == 1 + progress.cumulativeCounters.size() == 4 + (progress.cumulativeCounters[0].getChangedFilesCount() + progress.cumulativeCounters[0].getChangedDirectoriesCount()) == 2 + (progress.cumulativeCounters[1].getChangedFilesCount() + progress.cumulativeCounters[1].getChangedDirectoriesCount()) == 4 + (progress.cumulativeCounters[2].getChangedFilesCount() + progress.cumulativeCounters[2].getChangedDirectoriesCount()) == 6 + (progress.cumulativeCounters[3].getChangedFilesCount() + progress.cumulativeCounters[3].getChangedDirectoriesCount()) == 7 + } + + def "Update ACL recursive batches follow token"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setMaxBatches(2) + + when: + String continuation = "null" + def failedChanges = 0 + def directoriesChanged = 0 + def filesChanged = 0 + def iterations = 0 + while(continuation != null && continuation != "" && iterations < 10) { + if (iterations == 0) { + continuation = null // do while not supported in Groovy + } + options.setContinuationToken(continuation) + def result = dc.updateAccessControlRecursiveWithResponse(options, null, null) + failedChanges += result.getValue().getCounters().getFailedChangesCount() + directoriesChanged += result.getValue().getCounters().getChangedDirectoriesCount() + filesChanged += result.getValue().getCounters().getChangedFilesCount() + iterations++ + continuation = result.getValue().getContinuationToken() + } + + then: + failedChanges == 0 + directoriesChanged == 3 + filesChanged == 4 + iterations == 2 + } + + def "Update ACL recursive progress with failure"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create file4 as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + + def progress = new InMemoryAccessControlRecursiveChangeProgress() + + when: + def result = topDirOauthClient.updateAccessControlRecursiveWithResponse( + new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries).setProgressHandler(progress), null, null) + + then: + result.getValue().getCounters().getFailedChangesCount() == 1 + progress.failures.size() == 1 + progress.batchCounters.findIndexOf {counter -> counter.getFailedChangesCount() > 0} >= 0 + progress.cumulativeCounters.findIndexOf {counter -> counter.getFailedChangesCount() > 0} >= 0 + progress.failures[0].getName().contains(file4.getObjectName()) + !progress.failures[0].isDirectory() + progress.failures[0].getErrorMessage() + } + + def "Update ACL recursive continue on failure"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create resources as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file5 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file6 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def subdir3 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createSubdirectory(generatePathName()) + + when: + def result = topDirOauthClient.updateAccessControlRecursiveWithResponse( + new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries).setContinueOnFailure(true), null, null) + + then: + result.getValue().getCounters().getChangedDirectoriesCount() == 3 + result.getValue().getCounters().getChangedFilesCount() == 3 + result.getValue().getCounters().getFailedChangesCount() == 4 + result.getValue().getContinuationToken() == null + } + + def "Update ACL recursive continue on failure batches resume"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create resources as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file5 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file6 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def subdir3 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createSubdirectory(generatePathName()) + + // Create more files as app + def file7 = subdir1.createFile(generatePathName()) + def file8 = subdir1.createFile(generatePathName()) + def subdir4 = topDirOauthClient.createSubdirectory(generatePathName()) + def file9 = subdir4.createFile(generatePathName()) + + def options = new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries) + .setBatchSize(2).setContinueOnFailure(true).setMaxBatches(1) + + when: + def intermediateResult = topDirOauthClient.updateAccessControlRecursiveWithResponse(options, null, null) + + then: + intermediateResult.getValue().getContinuationToken() != null + + when: + options.setMaxBatches(null).setContinuationToken(intermediateResult.getValue().getContinuationToken()) + def result = topDirOauthClient.updateAccessControlRecursiveWithResponse(options, null, null) + + then: + (result.getValue().getCounters().getChangedDirectoriesCount() + intermediateResult.getValue().getCounters().getChangedDirectoriesCount()) == 4 + (result.getValue().getCounters().getChangedFilesCount() + intermediateResult.getValue().getCounters().getChangedFilesCount()) == 6 + (result.getValue().getCounters().getFailedChangesCount() + intermediateResult.getValue().getCounters().getFailedChangesCount()) == 4 + result.getValue().getContinuationToken() == null + } + + def "Update ACL recursive error"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + + String topDirName = generatePathName() + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + + when: + topDirOauthClient.updateAccessControlRecursiveWithResponse( + new PathUpdateAccessControlRecursiveOptions(pathAccessControlEntries), null, null) + + then: + thrown(DataLakeStorageException) + } + + def "Remove ACL recursive"() { + setup: + setupStandardRecursiveAclTest() + + when: + def result = dc.removeAccessControlRecursive(removeAccessControlEntries) + + then: + result.getCounters().getChangedDirectoriesCount() == 3 + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + } + + def "Remove ACL recursive batches"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries) + .setBatchSize(2) + + when: + def result = dc.removeAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + result.getCounters().getChangedDirectoriesCount() == 3 // Including the top level + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + } + + def "Remove ACL recursive batches resume"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries) + .setBatchSize(2).setMaxBatches(1) + + when: + def result = dc.removeAccessControlRecursiveWithResponse(options, null, null).getValue() + + and: + options.setMaxBatches(null).setContinuationToken(result.getContinuationToken()) + def result2 = dc.removeAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + (result.getCounters().getChangedDirectoriesCount() + result2.getCounters().getChangedDirectoriesCount()) == 3 // Including the top level + (result.getCounters().getChangedFilesCount() + result2.getCounters().getChangedFilesCount()) == 4 + (result.getCounters().getFailedChangesCount() + result2.getCounters().getFailedChangesCount()) == 0 + result2.getContinuationToken() == null + } + + def "Remove ACL recursive batches progress"() { + setup: + setupStandardRecursiveAclTest() + + def progress = new InMemoryAccessControlRecursiveChangeProgress() + + def options = new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries) + .setBatchSize(2).setProgressHandler(progress) + + when: + def result = dc.removeAccessControlRecursiveWithResponse(options, null, null).getValue() + + then: + result.getCounters().getChangedDirectoriesCount() == 3 + result.getCounters().getChangedFilesCount() == 4 + result.getCounters().getFailedChangesCount() == 0 + result.getContinuationToken() == null + progress.batchCounters.size() == 4 + (progress.batchCounters[0].getChangedFilesCount() + progress.batchCounters[0].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[1].getChangedFilesCount() + progress.batchCounters[1].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[2].getChangedFilesCount() + progress.batchCounters[2].getChangedDirectoriesCount()) == 2 + (progress.batchCounters[3].getChangedFilesCount() + progress.batchCounters[3].getChangedDirectoriesCount()) == 1 + progress.cumulativeCounters.size() == 4 + (progress.cumulativeCounters[0].getChangedFilesCount() + progress.cumulativeCounters[0].getChangedDirectoriesCount()) == 2 + (progress.cumulativeCounters[1].getChangedFilesCount() + progress.cumulativeCounters[1].getChangedDirectoriesCount()) == 4 + (progress.cumulativeCounters[2].getChangedFilesCount() + progress.cumulativeCounters[2].getChangedDirectoriesCount()) == 6 + (progress.cumulativeCounters[3].getChangedFilesCount() + progress.cumulativeCounters[3].getChangedDirectoriesCount()) == 7 + } + + def "Remove ACL recursive batches follow token"() { + setup: + setupStandardRecursiveAclTest() + + def options = new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries) + .setBatchSize(2).setMaxBatches(2) + + when: + String continuation = "null" + def failedChanges = 0 + def directoriesChanged = 0 + def filesChanged = 0 + def iterations = 0 + while(continuation != null && continuation != "" && iterations < 10) { + if (iterations == 0) { + continuation = null // do while not supported in Groovy + } + options.setContinuationToken(continuation) + def result = dc.removeAccessControlRecursiveWithResponse(options, null, null) + failedChanges += result.getValue().getCounters().getFailedChangesCount() + directoriesChanged += result.getValue().getCounters().getChangedDirectoriesCount() + filesChanged += result.getValue().getCounters().getChangedFilesCount() + iterations++ + continuation = result.getValue().getContinuationToken() + } + + then: + failedChanges == 0 + directoriesChanged == 3 + filesChanged == 4 + iterations == 2 + } + + def "Remove ACL recursive progress with failure"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create file4 as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + + def progress = new InMemoryAccessControlRecursiveChangeProgress() + + when: + def result = topDirOauthClient.removeAccessControlRecursiveWithResponse( + new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries).setProgressHandler(progress), null, null) + + then: + result.getValue().getCounters().getFailedChangesCount() == 1 + progress.failures.size() == 1 + progress.batchCounters.findIndexOf {counter -> counter.getFailedChangesCount() > 0} >= 0 + progress.cumulativeCounters.findIndexOf {counter -> counter.getFailedChangesCount() > 0} >= 0 + progress.failures[0].getName().contains(file4.getObjectName()) + !progress.failures[0].isDirectory() + progress.failures[0].getErrorMessage() + } + + def "Remove ACL recursive continue on failure"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create resources as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file5 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file6 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def subdir3 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createSubdirectory(generatePathName()) + + when: + def result = topDirOauthClient.removeAccessControlRecursiveWithResponse( + new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries).setContinueOnFailure(true), null, null) + + then: + result.getValue().getCounters().getChangedDirectoriesCount() == 3 + result.getValue().getCounters().getChangedFilesCount() == 3 + result.getValue().getCounters().getFailedChangesCount() == 4 + result.getValue().getContinuationToken() == null + } + + def "Remove ACL recursive continue on failure batches resume"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + String topDirName = generatePathName() + + // Create tree using AAD creds + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + topDirOauthClient.create() + def subdir1 = topDirOauthClient.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = topDirOauthClient.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + + // Create resources as super user (using shared key) + def file4 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file5 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def file6 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createFile(generatePathName()) + def subdir3 = fsc.getDirectoryClient(topDirName).getSubdirectoryClient(subdir2.getObjectName()) + .createSubdirectory(generatePathName()) + + // Create more files as app + def file7 = subdir1.createFile(generatePathName()) + def file8 = subdir1.createFile(generatePathName()) + def subdir4 = topDirOauthClient.createSubdirectory(generatePathName()) + def file9 = subdir4.createFile(generatePathName()) + + def options = new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries) + .setBatchSize(2).setContinueOnFailure(true).setMaxBatches(1) + + when: + def intermediateResult = topDirOauthClient.removeAccessControlRecursiveWithResponse(options, null, null) + + then: + intermediateResult.getValue().getContinuationToken() != null + + when: + options.setMaxBatches(null).setContinuationToken(intermediateResult.getValue().getContinuationToken()) + def result = topDirOauthClient.removeAccessControlRecursiveWithResponse(options, null, null) + + then: + (result.getValue().getCounters().getChangedDirectoriesCount() + intermediateResult.getValue().getCounters().getChangedDirectoriesCount()) == 4 + (result.getValue().getCounters().getChangedFilesCount() + intermediateResult.getValue().getCounters().getChangedFilesCount()) == 6 + (result.getValue().getCounters().getFailedChangesCount() + intermediateResult.getValue().getCounters().getFailedChangesCount()) == 4 + result.getValue().getContinuationToken() == null + } + + def "Remove ACL recursive error"() { + setup: + fsc.getRootDirectoryClient().setAccessControlList(executeOnlyAccessControlEntries, null, null) + + String topDirName = generatePathName() + def topDirOauthClient = getOAuthServiceClient().getFileSystemClient(fsc.getFileSystemName()) + .getDirectoryClient(topDirName) + + when: + topDirOauthClient.removeAccessControlRecursiveWithResponse( + new PathRemoveAccessControlRecursiveOptions(removeAccessControlEntries), null, null) + + then: + thrown(DataLakeStorageException) + } + + def setupStandardRecursiveAclTest() { + def subdir1 = dc.createSubdirectory(generatePathName()) + def file1 = subdir1.createFile(generatePathName()) + def file2 = subdir1.createFile(generatePathName()) + def subdir2 = dc.createSubdirectory(generatePathName()) + def file3 = subdir2.createFile(generatePathName()) + def file4 = dc.createFile(generatePathName()) + } + + static class InMemoryAccessControlRecursiveChangeProgress implements Consumer> { + + List failures = new ArrayList<>() + List batchCounters = new ArrayList<>() + List cumulativeCounters = new ArrayList<>() + + @Override + void accept(Response response) { + failures.addAll(response.getValue().getBatchFailures()) + batchCounters.addAll(response.getValue().getBatchCounters()) + cumulativeCounters.addAll(response.getValue().getAggregateCounters()) + } + } + + // set recursive acl error, with response + // Test null or empty lists + def "Get access control min"() { when: PathAccessControl pac = dc.getAccessControl() diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileAPITest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileAPITest.groovy index 9de286d83a8e9..d1a6cccf3bae0 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileAPITest.groovy +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileAPITest.groovy @@ -30,6 +30,7 @@ import com.azure.storage.file.datalake.models.PathAccessControl import com.azure.storage.file.datalake.models.PathAccessControlEntry import com.azure.storage.file.datalake.models.PathHttpHeaders import com.azure.storage.file.datalake.models.PathPermissions +import com.azure.storage.file.datalake.models.PathRemoveAccessControlEntry import com.azure.storage.file.datalake.models.RolePermissions import com.azure.storage.file.datalake.options.FileParallelUploadOptions import com.azure.storage.file.datalake.options.FileQueryOptions @@ -471,6 +472,42 @@ class FileAPITest extends APISpec { thrown(DataLakeStorageException) } + def "Set ACL recursive"() { + when: + def response = fc.setAccessControlRecursive(pathAccessControlEntries) + + then: + response.getCounters().getChangedDirectoriesCount() == 0 + response.getCounters().getChangedFilesCount() == 1 + response.getCounters().getFailedChangesCount() == 0 + } + + def "Update ACL recursive"() { + when: + def response = fc.updateAccessControlRecursive(pathAccessControlEntries) + + then: + response.getCounters().getChangedDirectoriesCount() == 0 + response.getCounters().getChangedFilesCount() == 1 + response.getCounters().getFailedChangesCount() == 0 + } + + def "Remove ACL recursive"() { + setup: + def removeAccessControlEntries = PathRemoveAccessControlEntry.parseList("mask," + + "default:user,default:group," + + "user:ec3595d6-2c17-4696-8caa-7e139758d24a,group:ec3595d6-2c17-4696-8caa-7e139758d24a," + + "default:user:ec3595d6-2c17-4696-8caa-7e139758d24a,default:group:ec3595d6-2c17-4696-8caa-7e139758d24a") + + when: + def response = fc.removeAccessControlRecursive(removeAccessControlEntries) + + then: + response.getCounters().getChangedDirectoriesCount() == 0 + response.getCounters().getChangedFilesCount() == 1 + response.getCounters().getFailedChangesCount() == 0 + } + def "Get access control min"() { when: PathAccessControl pac = fc.getAccessControl() diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursive.json new file mode 100644 index 0000000000000..41a672f578d63 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursive.json @@ -0,0 +1,234 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "97f612f2-cbf8-424f-b187-a770678b59c0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1B6AC81D", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "57ab5480-c01e-0036-6be7-7f7b51000000", + "Date" : "Mon, 31 Aug 2020 22:42:13 GMT", + "x-ms-client-request-id" : "97f612f2-cbf8-424f-b187-a770678b59c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "80a912a5-82a1-4e94-bb2f-8e95dae46828" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1BEC5A48", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f0-501f-00ef-7de7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "80a912a5-82a1-4e94-bb2f-8e95dae46828" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6/javapathremoveaclrecursive287292039018b1d863409?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7401b23f-fdf5-4737-93d7-246dac53443c" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1BFF9361", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f1-501f-00ef-7ee7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "7401b23f-fdf5-4737-93d7-246dac53443c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6/javapathremoveaclrecursive287292039018b1d863409/javapathremoveaclrecursive32391819c10c703572463?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "430fa3b4-b6d6-4e0d-be86-89e624310872" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1C10F360", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f2-501f-00ef-7fe7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "430fa3b4-b6d6-4e0d-be86-89e624310872" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6/javapathremoveaclrecursive287292039018b1d863409/javapathremoveaclrecursive4306453623b089b73e46e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "54e59eeb-05bd-4eaa-8c2b-c75ad52c0bc5" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1C225101", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f3-501f-00ef-80e7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "54e59eeb-05bd-4eaa-8c2b-c75ad52c0bc5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6/javapathremoveaclrecursive57174445e1fcb600b843b?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9a5b210e-8730-40ec-8b3c-ce5cf57b5ac3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1C310220", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f4-501f-00ef-01e7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "9a5b210e-8730-40ec-8b3c-ce5cf57b5ac3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6/javapathremoveaclrecursive57174445e1fcb600b843b/javapathremoveaclrecursive625656986e49dc5c034e8?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a2ee0879-a175-40bc-ae18-b26845e66a4f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1C4122CE", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f5-501f-00ef-02e7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "a2ee0879-a175-40bc-ae18-b26845e66a4f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6/javapathremoveaclrecursive7326498b459d8fedbe48e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "32369bcc-50c9-4daa-b5f7-888d33a7efc6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DFF1C534A45", + "Last-Modified" : "Mon, 31 Aug 2020 22:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "573626f6-501f-00ef-03e7-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "32369bcc-50c9-4daa-b5f7-888d33a7efc6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b/javapathremoveaclrecursive1152427e4502d530274d6?mode=remove&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8b378b95-789c-4721-b759-4cafe84023be" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "573626f8-501f-00ef-04e7-7f03d4000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":4}\n", + "Date" : "Mon, 31 Aug 2020 22:42:16 GMT", + "x-ms-client-request-id" : "8b378b95-789c-4721-b759-4cafe84023be" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d083b82e-d5e5-465b-84b9-64b5682d88fe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "57ab55bc-c01e-0036-63e7-7f7b51000000", + "Body" : "jtfsremoveaclrecursivejtfsremoveaclrecursive0222981e8e1817b2924e14bMon, 31 Aug 2020 22:42:14 GMT\"0x8D84DFF1B6AC81D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:42:15 GMT", + "x-ms-client-request-id" : "d083b82e-d5e5-465b-84b9-64b5682d88fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursive0222981e8e1817b2924e14b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9d65753a-2300-4711-b4b1-f7215877d03d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "57ab55ef-c01e-0036-07e7-7f7b51000000", + "Date" : "Mon, 31 Aug 2020 22:42:16 GMT", + "x-ms-client-request-id" : "9d65753a-2300-4711-b4b1-f7215877d03d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursive0222981e8e1817b2924e14b", "javapathremoveaclrecursive1152427e4502d530274d6", "javapathremoveaclrecursive287292039018b1d863409", "javapathremoveaclrecursive32391819c10c703572463", "javapathremoveaclrecursive4306453623b089b73e46e", "javapathremoveaclrecursive57174445e1fcb600b843b", "javapathremoveaclrecursive625656986e49dc5c034e8", "javapathremoveaclrecursive7326498b459d8fedbe48e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatches.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatches.json new file mode 100644 index 0000000000000..6386329b6f80c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatches.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5d680133-8c0d-4557-a830-27ca6345807d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00934276B4", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f0468053-701e-00a5-3ce9-7fa05b000000", + "Date" : "Mon, 31 Aug 2020 22:52:44 GMT", + "x-ms-client-request-id" : "5d680133-8c0d-4557-a830-27ca6345807d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2d5b6ac9-e2c3-4980-ad87-ffe16a0d584a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E0093CA7C6E", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f325601c-101f-009c-07e9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:45 GMT", + "x-ms-client-request-id" : "2d5b6ac9-e2c3-4980-ad87-ffe16a0d584a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377/javapathremoveaclrecursivebatches215232130fa5a67d2d?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3e7cda31-f568-40f2-bc55-6bffb63a08e0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E0093DC88F5", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f325601d-101f-009c-08e9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:45 GMT", + "x-ms-client-request-id" : "3e7cda31-f568-40f2-bc55-6bffb63a08e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377/javapathremoveaclrecursivebatches215232130fa5a67d2d/javapathremoveaclrecursivebatches317856d614e3d71177?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ea1ecba7-0b00-48e2-8dc0-4239399ee3f0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E0093ED17DB", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f325601e-101f-009c-09e9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:45 GMT", + "x-ms-client-request-id" : "ea1ecba7-0b00-48e2-8dc0-4239399ee3f0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377/javapathremoveaclrecursivebatches215232130fa5a67d2d/javapathremoveaclrecursivebatches428460ebdb20f5fe51?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7dc539cd-41df-4a27-91ff-5a21883ce6dd" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E0093FFECB8", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f325601f-101f-009c-0ae9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:45 GMT", + "x-ms-client-request-id" : "7dc539cd-41df-4a27-91ff-5a21883ce6dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377/javapathremoveaclrecursivebatches5692687d66db3123c1?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ec22c140-17a8-4937-8cd0-b12c43788035" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00940EC681", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f3256021-101f-009c-0be9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:45 GMT", + "x-ms-client-request-id" : "ec22c140-17a8-4937-8cd0-b12c43788035" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377/javapathremoveaclrecursivebatches5692687d66db3123c1/javapathremoveaclrecursivebatches61447923d0f1ae935e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3e4ee043-a4a2-4847-ba59-1f976f666481" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E009420C9E7", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f3256022-101f-009c-0ce9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:45 GMT", + "x-ms-client-request-id" : "3e4ee043-a4a2-4847-ba59-1f976f666481" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377/javapathremoveaclrecursivebatches70226976c961f5b352?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c6dd5bc0-e49c-4d1f-be13-c37755d61a73" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00942FDFC1", + "Last-Modified" : "Mon, 31 Aug 2020 22:52:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f3256023-101f-009c-0de9-7f5b47000000", + "Date" : "Mon, 31 Aug 2020 22:52:46 GMT", + "x-ms-client-request-id" : "c6dd5bc0-e49c-4d1f-be13-c37755d61a73" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377?mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fa7b05eb-ef94-46fd-8364-b97e73502391" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb/iqDl8eL5t/gBGIcCGIECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlczA1MjY0MTU0OTM4ZDE2MTBkZjQ0ATAxRDY3RkU5NzBDQ0IyMTUvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzMTA1MTM5YzNkMjZiZDc3Mzc3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlczIxNTIzMjEzMGZhNWE2N2QyZC9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMzMTc4NTZkNjE0ZTNkNzExNzcWAAAA", + "x-ms-request-id" : "f3256024-101f-009c-0ee9-7f5b47000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:52:46 GMT", + "x-ms-client-request-id" : "fa7b05eb-ef94-46fd-8364-b97e73502391" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377?continuation=VBb/iqDl8eL5t/gBGIcCGIECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlczA1MjY0MTU0OTM4ZDE2MTBkZjQ0ATAxRDY3RkU5NzBDQ0IyMTUvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzMTA1MTM5YzNkMjZiZDc3Mzc3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlczIxNTIzMjEzMGZhNWE2N2QyZC9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMzMTc4NTZkNjE0ZTNkNzExNzcWAAAA&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "afe28925-c3e8-42a1-a448-f62cdd543bd7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb76urj5Z3xrE0Y0wEYzQEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzMDUyNjQxNTQ5MzhkMTYxMGRmNDQBMDFENjdGRTk3MENDQjIxNS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMxMDUxMzljM2QyNmJkNzczNzcvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzNTY5MjY4N2Q2NmRiMzEyM2MxFgAAAA==", + "x-ms-request-id" : "f3256025-101f-009c-0fe9-7f5b47000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 22:52:46 GMT", + "x-ms-client-request-id" : "afe28925-c3e8-42a1-a448-f62cdd543bd7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377?continuation=VBb76urj5Z3xrE0Y0wEYzQEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzMDUyNjQxNTQ5MzhkMTYxMGRmNDQBMDFENjdGRTk3MENDQjIxNS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMxMDUxMzljM2QyNmJkNzczNzcvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzNTY5MjY4N2Q2NmRiMzEyM2MxFgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6af0430f-d65d-48c7-a5db-7c92a09858c8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbtg8O6qe29hl8Y0wEYzQEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzMDUyNjQxNTQ5MzhkMTYxMGRmNDQBMDFENjdGRTk3MENDQjIxNS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMxMDUxMzljM2QyNmJkNzczNzcvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzNzAyMjY5NzZjOTYxZjViMzUyFgAAAA==", + "x-ms-request-id" : "f3256026-101f-009c-10e9-7f5b47000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:52:46 GMT", + "x-ms-client-request-id" : "6af0430f-d65d-48c7-a5db-7c92a09858c8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44/javapathremoveaclrecursivebatches105139c3d26bd77377?continuation=VBbtg8O6qe29hl8Y0wEYzQEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzMDUyNjQxNTQ5MzhkMTYxMGRmNDQBMDFENjdGRTk3MENDQjIxNS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMxMDUxMzljM2QyNmJkNzczNzcvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzNzAyMjY5NzZjOTYxZjViMzUyFgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "61cd3f5f-b124-486a-b867-22b59e80d6a5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "f3256027-101f-009c-11e9-7f5b47000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:52:46 GMT", + "x-ms-client-request-id" : "61cd3f5f-b124-486a-b867-22b59e80d6a5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursivebatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7f8659b9-012d-4ee8-bfb9-1ae8541e5068" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f04680fe-701e-00a5-37e9-7fa05b000000", + "Body" : "jtfsremoveaclrecursivebatchesjtfsremoveaclrecursivebatches05264154938d1610df44Mon, 31 Aug 2020 22:52:45 GMT\"0x8D84E00934276B4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:52:46 GMT", + "x-ms-client-request-id" : "7f8659b9-012d-4ee8-bfb9-1ae8541e5068", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatches05264154938d1610df44?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a8e029ab-9564-40f9-aa2c-470f9e80f346" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f0468108-701e-00a5-40e9-7fa05b000000", + "Date" : "Mon, 31 Aug 2020 22:52:47 GMT", + "x-ms-client-request-id" : "a8e029ab-9564-40f9-aa2c-470f9e80f346" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursivebatches05264154938d1610df44", "javapathremoveaclrecursivebatches105139c3d26bd77377", "javapathremoveaclrecursivebatches215232130fa5a67d2d", "javapathremoveaclrecursivebatches317856d614e3d71177", "javapathremoveaclrecursivebatches428460ebdb20f5fe51", "javapathremoveaclrecursivebatches5692687d66db3123c1", "javapathremoveaclrecursivebatches61447923d0f1ae935e", "javapathremoveaclrecursivebatches70226976c961f5b352" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesfollowtoken.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesfollowtoken.json new file mode 100644 index 0000000000000..090b984d9f023 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesfollowtoken.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "638b5a95-489f-4cc2-91db-0a664900bfc3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CE612CFF", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "201b2326-201e-0097-48e9-7fa02c000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "638b5a95-489f-4cc2-91db-0a664900bfc3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "82ea2d24-231c-4c43-9cf7-037bc20f8a87" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CEDABF5D", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b2a-c01f-0019-55e9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "82ea2d24-231c-4c43-9cf7-037bc20f8a87" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b/javapathremoveaclrecursivebatchesfollowtoken272778a62acb?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "480eee06-90c4-4973-9858-6ef3e8d68ec8" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CEEF5716", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b2b-c01f-0019-56e9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "480eee06-90c4-4973-9858-6ef3e8d68ec8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b/javapathremoveaclrecursivebatchesfollowtoken272778a62acb/javapathremoveaclrecursivebatchesfollowtoken33792426677b?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ae1830ee-f327-4ec6-a342-6a9370e86b67" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CF0139E1", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b2c-c01f-0019-57e9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "ae1830ee-f327-4ec6-a342-6a9370e86b67" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b/javapathremoveaclrecursivebatchesfollowtoken272778a62acb/javapathremoveaclrecursivebatchesfollowtoken428609d7fcc7?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ec5b0229-d3f4-4970-be81-806f948a27f8" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CF1164E8", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b2d-c01f-0019-58e9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "ec5b0229-d3f4-4970-be81-806f948a27f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b/javapathremoveaclrecursivebatchesfollowtoken5754925794fb?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c046990b-d472-4f03-9332-36ca787f2e96" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CF208BB7", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b2e-c01f-0019-59e9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "c046990b-d472-4f03-9332-36ca787f2e96" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b/javapathremoveaclrecursivebatchesfollowtoken5754925794fb/javapathremoveaclrecursivebatchesfollowtoken6814652ebe41?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "723ff23e-9f2e-47ed-809f-778703cb9a53" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CF308BDC", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b2f-c01f-0019-5ae9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "723ff23e-9f2e-47ed-809f-778703cb9a53" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b/javapathremoveaclrecursivebatchesfollowtoken767739e44ebe?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "12d95b9b-f64f-442a-b20d-62e2ec85e958" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00CF4022EC", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "450e3b30-c01f-0019-5be9-7f769a000000", + "Date" : "Mon, 31 Aug 2020 22:54:24 GMT", + "x-ms-client-request-id" : "12d95b9b-f64f-442a-b20d-62e2ec85e958" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b?mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "81414437-c342-4308-ae0c-c8fcbb69204f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBak5vSOl9mA+DMYmwIYlQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wNTQ0NjA5NTVjZmVhOAEwMUQ2N0ZFOUFCRUFFMjg3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE5MzQyNzFkOTliL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMjcyNzc4YTYyYWNiL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMzM3OTI0MjY2NzdiFgAAAA==", + "x-ms-request-id" : "450e3b31-c01f-0019-5ce9-7f769a000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:54:25 GMT", + "x-ms-client-request-id" : "81414437-c342-4308-ae0c-c8fcbb69204f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b?continuation=VBak5vSOl9mA%2BDMYmwIYlQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wNTQ0NjA5NTVjZmVhOAEwMUQ2N0ZFOUFCRUFFMjg3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE5MzQyNzFkOTliL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMjcyNzc4YTYyYWNiL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMzM3OTI0MjY2NzdiFgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fd36c585-47af-4f9b-bab9-9a4e4635f780" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbM65aXzN/KNRjiARjcAS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvanRmc3JlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNmb2xsb3d0b2tlbjA1NDQ2MDk1NWNmZWE4ATAxRDY3RkU5QUJFQUUyODcvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4xMTkzNDI3MWQ5OWIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW41NzU0OTI1Nzk0ZmIWAAAA", + "x-ms-request-id" : "450e3b33-c01f-0019-5de9-7f769a000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 22:54:25 GMT", + "x-ms-client-request-id" : "fd36c585-47af-4f9b-bab9-9a4e4635f780" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b?continuation=VBbM65aXzN/KNRjiARjcAS9hbWFuZGFhZGxzY2FuYXJ5ATAxRDYxQzE4RjBEQTE5OUMvanRmc3JlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNmb2xsb3d0b2tlbjA1NDQ2MDk1NWNmZWE4ATAxRDY3RkU5QUJFQUUyODcvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4xMTkzNDI3MWQ5OWIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW41NzU0OTI1Nzk0ZmIWAAAA&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f7c31f9e-5b7c-4963-95de-4391d52af5f7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbgvKLh7+f95l4Y4gEY3AEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wNTQ0NjA5NTVjZmVhOAEwMUQ2N0ZFOUFCRUFFMjg3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE5MzQyNzFkOTliL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuNzY3NzM5ZTQ0ZWJlFgAAAA==", + "x-ms-request-id" : "450e3b34-c01f-0019-5ee9-7f769a000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:54:25 GMT", + "x-ms-client-request-id" : "f7c31f9e-5b7c-4963-95de-4391d52af5f7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8/javapathremoveaclrecursivebatchesfollowtoken11934271d99b?continuation=VBbgvKLh7%2Bf95l4Y4gEY3AEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wNTQ0NjA5NTVjZmVhOAEwMUQ2N0ZFOUFCRUFFMjg3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE5MzQyNzFkOTliL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuNzY3NzM5ZTQ0ZWJlFgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4d475430-ce5d-488c-bd42-7ca1e910dee6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "450e3b35-c01f-0019-5fe9-7f769a000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:54:25 GMT", + "x-ms-client-request-id" : "4d475430-ce5d-488c-bd42-7ca1e910dee6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursivebatchesfollowtoken&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f998bdfe-e43b-44b4-8081-70fb17fa2166" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "201b23b1-201e-0097-37e9-7fa02c000000", + "Body" : "jtfsremoveaclrecursivebatchesfollowtokenjtfsremoveaclrecursivebatchesfollowtoken054460955cfea8Mon, 31 Aug 2020 22:54:24 GMT\"0x8D84E00CE612CFF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:54:26 GMT", + "x-ms-client-request-id" : "f998bdfe-e43b-44b4-8081-70fb17fa2166", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "517cc1ff-c169-4ce3-b9e9-cf46eb9ba4c2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "201b23bc-201e-0097-40e9-7fa02c000000", + "Date" : "Mon, 31 Aug 2020 22:54:26 GMT", + "x-ms-client-request-id" : "517cc1ff-c169-4ce3-b9e9-cf46eb9ba4c2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursivebatchesfollowtoken054460955cfea8", "javapathremoveaclrecursivebatchesfollowtoken11934271d99b", "javapathremoveaclrecursivebatchesfollowtoken272778a62acb", "javapathremoveaclrecursivebatchesfollowtoken33792426677b", "javapathremoveaclrecursivebatchesfollowtoken428609d7fcc7", "javapathremoveaclrecursivebatchesfollowtoken5754925794fb", "javapathremoveaclrecursivebatchesfollowtoken6814652ebe41", "javapathremoveaclrecursivebatchesfollowtoken767739e44ebe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesprogress.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesprogress.json new file mode 100644 index 0000000000000..2191b3cd6de3b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesprogress.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bc34245b-6441-45b2-94d5-2f030f6e24e9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BE013231", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a69e9a5c-901e-0049-7de9-7fb4ca000000", + "Date" : "Mon, 31 Aug 2020 22:53:56 GMT", + "x-ms-client-request-id" : "bc34245b-6441-45b2-94d5-2f030f6e24e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6a54b958-813e-40a4-8422-5a2060b287f8" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BE8B2BED", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff8f-d01f-00bc-7be9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:56 GMT", + "x-ms-client-request-id" : "6a54b958-813e-40a4-8422-5a2060b287f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb/javapathremoveaclrecursivebatchesprogress275588a34a7c84?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4c93eccf-a9b5-4cb4-a3a7-207dab71ec54" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BE9E65CE", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff90-d01f-00bc-7ce9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:56 GMT", + "x-ms-client-request-id" : "4c93eccf-a9b5-4cb4-a3a7-207dab71ec54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb/javapathremoveaclrecursivebatchesprogress275588a34a7c84/javapathremoveaclrecursivebatchesprogress399285d15fc6e6?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e868893a-41a1-414a-a8df-42e2b051c490" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BEB0D631", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff91-d01f-00bc-7de9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:57 GMT", + "x-ms-client-request-id" : "e868893a-41a1-414a-a8df-42e2b051c490" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb/javapathremoveaclrecursivebatchesprogress275588a34a7c84/javapathremoveaclrecursivebatchesprogress483196dd51be1f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "94930fe1-af09-4430-b570-b2ec391f3cd7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BEC0A82F", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff92-d01f-00bc-7ee9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:57 GMT", + "x-ms-client-request-id" : "94930fe1-af09-4430-b570-b2ec391f3cd7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb/javapathremoveaclrecursivebatchesprogress5078272c96ccdd?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "70c677ef-c40d-494f-9ff8-22f4b1b66b1b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BECF4A76", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff93-d01f-00bc-7fe9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:57 GMT", + "x-ms-client-request-id" : "70c677ef-c40d-494f-9ff8-22f4b1b66b1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb/javapathremoveaclrecursivebatchesprogress5078272c96ccdd/javapathremoveaclrecursivebatchesprogress688433926d44d0?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4908b2a1-63ae-413c-87bc-3000fe8b683c" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BEDE67E3", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff94-d01f-00bc-80e9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:57 GMT", + "x-ms-client-request-id" : "4908b2a1-63ae-413c-87bc-3000fe8b683c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb/javapathremoveaclrecursivebatchesprogress79750559aa3dcc?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "42a8ab98-9231-459a-a615-754d0d8db2ef" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00BEED4A0D", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e95dff95-d01f-00bc-01e9-7f20e0000000", + "Date" : "Mon, 31 Aug 2020 22:53:57 GMT", + "x-ms-client-request-id" : "42a8ab98-9231-459a-a615-754d0d8db2ef" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb?mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "aee3632e-85a2-4e8c-9b4b-ba882d9564bf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaJ7ejwzM+H3ZYBGJcCGJECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDYyOTM4ZDQ2ZTNhZmExMAEwMUQ2N0ZFOTlCOEE4MjM1L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMTQzNzE0YTBhOGRjZmIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MyNzU1ODhhMzRhN2M4NC9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczM5OTI4NWQxNWZjNmU2FgAAAA==", + "x-ms-request-id" : "e95dff96-d01f-00bc-02e9-7f20e0000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:53:57 GMT", + "x-ms-client-request-id" : "aee3632e-85a2-4e8c-9b4b-ba882d9564bf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb?continuation=VBaJ7ejwzM%2BH3ZYBGJcCGJECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDYyOTM4ZDQ2ZTNhZmExMAEwMUQ2N0ZFOTlCOEE4MjM1L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMTQzNzE0YTBhOGRjZmIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MyNzU1ODhhMzRhN2M4NC9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczM5OTI4NWQxNWZjNmU2FgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "931dbd9e-141f-46d3-9117-af9facad12f8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBa/yY3q5svbkToY3wEY2QEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MwNjI5MzhkNDZlM2FmYTEwATAxRDY3RkU5OUI4QTgyMzUvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNDM3MTRhMGE4ZGNmYi9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczUwNzgyNzJjOTZjY2RkFgAAAA==", + "x-ms-request-id" : "e95dff97-d01f-00bc-03e9-7f20e0000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 22:53:58 GMT", + "x-ms-client-request-id" : "931dbd9e-141f-46d3-9117-af9facad12f8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb?continuation=VBa/yY3q5svbkToY3wEY2QEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MwNjI5MzhkNDZlM2FmYTEwATAxRDY3RkU5OUI4QTgyMzUvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNDM3MTRhMGE4ZGNmYi9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczUwNzgyNzJjOTZjY2RkFgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e33f5ca2-e3fb-4b54-8031-aeb2524e6043" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbRgqDL9N6F108Y3wEY2QEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MwNjI5MzhkNDZlM2FmYTEwATAxRDY3RkU5OUI4QTgyMzUvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNDM3MTRhMGE4ZGNmYi9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczc5NzUwNTU5YWEzZGNjFgAAAA==", + "x-ms-request-id" : "e95dff98-d01f-00bc-04e9-7f20e0000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:53:58 GMT", + "x-ms-client-request-id" : "e33f5ca2-e3fb-4b54-8031-aeb2524e6043" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10/javapathremoveaclrecursivebatchesprogress143714a0a8dcfb?continuation=VBbRgqDL9N6F108Y3wEY2QEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MwNjI5MzhkNDZlM2FmYTEwATAxRDY3RkU5OUI4QTgyMzUvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNDM3MTRhMGE4ZGNmYi9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczc5NzUwNTU5YWEzZGNjFgAAAA%3D%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b556b9d9-e11e-4763-9f64-de16ac5fedc6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "e95dff99-d01f-00bc-05e9-7f20e0000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:53:58 GMT", + "x-ms-client-request-id" : "b556b9d9-e11e-4763-9f64-de16ac5fedc6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursivebatchesprogress&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "dc8cbf08-1fda-49b3-b326-361fff326d54" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a69e9b6e-901e-0049-54e9-7fb4ca000000", + "Body" : "jtfsremoveaclrecursivebatchesprogressjtfsremoveaclrecursivebatchesprogress062938d46e3afa10Mon, 31 Aug 2020 22:53:56 GMT\"0x8D84E00BE013231\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:53:58 GMT", + "x-ms-client-request-id" : "dc8cbf08-1fda-49b3-b326-361fff326d54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatchesprogress062938d46e3afa10?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "510b6f3b-24ee-435e-9346-bcdf3782b1a7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "a69e9b7b-901e-0049-5de9-7fb4ca000000", + "Date" : "Mon, 31 Aug 2020 22:53:59 GMT", + "x-ms-client-request-id" : "510b6f3b-24ee-435e-9346-bcdf3782b1a7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursivebatchesprogress062938d46e3afa10", "javapathremoveaclrecursivebatchesprogress143714a0a8dcfb", "javapathremoveaclrecursivebatchesprogress275588a34a7c84", "javapathremoveaclrecursivebatchesprogress399285d15fc6e6", "javapathremoveaclrecursivebatchesprogress483196dd51be1f", "javapathremoveaclrecursivebatchesprogress5078272c96ccdd", "javapathremoveaclrecursivebatchesprogress688433926d44d0", "javapathremoveaclrecursivebatchesprogress79750559aa3dcc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesresume.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesresume.json new file mode 100644 index 0000000000000..9e54a9e14c041 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivebatchesresume.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b65be175-56da-4e8d-8c94-5933002536ea" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00AAFEA5CE", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "013f6dd5-401e-00be-23e9-7f9e58000000", + "Date" : "Mon, 31 Aug 2020 22:53:24 GMT", + "x-ms-client-request-id" : "b65be175-56da-4e8d-8c94-5933002536ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3d662397-82a1-41db-8047-43d5fe3e59cd" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00AB6F6D48", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f3-c01f-007b-6be9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:25 GMT", + "x-ms-client-request-id" : "3d662397-82a1-41db-8047-43d5fe3e59cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b/javapathremoveaclrecursivebatchesresume287671843ca1407?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d06fb213-5dfc-49a7-8b66-f93291d0f8c9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00AB8507B9", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f4-c01f-007b-6ce9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:25 GMT", + "x-ms-client-request-id" : "d06fb213-5dfc-49a7-8b66-f93291d0f8c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b/javapathremoveaclrecursivebatchesresume287671843ca1407/javapathremoveaclrecursivebatchesresume3112725549ba14f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d8cf8be7-2a99-4c79-8241-4e27a12057f4" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00AB971BBA", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f5-c01f-007b-6de9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:25 GMT", + "x-ms-client-request-id" : "d8cf8be7-2a99-4c79-8241-4e27a12057f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b/javapathremoveaclrecursivebatchesresume287671843ca1407/javapathremoveaclrecursivebatchesresume499363086c4c2e2?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "18f761bb-27f9-4838-bf43-54e58116d85a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ABA7B9C6", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f6-c01f-007b-6ee9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:25 GMT", + "x-ms-client-request-id" : "18f761bb-27f9-4838-bf43-54e58116d85a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b/javapathremoveaclrecursivebatchesresume53964795654665f?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e907d46a-883c-48a1-8299-d3dbe81a7b44" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ABB9707B", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f7-c01f-007b-6fe9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:25 GMT", + "x-ms-client-request-id" : "e907d46a-883c-48a1-8299-d3dbe81a7b44" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b/javapathremoveaclrecursivebatchesresume53964795654665f/javapathremoveaclrecursivebatchesresume6254050e5e77a49?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "71783470-2890-4f88-ae0e-e11357d7d23c" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ABC9D1E4", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f8-c01f-007b-70e9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "71783470-2890-4f88-ae0e-e11357d7d23c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b/javapathremoveaclrecursivebatchesresume7074333ea3f734d?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a21366c1-3776-4d10-b0bb-bec724792150" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ABDADEF7", + "Last-Modified" : "Mon, 31 Aug 2020 22:53:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "646521f9-c01f-007b-71e9-7fb4bd000000", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "a21366c1-3776-4d10-b0bb-bec724792150" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b?mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1dab01a-edd5-4222-bbe8-3b033056c6c6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBai7PPC9bOgyVAYkwIYjQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMDY0OTM0YTgzMDJjN2RhNTYBMDFENjdGRTk4ODg3RjdBOS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxOTYwNDk5M2UzYjc2NmIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMjg3NjcxODQzY2ExNDA3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTMxMTI3MjU1NDliYTE0ZhYAAAA=", + "x-ms-request-id" : "646521fa-c01f-007b-72e9-7fb4bd000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "b1dab01a-edd5-4222-bbe8-3b033056c6c6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b?continuation=VBai7PPC9bOgyVAYkwIYjQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMDY0OTM0YTgzMDJjN2RhNTYBMDFENjdGRTk4ODg3RjdBOS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxOTYwNDk5M2UzYjc2NmIvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMjg3NjcxODQzY2ExNDA3L2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTMxMTI3MjU1NDliYTE0ZhYAAAA%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e7de4236-7b7b-42c9-b227-2f8e8adda918" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbJ0ID+h4DN0d4BGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA2NDkzNGE4MzAyYzdkYTU2ATAxRDY3RkU5ODg4N0Y3QTkvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTk2MDQ5OTNlM2I3NjZiL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTUzOTY0Nzk1NjU0NjY1ZhYAAAA=", + "x-ms-request-id" : "646521fb-c01f-007b-73e9-7fb4bd000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "e7de4236-7b7b-42c9-b227-2f8e8adda918" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b?continuation=VBbJ0ID%2Bh4DN0d4BGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA2NDkzNGE4MzAyYzdkYTU2ATAxRDY3RkU5ODg4N0Y3QTkvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTk2MDQ5OTNlM2I3NjZiL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTUzOTY0Nzk1NjU0NjY1ZhYAAAA%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2447d3a5-4244-432a-a969-ab48dbb23316" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb0hvKy+bOryssBGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA2NDkzNGE4MzAyYzdkYTU2ATAxRDY3RkU5ODg4N0Y3QTkvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTk2MDQ5OTNlM2I3NjZiL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTcwNzQzMzNlYTNmNzM0ZBYAAAA=", + "x-ms-request-id" : "646521fc-c01f-007b-74e9-7fb4bd000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "2447d3a5-4244-432a-a969-ab48dbb23316" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56/javapathremoveaclrecursivebatchesresume19604993e3b766b?continuation=VBb0hvKy%2BbOryssBGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA2NDkzNGE4MzAyYzdkYTU2ATAxRDY3RkU5ODg4N0Y3QTkvamF2YXBhdGhyZW1vdmVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTk2MDQ5OTNlM2I3NjZiL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTcwNzQzMzNlYTNmNzM0ZBYAAAA%3D&mode=remove&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d1727a26-f10f-40df-b29a-1cab259ef47f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "646521fd-c01f-007b-75e9-7fb4bd000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "d1727a26-f10f-40df-b29a-1cab259ef47f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursivebatchesresume&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8eb02a47-da5f-4f66-8f8b-3fef3357689d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "013f6f01-401e-00be-25e9-7f9e58000000", + "Body" : "jtfsremoveaclrecursivebatchesresumejtfsremoveaclrecursivebatchesresume064934a8302c7da56Mon, 31 Aug 2020 22:53:24 GMT\"0x8D84E00AAFEA5CE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "8eb02a47-da5f-4f66-8f8b-3fef3357689d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivebatchesresume064934a8302c7da56?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "714a153e-45e5-448e-944c-f33e4c4f69a0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "013f6f2b-401e-00be-4ce9-7f9e58000000", + "Date" : "Mon, 31 Aug 2020 22:53:26 GMT", + "x-ms-client-request-id" : "714a153e-45e5-448e-944c-f33e4c4f69a0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursivebatchesresume064934a8302c7da56", "javapathremoveaclrecursivebatchesresume19604993e3b766b", "javapathremoveaclrecursivebatchesresume287671843ca1407", "javapathremoveaclrecursivebatchesresume3112725549ba14f", "javapathremoveaclrecursivebatchesresume499363086c4c2e2", "javapathremoveaclrecursivebatchesresume53964795654665f", "javapathremoveaclrecursivebatchesresume6254050e5e77a49", "javapathremoveaclrecursivebatchesresume7074333ea3f734d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivecontinueonfailure.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivecontinueonfailure.json new file mode 100644 index 0000000000000..7a1ff7dc7f60a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivecontinueonfailure.json @@ -0,0 +1,340 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d9d4d454-cde0-452b-8019-9851699cdf25" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00EC2BBA46", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "26cfb8e0-301e-00a4-13e9-7fff87000000", + "Date" : "Mon, 31 Aug 2020 22:55:13 GMT", + "x-ms-client-request-id" : "d9d4d454-cde0-452b-8019-9851699cdf25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure1092238bf0c8c?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5c73d25b-8802-4376-882a-26209011eb97" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ECA2733B", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017d9-a01f-00eb-30e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:14 GMT", + "x-ms-client-request-id" : "5c73d25b-8802-4376-882a-26209011eb97" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5c21da31-37c7-4ef5-a24e-b2ef02e38ec0" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00EC38D142", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "955017da-a01f-00eb-31e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:14 GMT", + "x-ms-client-request-id" : "5c21da31-37c7-4ef5-a24e-b2ef02e38ec0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0e00c20a-0cca-4f1b-ae3d-9f40560d0e65" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED100F24", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017dc-a01f-00eb-32e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "0e00c20a-0cca-4f1b-ae3d-9f40560d0e65" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure361772d0d8f15?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a9e37243-9338-492d-bae6-4d9d2ce3da16" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED22665A", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017de-a01f-00eb-33e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "a9e37243-9338-492d-bae6-4d9d2ce3da16" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure361772d0d8f15/javapathremoveaclrecursivecontinueonfailure419514e9af864?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a34a82f2-9810-436a-b88a-27f2a513ac9d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED35CEA1", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e1-a01f-00eb-36e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "a34a82f2-9810-436a-b88a-27f2a513ac9d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure361772d0d8f15/javapathremoveaclrecursivecontinueonfailure586800a338f01?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fe7604ae-50e7-4b76-8115-a7bca8f4038b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED46E29F", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e3-a01f-00eb-38e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "fe7604ae-50e7-4b76-8115-a7bca8f4038b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "01b03f1b-26d8-4b7a-bdd8-a599f3f4d499" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED575CC8", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e4-a01f-00eb-39e9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "01b03f1b-26d8-4b7a-bdd8-a599f3f4d499" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure702210692b76a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "de5973d4-cd71-4c33-807b-df6cff600b32" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED6D8FC2", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e5-a01f-00eb-3ae9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "de5973d4-cd71-4c33-807b-df6cff600b32" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure819682cd53fe8?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "13e610ae-031f-45b7-90fe-e95ec2c52e20" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED817A47", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e6-a01f-00eb-3be9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "13e610ae-031f-45b7-90fe-e95ec2c52e20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure9927154430ef4?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7e9b7750-912f-40f4-bf12-8c192985b5ed" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00ED942463", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e7-a01f-00eb-3ce9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:15 GMT", + "x-ms-client-request-id" : "7e9b7750-912f-40f4-bf12-8c192985b5ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure1094579db822e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bfebd4f2-fbe6-4e01-aa5e-23d12afd0b81" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00EDA7ABC7", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e8-a01f-00eb-3de9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:16 GMT", + "x-ms-client-request-id" : "bfebd4f2-fbe6-4e01-aa5e-23d12afd0b81" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure1165394f0683f?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8b49206e-944a-4fc1-ae4f-741348652f3a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00EDB8899F", + "Last-Modified" : "Mon, 31 Aug 2020 22:55:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "955017e9-a01f-00eb-3ee9-7f8ed3000000", + "Date" : "Mon, 31 Aug 2020 22:55:16 GMT", + "x-ms-client-request-id" : "8b49206e-944a-4fc1-ae4f-741348652f3a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7/javapathremoveaclrecursivecontinueonfailure29848829083f9?mode=remove&forceFlag=true&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2f795b72-a9f2-44f8-8485-e378f8733936" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "1260", + "StatusCode" : "200", + "x-ms-request-id" : "955017ea-a01f-00eb-3fe9-7f8ed3000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure819682cd53fe8\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure1165394f0683f\",\"type\":\"DIRECTORY\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure1094579db822e\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailure29848829083f9/javapathremoveaclrecursivecontinueonfailure605354998943c/javapathremoveaclrecursivecontinueonfailure9927154430ef4\",\"type\":\"FILE\"}],\"failureCount\":4,\"filesSuccessful\":3}\n", + "Date" : "Mon, 31 Aug 2020 22:55:16 GMT", + "x-ms-client-request-id" : "2f795b72-a9f2-44f8-8485-e378f8733936" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursivecontinueonfailure&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "42cecfad-920e-41f1-8db1-f3a7a3fdebf8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "26cfb9d6-301e-00a4-51e9-7fff87000000", + "Body" : "jtfsremoveaclrecursivecontinueonfailurejtfsremoveaclrecursivecontinueonfailure0177053728947a7Mon, 31 Aug 2020 22:55:14 GMT\"0x8D84E00EC2BBA46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:55:16 GMT", + "x-ms-client-request-id" : "42cecfad-920e-41f1-8db1-f3a7a3fdebf8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivecontinueonfailure0177053728947a7?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5dec8ef8-28ad-49f3-ab19-377c6c6349e4" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "26cfb9ee-301e-00a4-65e9-7fff87000000", + "Date" : "Mon, 31 Aug 2020 22:55:16 GMT", + "x-ms-client-request-id" : "5dec8ef8-28ad-49f3-ab19-377c6c6349e4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursivecontinueonfailure0177053728947a7", "javapathremoveaclrecursivecontinueonfailure1092238bf0c8c", "javapathremoveaclrecursivecontinueonfailure29848829083f9", "javapathremoveaclrecursivecontinueonfailure361772d0d8f15", "javapathremoveaclrecursivecontinueonfailure419514e9af864", "javapathremoveaclrecursivecontinueonfailure586800a338f01", "javapathremoveaclrecursivecontinueonfailure605354998943c", "javapathremoveaclrecursivecontinueonfailure702210692b76a", "javapathremoveaclrecursivecontinueonfailure819682cd53fe8", "javapathremoveaclrecursivecontinueonfailure9927154430ef4", "javapathremoveaclrecursivecontinueonfailure1094579db822e", "javapathremoveaclrecursivecontinueonfailure1165394f0683f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivecontinueonfailurebatchesresume.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivecontinueonfailurebatchesresume.json new file mode 100644 index 0000000000000..217db36373a62 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursivecontinueonfailurebatchesresume.json @@ -0,0 +1,562 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f9aaf740-89a8-4cd5-bc2b-301dd64a36ba" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011C926AD7", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "05e6971d-501e-00d0-19e9-7fcb77000000", + "Date" : "Mon, 31 Aug 2020 22:56:34 GMT", + "x-ms-client-request-id" : "f9aaf740-89a8-4cd5-bc2b-301dd64a36ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume123236?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b02b6e88-2ffd-4ad9-a5d2-64f499c9849e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011D141A80", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f004d-301f-00c6-05e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:36 GMT", + "x-ms-client-request-id" : "b02b6e88-2ffd-4ad9-a5d2-64f499c9849e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ee644b66-a0bc-4f90-beb0-ef60dae06683" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011C979E32", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a8f004e-301f-00c6-06e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:36 GMT", + "x-ms-client-request-id" : "ee644b66-a0bc-4f90-beb0-ef60dae06683" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "27346f3f-222a-416a-b7da-3d8206927d68" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011D969D58", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0051-301f-00c6-07e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "27346f3f-222a-416a-b7da-3d8206927d68" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume383539?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "699159a1-beb9-46b7-a452-9dd2404a0886" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011DAB4CFC", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0052-301f-00c6-08e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "699159a1-beb9-46b7-a452-9dd2404a0886" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume383539/javapathremoveaclrecursivecontinueonfailurebatchesresume462176?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f0bfe494-3a36-48ec-83f4-225bfc1665ca" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011DBF6E58", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0053-301f-00c6-09e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "f0bfe494-3a36-48ec-83f4-225bfc1665ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume383539/javapathremoveaclrecursivecontinueonfailurebatchesresume528368?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7f98a010-8ab9-4c84-a1f8-071bbc16a77b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011DD01C01", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0054-301f-00c6-0ae9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "7f98a010-8ab9-4c84-a1f8-071bbc16a77b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "dd61e801-7416-4e32-916f-db8f89dee1bd" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011DE05860", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0055-301f-00c6-0be9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "dd61e801-7416-4e32-916f-db8f89dee1bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume762108?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1ea6bbe8-eba0-43da-b968-871b4aa509ce" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011DF1DEF4", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0056-301f-00c6-0ce9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "1ea6bbe8-eba0-43da-b968-871b4aa509ce" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume817253?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c672b3b4-a7fa-424c-8b23-7d377d8ab584" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E04AD43", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0057-301f-00c6-0de9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "c672b3b4-a7fa-424c-8b23-7d377d8ab584" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume911201?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2c2ecd3b-90ee-467d-a10d-cc5032608872" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E15D056", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0058-301f-00c6-0ee9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "2c2ecd3b-90ee-467d-a10d-cc5032608872" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume1047490?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7d5ee434-2171-4a90-9f19-d7b9271dc88d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E26C1B9", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f0059-301f-00c6-0fe9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:37 GMT", + "x-ms-client-request-id" : "7d5ee434-2171-4a90-9f19-d7b9271dc88d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume1148398?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "72bd0771-14f4-45e9-8453-6fbeb69b92bf" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E36CB4E", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f005a-301f-00c6-10e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "72bd0771-14f4-45e9-8453-6fbeb69b92bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume383539/javapathremoveaclrecursivecontinueonfailurebatchesresume1280814?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "20c53d3d-7684-43a9-9f97-917f3839c921" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E47031F", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f005b-301f-00c6-11e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "20c53d3d-7684-43a9-9f97-917f3839c921" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume383539/javapathremoveaclrecursivecontinueonfailurebatchesresume1338067?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5dc816e1-8b1f-4e6d-9688-11ed8561a56f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E573034", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f005c-301f-00c6-12e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "5dc816e1-8b1f-4e6d-9688-11ed8561a56f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume1402963?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e01df784-4c52-4004-8c64-1641504aa42e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E6816A2", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f005d-301f-00c6-13e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "e01df784-4c52-4004-8c64-1641504aa42e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume1402963/javapathremoveaclrecursivecontinueonfailurebatchesresume1584492?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e9791346-b830-436c-9475-0efe4aa63ef3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E011E7A46AA", + "Last-Modified" : "Mon, 31 Aug 2020 22:56:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a8f005e-301f-00c6-14e9-7f3da0000000", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "e9791346-b830-436c-9475-0efe4aa63ef3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f331263e-ce9d-4b91-a07b-f9cf66a6af53" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBam+rP/wP6W6hIYtQIYrwIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNzg3MzFlNgEwMUQ2N0ZFOUZBMUI4MDIxL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzNzMzL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMTQwMjk2My9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTE1ODQ0OTIWAAAA", + "x-ms-request-id" : "3a8f005f-301f-00c6-15e9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "f331263e-ce9d-4b91-a07b-f9cf66a6af53" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?continuation=VBam%2BrP/wP6W6hIYtQIYrwIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNyZW1vdmVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNzg3MzFlNgEwMUQ2N0ZFOUZBMUI4MDIxL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzNzMzL2phdmFwYXRocmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMTQwMjk2My9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTE1ODQ0OTIWAAAA&mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e228c4dc-2637-48a9-a332-7becff87f608" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbRmrL0ybf5we4BGLQCGK4CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTM4MzUzOS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTEyODA4MTQWAAAA", + "x-ms-request-id" : "3a8f0062-301f-00c6-16e9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "e228c4dc-2637-48a9-a332-7becff87f608" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?continuation=VBbRmrL0ybf5we4BGLQCGK4CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTM4MzUzOS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTEyODA4MTQWAAAA&mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c5b25dc8-ece7-4971-9235-c465d8984a88" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb/laTWo6aws8IBGLMCGK0CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTM4MzUzOS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTQ2MjE3NhYAAAA=", + "x-ms-request-id" : "3a8f0063-301f-00c6-17e9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 22:56:39 GMT", + "x-ms-client-request-id" : "c5b25dc8-ece7-4971-9235-c465d8984a88" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?continuation=VBb/laTWo6aws8IBGLMCGK0CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTM4MzUzOS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTQ2MjE3NhYAAAA%3D&mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "eaf801da-cfa9-4dc8-9e7a-de27bc6e3922" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaf2crEuomcq5YBGPQBGO4BL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTYxNDE4NhYAAAA=", + "x-ms-request-id" : "3a8f0064-301f-00c6-18e9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 22:56:39 GMT", + "x-ms-client-request-id" : "eaf801da-cfa9-4dc8-9e7a-de27bc6e3922" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?continuation=VBaf2crEuomcq5YBGPQBGO4BL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTYxNDE4NhYAAAA%3D&mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2d84a75c-7a6d-42d4-bc87-ea5adb711161" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "395", + "StatusCode" : "200", + "x-ms-continuation" : "VBbht92C9urRtN0BGLQCGK4CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTYxNDE4Ni9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTExNDgzOTgWAAAA", + "x-ms-request-id" : "3a8f0066-301f-00c6-1ae9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume1047490\",\"type\":\"FILE\"}],\"failureCount\":1,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:56:39 GMT", + "x-ms-client-request-id" : "2d84a75c-7a6d-42d4-bc87-ea5adb711161" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?continuation=VBbht92C9urRtN0BGLQCGK4CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTYxNDE4Ni9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTExNDgzOTgWAAAA&mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "92d2c57e-c6cb-409b-8ec1-f31fc385553c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "400", + "StatusCode" : "200", + "x-ms-continuation" : "VBacvue+956drvcBGLMCGK0CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTYxNDE4Ni9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTgxNzI1MxYAAAA=", + "x-ms-request-id" : "3a8f0068-301f-00c6-1ce9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume1148398\",\"type\":\"DIRECTORY\"}],\"failureCount\":1,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 22:56:39 GMT", + "x-ms-client-request-id" : "92d2c57e-c6cb-409b-8ec1-f31fc385553c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6/javapathremoveaclrecursivecontinueonfailurebatchesresume253733?continuation=VBacvue%2B956drvcBGLMCGK0CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzcmVtb3ZlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDc4NzMxZTYBMDFENjdGRTlGQTFCODAyMS9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI1MzczMy9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTYxNDE4Ni9qYXZhcGF0aHJlbW92ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTgxNzI1MxYAAAA%3D&mode=remove&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8d8aef71-c050-49cb-bf5a-a706f11d1e18" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "705", + "StatusCode" : "200", + "x-ms-request-id" : "3a8f006a-301f-00c6-1ee9-7f3da0000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume817253\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursivecontinueonfailurebatchesresume253733/javapathremoveaclrecursivecontinueonfailurebatchesresume614186/javapathremoveaclrecursivecontinueonfailurebatchesresume911201\",\"type\":\"FILE\"}],\"failureCount\":2,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 22:56:39 GMT", + "x-ms-client-request-id" : "8d8aef71-c050-49cb-bf5a-a706f11d1e18" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursivecontinueonfailurebatchesresume&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "51dd81e8-a953-4c83-a062-c8455df0d5e6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "05e697e3-501e-00d0-2ce9-7fcb77000000", + "Body" : "jtfsremoveaclrecursivecontinueonfailurebatchesresumejtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6Mon, 31 Aug 2020 22:56:35 GMT\"0x8D84E011C926AD7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:56:38 GMT", + "x-ms-client-request-id" : "51dd81e8-a953-4c83-a062-c8455df0d5e6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "efabab0e-fb2b-40c1-8ed8-1e50deebd4b1" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "05e697ee-501e-00d0-32e9-7fcb77000000", + "Date" : "Mon, 31 Aug 2020 22:56:39 GMT", + "x-ms-client-request-id" : "efabab0e-fb2b-40c1-8ed8-1e50deebd4b1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursivecontinueonfailurebatchesresume078731e6", "javapathremoveaclrecursivecontinueonfailurebatchesresume123236", "javapathremoveaclrecursivecontinueonfailurebatchesresume253733", "javapathremoveaclrecursivecontinueonfailurebatchesresume383539", "javapathremoveaclrecursivecontinueonfailurebatchesresume462176", "javapathremoveaclrecursivecontinueonfailurebatchesresume528368", "javapathremoveaclrecursivecontinueonfailurebatchesresume614186", "javapathremoveaclrecursivecontinueonfailurebatchesresume762108", "javapathremoveaclrecursivecontinueonfailurebatchesresume817253", "javapathremoveaclrecursivecontinueonfailurebatchesresume911201", "javapathremoveaclrecursivecontinueonfailurebatchesresume1047490", "javapathremoveaclrecursivecontinueonfailurebatchesresume1148398", "javapathremoveaclrecursivecontinueonfailurebatchesresume1280814", "javapathremoveaclrecursivecontinueonfailurebatchesresume1338067", "javapathremoveaclrecursivecontinueonfailurebatchesresume1402963", "javapathremoveaclrecursivecontinueonfailurebatchesresume1584492" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerror.json new file mode 100644 index 0000000000000..e53d244be1f0b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveerror.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveerror018496dda0adfb69014cf?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "572379d5-0873-4a54-904f-d34cf25ec45f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E012D33287A", + "Last-Modified" : "Mon, 31 Aug 2020 22:57:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "40e5678c-201e-005c-46ea-7fa379000000", + "Date" : "Mon, 31 Aug 2020 22:57:03 GMT", + "x-ms-client-request-id" : "572379d5-0873-4a54-904f-d34cf25ec45f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerror018496dda0adfb69014cf/javapathremoveaclrecursiveerror1917493ba0a65462d94?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1416253d-8c96-427f-bad2-b6a856f05c2a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E012DC53637", + "Last-Modified" : "Mon, 31 Aug 2020 22:57:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bfe16d04-c01f-0044-63ea-7f7c1e000000", + "Date" : "Mon, 31 Aug 2020 22:57:03 GMT", + "x-ms-client-request-id" : "1416253d-8c96-427f-bad2-b6a856f05c2a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerror018496dda0adfb69014cf/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "48132298-4980-4a9b-bad9-a057e2830710" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E012D5541F5", + "Last-Modified" : "Mon, 31 Aug 2020 22:57:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "bfe16d05-c01f-0044-64ea-7f7c1e000000", + "Date" : "Mon, 31 Aug 2020 22:57:03 GMT", + "x-ms-client-request-id" : "48132298-4980-4a9b-bad9-a057e2830710" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveerror018496dda0adfb69014cf/javapathremoveaclrecursiveerror249764f4446e19136f4?mode=remove&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ee499e67-e112-4e21-b7d5-2723d2bba330" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "bfe16d07-c01f-0044-65ea-7f7c1e000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:bfe16d07-c01f-0044-65ea-7f7c1e000000\\nTime:2020-08-31T22:57:05.3182632Z\"}}", + "Date" : "Mon, 31 Aug 2020 22:57:04 GMT", + "x-ms-client-request-id" : "ee499e67-e112-4e21-b7d5-2723d2bba330", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursiveerror&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1567603-bc86-43ce-b028-f4cfde49009d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "40e567dc-201e-005c-7eea-7fa379000000", + "Body" : "jtfsremoveaclrecursiveerrorjtfsremoveaclrecursiveerror018496dda0adfb69014cfMon, 31 Aug 2020 22:57:03 GMT\"0x8D84E012D33287A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:57:04 GMT", + "x-ms-client-request-id" : "b1567603-bc86-43ce-b028-f4cfde49009d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveerror018496dda0adfb69014cf?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6163e1f7-55e5-4521-aa26-0836cee8e4e5" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "40e567e8-201e-005c-06ea-7fa379000000", + "Date" : "Mon, 31 Aug 2020 22:57:05 GMT", + "x-ms-client-request-id" : "6163e1f7-55e5-4521-aa26-0836cee8e4e5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursiveerror018496dda0adfb69014cf", "javapathremoveaclrecursiveerror1917493ba0a65462d94", "javapathremoveaclrecursiveerror249764f4446e19136f4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveprogresswithfailure.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveprogresswithfailure.json new file mode 100644 index 0000000000000..749c59d205c5c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestremoveaclrecursiveprogresswithfailure.json @@ -0,0 +1,277 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0176979e-066b-4b94-81ea-a9536856041b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DD803266", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b137ab79-a01e-00a6-57e9-7f413f000000", + "Date" : "Mon, 31 Aug 2020 22:54:49 GMT", + "x-ms-client-request-id" : "0176979e-066b-4b94-81ea-a9536856041b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure13002424cd5c?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7a0e8f51-cf9b-4d0f-9db6-81392af83f48" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DE1B85A4", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a107-901f-003b-3be9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:50 GMT", + "x-ms-client-request-id" : "7a0e8f51-cf9b-4d0f-9db6-81392af83f48" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0c5c7f00-1f5e-44fa-8943-02d7824107a4" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DDB8AA99", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "7d12a108-901f-003b-3ce9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:50 GMT", + "x-ms-client-request-id" : "0c5c7f00-1f5e-44fa-8943-02d7824107a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "92c1e8dd-fb44-4a77-ae7e-65a348e7a9eb" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DEA622C7", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a10a-901f-003b-3de9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "92c1e8dd-fb44-4a77-ae7e-65a348e7a9eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure374019fc6cbb?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "33c26e14-37c3-4644-a426-cc10fd1765aa" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DEB9664D", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a10b-901f-003b-3ee9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "33c26e14-37c3-4644-a426-cc10fd1765aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure374019fc6cbb/javapathremoveaclrecursiveprogresswithfailure454236af303a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c6e9c64b-2b9a-41a5-bc94-9e61343b7012" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DECD8703", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a10c-901f-003b-3fe9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "c6e9c64b-2b9a-41a5-bc94-9e61343b7012" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure374019fc6cbb/javapathremoveaclrecursiveprogresswithfailure5391941754c3?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "906d673f-dee0-4b5f-b55c-dd5cbacd8174" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DEDE4DE9", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a10d-901f-003b-40e9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "906d673f-dee0-4b5f-b55c-dd5cbacd8174" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure6304914f03ca?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "56ab3905-0a91-46ed-ac6b-fb5e8e0d9a15" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DEEE0B1C", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a10e-901f-003b-41e9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "56ab3905-0a91-46ed-ac6b-fb5e8e0d9a15" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure6304914f03ca/javapathremoveaclrecursiveprogresswithfailure711937715585?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5d605194-67d9-4c9a-ab0d-ca7981e9a4b8" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DEFFB0A4", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a10f-901f-003b-42e9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "5d605194-67d9-4c9a-ab0d-ca7981e9a4b8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure6304914f03ca/javapathremoveaclrecursiveprogresswithfailure824547674bde?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "759504f8-f0ba-4a31-979f-3ec54e7ba396" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84E00DF12EFDA", + "Last-Modified" : "Mon, 31 Aug 2020 22:54:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7d12a110-901f-003b-43e9-7fb385000000", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "759504f8-f0ba-4a31-979f-3ec54e7ba396" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0/javapathremoveaclrecursiveprogresswithfailure2593058bf769?mode=remove&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "78e3ddd0-df38-4e88-98e5-622c00a47a8c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "379", + "StatusCode" : "200", + "x-ms-request-id" : "7d12a111-901f-003b-44e9-7fb385000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathremoveaclrecursiveprogresswithfailure2593058bf769/javapathremoveaclrecursiveprogresswithfailure6304914f03ca/javapathremoveaclrecursiveprogresswithfailure824547674bde\",\"type\":\"FILE\"}],\"failureCount\":1,\"filesSuccessful\":3}\n", + "Date" : "Mon, 31 Aug 2020 22:54:52 GMT", + "x-ms-client-request-id" : "78e3ddd0-df38-4e88-98e5-622c00a47a8c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursiveprogresswithfailure&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "41934df2-6645-482e-8555-a6d4c4ac4ab2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b137ac9b-a01e-00a6-3fe9-7f413f000000", + "Body" : "jtfsremoveaclrecursiveprogresswithfailurejtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0Mon, 31 Aug 2020 22:54:49 GMT\"0x8D84E00DD803266\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 22:54:51 GMT", + "x-ms-client-request-id" : "41934df2-6645-482e-8555-a6d4c4ac4ab2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d5639b9e-eb51-4b11-a538-59dfc6c21195" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b137acb8-a01e-00a6-56e9-7f413f000000", + "Date" : "Mon, 31 Aug 2020 22:54:52 GMT", + "x-ms-client-request-id" : "d5639b9e-eb51-4b11-a538-59dfc6c21195" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursiveprogresswithfailure014124d60a9ff0", "javapathremoveaclrecursiveprogresswithfailure13002424cd5c", "javapathremoveaclrecursiveprogresswithfailure2593058bf769", "javapathremoveaclrecursiveprogresswithfailure374019fc6cbb", "javapathremoveaclrecursiveprogresswithfailure454236af303a", "javapathremoveaclrecursiveprogresswithfailure5391941754c3", "javapathremoveaclrecursiveprogresswithfailure6304914f03ca", "javapathremoveaclrecursiveprogresswithfailure711937715585", "javapathremoveaclrecursiveprogresswithfailure824547674bde" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatches.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatches.json new file mode 100644 index 0000000000000..92deaa1da81f3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatches.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "671e0d68-d8ff-47d3-9e91-7c5d7543cf75" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E52EAFDD", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf25a588-c01e-0009-26a2-7c0873000000", + "Date" : "Thu, 27 Aug 2020 18:49:14 GMT", + "x-ms-client-request-id" : "671e0d68-d8ff-47d3-9e91-7c5d7543cf75" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c236f1f4-c2f2-49a3-ad21-a4fac216af64" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E5B88C86", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf730014-801f-006a-12a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:15 GMT", + "x-ms-client-request-id" : "c236f1f4-c2f2-49a3-ad21-a4fac216af64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4/javapathsetaclrecursivebatches241901715b92f61b384?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "944c4065-bfc9-42f1-9866-562bbcfdec73" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E5CE4C2E", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf730015-801f-006a-13a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:15 GMT", + "x-ms-client-request-id" : "944c4065-bfc9-42f1-9866-562bbcfdec73" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4/javapathsetaclrecursivebatches241901715b92f61b384/javapathsetaclrecursivebatches302400e84ae935264a4?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d89a73b8-22a5-4433-9481-84d4d8601fe5" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E5DF4C82", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf730016-801f-006a-14a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:15 GMT", + "x-ms-client-request-id" : "d89a73b8-22a5-4433-9481-84d4d8601fe5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4/javapathsetaclrecursivebatches241901715b92f61b384/javapathsetaclrecursivebatches4388748e8a19ed76f94?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ef4c8705-c341-47dc-a703-6a49c0bfb61a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E5F07B80", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf730017-801f-006a-15a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:15 GMT", + "x-ms-client-request-id" : "ef4c8705-c341-47dc-a703-6a49c0bfb61a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4/javapathsetaclrecursivebatches5713431564f10da3fe4?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bce7eb73-bab1-4a8a-98ff-7b8c109a5865" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E6022DF1", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf730018-801f-006a-16a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "bce7eb73-bab1-4a8a-98ff-7b8c109a5865" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4/javapathsetaclrecursivebatches5713431564f10da3fe4/javapathsetaclrecursivebatches605251615dbafe5dc74?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0693e96d-a183-4405-9636-3189bc6663bd" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E61322BC", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf730019-801f-006a-17a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "0693e96d-a183-4405-9636-3189bc6663bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4/javapathsetaclrecursivebatches72264687e300d5c2c44?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "48ce37fb-4897-4472-b649-2ab3c4c41012" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9E623B38A", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "cf73001a-801f-006a-18a2-7c9588000000", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "48ce37fb-4897-4472-b649-2ab3c4c41012" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4?mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "00087974-f834-40ab-a5f8-a0d5257ae1f6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb2r6qUm6KeqFgY/QEY9wEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlczA3OTE3MzViYzYzMzhiYjVmYjRmNQEwMUQ2N0NBMkMyQjdDRUM4L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlczEzMzc3NjIwOTFkYTM2ZWQ3YzQvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzMjQxOTAxNzE1YjkyZjYxYjM4NC9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXMzMDI0MDBlODRhZTkzNTI2NGE0FgAAAA==", + "x-ms-request-id" : "cf73001b-801f-006a-19a2-7c9588000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "00087974-f834-40ab-a5f8-a0d5257ae1f6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4?continuation=VBb2r6qUm6KeqFgY/QEY9wEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlczA3OTE3MzViYzYzMzhiYjVmYjRmNQEwMUQ2N0NBMkMyQjdDRUM4L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlczEzMzc3NjIwOTFkYTM2ZWQ3YzQvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzMjQxOTAxNzE1YjkyZjYxYjM4NC9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXMzMDI0MDBlODRhZTkzNTI2NGE0FgAAAA%3D%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fc4e6791-e19c-4e5d-af52-1075484b07c2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbssvjn8Z7hhmUYywEYxQEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlczA3OTE3MzViYzYzMzhiYjVmYjRmNQEwMUQ2N0NBMkMyQjdDRUM4L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlczEzMzc3NjIwOTFkYTM2ZWQ3YzQvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzNTcxMzQzMTU2NGYxMGRhM2ZlNBYAAAA=", + "x-ms-request-id" : "cf73001c-801f-006a-1aa2-7c9588000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "fc4e6791-e19c-4e5d-af52-1075484b07c2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4?continuation=VBbssvjn8Z7hhmUYywEYxQEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlczA3OTE3MzViYzYzMzhiYjVmYjRmNQEwMUQ2N0NBMkMyQjdDRUM4L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlczEzMzc3NjIwOTFkYTM2ZWQ3YzQvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzNTcxMzQzMTU2NGYxMGRhM2ZlNBYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fe8f2eef-4b99-4b66-bd57-93d4346738ac" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBan0664nK7093QYywEYxQEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlczA3OTE3MzViYzYzMzhiYjVmYjRmNQEwMUQ2N0NBMkMyQjdDRUM4L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlczEzMzc3NjIwOTFkYTM2ZWQ3YzQvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzNzIyNjQ2ODdlMzAwZDVjMmM0NBYAAAA=", + "x-ms-request-id" : "cf73001d-801f-006a-1ba2-7c9588000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "fe8f2eef-4b99-4b66-bd57-93d4346738ac" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5/javapathsetaclrecursivebatches1337762091da36ed7c4?continuation=VBan0664nK7093QYywEYxQEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlczA3OTE3MzViYzYzMzhiYjVmYjRmNQEwMUQ2N0NBMkMyQjdDRUM4L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlczEzMzc3NjIwOTFkYTM2ZWQ3YzQvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzNzIyNjQ2ODdlMzAwZDVjMmM0NBYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0b6d65d0-7cc4-44d2-8adb-0bd76136746e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "5a691ff9-601f-004d-55a2-7c824c000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:49:17 GMT", + "x-ms-client-request-id" : "0b6d65d0-7cc4-44d2-8adb-0bd76136746e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivebatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2228b4ac-d607-4ff4-a1b5-9271e4ff8bee" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cf25a6bb-c01e-0009-7aa2-7c0873000000", + "Body" : "jtfssetaclrecursivebatchesjtfssetaclrecursivebatches0791735bc6338bb5fb4f5Thu, 27 Aug 2020 18:49:14 GMT\"0x8D84AB9E52EAFDD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 27 Aug 2020 18:49:16 GMT", + "x-ms-client-request-id" : "2228b4ac-d607-4ff4-a1b5-9271e4ff8bee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatches0791735bc6338bb5fb4f5?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4148b56b-ee48-4874-8e2c-06a2a35dab37" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "cf25a6ca-c01e-0009-04a2-7c0873000000", + "Date" : "Thu, 27 Aug 2020 18:49:17 GMT", + "x-ms-client-request-id" : "4148b56b-ee48-4874-8e2c-06a2a35dab37" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivebatches0791735bc6338bb5fb4f5", "javapathsetaclrecursivebatches1337762091da36ed7c4", "javapathsetaclrecursivebatches241901715b92f61b384", "javapathsetaclrecursivebatches302400e84ae935264a4", "javapathsetaclrecursivebatches4388748e8a19ed76f94", "javapathsetaclrecursivebatches5713431564f10da3fe4", "javapathsetaclrecursivebatches605251615dbafe5dc74", "javapathsetaclrecursivebatches72264687e300d5c2c44" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesfollowtoken.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesfollowtoken.json new file mode 100644 index 0000000000000..6cd7f0d29d7e9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesfollowtoken.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f3979835-f20b-4006-96f5-5b538b363095" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F6CE0BE1", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d1e67591-301e-0022-61a2-7c88bf000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "f3979835-f20b-4006-96f5-5b538b363095" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d520990a-01af-4d8b-8a59-d37f2ccf8168" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F73E77D2", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f566-201f-0073-27a2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "d520990a-01af-4d8b-8a59-d37f2ccf8168" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6/javapathsetaclrecursivebatchesfollowtoken2743471de70d79?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "114d19a7-5a41-4094-a25a-7729d1b1e73d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F758A9D5", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f567-201f-0073-28a2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "114d19a7-5a41-4094-a25a-7729d1b1e73d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6/javapathsetaclrecursivebatchesfollowtoken2743471de70d79/javapathsetaclrecursivebatchesfollowtoken344206281a32e2?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b5e554de-a697-44eb-8a04-6610e031a374" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F769E71B", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f568-201f-0073-29a2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "b5e554de-a697-44eb-8a04-6610e031a374" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6/javapathsetaclrecursivebatchesfollowtoken2743471de70d79/javapathsetaclrecursivebatchesfollowtoken477668c1bb9c01?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6cb2312f-19ee-4f1a-a2a3-6b8a99025536" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F77B0932", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f569-201f-0073-2aa2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "6cb2312f-19ee-4f1a-a2a3-6b8a99025536" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6/javapathsetaclrecursivebatchesfollowtoken5762422d620756?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "44ae537e-c4d7-41f2-9ed7-23c9e9e93b9f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F78B6692", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f56a-201f-0073-2ba2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "44ae537e-c4d7-41f2-9ed7-23c9e9e93b9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6/javapathsetaclrecursivebatchesfollowtoken5762422d620756/javapathsetaclrecursivebatchesfollowtoken624074489ae96b?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "896e60c0-09e2-4d7a-873a-2281dce4c25d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F79F8364", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f56b-201f-0073-2ca2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "896e60c0-09e2-4d7a-873a-2281dce4c25d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6/javapathsetaclrecursivebatchesfollowtoken753024f5b0b2f0?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c333f343-4900-4dee-99f8-74f854dbe713" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9F7AFF0BC", + "Last-Modified" : "Thu, 27 Aug 2020 18:49:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fac3f56c-201f-0073-2da2-7c1533000000", + "Date" : "Thu, 27 Aug 2020 18:49:44 GMT", + "x-ms-client-request-id" : "c333f343-4900-4dee-99f8-74f854dbe713" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6?mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4a7fa191-51c1-4db4-9136-e38ee3e1ab9d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaI2/KLlsb8zrgBGJUCGI8CL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNmb2xsb3d0b2tlbjAzMzQ5M2I0ZDIzNDhhNDkBMDFENjdDQTJENDU3MjQ4Ni9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNmb2xsb3d0b2tlbjExNzk0Mzg2YTc0N2Q2L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMjc0MzQ3MWRlNzBkNzkvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4zNDQyMDYyODFhMzJlMhYAAAA=", + "x-ms-request-id" : "fac3f56d-201f-0073-2ea2-7c1533000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Thu, 27 Aug 2020 18:49:45 GMT", + "x-ms-client-request-id" : "4a7fa191-51c1-4db4-9136-e38ee3e1ab9d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6?continuation=VBaI2/KLlsb8zrgBGJUCGI8CL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNmb2xsb3d0b2tlbjAzMzQ5M2I0ZDIzNDhhNDkBMDFENjdDQTJENDU3MjQ4Ni9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNmb2xsb3d0b2tlbjExNzk0Mzg2YTc0N2Q2L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMjc0MzQ3MWRlNzBkNzkvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4zNDQyMDYyODFhMzJlMhYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c5cdca6b-06a0-497e-b3bd-a0d06c457144" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbE/JHLvYyurlIY3QEY1wEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMDMzNDkzYjRkMjM0OGE0OQEwMUQ2N0NBMkQ0NTcyNDg2L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE3OTQzODZhNzQ3ZDYvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW41NzYyNDIyZDYyMDc1NhYAAAA=", + "x-ms-request-id" : "fac3f56e-201f-0073-2fa2-7c1533000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Thu, 27 Aug 2020 18:49:45 GMT", + "x-ms-client-request-id" : "c5cdca6b-06a0-497e-b3bd-a0d06c457144" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6?continuation=VBbE/JHLvYyurlIY3QEY1wEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMDMzNDkzYjRkMjM0OGE0OQEwMUQ2N0NBMkQ0NTcyNDg2L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE3OTQzODZhNzQ3ZDYvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW41NzYyNDIyZDYyMDc1NhYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fba606ea-fa96-47a4-84bf-60d4c65a36ac" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBal883Ohazj3SkY3QEY1wEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMDMzNDkzYjRkMjM0OGE0OQEwMUQ2N0NBMkQ0NTcyNDg2L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE3OTQzODZhNzQ3ZDYvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW43NTMwMjRmNWIwYjJmMBYAAAA=", + "x-ms-request-id" : "fac3f56f-201f-0073-30a2-7c1533000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:49:45 GMT", + "x-ms-client-request-id" : "fba606ea-fa96-47a4-84bf-60d4c65a36ac" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49/javapathsetaclrecursivebatchesfollowtoken11794386a747d6?continuation=VBal883Ohazj3SkY3QEY1wEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMDMzNDkzYjRkMjM0OGE0OQEwMUQ2N0NBMkQ0NTcyNDg2L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTE3OTQzODZhNzQ3ZDYvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW43NTMwMjRmNWIwYjJmMBYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "32ad72a2-0683-4598-b2fc-62774706cbd7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "fac3f570-201f-0073-31a2-7c1533000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:49:45 GMT", + "x-ms-client-request-id" : "32ad72a2-0683-4598-b2fc-62774706cbd7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivebatchesfollowtoken&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fd68e84c-fd16-4f94-a014-042319914afb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d1e67626-301e-0022-3ea2-7c88bf000000", + "Body" : "jtfssetaclrecursivebatchesfollowtokenjtfssetaclrecursivebatchesfollowtoken033493b4d2348a49Thu, 27 Aug 2020 18:49:44 GMT\"0x8D84AB9F6CE0BE1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 27 Aug 2020 18:49:46 GMT", + "x-ms-client-request-id" : "fd68e84c-fd16-4f94-a014-042319914afb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f2d7ee8f-44ee-45b6-8fc9-5b16f5431aca" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d1e67631-301e-0022-44a2-7c88bf000000", + "Date" : "Thu, 27 Aug 2020 18:49:46 GMT", + "x-ms-client-request-id" : "f2d7ee8f-44ee-45b6-8fc9-5b16f5431aca" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivebatchesfollowtoken033493b4d2348a49", "javapathsetaclrecursivebatchesfollowtoken11794386a747d6", "javapathsetaclrecursivebatchesfollowtoken2743471de70d79", "javapathsetaclrecursivebatchesfollowtoken344206281a32e2", "javapathsetaclrecursivebatchesfollowtoken477668c1bb9c01", "javapathsetaclrecursivebatchesfollowtoken5762422d620756", "javapathsetaclrecursivebatchesfollowtoken624074489ae96b", "javapathsetaclrecursivebatchesfollowtoken753024f5b0b2f0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesprogress.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesprogress.json new file mode 100644 index 0000000000000..7aa32ba70db70 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesprogress.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5952d47d-8d0e-41e4-b3f7-574a6124f85f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9B98CC932", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "20c494a5-e01e-007c-1aa2-7c635f000000", + "Date" : "Thu, 27 Aug 2020 18:48:00 GMT", + "x-ms-client-request-id" : "5952d47d-8d0e-41e4-b3f7-574a6124f85f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f50f0bc9-2d8d-47aa-afe0-bbef3bfe61c0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA110F86", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa07-301f-0032-7ea2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:01 GMT", + "x-ms-client-request-id" : "f50f0bc9-2d8d-47aa-afe0-bbef3bfe61c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b/javapathsetaclrecursivebatchesprogress2385600bf536e10?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "53716927-25ff-4083-aeca-feda7ca1e4c9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA24F1F8", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa08-301f-0032-7fa2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "53716927-25ff-4083-aeca-feda7ca1e4c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b/javapathsetaclrecursivebatchesprogress2385600bf536e10/javapathsetaclrecursivebatchesprogress321731166ca9a8a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "48b4eecb-1762-4598-b0d7-75230925b258" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA355D89", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa09-301f-0032-80a2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "48b4eecb-1762-4598-b0d7-75230925b258" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b/javapathsetaclrecursivebatchesprogress2385600bf536e10/javapathsetaclrecursivebatchesprogress465845f6a1b2705?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "66dea0cc-9144-44a5-be9d-3237e235979b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA4636FC", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa0a-301f-0032-01a2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "66dea0cc-9144-44a5-be9d-3237e235979b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b/javapathsetaclrecursivebatchesprogress56581828dc55448?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "399ba729-99c9-4510-b78e-b06f4975f848" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA558769", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa0b-301f-0032-02a2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "399ba729-99c9-4510-b78e-b06f4975f848" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b/javapathsetaclrecursivebatchesprogress56581828dc55448/javapathsetaclrecursivebatchesprogress673177af5f8f281?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "abe62d32-1b02-44f9-9162-52d191fdf50d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA660075", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa0c-301f-0032-03a2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "abe62d32-1b02-44f9-9162-52d191fdf50d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b/javapathsetaclrecursivebatchesprogress710546fe5131740?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1b20ac1a-dc04-4ebb-b82b-a73426a3d16b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9BA766002", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8fbbaa0d-301f-0032-04a2-7c4dd7000000", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "1b20ac1a-dc04-4ebb-b82b-a73426a3d16b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b?mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5bd948fd-830c-48c9-a501-0628ece1b523" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBadyYHn4snA890BGI0CGIcCL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczA4NDk0MjI5OTc2YWM3NzU2ATAxRDY3Q0EyOTcxNUY0M0YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNzcxMjNjN2Y2ZjFiM2IvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MyMzg1NjAwYmY1MzZlMTAvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MzMjE3MzExNjZjYTlhOGEWAAAA", + "x-ms-request-id" : "8fbbaa0e-301f-0032-05a2-7c4dd7000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Thu, 27 Aug 2020 18:48:02 GMT", + "x-ms-client-request-id" : "5bd948fd-830c-48c9-a501-0628ece1b523" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b?continuation=VBadyYHn4snA890BGI0CGIcCL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczA4NDk0MjI5OTc2YWM3NzU2ATAxRDY3Q0EyOTcxNUY0M0YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNzcxMjNjN2Y2ZjFiM2IvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MyMzg1NjAwYmY1MzZlMTAvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MzMjE3MzExNjZjYTlhOGEWAAAA&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f5ff65d8-39a0-45ff-98f7-0fc46c6c9b7b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBafzN78pvHOo5wBGNcBGNEBL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczA4NDk0MjI5OTc2YWM3NzU2ATAxRDY3Q0EyOTcxNUY0M0YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNzcxMjNjN2Y2ZjFiM2IvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3M1NjU4MTgyOGRjNTU0NDgWAAAA", + "x-ms-request-id" : "8fbbaa0f-301f-0032-06a2-7c4dd7000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Thu, 27 Aug 2020 18:48:03 GMT", + "x-ms-client-request-id" : "f5ff65d8-39a0-45ff-98f7-0fc46c6c9b7b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b?continuation=VBafzN78pvHOo5wBGNcBGNEBL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczA4NDk0MjI5OTc2YWM3NzU2ATAxRDY3Q0EyOTcxNUY0M0YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNzcxMjNjN2Y2ZjFiM2IvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3M1NjU4MTgyOGRjNTU0NDgWAAAA&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ec125c00-e6f6-4bf0-90c9-43dfdb542534" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaMm5P0xvn4qQMY1wEY0QEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDg0OTQyMjk5NzZhYzc3NTYBMDFENjdDQTI5NzE1RjQzRi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczE3NzEyM2M3ZjZmMWIzYi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczcxMDU0NmZlNTEzMTc0MBYAAAA=", + "x-ms-request-id" : "8fbbaa11-301f-0032-07a2-7c4dd7000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:48:03 GMT", + "x-ms-client-request-id" : "ec125c00-e6f6-4bf0-90c9-43dfdb542534" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756/javapathsetaclrecursivebatchesprogress177123c7f6f1b3b?continuation=VBaMm5P0xvn4qQMY1wEY0QEvZ2FwcmFobnNjYW5hcnkBMDFENjFGMzJCNzYyNTNFOC9qdGZzc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDg0OTQyMjk5NzZhYzc3NTYBMDFENjdDQTI5NzE1RjQzRi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczE3NzEyM2M3ZjZmMWIzYi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczcxMDU0NmZlNTEzMTc0MBYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e80c810d-20c7-4cc3-9bc0-1c3c4df27a6c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "8fbbaa13-301f-0032-08a2-7c4dd7000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:48:03 GMT", + "x-ms-client-request-id" : "e80c810d-20c7-4cc3-9bc0-1c3c4df27a6c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivebatchesprogress&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9f72e77b-84cf-460f-920e-907c3daeac2d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "20c49587-e01e-007c-49a2-7c635f000000", + "Body" : "jtfssetaclrecursivebatchesprogressjtfssetaclrecursivebatchesprogress08494229976ac7756Thu, 27 Aug 2020 18:48:01 GMT\"0x8D84AB9B98CC932\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 27 Aug 2020 18:48:03 GMT", + "x-ms-client-request-id" : "9f72e77b-84cf-460f-920e-907c3daeac2d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatchesprogress08494229976ac7756?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e65791cc-c1ea-45a1-95eb-cb3cb6c06581" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "20c4959c-e01e-007c-5aa2-7c635f000000", + "Date" : "Thu, 27 Aug 2020 18:48:03 GMT", + "x-ms-client-request-id" : "e65791cc-c1ea-45a1-95eb-cb3cb6c06581" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivebatchesprogress08494229976ac7756", "javapathsetaclrecursivebatchesprogress177123c7f6f1b3b", "javapathsetaclrecursivebatchesprogress2385600bf536e10", "javapathsetaclrecursivebatchesprogress321731166ca9a8a", "javapathsetaclrecursivebatchesprogress465845f6a1b2705", "javapathsetaclrecursivebatchesprogress56581828dc55448", "javapathsetaclrecursivebatchesprogress673177af5f8f281", "javapathsetaclrecursivebatchesprogress710546fe5131740" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesresume.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesresume.json new file mode 100644 index 0000000000000..a32d867ea476f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivebatchesresume.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0e49dc23-df51-4115-bc88-ccc44c8df548" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D6AAB8EF", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5cde24ed-a01e-001f-72a2-7cfea4000000", + "Date" : "Thu, 27 Aug 2020 18:48:49 GMT", + "x-ms-client-request-id" : "0e49dc23-df51-4115-bc88-ccc44c8df548" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1ba1ca9-557f-46c4-ad97-030a14171c45" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D7319FCC", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812b8-901f-0014-44a2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:51 GMT", + "x-ms-client-request-id" : "b1ba1ca9-557f-46c4-ad97-030a14171c45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307/javapathsetaclrecursivebatchesresume258737629ba7e201?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b49b1d01-51ce-4dcc-99c0-57a9f4b79148" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D74798B6", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812b9-901f-0014-45a2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:51 GMT", + "x-ms-client-request-id" : "b49b1d01-51ce-4dcc-99c0-57a9f4b79148" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307/javapathsetaclrecursivebatchesresume258737629ba7e201/javapathsetaclrecursivebatchesresume372980c8b579de97?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "64b2485e-dace-4173-8eb6-5f5bcff1e7ad" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D75F5779", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812ba-901f-0014-46a2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:51 GMT", + "x-ms-client-request-id" : "64b2485e-dace-4173-8eb6-5f5bcff1e7ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307/javapathsetaclrecursivebatchesresume258737629ba7e201/javapathsetaclrecursivebatchesresume442549179fbda778?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "aa3152ed-e6ef-45ee-bcc6-44d813b92b0e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D76FBDA0", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812bb-901f-0014-47a2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:51 GMT", + "x-ms-client-request-id" : "aa3152ed-e6ef-45ee-bcc6-44d813b92b0e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307/javapathsetaclrecursivebatchesresume533077fe040464d9?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d4b7973b-9081-4aa6-95ec-4f4a587398a0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D785801F", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812bc-901f-0014-48a2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:51 GMT", + "x-ms-client-request-id" : "d4b7973b-9081-4aa6-95ec-4f4a587398a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307/javapathsetaclrecursivebatchesresume533077fe040464d9/javapathsetaclrecursivebatchesresume601291895e64d310?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "afd7dcaa-b750-40f6-9a75-d66be2d9cf61" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D79A8780", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812be-901f-0014-49a2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:51 GMT", + "x-ms-client-request-id" : "afd7dcaa-b750-40f6-9a75-d66be2d9cf61" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307/javapathsetaclrecursivebatchesresume7878455d942a0eb9?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "124095b4-553e-4787-be67-994d13faf612" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB9D7B81B26", + "Last-Modified" : "Thu, 27 Aug 2020 18:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b34812bf-901f-0014-4aa2-7c05cf000000", + "Date" : "Thu, 27 Aug 2020 18:48:52 GMT", + "x-ms-client-request-id" : "124095b4-553e-4787-be67-994d13faf612" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307?mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f03c6f06-9461-41e9-a7bc-3821910a5128" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbf6MKVwKq+zrcBGIkCGIMCL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUwNTA4ODdiYTM3ZjUxOWQ0MGIBMDFENjdDQTJCNDM0MTlDMy9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNzgzNDgxMDExZTI3MzA3L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTI1ODczNzYyOWJhN2UyMDEvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMzcyOTgwYzhiNTc5ZGU5NxYAAAA=", + "x-ms-request-id" : "b34812c0-901f-0014-4ba2-7c05cf000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Thu, 27 Aug 2020 18:48:52 GMT", + "x-ms-client-request-id" : "f03c6f06-9461-41e9-a7bc-3821910a5128" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307?continuation=VBbf6MKVwKq%2BzrcBGIkCGIMCL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUwNTA4ODdiYTM3ZjUxOWQ0MGIBMDFENjdDQTJCNDM0MTlDMy9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNzgzNDgxMDExZTI3MzA3L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTI1ODczNzYyOWJhN2UyMDEvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMzcyOTgwYzhiNTc5ZGU5NxYAAAA%3D&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4416f1e1-37b3-4697-ad47-1baaf6d5957a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBb6+srlvJHm66MBGNQBGM4BL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUwNTA4ODdiYTM3ZjUxOWQ0MGIBMDFENjdDQTJCNDM0MTlDMy9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNzgzNDgxMDExZTI3MzA3L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTUzMzA3N2ZlMDQwNDY0ZDkWAAAA", + "x-ms-request-id" : "b34812c1-901f-0014-4ca2-7c05cf000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Thu, 27 Aug 2020 18:48:52 GMT", + "x-ms-client-request-id" : "4416f1e1-37b3-4697-ad47-1baaf6d5957a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307?continuation=VBb6%2BsrlvJHm66MBGNQBGM4BL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUwNTA4ODdiYTM3ZjUxOWQ0MGIBMDFENjdDQTJCNDM0MTlDMy9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNzgzNDgxMDExZTI3MzA3L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTUzMzA3N2ZlMDQwNDY0ZDkWAAAA&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8dd5035e-b78a-4d8a-87c1-1b2d10309987" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaXgrSJ5v6k1OcBGNQBGM4BL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUwNTA4ODdiYTM3ZjUxOWQ0MGIBMDFENjdDQTJCNDM0MTlDMy9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNzgzNDgxMDExZTI3MzA3L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTc4Nzg0NTVkOTQyYTBlYjkWAAAA", + "x-ms-request-id" : "b34812c2-901f-0014-4da2-7c05cf000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:48:52 GMT", + "x-ms-client-request-id" : "8dd5035e-b78a-4d8a-87c1-1b2d10309987" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b/javapathsetaclrecursivebatchesresume1783481011e27307?continuation=VBaXgrSJ5v6k1OcBGNQBGM4BL2dhcHJhaG5zY2FuYXJ5ATAxRDYxRjMyQjc2MjUzRTgvanRmc3NldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUwNTA4ODdiYTM3ZjUxOWQ0MGIBMDFENjdDQTJCNDM0MTlDMy9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNzgzNDgxMDExZTI3MzA3L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTc4Nzg0NTVkOTQyYTBlYjkWAAAA&mode=set&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9f20cbf5-34e6-4c3d-ad87-264be4fa111c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "b34812c3-901f-0014-4ea2-7c05cf000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Thu, 27 Aug 2020 18:48:53 GMT", + "x-ms-client-request-id" : "9f20cbf5-34e6-4c3d-ad87-264be4fa111c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivebatchesresume&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ec5222f5-0320-406d-a94d-214e7112ab23" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5cde2581-a01e-001f-59a2-7cfea4000000", + "Body" : "jtfssetaclrecursivebatchesresumejtfssetaclrecursivebatchesresume050887ba37f519d40bThu, 27 Aug 2020 18:48:50 GMT\"0x8D84AB9D6AAB8EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 27 Aug 2020 18:48:52 GMT", + "x-ms-client-request-id" : "ec5222f5-0320-406d-a94d-214e7112ab23", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivebatchesresume050887ba37f519d40b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "293a887b-0d4f-4759-a71f-4cde010679a1" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "5cde2592-a01e-001f-67a2-7cfea4000000", + "Date" : "Thu, 27 Aug 2020 18:48:52 GMT", + "x-ms-client-request-id" : "293a887b-0d4f-4759-a71f-4cde010679a1" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivebatchesresume050887ba37f519d40b", "javapathsetaclrecursivebatchesresume1783481011e27307", "javapathsetaclrecursivebatchesresume258737629ba7e201", "javapathsetaclrecursivebatchesresume372980c8b579de97", "javapathsetaclrecursivebatchesresume442549179fbda778", "javapathsetaclrecursivebatchesresume533077fe040464d9", "javapathsetaclrecursivebatchesresume601291895e64d310", "javapathsetaclrecursivebatchesresume7878455d942a0eb9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivecontinueonfailure.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivecontinueonfailure.json new file mode 100644 index 0000000000000..cc914dbe932c2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivecontinueonfailure.json @@ -0,0 +1,340 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e44509f1-5cfc-414a-be78-7fb20f88b583" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB63C8F14E", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7766d482-301e-008b-24d4-7ff24c000000", + "Date" : "Mon, 31 Aug 2020 20:21:05 GMT", + "x-ms-client-request-id" : "e44509f1-5cfc-414a-be78-7fb20f88b583" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure136605fc86b957?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "77ca06b4-5568-4c85-bf2c-f0c597f86fd7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB643FC2AA", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd570583-901f-002b-2cd4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:06 GMT", + "x-ms-client-request-id" : "77ca06b4-5568-4c85-bf2c-f0c597f86fd7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "17a3221d-e303-486b-9ad1-cc316eb1cf86" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB63CFFDD5", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fd570584-901f-002b-2dd4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:07 GMT", + "x-ms-client-request-id" : "17a3221d-e303-486b-9ad1-cc316eb1cf86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "db6624d1-47ba-4267-a060-c6340ea4ea0b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB64F34983", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd570585-901f-002b-2ed4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:07 GMT", + "x-ms-client-request-id" : "db6624d1-47ba-4267-a060-c6340ea4ea0b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure364262e5bd86ae?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "65fbea70-4f2d-44b2-bb7e-1e789e1579f7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB65074D0E", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd570586-901f-002b-2fd4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "65fbea70-4f2d-44b2-bb7e-1e789e1579f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure364262e5bd86ae/javapathsetaclrecursivecontinueonfailure4970838df9390e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d1462077-61b2-410e-a316-8f5142f83e48" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB65205EF5", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd570588-901f-002b-30d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "d1462077-61b2-410e-a316-8f5142f83e48" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure364262e5bd86ae/javapathsetaclrecursivecontinueonfailure5159826597bcfd?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "63355cbb-03da-428e-b849-80418aca3bd6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB65327E1A", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd57058a-901f-002b-31d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "63355cbb-03da-428e-b849-80418aca3bd6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0806f70e-b967-4ec8-b10c-307416e262c2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB6544888B", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd57058b-901f-002b-32d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "0806f70e-b967-4ec8-b10c-307416e262c2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure7061317f079a43?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "71088d6c-d4b0-4b3f-84e9-5a660c36d188" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB6556DFF4", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd57058c-901f-002b-33d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "71088d6c-d4b0-4b3f-84e9-5a660c36d188" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure8802729b6f3113?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3ba68926-7552-4829-b883-010557499fe0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB656B684F", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd57058d-901f-002b-34d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "3ba68926-7552-4829-b883-010557499fe0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure96054389124f7a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "27073563-7c18-4691-befa-947d6f235bd4" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB657E5D45", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd57058e-901f-002b-35d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "27073563-7c18-4691-befa-947d6f235bd4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure10885082fcc2708?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8d39e7e8-86df-473c-9624-41abc0448e46" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB659106DE", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd57058f-901f-002b-36d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "8d39e7e8-86df-473c-9624-41abc0448e46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure1121333d6ae0890?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "499a44ca-e95e-49e3-825e-6556ccf208c3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB65A2231D", + "Last-Modified" : "Mon, 31 Aug 2020 20:21:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd570590-901f-002b-37d4-7f76ed000000", + "Date" : "Mon, 31 Aug 2020 20:21:09 GMT", + "x-ms-client-request-id" : "499a44ca-e95e-49e3-825e-6556ccf208c3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5/javapathsetaclrecursivecontinueonfailure270353a7d7f020?mode=set&forceFlag=true&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "07b0d87c-e845-4108-9e52-7160fc702c00" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "1238", + "StatusCode" : "200", + "x-ms-request-id" : "fd570591-901f-002b-38d4-7f76ed000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure10885082fcc2708\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure1121333d6ae0890\",\"type\":\"DIRECTORY\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure96054389124f7a\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailure270353a7d7f020/javapathsetaclrecursivecontinueonfailure606721bbe51f21/javapathsetaclrecursivecontinueonfailure8802729b6f3113\",\"type\":\"FILE\"}],\"failureCount\":4,\"filesSuccessful\":3}\n", + "Date" : "Mon, 31 Aug 2020 20:21:09 GMT", + "x-ms-client-request-id" : "07b0d87c-e845-4108-9e52-7160fc702c00" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivecontinueonfailure&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4722cb79-b7d4-4e38-a544-2debb7963cb1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "7766d5f6-301e-008b-62d4-7ff24c000000", + "Body" : "jtfssetaclrecursivecontinueonfailurejtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5Mon, 31 Aug 2020 20:21:05 GMT\"0x8D84DEB63C8F14E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:21:08 GMT", + "x-ms-client-request-id" : "4722cb79-b7d4-4e38-a544-2debb7963cb1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bf7b5a3c-7930-4988-b02e-2ad467525882" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "7766d61e-301e-008b-01d4-7ff24c000000", + "Date" : "Mon, 31 Aug 2020 20:21:09 GMT", + "x-ms-client-request-id" : "bf7b5a3c-7930-4988-b02e-2ad467525882" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivecontinueonfailure0623164ce2a1cdb5", "javapathsetaclrecursivecontinueonfailure136605fc86b957", "javapathsetaclrecursivecontinueonfailure270353a7d7f020", "javapathsetaclrecursivecontinueonfailure364262e5bd86ae", "javapathsetaclrecursivecontinueonfailure4970838df9390e", "javapathsetaclrecursivecontinueonfailure5159826597bcfd", "javapathsetaclrecursivecontinueonfailure606721bbe51f21", "javapathsetaclrecursivecontinueonfailure7061317f079a43", "javapathsetaclrecursivecontinueonfailure8802729b6f3113", "javapathsetaclrecursivecontinueonfailure96054389124f7a", "javapathsetaclrecursivecontinueonfailure10885082fcc2708", "javapathsetaclrecursivecontinueonfailure1121333d6ae0890" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivecontinueonfailurebatchesresume.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivecontinueonfailurebatchesresume.json new file mode 100644 index 0000000000000..77269f984b5d7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivecontinueonfailurebatchesresume.json @@ -0,0 +1,562 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f953bc82-5d8c-4edf-9251-461e0d98d030" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4BD5CEFE", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d5bfc77b-401e-004a-38d4-7f55ae000000", + "Date" : "Mon, 31 Aug 2020 20:20:24 GMT", + "x-ms-client-request-id" : "f953bc82-5d8c-4edf-9251-461e0d98d030" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume196457cd?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "55ba9ee1-0ad8-40c2-abf9-891792cf7611" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4C6D46E9", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84a5-001f-0074-1ed4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:25 GMT", + "x-ms-client-request-id" : "55ba9ee1-0ad8-40c2-abf9-891792cf7611" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3a980196-cf45-4de5-9b65-d429d43a8676" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4BDA46A0", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "405b84a6-001f-0074-1fd4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:26 GMT", + "x-ms-client-request-id" : "3a980196-cf45-4de5-9b65-d429d43a8676" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3c2c0ad9-12f7-4a58-a7a8-3f394b8836bf" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4D4000D6", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84aa-001f-0074-23d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "3c2c0ad9-12f7-4a58-a7a8-3f394b8836bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume34689843?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "92b8fd61-bef5-48d3-954a-d92a00dfd603" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4D525303", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84ab-001f-0074-24d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "92b8fd61-bef5-48d3-954a-d92a00dfd603" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume34689843/javapathsetaclrecursivecontinueonfailurebatchesresume43244938?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f3bc4754-2dc1-48d3-8062-c3a11318b49a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4D6538B3", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84ac-001f-0074-25d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "f3bc4754-2dc1-48d3-8062-c3a11318b49a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume34689843/javapathsetaclrecursivecontinueonfailurebatchesresume58586458?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "dc2f9d57-931c-495f-9dca-be649617c901" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4D78550B", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84ad-001f-0074-26d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "dc2f9d57-931c-495f-9dca-be649617c901" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "963430f2-ea37-418e-bc2e-e169729bd574" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4D8BE2BC", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84ae-001f-0074-27d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "963430f2-ea37-418e-bc2e-e169729bd574" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume78931065?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0fa53f96-aea0-4f98-8af9-f73418908f3a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4D9FB0FF", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84af-001f-0074-28d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "0fa53f96-aea0-4f98-8af9-f73418908f3a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume840976e2?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "551f3793-62ab-4ca2-9b54-c2d094666558" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4DB834B2", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b0-001f-0074-29d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:27 GMT", + "x-ms-client-request-id" : "551f3793-62ab-4ca2-9b54-c2d094666558" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume981845e6?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e8972e03-2eef-4e6c-b8d9-c785ec9b85da" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4DCB7B12", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b1-001f-0074-2ad4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "e8972e03-2eef-4e6c-b8d9-c785ec9b85da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume10419584?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2921212c-2755-470f-8591-7fbb5a7e61d3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4DDEF2AF", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b2-001f-0074-2bd4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "2921212c-2755-470f-8591-7fbb5a7e61d3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume11243761?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1fa34945-aee8-4a93-b545-1aabd633ecf6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4E043EBD", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b3-001f-0074-2cd4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "1fa34945-aee8-4a93-b545-1aabd633ecf6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume34689843/javapathsetaclrecursivecontinueonfailurebatchesresume12798456?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7424bb4f-dba5-4407-b8a9-a968b8c96a55" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4E16DE4D", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b5-001f-0074-2dd4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "7424bb4f-dba5-4407-b8a9-a968b8c96a55" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume34689843/javapathsetaclrecursivecontinueonfailurebatchesresume1340220e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b29436f7-4c32-476d-a165-976cfb5c193d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4E297D07", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b6-001f-0074-2ed4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "b29436f7-4c32-476d-a165-976cfb5c193d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume1445464a?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cc378a3b-1174-46eb-a7a6-8cc59f714546" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4E3AE4F1", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b7-001f-0074-2fd4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "cc378a3b-1174-46eb-a7a6-8cc59f714546" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume1445464a/javapathsetaclrecursivecontinueonfailurebatchesresume15743789?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "203b2e08-1c30-4395-8412-df63716f771a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB4E543A59", + "Last-Modified" : "Mon, 31 Aug 2020 20:20:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "405b84b8-001f-0074-30d4-7fc2d1000000", + "Date" : "Mon, 31 Aug 2020 20:20:28 GMT", + "x-ms-client-request-id" : "203b2e08-1c30-4395-8412-df63716f771a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "07d17e20-17e4-4a99-a621-83f3255fa639" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaHwc/YpqDVlPMBGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUxNDQ1NDY0YS9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTE1NzQzNzg5FgAAAA==", + "x-ms-request-id" : "405b84b9-001f-0074-31d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:20:29 GMT", + "x-ms-client-request-id" : "07d17e20-17e4-4a99-a621-83f3255fa639" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?continuation=VBaHwc/YpqDVlPMBGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUxNDQ1NDY0YS9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTE1NzQzNzg5FgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "11e6e2aa-83b5-4bc0-be15-5ea560d85757" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaFs6rd8L/cio4BGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUzNDY4OTg0My9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTEyNzk4NDU2FgAAAA==", + "x-ms-request-id" : "405b84ba-001f-0074-32d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:20:29 GMT", + "x-ms-client-request-id" : "11e6e2aa-83b5-4bc0-be15-5ea560d85757" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?continuation=VBaFs6rd8L/cio4BGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUzNDY4OTg0My9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTEyNzk4NDU2FgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "53c05dc4-2f25-45ff-a134-b42bca6cdff4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbemZnEgMy24sABGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUzNDY4OTg0My9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTQzMjQ0OTM4FgAAAA==", + "x-ms-request-id" : "405b84bb-001f-0074-33d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:20:29 GMT", + "x-ms-client-request-id" : "53c05dc4-2f25-45ff-a134-b42bca6cdff4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?continuation=VBbemZnEgMy24sABGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUzNDY4OTg0My9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTQzMjQ0OTM4FgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "11c8ff57-b096-447e-b669-ad0d1c969986" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbioLvCs4P7+1QY8QEY6wEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNzExMzNhNGI2ATAxRDY3RkQ0Mjk1RUQ1MDkvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUyNTMyMjZjZi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY1Mjg0NjZhFgAAAA==", + "x-ms-request-id" : "405b84bc-001f-0074-34d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:20:29 GMT", + "x-ms-client-request-id" : "11c8ff57-b096-447e-b669-ad0d1c969986" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?continuation=VBbioLvCs4P7%2B1QY8QEY6wEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNzExMzNhNGI2ATAxRDY3RkQ0Mjk1RUQ1MDkvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUyNTMyMjZjZi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY1Mjg0NjZhFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "57cff167-f202-4f5a-8dcc-c337e4cb1d43" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "391", + "StatusCode" : "200", + "x-ms-continuation" : "VBaulrztxcOaiNQBGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWU2NTI4NDY2YS9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTExMjQzNzYxFgAAAA==", + "x-ms-request-id" : "405b84bd-001f-0074-35d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume10419584\",\"type\":\"FILE\"}],\"failureCount\":1,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:20:29 GMT", + "x-ms-client-request-id" : "57cff167-f202-4f5a-8dcc-c337e4cb1d43" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?continuation=VBaulrztxcOaiNQBGK8CGKkCL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDcxMTMzYTRiNgEwMUQ2N0ZENDI5NUVENTA5L2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjUzMjI2Y2YvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWU2NTI4NDY2YS9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTExMjQzNzYxFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "95c7400e-4f91-40ba-9f25-8d2e90a8f133" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "396", + "StatusCode" : "200", + "x-ms-continuation" : "VBaK8pma47//w2wYrwIYqQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNzExMzNhNGI2ATAxRDY3RkQ0Mjk1RUQ1MDkvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUyNTMyMjZjZi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY1Mjg0NjZhL2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lODQwOTc2ZTIWAAAA", + "x-ms-request-id" : "405b84bf-001f-0074-36d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume11243761\",\"type\":\"DIRECTORY\"}],\"failureCount\":1,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:20:30 GMT", + "x-ms-client-request-id" : "95c7400e-4f91-40ba-9f25-8d2e90a8f133" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6/javapathsetaclrecursivecontinueonfailurebatchesresume253226cf?continuation=VBaK8pma47//w2wYrwIYqQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnNzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNzExMzNhNGI2ATAxRDY3RkQ0Mjk1RUQ1MDkvamF2YXBhdGhzZXRhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUyNTMyMjZjZi9qYXZhcGF0aHNldGFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY1Mjg0NjZhL2phdmFwYXRoc2V0YWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lODQwOTc2ZTIWAAAA&mode=set&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b3e7ed87-89ae-4130-9837-740bb5cac738" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "699", + "StatusCode" : "200", + "x-ms-request-id" : "405b84c0-001f-0074-37d4-7fc2d1000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume981845e6\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursivecontinueonfailurebatchesresume253226cf/javapathsetaclrecursivecontinueonfailurebatchesresume6528466a/javapathsetaclrecursivecontinueonfailurebatchesresume840976e2\",\"type\":\"FILE\"}],\"failureCount\":2,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:20:30 GMT", + "x-ms-client-request-id" : "b3e7ed87-89ae-4130-9837-740bb5cac738" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivecontinueonfailurebatchesresume&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d1083c6c-28df-41ed-a70a-a9e087427d5e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d5bfd157-401e-004a-1bd4-7f55ae000000", + "Body" : "jtfssetaclrecursivecontinueonfailurebatchesresumejtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6Mon, 31 Aug 2020 20:20:25 GMT\"0x8D84DEB4BD5CEFE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:20:31 GMT", + "x-ms-client-request-id" : "d1083c6c-28df-41ed-a70a-a9e087427d5e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9e7e7dc8-2d27-4714-ab99-018765a06711" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d5bfd20e-401e-004a-48d4-7f55ae000000", + "Date" : "Mon, 31 Aug 2020 20:20:31 GMT", + "x-ms-client-request-id" : "9e7e7dc8-2d27-4714-ab99-018765a06711" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivecontinueonfailurebatchesresume071133a4b6", "javapathsetaclrecursivecontinueonfailurebatchesresume196457cd", "javapathsetaclrecursivecontinueonfailurebatchesresume253226cf", "javapathsetaclrecursivecontinueonfailurebatchesresume34689843", "javapathsetaclrecursivecontinueonfailurebatchesresume43244938", "javapathsetaclrecursivecontinueonfailurebatchesresume58586458", "javapathsetaclrecursivecontinueonfailurebatchesresume6528466a", "javapathsetaclrecursivecontinueonfailurebatchesresume78931065", "javapathsetaclrecursivecontinueonfailurebatchesresume840976e2", "javapathsetaclrecursivecontinueonfailurebatchesresume981845e6", "javapathsetaclrecursivecontinueonfailurebatchesresume10419584", "javapathsetaclrecursivecontinueonfailurebatchesresume11243761", "javapathsetaclrecursivecontinueonfailurebatchesresume12798456", "javapathsetaclrecursivecontinueonfailurebatchesresume1340220e", "javapathsetaclrecursivecontinueonfailurebatchesresume1445464a", "javapathsetaclrecursivecontinueonfailurebatchesresume15743789" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerror.json new file mode 100644 index 0000000000000..6e93e56bd27a0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveerror.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveerror0956725ddb213aff124970?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "059a4cde-0bd1-490f-af23-9e3d483b748f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEC4FBC79E6", + "Last-Modified" : "Mon, 31 Aug 2020 20:27:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "af3b44a9-c01e-009f-56d5-7fba23000000", + "Date" : "Mon, 31 Aug 2020 20:27:41 GMT", + "x-ms-client-request-id" : "059a4cde-0bd1-490f-af23-9e3d483b748f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerror0956725ddb213aff124970/javapathsetaclrecursiveerror149227089bd6b536e14d?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2045732a-3899-44e7-bdb8-1ac73b47f6cb" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEC5063F007", + "Last-Modified" : "Mon, 31 Aug 2020 20:27:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5735bd7a-501f-00ef-30d5-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 20:27:42 GMT", + "x-ms-client-request-id" : "2045732a-3899-44e7-bdb8-1ac73b47f6cb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerror0956725ddb213aff124970/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "50eced66-7726-4cd5-a8e8-ecea98a9fe1f" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEC4FBE4D12", + "Last-Modified" : "Mon, 31 Aug 2020 20:27:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5735bd7b-501f-00ef-31d5-7f03d4000000", + "Date" : "Mon, 31 Aug 2020 20:27:42 GMT", + "x-ms-client-request-id" : "50eced66-7726-4cd5-a8e8-ecea98a9fe1f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveerror0956725ddb213aff124970/javapathsetaclrecursiveerror2166101746725496dd4f?mode=set&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "06d6d7f4-345e-481b-b831-017f3c30e3b1" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "5735bdbe-501f-00ef-74d5-7f03d4000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:5735bdbe-501f-00ef-74d5-7f03d4000000\\nTime:2020-08-31T20:27:44.1903268Z\"}}", + "Date" : "Mon, 31 Aug 2020 20:27:43 GMT", + "x-ms-client-request-id" : "06d6d7f4-345e-481b-b831-017f3c30e3b1", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursiveerror&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "52ba63e7-78fe-4bd6-b224-b1e29e6c0340" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "af3b4717-c01e-009f-17d5-7fba23000000", + "Body" : "jtfssetaclrecursiveerrorjtfssetaclrecursiveerror0956725ddb213aff124970Mon, 31 Aug 2020 20:27:41 GMT\"0x8D84DEC4FBC79E6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:27:43 GMT", + "x-ms-client-request-id" : "52ba63e7-78fe-4bd6-b224-b1e29e6c0340", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveerror0956725ddb213aff124970?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "331b3a7f-0c5b-4d66-a9fe-041877d9fdb0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "af3b4762-c01e-009f-60d5-7fba23000000", + "Date" : "Mon, 31 Aug 2020 20:27:44 GMT", + "x-ms-client-request-id" : "331b3a7f-0c5b-4d66-a9fe-041877d9fdb0" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursiveerror0956725ddb213aff124970", "javapathsetaclrecursiveerror149227089bd6b536e14d", "javapathsetaclrecursiveerror2166101746725496dd4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivemin.json new file mode 100644 index 0000000000000..32710a2b68ce4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursivemin.json @@ -0,0 +1,234 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b9eee36f-bc09-4a1b-90e0-5d328cc081de" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB796ECB323", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5a91fc09-b01e-003c-68a0-7c6467000000", + "Date" : "Thu, 27 Aug 2020 18:32:44 GMT", + "x-ms-client-request-id" : "b9eee36f-bc09-4a1b-90e0-5d328cc081de" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "762b5b24-e9ae-49f8-8b78-21b779aaecb7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB797CAAE1B", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e52-901f-0092-65a0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "762b5b24-e9ae-49f8-8b78-21b779aaecb7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7/javapathsetaclrecursivemin268611801344f2e564414?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bedab629-8f0b-4f98-839f-cd9c10989d69" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB797DF2B8C", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e53-901f-0092-66a0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "bedab629-8f0b-4f98-839f-cd9c10989d69" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7/javapathsetaclrecursivemin268611801344f2e564414/javapathsetaclrecursivemin38158182588597fc92486?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d1b1e631-29f3-4072-9ebf-3aa1c4ee0836" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB797F12C71", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e54-901f-0092-67a0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "d1b1e631-29f3-4072-9ebf-3aa1c4ee0836" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7/javapathsetaclrecursivemin268611801344f2e564414/javapathsetaclrecursivemin43280528abf4b0e61b4e2?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a1520102-40af-43ea-a645-6d529931f98e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB79803122B", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e55-901f-0092-68a0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "a1520102-40af-43ea-a645-6d529931f98e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7/javapathsetaclrecursivemin57723188050b5f389d497?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cb82c835-2c6e-468f-aba9-47893fe74785" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB798131DD1", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e56-901f-0092-69a0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "cb82c835-2c6e-468f-aba9-47893fe74785" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7/javapathsetaclrecursivemin57723188050b5f389d497/javapathsetaclrecursivemin608680bdea998d89c34ff?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f1a972c5-d291-46c3-b223-f5ff5b1ed786" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB79823E9E5", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e57-901f-0092-6aa0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "f1a972c5-d291-46c3-b223-f5ff5b1ed786" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7/javapathsetaclrecursivemin73574968b7d91184de400?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1358d40c-fe99-48b3-8cec-cafea9ab3b86" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84AB79834AAB6", + "Last-Modified" : "Thu, 27 Aug 2020 18:32:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ddf8e58-901f-0092-6ba0-7cc976000000", + "Date" : "Thu, 27 Aug 2020 18:32:45 GMT", + "x-ms-client-request-id" : "1358d40c-fe99-48b3-8cec-cafea9ab3b86" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028/javapathsetaclrecursivemin1126315d7d308d427d4e7?mode=set&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bf0ef099-4b00-4e52-9d36-34c19564bfd4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "1ddf8e59-901f-0092-6ca0-7cc976000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":4}\n", + "Date" : "Thu, 27 Aug 2020 18:32:46 GMT", + "x-ms-client-request-id" : "bf0ef099-4b00-4e52-9d36-34c19564bfd4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursivemin&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8dd0a0e6-b9c5-406d-962f-467752ba62b7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5a91fd67-b01e-003c-58a0-7c6467000000", + "Body" : "jtfssetaclrecursiveminjtfssetaclrecursivemin0855988c07d22083eb44028Thu, 27 Aug 2020 18:32:44 GMT\"0x8D84AB796ECB323\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Thu, 27 Aug 2020 18:32:46 GMT", + "x-ms-client-request-id" : "8dd0a0e6-b9c5-406d-962f-467752ba62b7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursivemin0855988c07d22083eb44028?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ba28f8c9-f89c-4f8c-ac31-4cfe3b5abb6b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "5a91fd94-b01e-003c-7aa0-7c6467000000", + "Date" : "Thu, 27 Aug 2020 18:32:46 GMT", + "x-ms-client-request-id" : "ba28f8c9-f89c-4f8c-ac31-4cfe3b5abb6b" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursivemin0855988c07d22083eb44028", "javapathsetaclrecursivemin1126315d7d308d427d4e7", "javapathsetaclrecursivemin268611801344f2e564414", "javapathsetaclrecursivemin38158182588597fc92486", "javapathsetaclrecursivemin43280528abf4b0e61b4e2", "javapathsetaclrecursivemin57723188050b5f389d497", "javapathsetaclrecursivemin608680bdea998d89c34ff", "javapathsetaclrecursivemin73574968b7d91184de400" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveprogresswithfailure.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveprogresswithfailure.json new file mode 100644 index 0000000000000..fdba0771c5c91 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaclrecursiveprogresswithfailure.json @@ -0,0 +1,277 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "dfe33502-0da1-4b8b-ae43-85165e1fa621" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB8E2B531F", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2aee7500-201e-003e-0bd4-7f615e000000", + "Date" : "Mon, 31 Aug 2020 20:22:16 GMT", + "x-ms-client-request-id" : "dfe33502-0da1-4b8b-ae43-85165e1fa621" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure1857993aa468f?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "eda1fcdb-3238-49e0-96d9-a868cc1f32aa" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB8F143B24", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9d1-e01f-00a7-36d4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:17 GMT", + "x-ms-client-request-id" : "eda1fcdb-3238-49e0-96d9-a868cc1f32aa" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "43718665-1036-443a-b94f-e830b1ed9201" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB8E3B5DD6", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aad4a9d4-e01f-00a7-39d4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:17 GMT", + "x-ms-client-request-id" : "43718665-1036-443a-b94f-e830b1ed9201" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "85eef800-f78b-4963-ac2a-28afb9175d3f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB902447D3", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9d9-e01f-00a7-3bd4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:19 GMT", + "x-ms-client-request-id" : "85eef800-f78b-4963-ac2a-28afb9175d3f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure313119fce49f7?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6e4ee43a-f469-4910-8aad-233f967376f3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB903841AF", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9da-e01f-00a7-3cd4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:19 GMT", + "x-ms-client-request-id" : "6e4ee43a-f469-4910-8aad-233f967376f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure313119fce49f7/javapathsetaclrecursiveprogresswithfailure48722332ec89c?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "96681f93-f1f2-4bb1-a4e0-65a1ceeadc88" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB90509C27", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9db-e01f-00a7-3dd4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:19 GMT", + "x-ms-client-request-id" : "96681f93-f1f2-4bb1-a4e0-65a1ceeadc88" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure313119fce49f7/javapathsetaclrecursiveprogresswithfailure55173193aab7c?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bfe4bae6-e826-42cd-9814-6b4c0fbc0947" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB90658B77", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9dc-e01f-00a7-3ed4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:19 GMT", + "x-ms-client-request-id" : "bfe4bae6-e826-42cd-9814-6b4c0fbc0947" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure606305b008fc7?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7374fe16-e0b2-42a2-95a3-7f077c4a0545" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB907B62DB", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9dd-e01f-00a7-3fd4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:20 GMT", + "x-ms-client-request-id" : "7374fe16-e0b2-42a2-95a3-7f077c4a0545" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure606305b008fc7/javapathsetaclrecursiveprogresswithfailure79061753115a4?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8baa0ed2-edc4-44d6-8c94-c9a8ccfe3afe" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB908FD20D", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9de-e01f-00a7-40d4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:20 GMT", + "x-ms-client-request-id" : "8baa0ed2-edc4-44d6-8c94-c9a8ccfe3afe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure606305b008fc7/javapathsetaclrecursiveprogresswithfailure818335ea77f3d?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "50137b47-221c-4713-badf-56dd68090b0a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEB90A35302", + "Last-Modified" : "Mon, 31 Aug 2020 20:22:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aad4a9df-e01f-00a7-41d4-7f1ee3000000", + "Date" : "Mon, 31 Aug 2020 20:22:20 GMT", + "x-ms-client-request-id" : "50137b47-221c-4713-badf-56dd68090b0a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af/javapathsetaclrecursiveprogresswithfailure2252165084304?mode=set&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "46659c40-24a2-4cff-9811-acb07c9dd132" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "373", + "StatusCode" : "200", + "x-ms-request-id" : "aad4a9e0-e01f-00a7-42d4-7f1ee3000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathsetaclrecursiveprogresswithfailure2252165084304/javapathsetaclrecursiveprogresswithfailure606305b008fc7/javapathsetaclrecursiveprogresswithfailure818335ea77f3d\",\"type\":\"FILE\"}],\"failureCount\":1,\"filesSuccessful\":3}\n", + "Date" : "Mon, 31 Aug 2020 20:22:20 GMT", + "x-ms-client-request-id" : "46659c40-24a2-4cff-9811-acb07c9dd132" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursiveprogresswithfailure&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "83238f81-21dd-400b-9693-bf086da1ddf9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2aee79ce-201e-003e-70d4-7f615e000000", + "Body" : "jtfssetaclrecursiveprogresswithfailurejtfssetaclrecursiveprogresswithfailure031459ffc2b38afMon, 31 Aug 2020 20:22:17 GMT\"0x8D84DEB8E2B531F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:22:21 GMT", + "x-ms-client-request-id" : "83238f81-21dd-400b-9693-bf086da1ddf9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursiveprogresswithfailure031459ffc2b38af?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cc292cce-17c5-4633-9e56-0a28a3f3776b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2aee7b04-201e-003e-71d4-7f615e000000", + "Date" : "Mon, 31 Aug 2020 20:22:22 GMT", + "x-ms-client-request-id" : "cc292cce-17c5-4633-9e56-0a28a3f3776b" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursiveprogresswithfailure031459ffc2b38af", "javapathsetaclrecursiveprogresswithfailure1857993aa468f", "javapathsetaclrecursiveprogresswithfailure2252165084304", "javapathsetaclrecursiveprogresswithfailure313119fce49f7", "javapathsetaclrecursiveprogresswithfailure48722332ec89c", "javapathsetaclrecursiveprogresswithfailure55173193aab7c", "javapathsetaclrecursiveprogresswithfailure606305b008fc7", "javapathsetaclrecursiveprogresswithfailure79061753115a4", "javapathsetaclrecursiveprogresswithfailure818335ea77f3d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursive.json new file mode 100644 index 0000000000000..ab67b1958e4ac --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursive.json @@ -0,0 +1,234 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a1cd6795-0df7-43a0-b729-e0d1e6c7686c" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED140F05B0", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b125d60a-a01e-00a6-50d5-7f413f000000", + "Date" : "Mon, 31 Aug 2020 20:33:10 GMT", + "x-ms-client-request-id" : "a1cd6795-0df7-43a0-b729-e0d1e6c7686c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0bccd5bb-911c-49af-975d-ad16f77a7706" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED14A7A671", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafc3-001f-00cd-26d5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "0bccd5bb-911c-49af-975d-ad16f77a7706" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492/javapathupdateaclrecursive2133038d79b07b3c7e4b0?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1b2de3e5-6742-48c5-84a3-29df2a57d2e9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED14C017DB", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafc5-001f-00cd-27d5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "1b2de3e5-6742-48c5-84a3-29df2a57d2e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492/javapathupdateaclrecursive2133038d79b07b3c7e4b0/javapathupdateaclrecursive300470a4506043fb0a431?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ef061d84-b7fb-416c-a241-a9af06e5c5b0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED14D2D41F", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafc6-001f-00cd-28d5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "ef061d84-b7fb-416c-a241-a9af06e5c5b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492/javapathupdateaclrecursive2133038d79b07b3c7e4b0/javapathupdateaclrecursive403769b704e6edf5d64c7?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e6d79fba-1e6c-4c8d-b1ec-db4ebd87c7a0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED14EBBFDE", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafc7-001f-00cd-29d5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "e6d79fba-1e6c-4c8d-b1ec-db4ebd87c7a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492/javapathupdateaclrecursive57982225df4910f17548e?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "37c9f968-37d8-41c5-a65f-8af1a62f0639" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED1509115F", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafc9-001f-00cd-2ad5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "37c9f968-37d8-41c5-a65f-8af1a62f0639" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492/javapathupdateaclrecursive57982225df4910f17548e/javapathupdateaclrecursive6545292cdba536163149e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e7788015-2e92-448c-8f2b-885e21d3a799" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED151B6D00", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafca-001f-00cd-2bd5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "e7788015-2e92-448c-8f2b-885e21d3a799" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492/javapathupdateaclrecursive71746675758dc6a161458?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cf5462b3-e1b9-483e-9aae-ff009256098c" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED15319D0E", + "Last-Modified" : "Mon, 31 Aug 2020 20:33:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c4aafcb-001f-00cd-2cd5-7fc6cb000000", + "Date" : "Mon, 31 Aug 2020 20:33:12 GMT", + "x-ms-client-request-id" : "cf5462b3-e1b9-483e-9aae-ff009256098c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b/javapathupdateaclrecursive145114931d232803f3492?mode=modify&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8ac95544-a5d2-47a4-9a48-bc35bfcc63d3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "5c4aafcc-001f-00cd-2dd5-7fc6cb000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":4}\n", + "Date" : "Mon, 31 Aug 2020 20:33:13 GMT", + "x-ms-client-request-id" : "8ac95544-a5d2-47a4-9a48-bc35bfcc63d3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d830fb16-bbf5-4076-85fe-1b4a3e8336d1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b125d774-a01e-00a6-7ed5-7f413f000000", + "Body" : "jtfsupdateaclrecursivejtfsupdateaclrecursive02682256cd34c436bf4c61bMon, 31 Aug 2020 20:33:11 GMT\"0x8D84DED140F05B0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:33:13 GMT", + "x-ms-client-request-id" : "d830fb16-bbf5-4076-85fe-1b4a3e8336d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursive02682256cd34c436bf4c61b?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1ea19697-e325-4159-b71d-40fbc2978ce6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b125d7bb-a01e-00a6-3cd5-7f413f000000", + "Date" : "Mon, 31 Aug 2020 20:33:13 GMT", + "x-ms-client-request-id" : "1ea19697-e325-4159-b71d-40fbc2978ce6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursive02682256cd34c436bf4c61b", "javapathupdateaclrecursive145114931d232803f3492", "javapathupdateaclrecursive2133038d79b07b3c7e4b0", "javapathupdateaclrecursive300470a4506043fb0a431", "javapathupdateaclrecursive403769b704e6edf5d64c7", "javapathupdateaclrecursive57982225df4910f17548e", "javapathupdateaclrecursive6545292cdba536163149e", "javapathupdateaclrecursive71746675758dc6a161458" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatches.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatches.json new file mode 100644 index 0000000000000..6f424c1102e7e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatches.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c3d0359b-21fe-43f8-a5bc-4c2469a7eecb" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED56AD811D", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ae41962a-601e-0086-78d6-7f3a98000000", + "Date" : "Mon, 31 Aug 2020 20:35:02 GMT", + "x-ms-client-request-id" : "c3d0359b-21fe-43f8-a5bc-4c2469a7eecb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4204a219-febc-4d70-a7d9-57e3e41e649f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED573FD594", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa709-101f-00d1-17d6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "4204a219-febc-4d70-a7d9-57e3e41e649f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea/javapathupdateaclrecursivebatches244191fdb67bdc0d17?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7b80f0b7-7575-465b-bb02-3506842ca5f6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED575A73D3", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa70a-101f-00d1-18d6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "7b80f0b7-7575-465b-bb02-3506842ca5f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea/javapathupdateaclrecursivebatches244191fdb67bdc0d17/javapathupdateaclrecursivebatches3201738365ee0a08ab?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6feb1b48-c8be-42ed-8e46-f1254029d88d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED576D0122", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa70b-101f-00d1-19d6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "6feb1b48-c8be-42ed-8e46-f1254029d88d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea/javapathupdateaclrecursivebatches244191fdb67bdc0d17/javapathupdateaclrecursivebatches453954345b49cb9c77?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "41582657-1f84-49c2-99cc-93cda3496a68" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED57811D65", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa70c-101f-00d1-1ad6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "41582657-1f84-49c2-99cc-93cda3496a68" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea/javapathupdateaclrecursivebatches526194acb1d5985162?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9a59a9e9-a8dc-4c55-9f4a-54104156493e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED5792CAF5", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa70d-101f-00d1-1bd6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "9a59a9e9-a8dc-4c55-9f4a-54104156493e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea/javapathupdateaclrecursivebatches526194acb1d5985162/javapathupdateaclrecursivebatches619825cdae9467186e?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "61b7de5b-3e03-4741-8260-2355cde720ed" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED57A5A6CD", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa70e-101f-00d1-1cd6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "61b7de5b-3e03-4741-8260-2355cde720ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea/javapathupdateaclrecursivebatches770605807c1c610d7f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b4722a95-4bf9-4800-835c-57e435a93300" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DED57B828C8", + "Last-Modified" : "Mon, 31 Aug 2020 20:35:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3eeaa70f-101f-00d1-1dd6-7f94ab000000", + "Date" : "Mon, 31 Aug 2020 20:35:03 GMT", + "x-ms-client-request-id" : "b4722a95-4bf9-4800-835c-57e435a93300" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea?mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "43a366a6-c313-4eae-9ac5-65b1c4a83e2f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBavt6TenLzy+YABGIcCGIECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczA1Njk3MTI3ZGQ4NTlkN2NmZTQ1ATAxRDY3RkQ2MzQzNkVEQ0EvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzMTcxNjY3MjkyNjNiOGM2N2VhL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczI0NDE5MWZkYjY3YmRjMGQxNy9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMzMjAxNzM4MzY1ZWUwYTA4YWIWAAAA", + "x-ms-request-id" : "3eeaa710-101f-00d1-1ed6-7f94ab000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:35:04 GMT", + "x-ms-client-request-id" : "43a366a6-c313-4eae-9ac5-65b1c4a83e2f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea?continuation=VBavt6TenLzy%2BYABGIcCGIECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczA1Njk3MTI3ZGQ4NTlkN2NmZTQ1ATAxRDY3RkQ2MzQzNkVEQ0EvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzMTcxNjY3MjkyNjNiOGM2N2VhL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczI0NDE5MWZkYjY3YmRjMGQxNy9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMzMjAxNzM4MzY1ZWUwYTA4YWIWAAAA&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "943b4797-7e93-4f83-8d2a-c0950b772a79" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaQh5f1suu7wCoY0wEYzQEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzMDU2OTcxMjdkZDg1OWQ3Y2ZlNDUBMDFENjdGRDYzNDM2RURDQS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMxNzE2NjcyOTI2M2I4YzY3ZWEvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzNTI2MTk0YWNiMWQ1OTg1MTYyFgAAAA==", + "x-ms-request-id" : "3eeaa712-101f-00d1-1fd6-7f94ab000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:35:04 GMT", + "x-ms-client-request-id" : "943b4797-7e93-4f83-8d2a-c0950b772a79" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea?continuation=VBaQh5f1suu7wCoY0wEYzQEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzMDU2OTcxMjdkZDg1OWQ3Y2ZlNDUBMDFENjdGRDYzNDM2RURDQS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXMxNzE2NjcyOTI2M2I4YzY3ZWEvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzNTI2MTk0YWNiMWQ1OTg1MTYyFgAAAA%3D%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5a1862b7-fc9e-429a-ac06-160c81950a3c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBazm5e0sfrrtdQBGNMBGM0BL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczA1Njk3MTI3ZGQ4NTlkN2NmZTQ1ATAxRDY3RkQ2MzQzNkVEQ0EvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzMTcxNjY3MjkyNjNiOGM2N2VhL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczc3MDYwNTgwN2MxYzYxMGQ3ZhYAAAA=", + "x-ms-request-id" : "3eeaa713-101f-00d1-20d6-7f94ab000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:35:04 GMT", + "x-ms-client-request-id" : "5a1862b7-fc9e-429a-ac06-160c81950a3c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45/javapathupdateaclrecursivebatches17166729263b8c67ea?continuation=VBazm5e0sfrrtdQBGNMBGM0BL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczA1Njk3MTI3ZGQ4NTlkN2NmZTQ1ATAxRDY3RkQ2MzQzNkVEQ0EvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzMTcxNjY3MjkyNjNiOGM2N2VhL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlczc3MDYwNTgwN2MxYzYxMGQ3ZhYAAAA%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "70f44d41-9805-41c2-8075-64d3518ea238" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "3eeaa714-101f-00d1-21d6-7f94ab000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:35:04 GMT", + "x-ms-client-request-id" : "70f44d41-9805-41c2-8075-64d3518ea238" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursivebatches&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fbfac2a2-2c38-4b5f-8550-0b43710f6d1a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ae419751-601e-0086-63d6-7f3a98000000", + "Body" : "jtfsupdateaclrecursivebatchesjtfsupdateaclrecursivebatches05697127dd859d7cfe45Mon, 31 Aug 2020 20:35:02 GMT\"0x8D84DED56AD811D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:35:05 GMT", + "x-ms-client-request-id" : "fbfac2a2-2c38-4b5f-8550-0b43710f6d1a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatches05697127dd859d7cfe45?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3fb8832d-661a-4017-b5fc-fe68d72d9d97" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ae419774-601e-0086-80d6-7f3a98000000", + "Date" : "Mon, 31 Aug 2020 20:35:05 GMT", + "x-ms-client-request-id" : "3fb8832d-661a-4017-b5fc-fe68d72d9d97" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursivebatches05697127dd859d7cfe45", "javapathupdateaclrecursivebatches17166729263b8c67ea", "javapathupdateaclrecursivebatches244191fdb67bdc0d17", "javapathupdateaclrecursivebatches3201738365ee0a08ab", "javapathupdateaclrecursivebatches453954345b49cb9c77", "javapathupdateaclrecursivebatches526194acb1d5985162", "javapathupdateaclrecursivebatches619825cdae9467186e", "javapathupdateaclrecursivebatches770605807c1c610d7f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesfollowtoken.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesfollowtoken.json new file mode 100644 index 0000000000000..91771ac56ffc0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesfollowtoken.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2e4f43dc-7907-48e2-9ce4-a56eff492536" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9E8FC3AB", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "830deb72-c01e-00b0-34d7-7fb7e8000000", + "Date" : "Mon, 31 Aug 2020 20:44:12 GMT", + "x-ms-client-request-id" : "2e4f43dc-7907-48e2-9ce4-a56eff492536" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "611a5b7e-381b-4b81-9391-9d42884cb171" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F18513C", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b823-801f-0018-18d7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:13 GMT", + "x-ms-client-request-id" : "611a5b7e-381b-4b81-9391-9d42884cb171" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3/javapathupdateaclrecursivebatchesfollowtoken2575506a5290?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c6de23f2-b2d8-4252-a748-1fb75afb8b38" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F3568E0", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b824-801f-0018-19d7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:13 GMT", + "x-ms-client-request-id" : "c6de23f2-b2d8-4252-a748-1fb75afb8b38" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3/javapathupdateaclrecursivebatchesfollowtoken2575506a5290/javapathupdateaclrecursivebatchesfollowtoken3096335adf1f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cdbbe8e5-c01d-436f-9a10-37d7b39a01ba" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F4A187F", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b825-801f-0018-1ad7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:14 GMT", + "x-ms-client-request-id" : "cdbbe8e5-c01d-436f-9a10-37d7b39a01ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3/javapathupdateaclrecursivebatchesfollowtoken2575506a5290/javapathupdateaclrecursivebatchesfollowtoken455567ff1dbc?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ab0fcf64-9973-4758-bf16-8d2c2adc3242" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F5E56DF", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b826-801f-0018-1bd7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:14 GMT", + "x-ms-client-request-id" : "ab0fcf64-9973-4758-bf16-8d2c2adc3242" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3/javapathupdateaclrecursivebatchesfollowtoken577165874466?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "65af54ec-eb44-4671-aeaa-5a64eb770c42" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F712151", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b827-801f-0018-1cd7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:14 GMT", + "x-ms-client-request-id" : "65af54ec-eb44-4671-aeaa-5a64eb770c42" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3/javapathupdateaclrecursivebatchesfollowtoken577165874466/javapathupdateaclrecursivebatchesfollowtoken637104be5dac?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9f45187a-f414-44ca-b4d9-7b53fa32aa91" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F859A5B", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b828-801f-0018-1dd7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:14 GMT", + "x-ms-client-request-id" : "9f45187a-f414-44ca-b4d9-7b53fa32aa91" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3/javapathupdateaclrecursivebatchesfollowtoken791454da063b?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c17e6e57-7ac9-4c5b-89e2-fdcdcecbd682" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE9F97E889", + "Last-Modified" : "Mon, 31 Aug 2020 20:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bff1b829-801f-0018-1ed7-7f2946000000", + "Date" : "Mon, 31 Aug 2020 20:44:14 GMT", + "x-ms-client-request-id" : "c17e6e57-7ac9-4c5b-89e2-fdcdcecbd682" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3?mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5f37e9b9-fa0f-4247-b31f-b886766eed32" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbEkueA/vmLhQQYmwIYlQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wOTkzNzhjYzQ4ODE1NwEwMUQ2N0ZENzdDMThGQzY1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTU2ODUxY2IyMGUzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMjU3NTUwNmE1MjkwL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMzA5NjMzNWFkZjFmFgAAAA==", + "x-ms-request-id" : "bff1b82a-801f-0018-1fd7-7f2946000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:44:14 GMT", + "x-ms-client-request-id" : "5f37e9b9-fa0f-4247-b31f-b886766eed32" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3?continuation=VBbEkueA/vmLhQQYmwIYlQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wOTkzNzhjYzQ4ODE1NwEwMUQ2N0ZENzdDMThGQzY1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTU2ODUxY2IyMGUzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMjU3NTUwNmE1MjkwL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMzA5NjMzNWFkZjFmFgAAAA%3D%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0f6b8902-dc99-4fb0-a20f-8e0d2bf23462" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaHrIHR64rFt2EY4gEY3AEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wOTkzNzhjYzQ4ODE1NwEwMUQ2N0ZENzdDMThGQzY1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTU2ODUxY2IyMGUzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuNTc3MTY1ODc0NDY2FgAAAA==", + "x-ms-request-id" : "bff1b82b-801f-0018-20d7-7f2946000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:44:15 GMT", + "x-ms-client-request-id" : "0f6b8902-dc99-4fb0-a20f-8e0d2bf23462" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3?continuation=VBaHrIHR64rFt2EY4gEY3AEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wOTkzNzhjYzQ4ODE1NwEwMUQ2N0ZENzdDMThGQzY1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTU2ODUxY2IyMGUzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuNTc3MTY1ODc0NDY2FgAAAA%3D%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a3fa46da-d59a-49c5-97fb-f922f9b06e0c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbPhKv4grTk/0QY4gEY3AEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wOTkzNzhjYzQ4ODE1NwEwMUQ2N0ZENzdDMThGQzY1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTU2ODUxY2IyMGUzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuNzkxNDU0ZGEwNjNiFgAAAA==", + "x-ms-request-id" : "bff1b82e-801f-0018-23d7-7f2946000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:44:15 GMT", + "x-ms-client-request-id" : "a3fa46da-d59a-49c5-97fb-f922f9b06e0c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157/javapathupdateaclrecursivebatchesfollowtoken156851cb20e3?continuation=VBbPhKv4grTk/0QY4gEY3AEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzZm9sbG93dG9rZW4wOTkzNzhjYzQ4ODE1NwEwMUQ2N0ZENzdDMThGQzY1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuMTU2ODUxY2IyMGUzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc2ZvbGxvd3Rva2VuNzkxNDU0ZGEwNjNiFgAAAA%3D%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a13c108e-a80a-44a6-9b62-e7b15e4a4b53" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "bff1b82f-801f-0018-24d7-7f2946000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:44:15 GMT", + "x-ms-client-request-id" : "a13c108e-a80a-44a6-9b62-e7b15e4a4b53" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursivebatchesfollowtoken&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e3b19462-21b6-486c-b98d-0abb0c4e99a5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "830dee1b-c01e-00b0-2ad7-7fb7e8000000", + "Body" : "jtfsupdateaclrecursivebatchesfollowtokenjtfsupdateaclrecursivebatchesfollowtoken099378cc488157Mon, 31 Aug 2020 20:44:13 GMT\"0x8D84DEE9E8FC3AB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:44:15 GMT", + "x-ms-client-request-id" : "e3b19462-21b6-486c-b98d-0abb0c4e99a5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatchesfollowtoken099378cc488157?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1d60f41d-7d32-444d-8029-b860f8f40977" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "830dee82-c01e-00b0-08d7-7fb7e8000000", + "Date" : "Mon, 31 Aug 2020 20:44:16 GMT", + "x-ms-client-request-id" : "1d60f41d-7d32-444d-8029-b860f8f40977" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursivebatchesfollowtoken099378cc488157", "javapathupdateaclrecursivebatchesfollowtoken156851cb20e3", "javapathupdateaclrecursivebatchesfollowtoken2575506a5290", "javapathupdateaclrecursivebatchesfollowtoken3096335adf1f", "javapathupdateaclrecursivebatchesfollowtoken455567ff1dbc", "javapathupdateaclrecursivebatchesfollowtoken577165874466", "javapathupdateaclrecursivebatchesfollowtoken637104be5dac", "javapathupdateaclrecursivebatchesfollowtoken791454da063b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesprogress.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesprogress.json new file mode 100644 index 0000000000000..f007297691376 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesprogress.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d9122c20-dbcc-4dad-88ac-9dc5b2d2f706" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3D5E9C8D", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8da1e04d-d01e-0067-02d7-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:41:29 GMT", + "x-ms-client-request-id" : "d9122c20-dbcc-4dad-88ac-9dc5b2d2f706" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8925b949-4091-4e96-80b8-b6fdcca03688" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3DEFFE2B", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886caf-c01f-00a0-06d7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:30 GMT", + "x-ms-client-request-id" : "8925b949-4091-4e96-80b8-b6fdcca03688" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b/javapathupdateaclrecursivebatchesprogress293622a13d524c?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "756e9bf0-46f9-4bf8-a625-fe7aa5416783" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3E09F04C", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886cb0-c01f-00a0-07d7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:30 GMT", + "x-ms-client-request-id" : "756e9bf0-46f9-4bf8-a625-fe7aa5416783" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b/javapathupdateaclrecursivebatchesprogress293622a13d524c/javapathupdateaclrecursivebatchesprogress384884fe51bf9f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5890f84b-dbad-457e-87b1-c8c005df9d89" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3E1B197F", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886cb1-c01f-00a0-08d7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:30 GMT", + "x-ms-client-request-id" : "5890f84b-dbad-457e-87b1-c8c005df9d89" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b/javapathupdateaclrecursivebatchesprogress293622a13d524c/javapathupdateaclrecursivebatchesprogress40327795d5deb6?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "879ec98a-b5ae-481f-814d-32567bdf7cff" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3E2E0989", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886cb2-c01f-00a0-09d7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:31 GMT", + "x-ms-client-request-id" : "879ec98a-b5ae-481f-814d-32567bdf7cff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b/javapathupdateaclrecursivebatchesprogress5371039ce5f28a?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3aa8befb-2025-4b0c-9ce3-ffd0e3324891" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3E3F2352", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886cb3-c01f-00a0-0ad7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:31 GMT", + "x-ms-client-request-id" : "3aa8befb-2025-4b0c-9ce3-ffd0e3324891" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b/javapathupdateaclrecursivebatchesprogress5371039ce5f28a/javapathupdateaclrecursivebatchesprogress61958465a8c0bf?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fe2d7bd7-e427-49f4-a3f6-5644b8ca1fa6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3E574F34", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886cb4-c01f-00a0-0bd7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:31 GMT", + "x-ms-client-request-id" : "fe2d7bd7-e427-49f4-a3f6-5644b8ca1fa6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b/javapathupdateaclrecursivebatchesprogress7532659c882e6c?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "15a33e91-57ce-404c-996b-c3987fc13020" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEE3E69306E", + "Last-Modified" : "Mon, 31 Aug 2020 20:41:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8b886cb5-c01f-00a0-0cd7-7f7280000000", + "Date" : "Mon, 31 Aug 2020 20:41:31 GMT", + "x-ms-client-request-id" : "15a33e91-57ce-404c-996b-c3987fc13020" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b?mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c3bba545-994e-4d69-8256-44b8442986f6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbuwKmmlJWAwpkBGJcCGJECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDYyNDQ5MDdmNDA4ZjFmOAEwMUQ2N0ZENzFBRTdGQzM1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMTQ4NjMyMWEyODY0NGIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MyOTM2MjJhMTNkNTI0Yy9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczM4NDg4NGZlNTFiZjlmFgAAAA==", + "x-ms-request-id" : "8b886cb6-c01f-00a0-0dd7-7f7280000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:41:32 GMT", + "x-ms-client-request-id" : "c3bba545-994e-4d69-8256-44b8442986f6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b?continuation=VBbuwKmmlJWAwpkBGJcCGJECL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDYyNDQ5MDdmNDA4ZjFmOAEwMUQ2N0ZENzFBRTdGQzM1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMTQ4NjMyMWEyODY0NGIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MyOTM2MjJhMTNkNTI0Yy9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczM4NDg4NGZlNTFiZjlmFgAAAA%3D%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0e8823a5-d29b-4952-a5d7-6e7dee04719c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbgqJDFvsGrtcABGN8BGNkBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDYyNDQ5MDdmNDA4ZjFmOAEwMUQ2N0ZENzFBRTdGQzM1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMTQ4NjMyMWEyODY0NGIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3M1MzcxMDM5Y2U1ZjI4YRYAAAA=", + "x-ms-request-id" : "8b886cb8-c01f-00a0-0ed7-7f7280000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:41:32 GMT", + "x-ms-client-request-id" : "0e8823a5-d29b-4952-a5d7-6e7dee04719c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b?continuation=VBbgqJDFvsGrtcABGN8BGNkBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMDYyNDQ5MDdmNDA4ZjFmOAEwMUQ2N0ZENzFBRTdGQzM1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Byb2dyZXNzMTQ4NjMyMWEyODY0NGIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3M1MzcxMDM5Y2U1ZjI4YRYAAAA%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "03b7d405-e6e0-4d15-b5ee-ac5f99799971" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBaepIqez52s0EIY3wEY2QEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MwNjI0NDkwN2Y0MDhmMWY4ATAxRDY3RkQ3MUFFN0ZDMzUvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNDg2MzIxYTI4NjQ0Yi9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczc1MzI2NTljODgyZTZjFgAAAA==", + "x-ms-request-id" : "8b886cb9-c01f-00a0-0fd7-7f7280000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:41:32 GMT", + "x-ms-client-request-id" : "03b7d405-e6e0-4d15-b5ee-ac5f99799971" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8/javapathupdateaclrecursivebatchesprogress1486321a28644b?continuation=VBaepIqez52s0EIY3wEY2QEvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MwNjI0NDkwN2Y0MDhmMWY4ATAxRDY3RkQ3MUFFN0ZDMzUvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcHJvZ3Jlc3MxNDg2MzIxYTI4NjQ0Yi9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNwcm9ncmVzczc1MzI2NTljODgyZTZjFgAAAA%3D%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7b122ef6-5aca-443f-b3fe-31b481a35c5b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "8b886cbb-c01f-00a0-10d7-7f7280000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:41:32 GMT", + "x-ms-client-request-id" : "7b122ef6-5aca-443f-b3fe-31b481a35c5b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursivebatchesprogress&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "39f8948a-feb6-4133-915c-46aee52a49e9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8da1e152-d01e-0067-51d7-7fe6dd000000", + "Body" : "jtfsupdateaclrecursivebatchesprogressjtfsupdateaclrecursivebatchesprogress06244907f408f1f8Mon, 31 Aug 2020 20:41:30 GMT\"0x8D84DEE3D5E9C8D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:41:32 GMT", + "x-ms-client-request-id" : "39f8948a-feb6-4133-915c-46aee52a49e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatchesprogress06244907f408f1f8?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9de38260-78b1-4be2-811e-f49a04499c23" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8da1e165-d01e-0067-63d7-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:41:32 GMT", + "x-ms-client-request-id" : "9de38260-78b1-4be2-811e-f49a04499c23" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursivebatchesprogress06244907f408f1f8", "javapathupdateaclrecursivebatchesprogress1486321a28644b", "javapathupdateaclrecursivebatchesprogress293622a13d524c", "javapathupdateaclrecursivebatchesprogress384884fe51bf9f", "javapathupdateaclrecursivebatchesprogress40327795d5deb6", "javapathupdateaclrecursivebatchesprogress5371039ce5f28a", "javapathupdateaclrecursivebatchesprogress61958465a8c0bf", "javapathupdateaclrecursivebatchesprogress7532659c882e6c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesresume.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesresume.json new file mode 100644 index 0000000000000..ee713c3c48f1d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivebatchesresume.json @@ -0,0 +1,303 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a3abbb8b-2eda-4f80-831b-b015c722d4cc" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA04725BF", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d8d222e7-d01e-003a-59d6-7fec59000000", + "Date" : "Mon, 31 Aug 2020 20:37:06 GMT", + "x-ms-client-request-id" : "a3abbb8b-2eda-4f80-831b-b015c722d4cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ed5fd090-eb4b-4e42-ab82-e5940a57b023" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA0F38B97", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb603-801f-0045-0dd6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:07 GMT", + "x-ms-client-request-id" : "ed5fd090-eb4b-4e42-ab82-e5940a57b023" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43/javapathupdateaclrecursivebatchesresume2598291cac174b5?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0e58cdd9-0c11-4c70-8c56-ab571c941d74" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA10DB27B", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb604-801f-0045-0ed6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:07 GMT", + "x-ms-client-request-id" : "0e58cdd9-0c11-4c70-8c56-ab571c941d74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43/javapathupdateaclrecursivebatchesresume2598291cac174b5/javapathupdateaclrecursivebatchesresume337404c86161108?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f7a5cf51-dd51-4f8d-8ae4-62bc32b6ff2b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA120A82C", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb605-801f-0045-0fd6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:07 GMT", + "x-ms-client-request-id" : "f7a5cf51-dd51-4f8d-8ae4-62bc32b6ff2b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43/javapathupdateaclrecursivebatchesresume2598291cac174b5/javapathupdateaclrecursivebatchesresume420437deb6fa41f?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d8923d9f-1908-4464-9f16-95170f9f6d83" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA133254C", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb606-801f-0045-10d6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:07 GMT", + "x-ms-client-request-id" : "d8923d9f-1908-4464-9f16-95170f9f6d83" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43/javapathupdateaclrecursivebatchesresume5946864f3d96205?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6e093476-9214-4816-b032-ff701d666106" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA144A7C6", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb607-801f-0045-11d6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:07 GMT", + "x-ms-client-request-id" : "6e093476-9214-4816-b032-ff701d666106" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43/javapathupdateaclrecursivebatchesresume5946864f3d96205/javapathupdateaclrecursivebatchesresume694814cc39875e1?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b6a5aa56-5440-4de8-868c-9dcdf7ec9e94" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA155A5E2", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb608-801f-0045-12d6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:07 GMT", + "x-ms-client-request-id" : "b6a5aa56-5440-4de8-868c-9dcdf7ec9e94" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43/javapathupdateaclrecursivebatchesresume758173bf401a237?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "303b6e72-38f3-421b-bde5-02c6f6b6593a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEDA1670169", + "Last-Modified" : "Mon, 31 Aug 2020 20:37:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "95edb609-801f-0045-13d6-7f23c2000000", + "Date" : "Mon, 31 Aug 2020 20:37:08 GMT", + "x-ms-client-request-id" : "303b6e72-38f3-421b-bde5-02c6f6b6593a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43?mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "57c11dbe-dfd5-4b24-b188-0b88b220e0e6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBagtcKdrs3IjjwYkwIYjQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMDkyMTQ3ZGMxZGRkMGRjMjIBMDFENjdGRDY3REQxRjBEMi9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNjY1MTUxZDM3ZDZkNDMvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMjU5ODI5MWNhYzE3NGI1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTMzNzQwNGM4NjE2MTEwOBYAAAA=", + "x-ms-request-id" : "95edb610-801f-0045-1ad6-7f23c2000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:37:09 GMT", + "x-ms-client-request-id" : "57c11dbe-dfd5-4b24-b188-0b88b220e0e6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43?continuation=VBagtcKdrs3IjjwYkwIYjQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMDkyMTQ3ZGMxZGRkMGRjMjIBMDFENjdGRDY3REQxRjBEMi9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWJhdGNoZXNyZXN1bWUxNjY1MTUxZDM3ZDZkNDMvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMjU5ODI5MWNhYzE3NGI1L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTMzNzQwNGM4NjE2MTEwOBYAAAA%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2283b60d-795e-47d8-bf34-33cf525b0409" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBam7snIn/iXiLIBGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA5MjE0N2RjMWRkZDBkYzIyATAxRDY3RkQ2N0REMUYwRDIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTY2NTE1MWQzN2Q2ZDQzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTU5NDY4NjRmM2Q5NjIwNRYAAAA=", + "x-ms-request-id" : "95edb625-801f-0045-2ed6-7f23c2000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:37:10 GMT", + "x-ms-client-request-id" : "2283b60d-795e-47d8-bf34-33cf525b0409" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43?continuation=VBam7snIn/iXiLIBGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA5MjE0N2RjMWRkZDBkYzIyATAxRDY3RkQ2N0REMUYwRDIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTY2NTE1MWQzN2Q2ZDQzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTU5NDY4NjRmM2Q5NjIwNRYAAAA%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "33060ae9-8d46-4d4a-8764-9df00384e772" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbI5obNzNCgwYwBGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA5MjE0N2RjMWRkZDBkYzIyATAxRDY3RkQ2N0REMUYwRDIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTY2NTE1MWQzN2Q2ZDQzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTc1ODE3M2JmNDAxYTIzNxYAAAA=", + "x-ms-request-id" : "95edb627-801f-0045-30d6-7f23c2000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:37:10 GMT", + "x-ms-client-request-id" : "33060ae9-8d46-4d4a-8764-9df00384e772" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22/javapathupdateaclrecursivebatchesresume1665151d37d6d43?continuation=VBbI5obNzNCgwYwBGNwBGNYBL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTA5MjE0N2RjMWRkZDBkYzIyATAxRDY3RkQ2N0REMUYwRDIvamF2YXBhdGh1cGRhdGVhY2xyZWN1cnNpdmViYXRjaGVzcmVzdW1lMTY2NTE1MWQzN2Q2ZDQzL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlYmF0Y2hlc3Jlc3VtZTc1ODE3M2JmNDAxYTIzNxYAAAA%3D&mode=modify&forceFlag=false&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b81cfa76-1fa0-4a45-819a-cd19e7b4d243" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "95edb629-801f-0045-32d6-7f23c2000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:37:10 GMT", + "x-ms-client-request-id" : "b81cfa76-1fa0-4a45-819a-cd19e7b4d243" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursivebatchesresume&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "21c0d020-40a7-479e-9823-2964fcf71168" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d8d2253b-d01e-003a-2ad6-7fec59000000", + "Body" : "jtfsupdateaclrecursivebatchesresumejtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22Mon, 31 Aug 2020 20:37:06 GMT\"0x8D84DEDA04725BF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:37:10 GMT", + "x-ms-client-request-id" : "21c0d020-40a7-479e-9823-2964fcf71168", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "20bd3ca0-75b9-43d0-a7b7-de64d3978161" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d8d22588-d01e-003a-66d6-7fec59000000", + "Date" : "Mon, 31 Aug 2020 20:37:10 GMT", + "x-ms-client-request-id" : "20bd3ca0-75b9-43d0-a7b7-de64d3978161" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursivebatchesresume092147dc1ddd0dc22", "javapathupdateaclrecursivebatchesresume1665151d37d6d43", "javapathupdateaclrecursivebatchesresume2598291cac174b5", "javapathupdateaclrecursivebatchesresume337404c86161108", "javapathupdateaclrecursivebatchesresume420437deb6fa41f", "javapathupdateaclrecursivebatchesresume5946864f3d96205", "javapathupdateaclrecursivebatchesresume694814cc39875e1", "javapathupdateaclrecursivebatchesresume758173bf401a237" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivecontinueonfailure.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivecontinueonfailure.json new file mode 100644 index 0000000000000..fa1708e93ded1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivecontinueonfailure.json @@ -0,0 +1,340 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "feeb7cfa-d284-4471-b7b6-fd24a9006d00" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFAF4E8C73", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1fa8c193-601e-004d-4ed8-7f39cd000000", + "Date" : "Mon, 31 Aug 2020 20:51:50 GMT", + "x-ms-client-request-id" : "feeb7cfa-d284-4471-b7b6-fd24a9006d00" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure17346344a2866?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c325ae42-a82e-40d0-9e6c-832c524436ad" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFAFEAF686", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b513-c01f-0009-0ed8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:50 GMT", + "x-ms-client-request-id" : "c325ae42-a82e-40d0-9e6c-832c524436ad" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "9ba8cbd9-5e9b-470a-afd2-bc7c0dfd40e7" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFAF5B0E1F", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9258b514-c01f-0009-0fd8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:51 GMT", + "x-ms-client-request-id" : "9ba8cbd9-5e9b-470a-afd2-bc7c0dfd40e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cd1768b3-246a-4656-a8db-c59299687d94" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB0D56D74", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b515-c01f-0009-10d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:52 GMT", + "x-ms-client-request-id" : "cd1768b3-246a-4656-a8db-c59299687d94" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure39831744c232e?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ae6eff32-ad3e-4345-bc84-7ad8a1fb2d60" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB0E834F2", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b516-c01f-0009-11d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:52 GMT", + "x-ms-client-request-id" : "ae6eff32-ad3e-4345-bc84-7ad8a1fb2d60" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure39831744c232e/javapathupdateaclrecursivecontinueonfailure477948a2d05c0?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "68147b3a-ff74-4f0e-a1f9-ddd31e562b7d" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB0FE2B0D", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b517-c01f-0009-12d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:52 GMT", + "x-ms-client-request-id" : "68147b3a-ff74-4f0e-a1f9-ddd31e562b7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure39831744c232e/javapathupdateaclrecursivecontinueonfailure584918c71103a?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fffdfe09-8b56-4f8d-8e85-abefaf76fcc4" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB10F344C", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b518-c01f-0009-13d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:52 GMT", + "x-ms-client-request-id" : "fffdfe09-8b56-4f8d-8e85-abefaf76fcc4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "154b7dec-f8a5-4074-a395-3813e1dad698" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB11FCC9D", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b519-c01f-0009-14d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:52 GMT", + "x-ms-client-request-id" : "154b7dec-f8a5-4074-a395-3813e1dad698" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure7052081bde5ca?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f6f6b7dc-6949-4aaa-9094-5f2d63f5bba9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB131714C", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b51a-c01f-0009-15d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:53 GMT", + "x-ms-client-request-id" : "f6f6b7dc-6949-4aaa-9094-5f2d63f5bba9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure8421218629cb3?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "033ec9da-229b-42c9-b039-7e8b9be3ad1e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB1440786", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b51b-c01f-0009-16d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:53 GMT", + "x-ms-client-request-id" : "033ec9da-229b-42c9-b039-7e8b9be3ad1e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure963379a5a2d38?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "fbcb8601-9413-4908-a605-fea80a319a9f" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB1568FCE", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b51c-c01f-0009-17d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:53 GMT", + "x-ms-client-request-id" : "fbcb8601-9413-4908-a605-fea80a319a9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure1097779c45443?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "16bd91d5-83c5-465d-8f21-ecae02bd8860" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB16A3D3A", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b51d-c01f-0009-18d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:53 GMT", + "x-ms-client-request-id" : "16bd91d5-83c5-465d-8f21-ecae02bd8860" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure11293966b8b10?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "39613f63-e3d6-47a3-98a8-363f785878c4" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFB18CE8D6", + "Last-Modified" : "Mon, 31 Aug 2020 20:51:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9258b51e-c01f-0009-19d8-7fb3f2000000", + "Date" : "Mon, 31 Aug 2020 20:51:53 GMT", + "x-ms-client-request-id" : "39613f63-e3d6-47a3-98a8-363f785878c4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91/javapathupdateaclrecursivecontinueonfailure2469100121223?mode=modify&forceFlag=true&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1ceebbb7-3637-4450-86c2-ffa1728ca2e3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "1260", + "StatusCode" : "200", + "x-ms-request-id" : "9258b51f-c01f-0009-1ad8-7fb3f2000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure963379a5a2d38\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure1097779c45443\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure8421218629cb3\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailure2469100121223/javapathupdateaclrecursivecontinueonfailure62700031b2a45/javapathupdateaclrecursivecontinueonfailure11293966b8b10\",\"type\":\"DIRECTORY\"}],\"failureCount\":4,\"filesSuccessful\":3}\n", + "Date" : "Mon, 31 Aug 2020 20:51:54 GMT", + "x-ms-client-request-id" : "1ceebbb7-3637-4450-86c2-ffa1728ca2e3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursivecontinueonfailure&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "68c6a486-9d74-4baf-9519-14876fe3d445" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1fa8c307-601e-004d-7cd8-7f39cd000000", + "Body" : "jtfsupdateaclrecursivecontinueonfailurejtfsupdateaclrecursivecontinueonfailure068685dda8a2b91Mon, 31 Aug 2020 20:51:50 GMT\"0x8D84DEFAF4E8C73\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:51:54 GMT", + "x-ms-client-request-id" : "68c6a486-9d74-4baf-9519-14876fe3d445", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b024a4b3-9721-49fc-bc1f-b460670af1f3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1fa8c31b-601e-004d-10d8-7f39cd000000", + "Date" : "Mon, 31 Aug 2020 20:51:55 GMT", + "x-ms-client-request-id" : "b024a4b3-9721-49fc-bc1f-b460670af1f3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursivecontinueonfailure068685dda8a2b91", "javapathupdateaclrecursivecontinueonfailure17346344a2866", "javapathupdateaclrecursivecontinueonfailure2469100121223", "javapathupdateaclrecursivecontinueonfailure39831744c232e", "javapathupdateaclrecursivecontinueonfailure477948a2d05c0", "javapathupdateaclrecursivecontinueonfailure584918c71103a", "javapathupdateaclrecursivecontinueonfailure62700031b2a45", "javapathupdateaclrecursivecontinueonfailure7052081bde5ca", "javapathupdateaclrecursivecontinueonfailure8421218629cb3", "javapathupdateaclrecursivecontinueonfailure963379a5a2d38", "javapathupdateaclrecursivecontinueonfailure1097779c45443", "javapathupdateaclrecursivecontinueonfailure11293966b8b10" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivecontinueonfailurebatchesresume.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivecontinueonfailurebatchesresume.json new file mode 100644 index 0000000000000..c3cca69934b10 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursivecontinueonfailurebatchesresume.json @@ -0,0 +1,562 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a7aead0d-19a8-4e55-b1f6-95391cbecd26" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC3F051D8", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "90b89747-401e-00cc-24d8-7f9917000000", + "Date" : "Mon, 31 Aug 2020 20:52:24 GMT", + "x-ms-client-request-id" : "a7aead0d-19a8-4e55-b1f6-95391cbecd26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume198189?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1c1c584-31f7-495e-a43e-7f36af3144c7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC4775B0A", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de26-d01f-0067-40d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:25 GMT", + "x-ms-client-request-id" : "b1c1c584-31f7-495e-a43e-7f36af3144c7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f7787a78-f964-4750-8b00-fbcd3a9e38a7" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC3FE6768", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "50c1de27-d01f-0067-41d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:26 GMT", + "x-ms-client-request-id" : "f7787a78-f964-4750-8b00-fbcd3a9e38a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "d5ec716b-95a3-4432-af06-63ccfaf515a5" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC53E0A94", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de28-d01f-0067-42d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "d5ec716b-95a3-4432-af06-63ccfaf515a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume337791?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "28968227-d529-4795-a88d-c22e6e1dbd54" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC5519456", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de29-d01f-0067-43d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "28968227-d529-4795-a88d-c22e6e1dbd54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume337791/javapathupdateaclrecursivecontinueonfailurebatchesresume438664?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7961b5fa-4cfb-4fea-bd58-7316de9fb40b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC565786E", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de2a-d01f-0067-44d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "7961b5fa-4cfb-4fea-bd58-7316de9fb40b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume337791/javapathupdateaclrecursivecontinueonfailurebatchesresume539079?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2e5f0b04-1238-47e4-9d21-20a7d9505fd9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC577AA1C", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de2b-d01f-0067-45d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "2e5f0b04-1238-47e4-9d21-20a7d9505fd9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a8e79fe5-4a7f-4535-bdb7-15710275bdf6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC589830A", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de2c-d01f-0067-46d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "a8e79fe5-4a7f-4535-bdb7-15710275bdf6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume779337?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8afda1a7-e724-49ad-abab-44a60c35e005" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC59B88BB", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de2d-d01f-0067-47d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "8afda1a7-e724-49ad-abab-44a60c35e005" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume866285?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6095d8bb-4de3-4169-8471-c9f81eac8ebe" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC5AF6124", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de2e-d01f-0067-48d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:27 GMT", + "x-ms-client-request-id" : "6095d8bb-4de3-4169-8471-c9f81eac8ebe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume957801?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3e249b6b-1bbb-4230-b605-c48a5cf891d7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC5C1167D", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de2f-d01f-0067-49d8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "3e249b6b-1bbb-4230-b605-c48a5cf891d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume1030934?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "64dc3a46-ea02-425f-9990-1d4703d8ab6a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC5E1394A", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de30-d01f-0067-4ad8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "64dc3a46-ea02-425f-9990-1d4703d8ab6a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume1186862?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cd93fab1-82e6-46c9-a270-acdf9b329ed2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC5F16071", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de31-d01f-0067-4bd8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "cd93fab1-82e6-46c9-a270-acdf9b329ed2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume337791/javapathupdateaclrecursivecontinueonfailurebatchesresume1270188?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e92796c4-0211-453e-a775-8f342ef6812e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC602D1B8", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de32-d01f-0067-4cd8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "e92796c4-0211-453e-a775-8f342ef6812e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume337791/javapathupdateaclrecursivecontinueonfailurebatchesresume1385284?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "7052f6cc-f02c-46f8-ab69-7a30e1d5e28e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC6160D4B", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de33-d01f-0067-4dd8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "7052f6cc-f02c-46f8-ab69-7a30e1d5e28e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume1480384?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "838acbe8-b2b4-4b8b-b305-e6b56ece83e7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC6286E9B", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de34-d01f-0067-4ed8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "838acbe8-b2b4-4b8b-b305-e6b56ece83e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume1480384/javapathupdateaclrecursivecontinueonfailurebatchesresume1545236?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "605c2552-b8f3-4948-9ce0-36713f96e300" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFC63A5F45", + "Last-Modified" : "Mon, 31 Aug 2020 20:52:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "50c1de35-d01f-0067-4fd8-7fe6dd000000", + "Date" : "Mon, 31 Aug 2020 20:52:28 GMT", + "x-ms-client-request-id" : "605c2552-b8f3-4948-9ce0-36713f96e300" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2d104baf-f77a-493e-b5df-6d3ed1e66dbf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbXodSh2euoz1gYtQIYrwIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNDI4NjA2NgEwMUQ2N0ZEOEExN0FEMURFL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjg4MDc2L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMTQ4MDM4NC9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTE1NDUyMzYWAAAA", + "x-ms-request-id" : "50c1de36-d01f-0067-50d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":2,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "2d104baf-f77a-493e-b5df-6d3ed1e66dbf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?continuation=VBbXodSh2euoz1gYtQIYrwIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNDI4NjA2NgEwMUQ2N0ZEOEExN0FEMURFL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjg4MDc2L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMTQ4MDM4NC9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTE1NDUyMzYWAAAA&mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c5f73dee-22c7-4546-ad45-4551cbb86359" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBbEld2avZL9/EAYtAIYrgIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNDI4NjA2NgEwMUQ2N0ZEOEExN0FEMURFL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjg4MDc2L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMzM3NzkxL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMTI3MDE4OBYAAAA=", + "x-ms-request-id" : "50c1de37-d01f-0067-51d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "c5f73dee-22c7-4546-ad45-4551cbb86359" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?continuation=VBbEld2avZL9/EAYtAIYrgIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNDI4NjA2NgEwMUQ2N0ZEOEExN0FEMURFL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjg4MDc2L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMzM3NzkxL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMTI3MDE4OBYAAAA%3D&mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "380c267c-09e6-43a4-8f59-25a5103d2ca7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBba672739aO+YABGLMCGK0CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDQyODYwNjYBMDFENjdGRDhBMTdBRDFERS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI4ODA3Ni9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTMzNzc5MS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTQzODY2NBYAAAA=", + "x-ms-request-id" : "50c1de38-d01f-0067-52d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "380c267c-09e6-43a4-8f59-25a5103d2ca7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?continuation=VBba672739aO%2BYABGLMCGK0CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDQyODYwNjYBMDFENjdGRDhBMTdBRDFERS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI4ODA3Ni9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTMzNzc5MS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTQzODY2NBYAAAA%3D&mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "81b7dd4f-96d8-4b0b-8788-69265032722d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-continuation" : "VBak78jO5Y3U6KkBGPQBGO4BL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDQyODYwNjYBMDFENjdGRDhBMTdBRDFERS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI4ODA3Ni9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY2ODY0MhYAAAA=", + "x-ms-request-id" : "50c1de39-d01f-0067-53d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":2}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "81b7dd4f-96d8-4b0b-8788-69265032722d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?continuation=VBak78jO5Y3U6KkBGPQBGO4BL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDQyODYwNjYBMDFENjdGRDhBMTdBRDFERS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI4ODA3Ni9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY2ODY0MhYAAAA%3D&mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ac650e19-15bf-4c92-b99c-c8c9f35175cf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "395", + "StatusCode" : "200", + "x-ms-continuation" : "VBbBypne0fyLwZQBGLQCGK4CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDQyODYwNjYBMDFENjdGRDhBMTdBRDFERS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI4ODA3Ni9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY2ODY0Mi9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTExODY4NjIWAAAA", + "x-ms-request-id" : "50c1de3b-d01f-0067-55d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":1,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume1030934\",\"type\":\"FILE\"}],\"failureCount\":1,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "ac650e19-15bf-4c92-b99c-c8c9f35175cf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?continuation=VBbBypne0fyLwZQBGLQCGK4CL2FtYW5kYWFkbHNjYW5hcnkBMDFENjFDMThGMERBMTk5Qy9qdGZzdXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMDQyODYwNjYBMDFENjdGRDhBMTdBRDFERS9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTI4ODA3Ni9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTY2ODY0Mi9qYXZhcGF0aHVwZGF0ZWFjbHJlY3Vyc2l2ZWNvbnRpbnVlb25mYWlsdXJlYmF0Y2hlc3Jlc3VtZTExODY4NjIWAAAA&mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "3fda2dbe-b785-41ce-91b0-2ae32e912cb3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "400", + "StatusCode" : "200", + "x-ms-continuation" : "VBa0hYKk38LhmWUYswIYrQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNDI4NjA2NgEwMUQ2N0ZEOEExN0FEMURFL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjg4MDc2L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lNjY4NjQyL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lODY2Mjg1FgAAAA==", + "x-ms-request-id" : "50c1de3c-d01f-0067-56d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume1186862\",\"type\":\"DIRECTORY\"}],\"failureCount\":1,\"filesSuccessful\":1}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "3fda2dbe-b785-41ce-91b0-2ae32e912cb3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066/javapathupdateaclrecursivecontinueonfailurebatchesresume288076?continuation=VBa0hYKk38LhmWUYswIYrQIvYW1hbmRhYWRsc2NhbmFyeQEwMUQ2MUMxOEYwREExOTlDL2p0ZnN1cGRhdGVhY2xyZWN1cnNpdmVjb250aW51ZW9uZmFpbHVyZWJhdGNoZXNyZXN1bWUwNDI4NjA2NgEwMUQ2N0ZEOEExN0FEMURFL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lMjg4MDc2L2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lNjY4NjQyL2phdmFwYXRodXBkYXRlYWNscmVjdXJzaXZlY29udGludWVvbmZhaWx1cmViYXRjaGVzcmVzdW1lODY2Mjg1FgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "181c34e4-039c-4037-942a-186725202082" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "705", + "StatusCode" : "200", + "x-ms-request-id" : "50c1de3d-d01f-0067-57d8-7fe6dd000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume957801\",\"type\":\"FILE\"},{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursivecontinueonfailurebatchesresume288076/javapathupdateaclrecursivecontinueonfailurebatchesresume668642/javapathupdateaclrecursivecontinueonfailurebatchesresume866285\",\"type\":\"FILE\"}],\"failureCount\":2,\"filesSuccessful\":0}\n", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "181c34e4-039c-4037-942a-186725202082" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursivecontinueonfailurebatchesresume&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6b04250e-111d-402e-be53-5d5835788c6b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "90b89950-401e-00cc-3ad8-7f9917000000", + "Body" : "jtfsupdateaclrecursivecontinueonfailurebatchesresumejtfsupdateaclrecursivecontinueonfailurebatchesresume04286066Mon, 31 Aug 2020 20:52:25 GMT\"0x8D84DEFC3F051D8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:52:29 GMT", + "x-ms-client-request-id" : "6b04250e-111d-402e-be53-5d5835788c6b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "31c8e912-e87b-40fd-a314-8737ffebfca2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "90b89970-401e-00cc-55d8-7f9917000000", + "Date" : "Mon, 31 Aug 2020 20:52:30 GMT", + "x-ms-client-request-id" : "31c8e912-e87b-40fd-a314-8737ffebfca2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursivecontinueonfailurebatchesresume04286066", "javapathupdateaclrecursivecontinueonfailurebatchesresume198189", "javapathupdateaclrecursivecontinueonfailurebatchesresume288076", "javapathupdateaclrecursivecontinueonfailurebatchesresume337791", "javapathupdateaclrecursivecontinueonfailurebatchesresume438664", "javapathupdateaclrecursivecontinueonfailurebatchesresume539079", "javapathupdateaclrecursivecontinueonfailurebatchesresume668642", "javapathupdateaclrecursivecontinueonfailurebatchesresume779337", "javapathupdateaclrecursivecontinueonfailurebatchesresume866285", "javapathupdateaclrecursivecontinueonfailurebatchesresume957801", "javapathupdateaclrecursivecontinueonfailurebatchesresume1030934", "javapathupdateaclrecursivecontinueonfailurebatchesresume1186862", "javapathupdateaclrecursivecontinueonfailurebatchesresume1270188", "javapathupdateaclrecursivecontinueonfailurebatchesresume1385284", "javapathupdateaclrecursivecontinueonfailurebatchesresume1480384", "javapathupdateaclrecursivecontinueonfailurebatchesresume1545236" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerror.json new file mode 100644 index 0000000000000..d7aa83f7650b1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveerror.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveerror077610aae26308e7c549a?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e2f8751b-27e3-49e4-842e-b38d4adf73c9" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFE07CE36C", + "Last-Modified" : "Mon, 31 Aug 2020 20:53:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9d06dba1-501e-000b-76d8-7f0d4a000000", + "Date" : "Mon, 31 Aug 2020 20:53:13 GMT", + "x-ms-client-request-id" : "e2f8751b-27e3-49e4-842e-b38d4adf73c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerror077610aae26308e7c549a/javapathupdateaclrecursiveerror1725820f51cfbc0c744?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "92705961-9cc2-4854-a6c2-2150077c058a" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFE156E237", + "Last-Modified" : "Mon, 31 Aug 2020 20:53:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7c0af2ce-801f-0037-41d8-7f248d000000", + "Date" : "Mon, 31 Aug 2020 20:53:14 GMT", + "x-ms-client-request-id" : "92705961-9cc2-4854-a6c2-2150077c058a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerror077610aae26308e7c549a/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "bedc1028-943e-4289-afa8-0322cfb83c7e" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEFE07FA908", + "Last-Modified" : "Mon, 31 Aug 2020 20:53:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "7c0af2cf-801f-0037-42d8-7f248d000000", + "Date" : "Mon, 31 Aug 2020 20:53:14 GMT", + "x-ms-client-request-id" : "bedc1028-943e-4289-afa8-0322cfb83c7e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveerror077610aae26308e7c549a/javapathupdateaclrecursiveerror2279727c29533b05ea4?mode=modify&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "cc872207-883d-4838-a068-c599cca092b2" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "7c0af2d1-801f-0037-43d8-7f248d000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:7c0af2d1-801f-0037-43d8-7f248d000000\\nTime:2020-08-31T20:53:16.9056939Z\"}}", + "Date" : "Mon, 31 Aug 2020 20:53:16 GMT", + "x-ms-client-request-id" : "cc872207-883d-4838-a068-c599cca092b2", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursiveerror&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "347ea79c-926f-4fb5-bfca-d132266748fc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9d06de46-501e-000b-5ad8-7f0d4a000000", + "Body" : "jtfsupdateaclrecursiveerrorjtfsupdateaclrecursiveerror077610aae26308e7c549aMon, 31 Aug 2020 20:53:13 GMT\"0x8D84DEFE07CE36C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:53:17 GMT", + "x-ms-client-request-id" : "347ea79c-926f-4fb5-bfca-d132266748fc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveerror077610aae26308e7c549a?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0020e159-3ed7-4375-93e4-cd3826ffbb06" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9d06de6e-501e-000b-77d8-7f0d4a000000", + "Date" : "Mon, 31 Aug 2020 20:53:17 GMT", + "x-ms-client-request-id" : "0020e159-3ed7-4375-93e4-cd3826ffbb06" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursiveerror077610aae26308e7c549a", "javapathupdateaclrecursiveerror1725820f51cfbc0c744", "javapathupdateaclrecursiveerror2279727c29533b05ea4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveprogresswithfailure.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveprogresswithfailure.json new file mode 100644 index 0000000000000..9e8dc378006d0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestupdateaclrecursiveprogresswithfailure.json @@ -0,0 +1,277 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "61b2dc09-b7c6-4080-ba0c-fc7b3cf34ae6" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8B97DAA5", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c4d8e3d1-e01e-00ea-72d8-7fd10f000000", + "Date" : "Mon, 31 Aug 2020 20:50:50 GMT", + "x-ms-client-request-id" : "61b2dc09-b7c6-4080-ba0c-fc7b3cf34ae6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure126892cd4ee2?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "5081ef0e-93f6-458f-ad06-9a57337946b3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8C2AF74D", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fe2-f01f-004f-2cd8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:50 GMT", + "x-ms-client-request-id" : "5081ef0e-93f6-458f-ad06-9a57337946b3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a7e04d68-2a94-440c-8b49-70481bf9d030" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8BA343D5", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "e1f69fe3-f01f-004f-2dd8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:50 GMT", + "x-ms-client-request-id" : "a7e04d68-2a94-440c-8b49-70481bf9d030" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "0b5982a1-9870-4088-8abc-bf11ac125654" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8CE453A1", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fe5-f01f-004f-2ed8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:51 GMT", + "x-ms-client-request-id" : "0b5982a1-9870-4088-8abc-bf11ac125654" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure355632d36715?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e3721a98-bf0e-44ee-9b56-aece2e0bacc7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8CF63447", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fe6-f01f-004f-2fd8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:52 GMT", + "x-ms-client-request-id" : "e3721a98-bf0e-44ee-9b56-aece2e0bacc7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure355632d36715/javapathupdateaclrecursiveprogresswithfailure4117257a8ba3?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a2c6a0e9-69f8-4725-909e-fee1c34bff77" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8D0A3C00", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fe7-f01f-004f-30d8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:52 GMT", + "x-ms-client-request-id" : "a2c6a0e9-69f8-4725-909e-fee1c34bff77" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure355632d36715/javapathupdateaclrecursiveprogresswithfailure52123084001b?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "a491f988-d458-4183-86dc-4181a19d4ac7" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8D1FAD9C", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fe8-f01f-004f-31d8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:52 GMT", + "x-ms-client-request-id" : "a491f988-d458-4183-86dc-4181a19d4ac7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure6393831730d1?resource=directory", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "df586bb7-56ec-4afc-aacd-7501e45b9e30" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8D3131CE", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fe9-f01f-004f-32d8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:52 GMT", + "x-ms-client-request-id" : "df586bb7-56ec-4afc-aacd-7501e45b9e30" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure6393831730d1/javapathupdateaclrecursiveprogresswithfailure756663bd4501?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "c6924a30-c017-4d2e-af80-4f5f20ff2c42" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8D4374AF", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69fea-f01f-004f-33d8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:52 GMT", + "x-ms-client-request-id" : "c6924a30-c017-4d2e-af80-4f5f20ff2c42" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure6393831730d1/javapathupdateaclrecursiveprogresswithfailure8654391be4f9?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8aa9b030-0b7c-4b65-ad57-ad0e227f302b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84DEF8D58FD68", + "Last-Modified" : "Mon, 31 Aug 2020 20:50:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e1f69feb-f01f-004f-34d8-7f8775000000", + "Date" : "Mon, 31 Aug 2020 20:50:52 GMT", + "x-ms-client-request-id" : "8aa9b030-0b7c-4b65-ad57-ad0e227f302b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5/javapathupdateaclrecursiveprogresswithfailure261381d9f2a2?mode=modify&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4a8dff48-adbe-4853-bd65-ca51a09a2c35" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "379", + "StatusCode" : "200", + "x-ms-request-id" : "e1f69fec-f01f-004f-35d8-7f8775000000", + "Body" : "{\"directoriesSuccessful\":3,\"failedEntries\":[{\"errorMessage\":\"This request is not authorized to perform this operation using this permission.\",\"name\":\"javapathupdateaclrecursiveprogresswithfailure261381d9f2a2/javapathupdateaclrecursiveprogresswithfailure6393831730d1/javapathupdateaclrecursiveprogresswithfailure8654391be4f9\",\"type\":\"FILE\"}],\"failureCount\":1,\"filesSuccessful\":3}\n", + "Date" : "Mon, 31 Aug 2020 20:50:53 GMT", + "x-ms-client-request-id" : "4a8dff48-adbe-4853-bd65-ca51a09a2c35" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursiveprogresswithfailure&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "42d6ef0b-56dc-42bf-b31b-c4a9d018b6b4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "c4d8e4d0-e01e-00ea-2dd8-7fd10f000000", + "Body" : "jtfsupdateaclrecursiveprogresswithfailurejtfsupdateaclrecursiveprogresswithfailure05316022c853b5Mon, 31 Aug 2020 20:50:50 GMT\"0x8D84DEF8B97DAA5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 31 Aug 2020 20:50:53 GMT", + "x-ms-client-request-id" : "42d6ef0b-56dc-42bf-b31b-c4a9d018b6b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursiveprogresswithfailure05316022c853b5?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2a2f64a7-441c-4e02-9f66-71be113ec5d0" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "c4d8e4d8-e01e-00ea-34d8-7fd10f000000", + "Date" : "Mon, 31 Aug 2020 20:50:53 GMT", + "x-ms-client-request-id" : "2a2f64a7-441c-4e02-9f66-71be113ec5d0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursiveprogresswithfailure05316022c853b5", "javapathupdateaclrecursiveprogresswithfailure126892cd4ee2", "javapathupdateaclrecursiveprogresswithfailure261381d9f2a2", "javapathupdateaclrecursiveprogresswithfailure355632d36715", "javapathupdateaclrecursiveprogresswithfailure4117257a8ba3", "javapathupdateaclrecursiveprogresswithfailure52123084001b", "javapathupdateaclrecursiveprogresswithfailure6393831730d1", "javapathupdateaclrecursiveprogresswithfailure756663bd4501", "javapathupdateaclrecursiveprogresswithfailure8654391be4f9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestremoveaclrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestremoveaclrecursive.json new file mode 100644 index 0000000000000..92c95bf97c1b7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestremoveaclrecursive.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursive0fileapitestremoveaclrecursive759582177?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "15ebe46b-2516-4544-bae1-deb30e4d1b3b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84EA7E4617BD5", + "Last-Modified" : "Tue, 01 Sep 2020 18:50:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "4553c7c3-901e-00ad-1890-80ba54000000", + "Date" : "Tue, 01 Sep 2020 18:50:26 GMT", + "x-ms-client-request-id" : "15ebe46b-2516-4544-bae1-deb30e4d1b3b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0fileapitestremoveaclrecursive759582177/javapathremoveaclrecursive11996450f9175b47f44c6?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b490d57d-7ca1-42b4-bddd-f0ab4125ff0e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84EA7E4D76610", + "Last-Modified" : "Tue, 01 Sep 2020 18:50:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e2608685-b01f-00d8-4990-80d178000000", + "Date" : "Tue, 01 Sep 2020 18:50:26 GMT", + "x-ms-client-request-id" : "b490d57d-7ca1-42b4-bddd-f0ab4125ff0e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsremoveaclrecursive0fileapitestremoveaclrecursive759582177/javapathremoveaclrecursive11996450f9175b47f44c6?mode=remove&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "50964f95-9760-49eb-835a-24056bd7ff96" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "e2608686-b01f-00d8-4a90-80d178000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Tue, 01 Sep 2020 18:50:27 GMT", + "x-ms-client-request-id" : "50964f95-9760-49eb-835a-24056bd7ff96" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsremoveaclrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "1c5d29f6-2b31-4268-a484-89e9da27a121" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "4553c845-901e-00ad-7a90-80ba54000000", + "Body" : "jtfsremoveaclrecursivejtfsremoveaclrecursive0fileapitestremoveaclrecursive759582177Tue, 01 Sep 2020 18:50:27 GMT\"0x8D84EA7E4617BD5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Tue, 01 Sep 2020 18:50:27 GMT", + "x-ms-client-request-id" : "1c5d29f6-2b31-4268-a484-89e9da27a121", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsremoveaclrecursive0fileapitestremoveaclrecursive759582177?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f22e7849-f5e7-41ab-a358-eb856964613c" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "4553c870-901e-00ad-2390-80ba54000000", + "Date" : "Tue, 01 Sep 2020 18:50:28 GMT", + "x-ms-client-request-id" : "f22e7849-f5e7-41ab-a358-eb856964613c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsremoveaclrecursive0fileapitestremoveaclrecursive759582177", "javapathremoveaclrecursive11996450f9175b47f44c6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaclrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaclrecursive.json new file mode 100644 index 0000000000000..47a665551677e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaclrecursive.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursive0fileapitestsetaclrecursive93e335556eb2?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "2749e7e1-aaae-4e44-9bf0-32a01d1f56a3" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84EA7BA01403F", + "Last-Modified" : "Tue, 01 Sep 2020 18:49:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a1b35dd4-c01e-00a0-6490-807280000000", + "Date" : "Tue, 01 Sep 2020 18:49:15 GMT", + "x-ms-client-request-id" : "2749e7e1-aaae-4e44-9bf0-32a01d1f56a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursive0fileapitestsetaclrecursive93e335556eb2/javapathsetaclrecursive1fileapitestsetaclrecursive93e9623909?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "15b60966-fa3d-4571-8e95-29667aaea82b" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84EA7BA9B94AA", + "Last-Modified" : "Tue, 01 Sep 2020 18:49:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2f3d881a-601f-0000-5190-80f621000000", + "Date" : "Tue, 01 Sep 2020 18:49:16 GMT", + "x-ms-client-request-id" : "15b60966-fa3d-4571-8e95-29667aaea82b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfssetaclrecursive0fileapitestsetaclrecursive93e335556eb2/javapathsetaclrecursive1fileapitestsetaclrecursive93e9623909?mode=set&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ec1b72cb-e2aa-49fd-84b1-d035365fd489" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "2f3d881b-601f-0000-5290-80f621000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Tue, 01 Sep 2020 18:49:17 GMT", + "x-ms-client-request-id" : "ec1b72cb-e2aa-49fd-84b1-d035365fd489" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfssetaclrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ee89fef3-9966-4afe-8b0f-bc93af0223f6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a1b35f0f-c01e-00a0-6a90-807280000000", + "Body" : "jtfssetaclrecursivejtfssetaclrecursive0fileapitestsetaclrecursive93e335556eb2Tue, 01 Sep 2020 18:49:16 GMT\"0x8D84EA7BA01403F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Tue, 01 Sep 2020 18:49:17 GMT", + "x-ms-client-request-id" : "ee89fef3-9966-4afe-8b0f-bc93af0223f6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfssetaclrecursive0fileapitestsetaclrecursive93e335556eb2?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4f6e41f9-efd5-48e5-878d-2502a0b1734e" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "a1b35f19-c01e-00a0-7290-807280000000", + "Date" : "Tue, 01 Sep 2020 18:49:17 GMT", + "x-ms-client-request-id" : "4f6e41f9-efd5-48e5-878d-2502a0b1734e" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaclrecursive0fileapitestsetaclrecursive93e335556eb2", "javapathsetaclrecursive1fileapitestsetaclrecursive93e9623909" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestupdateaclrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestupdateaclrecursive.json new file mode 100644 index 0000000000000..427265854f208 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestupdateaclrecursive.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursive0fileapitestupdateaclrecursive4f5268962?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "df582735-5ae7-47e6-a6d9-88a60c3dc833" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84EA7CE0F365E", + "Last-Modified" : "Tue, 01 Sep 2020 18:49:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef266a5e-101e-009c-3890-805b47000000", + "Date" : "Tue, 01 Sep 2020 18:49:49 GMT", + "x-ms-client-request-id" : "df582735-5ae7-47e6-a6d9-88a60c3dc833" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive0fileapitestupdateaclrecursive4f5268962/javapathupdateaclrecursive16858488c2708dab6846b?resource=file", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "333b0656-e275-446f-a6e4-f033237ef225" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D84EA7CE7EC5D5", + "Last-Modified" : "Tue, 01 Sep 2020 18:49:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7e9f6c26-701f-008a-2590-80ad90000000", + "Date" : "Tue, 01 Sep 2020 18:49:49 GMT", + "x-ms-client-request-id" : "333b0656-e275-446f-a6e4-f033237ef225" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://REDACTED.dfs.core.windows.net/jtfsupdateaclrecursive0fileapitestupdateaclrecursive4f5268962/javapathupdateaclrecursive16858488c2708dab6846b?mode=modify&forceFlag=false&action=setAccessControlRecursive", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.3.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "92ca6d71-a19d-4588-859a-14387f215cf1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "84", + "StatusCode" : "200", + "x-ms-request-id" : "7e9f6c27-701f-008a-2690-80ad90000000", + "Body" : "{\"directoriesSuccessful\":0,\"failedEntries\":[],\"failureCount\":0,\"filesSuccessful\":1}\n", + "Date" : "Tue, 01 Sep 2020 18:49:49 GMT", + "x-ms-client-request-id" : "92ca6d71-a19d-4588-859a-14387f215cf1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtfsupdateaclrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "f522d618-d881-4635-9dfb-2dacfca23141" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef266ada-101e-009c-1a90-805b47000000", + "Body" : "jtfsupdateaclrecursivejtfsupdateaclrecursive0fileapitestupdateaclrecursive4f5268962Tue, 01 Sep 2020 18:49:49 GMT\"0x8D84EA7CE0F365E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Tue, 01 Sep 2020 18:49:50 GMT", + "x-ms-client-request-id" : "f522d618-d881-4635-9dfb-2dacfca23141", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtfsupdateaclrecursive0fileapitestupdateaclrecursive4f5268962?restype=container", + "Headers" : { + "x-ms-version" : "2020-02-10", + "User-Agent" : "azsdk-java-azure-storage-blob/12.9.0-beta.1 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b79d4cdd-0ecf-4cdc-9015-569153109c46" + }, + "Response" : { + "x-ms-version" : "2020-02-10", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef266ae9-101e-009c-2790-805b47000000", + "Date" : "Tue, 01 Sep 2020 18:49:50 GMT", + "x-ms-client-request-id" : "b79d4cdd-0ecf-4cdc-9015-569153109c46" + }, + "Exception" : null + } ], + "variables" : [ "jtfsupdateaclrecursive0fileapitestupdateaclrecursive4f5268962", "javapathupdateaclrecursive16858488c2708dab6846b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/swagger/README.md b/sdk/storage/azure-storage-file-datalake/swagger/README.md index 52b0a0ccfb572..e3d9732ac17cd 100644 --- a/sdk/storage/azure-storage-file-datalake/swagger/README.md +++ b/sdk/storage/azure-storage-file-datalake/swagger/README.md @@ -87,6 +87,21 @@ directive: } ``` +### Adds FileSystem and Path parameter to /{filesystem}/{path}?action=setAccessControlRecursive +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}?action=setAccessControlRecursive"].patch + transform: > + let param = $.parameters[0]; + if (!param["$ref"].endsWith("FileSystem")) { + const fileSystemPath = param["$ref"].replace(/[#].*$/, "#/parameters/FileSystem"); + const pathPath = param["$ref"].replace(/[#].*$/, "#/parameters/Path"); + $.parameters.splice(0, 0, { "$ref": fileSystemPath }); + $.parameters.splice(1, 0, { "$ref": pathPath }); + } +``` + ### Adds FileSystem and Path parameter to /{filesystem}/{path}?action=flush ``` yaml directive: