diff --git a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md index 6f8bb2bd153e7..b20dee63bb906 100644 --- a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md +++ b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md @@ -1,30 +1,17 @@ # Release History -## 12.10.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 12.10.0-beta.1 (2022-05-06) - -### Features Added -- Added support for 2021-06-08 service version. -- Added support for Customer Provided Keys. -- Added creationTime and expiryTime fields to `PathItem`. - ## 12.9.0 (2022-04-07) ### Bugs Fixed - Fixed a bug that would cause auth failures when trying to rename a path object while authenticating with a sas. + - Fixed a bug where `uploadFromFile(String, boolean)` used a different size to determine whether file existence should be checked before using chunked upload than the size used to triggered chunked upload. + ### Other Changes + #### Dependency Updates + - Upgraded `azure-core` from `1.26.0` to version `1.27.0`. - Upgraded `azure-core-http-netty` from `1.11.8` to version `1.11.9`. - Upgraded `azure-storage-blob` from `12.15.0` to version `12.16.0`. diff --git a/sdk/storage/azure-storage-file-datalake/pom.xml b/sdk/storage/azure-storage-file-datalake/pom.xml index 47a0339c20c0c..44c6d5125fcd1 100644 --- a/sdk/storage/azure-storage-file-datalake/pom.xml +++ b/sdk/storage/azure-storage-file-datalake/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-file-datalake - 12.10.0-beta.2 + 12.9.0 Microsoft Azure client library for File Storage Data Lake This module contains client library for Microsoft Azure File Storage Data Lake. @@ -77,17 +77,17 @@ com.azure azure-core - 1.28.0 + 1.27.0 com.azure azure-core-http-netty - 1.12.0 + 1.11.9 com.azure azure-storage-blob - 12.16.1 + 12.16.0 + 12.15.1 tests test-jar test @@ -111,19 +111,19 @@ com.azure azure-core-test - 1.8.0 + 1.7.10 test com.azure azure-identity - 1.5.1 + 1.5.0 test io.projectreactor reactor-test - 3.4.17 + 3.4.14 test @@ -141,25 +141,25 @@ org.apache.logging.log4j log4j-slf4j-impl - 2.17.2 + 2.17.1 test org.apache.logging.log4j log4j-api - 2.17.2 + 2.17.1 test org.apache.logging.log4j log4j-core - 2.17.2 + 2.17.1 test com.azure azure-core-http-okhttp - 1.9.0 + 1.8.0 test diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java index f2fe454313dfe..5e4a6cb40b870 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java @@ -8,7 +8,6 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.credential.AzureSasCredential; import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; @@ -27,14 +26,9 @@ import com.azure.storage.file.datalake.implementation.models.PathResourceType; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.TransformUtils; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; -import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.PathHttpHeaders; import com.azure.storage.file.datalake.models.PathItem; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import reactor.core.publisher.Mono; import java.time.Duration; @@ -83,9 +77,9 @@ public final class DataLakeDirectoryAsyncClient extends DataLakePathAsyncClient */ DataLakeDirectoryAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, String accountName, String fileSystemName, String directoryName, BlockBlobAsyncClient blockBlobAsyncClient, - AzureSasCredential sasToken, CpkInfo customerProvidedKey) { + AzureSasCredential sasToken) { super(pipeline, url, serviceVersion, accountName, fileSystemName, directoryName, PathResourceType.DIRECTORY, - blockBlobAsyncClient, sasToken, customerProvidedKey); + blockBlobAsyncClient, sasToken); } DataLakeDirectoryAsyncClient(DataLakePathAsyncClient dataLakePathAsyncClient) { @@ -93,7 +87,7 @@ public final class DataLakeDirectoryAsyncClient extends DataLakePathAsyncClient dataLakePathAsyncClient.getServiceVersion(), dataLakePathAsyncClient.getAccountName(), dataLakePathAsyncClient.getFileSystemName(), Utility.urlEncode(dataLakePathAsyncClient.pathName), PathResourceType.DIRECTORY, dataLakePathAsyncClient.getBlockBlobAsyncClient(), - dataLakePathAsyncClient.getSasToken(), dataLakePathAsyncClient.getCpkInfo()); + dataLakePathAsyncClient.getSasToken()); } /** @@ -123,26 +117,6 @@ public String getDirectoryName() { return getObjectName(); } - /** - * Creates a new {@link DataLakeDirectoryAsyncClient} with the specified {@code customerProvidedKey}. - * - * @param customerProvidedKey the {@link CustomerProvidedKey} for the directory, - * pass {@code null} to use no customer provided key. - * @return a {@link DataLakeDirectoryAsyncClient} with the specified {@code customerProvidedKey}. - */ - public DataLakeDirectoryAsyncClient getCustomerProvidedKeyAsyncClient(CustomerProvidedKey customerProvidedKey) { - CpkInfo finalCustomerProvidedKey = null; - if (customerProvidedKey != null) { - finalCustomerProvidedKey = new CpkInfo() - .setEncryptionKey(customerProvidedKey.getKey()) - .setEncryptionKeySha256(customerProvidedKey.getKeySha256()) - .setEncryptionAlgorithm(customerProvidedKey.getEncryptionAlgorithm()); - } - return new DataLakeDirectoryAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), - getAccountName(), getFileSystemName(), getObjectPath(), this.blockBlobAsyncClient, getSasToken(), - finalCustomerProvidedKey); - } - /** * Deletes a directory. * @@ -201,84 +175,6 @@ public Mono> deleteWithResponse(boolean recursive, DataLakeReques } } - /** - * Deletes a directory if it exists. - * - *

Code Samples

- * - * - *
-     * client.deleteIfExists().subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("Successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @return a reactive response signaling completion. {@code true} indicates that the directory was successfully - * deleted, {@code true} indicates that the directory did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteIfExists() { - return deleteIfExistsWithResponse(new DataLakePathDeleteOptions()) - .map(response -> response.getStatusCode() != 404); - } - - /** - * Deletes a directory if it exists. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * boolean recursive = false; // Default value
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteIfExistsWithResponse(options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathDeleteOptions} - * - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the directory was - * successfully deleted. If status code is 404, the directory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteIfExistsWithResponse(DataLakePathDeleteOptions options) { - try { - options = options == null ? new DataLakePathDeleteOptions() : options; - return deleteWithResponse(options.getIsRecursive(), options.getRequestConditions()).onErrorResume(t -> t - instanceof DataLakeStorageException && ((DataLakeStorageException) t).getStatusCode() == 404, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), null)); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Creates a new DataLakeFileAsyncClient object by concatenating fileName to the end of * DataLakeDirectoryAsyncClient's URL. The new DataLakeFileAsyncClient uses the same request policy pipeline as the @@ -305,7 +201,7 @@ public DataLakeFileAsyncClient getFileAsyncClient(String fileName) { return new DataLakeFileAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), getAccountName(), getFileSystemName(), Utility.urlEncode(pathPrefix - + Utility.urlDecode(fileName)), blockBlobAsyncClient, this.getSasToken(), getCpkInfo()); + + Utility.urlDecode(fileName)), blockBlobAsyncClient, this.getSasToken()); } /** @@ -406,75 +302,6 @@ public Mono> createFileWithResponse(String fil .map(response -> new SimpleResponse<>(response, dataLakeFileAsyncClient)); } - /** - * Creates a new file within a directory if it does not exist. By default this method will not overwrite an existing - * file. For more information, see the - * Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeFileAsyncClient fileClient = client.createFileIfNotExists(fileName).block();
-     * 
- * - * - * @param fileName Name of the file to create. - * @return A {@link Mono} containing a {@link DataLakeFileAsyncClient} used to interact with the file created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createFileIfNotExists(String fileName) { - return createFileIfNotExistsWithResponse(fileName, new DataLakePathCreateOptions()).flatMap(FluxUtil::toMono); - } - - /** - * Creates a new file within a directory if it does not exist. For more information, see the - * Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * client.createFileIfNotExistsWithResponse(fileName, options).subscribe(response -> {
-     *     if (response.getStatusCode() == 409) {
-     *         System.out.println("Already exists.");
-     *     } else {
-     *         System.out.println("successfully created.");
-     *     }
-     * });
-     * 
- * - * - * @param fileName Name of the file to create. - * @param options {@link DataLakePathCreateOptions} - * metadata key or value, it must be removed or encoded. - * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a - * {@link DataLakeFileAsyncClient} used to interact with the file created. If {@link Response}'s status code is 201, - * a new file was successfully created. If status code is 409, a file with the same name already existed - * at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createFileIfNotExistsWithResponse(String fileName, - DataLakePathCreateOptions options) { - DataLakeFileAsyncClient dataLakeFileAsyncClient = getFileAsyncClient(fileName); - try { - return dataLakeFileAsyncClient.createIfNotExistsWithResponse(options) - .map(response -> new SimpleResponse<>(response, dataLakeFileAsyncClient)); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Deletes the specified file in the file system. If the file doesn't exist the operation fails. * For more information see the Azure @@ -530,82 +357,6 @@ public Mono> deleteFileWithResponse(String fileName, DataLakeRequ return dataLakeFileAsyncClient.deleteWithResponse(requestConditions); } - /** - * Deletes the specified file in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * client.deleteFileIfExists(fileName).subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - * @param fileName Name of the file to delete. - * @return a reactive response signaling completion. {@code true} indicates that the specified file was successfully - * deleted, {@code false} indicates that the specified file did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteFileIfExists(String fileName) { - return deleteFileIfExistsWithResponse(fileName, new DataLakePathDeleteOptions()) - .map(response -> response.getStatusCode() != 404); - } - - /** - * Deletes the specified file in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteFileIfExistsWithResponse(fileName, options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - * @param fileName Name of the file to delete. - * @param options {@link DataLakePathDeleteOptions} - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the specified file was - * successfully deleted. If status code is 404, the specified file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteFileIfExistsWithResponse(String fileName, DataLakePathDeleteOptions options) { - try { - return withContext(context -> this.deleteFileIfExistsWithResponse(fileName, options, context)); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - - Mono> deleteFileIfExistsWithResponse(String fileName, DataLakePathDeleteOptions options, - Context context) { - try { - return getFileAsyncClient(fileName).deleteIfExistsWithResponse(options, context); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Creates a new DataLakeDirectoryAsyncClient object by concatenating subdirectoryName to the end of * DataLakeDirectoryAsyncClient's URL. The new DataLakeDirectoryAsyncClient uses the same request policy pipeline @@ -634,7 +385,7 @@ public DataLakeDirectoryAsyncClient getSubdirectoryAsyncClient(String subdirecto return new DataLakeDirectoryAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), getAccountName(), getFileSystemName(), Utility.urlEncode(pathPrefix + Utility.urlDecode(subdirectoryName)), blockBlobAsyncClient, - this.getSasToken(), getCpkInfo()); + this.getSasToken()); } /** @@ -737,82 +488,6 @@ public Mono> createSubdirectoryWithRespon .map(response -> new SimpleResponse<>(response, dataLakeDirectoryAsyncClient)); } - /** - * Creates a new subdirectory within a directory if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeDirectoryAsyncClient subdirectoryClient = client.createSubdirectoryIfNotExists(directoryName).block();
-     * 
- * - * - * @param subdirectoryName Name of the sub-directory to create. - * @return A {@link Mono} containing a {@link DataLakeDirectoryAsyncClient} used to interact with the subdirectory - * created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createSubdirectoryIfNotExists(String subdirectoryName) { - return createSubdirectoryIfNotExistsWithResponse(subdirectoryName, new DataLakePathCreateOptions()) - .flatMap(FluxUtil::toMono); - } - - /** - * Creates a new sub-directory within a directory if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * client.createSubdirectoryIfNotExistsWithResponse(directoryName, options).subscribe(response -> {
-     *     if (response.getStatusCode() == 409) {
-     *         System.out.println("Already exists.");
-     *     } else {
-     *         System.out.println("successfully created.");
-     *     }
-     * });
-     * 
- * - * - * @param subdirectoryName Name of the subdirectory to create. - * @param options {@link DataLakePathCreateOptions} - * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a - * {@link DataLakeDirectoryAsyncClient} used to interact with the subdirectory created. If {@link Response}'s status - * code is 201, a new subdirectory was successfully created. If status code is 409, a subdirectory with the same - * name already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createSubdirectoryIfNotExistsWithResponse( - String subdirectoryName, DataLakePathCreateOptions options) { - options = options == null ? new DataLakePathCreateOptions() : options; - options.setRequestConditions(new DataLakeRequestConditions() - .setIfNoneMatch(Constants.HeaderConstants.ETAG_WILDCARD)); - try { - return createSubdirectoryWithResponse(subdirectoryName, options.getPermissions(), options.getUmask(), - options.getPathHttpHeaders(), options.getMetadata(), options.getRequestConditions()) - .onErrorResume(t -> t instanceof DataLakeStorageException && ((DataLakeStorageException) t) - .getStatusCode() == 409, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), getSubdirectoryAsyncClient(subdirectoryName))); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Deletes the specified sub-directory in the directory. If the sub-directory doesn't exist or is not empty the * operation fails. @@ -873,84 +548,6 @@ public Mono> deleteSubdirectoryWithResponse(String directoryName, return dataLakeDirectoryAsyncClient.deleteWithResponse(recursive, requestConditions); } - /** - * Deletes the specified subdirectory in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * client.deleteSubdirectoryIfExists(directoryName).subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("Successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - * @param subdirectoryName Name of the subdirectory to delete. - * @return A reactive response signaling completion. {@code true} indicates that the subdirectory was deleted. - * {@code false} indicates the specified subdirectory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteSubdirectoryIfExists(String subdirectoryName) { - return deleteSubdirectoryIfExistsWithResponse(subdirectoryName, new DataLakePathDeleteOptions()) - .map(response -> response.getStatusCode() != 404); - } - - /** - * Deletes the specified subdirectory in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * boolean recursive = false; // Default value
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteSubdirectoryIfExistsWithResponse(directoryName, options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - * @param directoryName Name of the subdirectory to delete. - * @param options {@link DataLakePathDeleteOptions} - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the specified subdirectory - * was successfully deleted. If status code is 404, the specified subdirectory does not exist. - * - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteSubdirectoryIfExistsWithResponse(String directoryName, - DataLakePathDeleteOptions options) { - try { - return deleteSubdirectoryWithResponse(directoryName, options.getIsRecursive(), - options.getRequestConditions()) - .onErrorResume(t -> t instanceof DataLakeStorageException - && ((DataLakeStorageException) t).getStatusCode() == 404, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), null)); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Moves the directory to another location within the file system. * For more information see the diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java index 4e86040cd978b..1017e02d99009 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java @@ -14,13 +14,10 @@ import com.azure.storage.blob.specialized.SpecializedBlobClientBuilder; import com.azure.storage.common.implementation.Constants; import com.azure.storage.common.implementation.StorageImplUtils; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathHttpHeaders; import com.azure.storage.file.datalake.models.PathInfo; import com.azure.storage.file.datalake.models.PathItem; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import reactor.core.publisher.Mono; import java.time.Duration; @@ -85,19 +82,6 @@ public String getDirectoryName() { return getObjectName(); } - /** - * Creates a new {@link DataLakeDirectoryClient} with the specified {@code customerProvidedKey}. - * - * @param customerProvidedKey the {@link CustomerProvidedKey} for the directory, - * pass {@code null} to use no customer provided key. - * @return a {@link DataLakeDirectoryClient} with the specified {@code customerProvidedKey}. - */ - public DataLakeDirectoryClient getCustomerProvidedKeyClient(CustomerProvidedKey customerProvidedKey) { - return new DataLakeDirectoryClient( - dataLakeDirectoryAsyncClient.getCustomerProvidedKeyAsyncClient(customerProvidedKey), - blockBlobClient.getCustomerProvidedKeyClient(Transforms.toBlobCustomerProvidedKey(customerProvidedKey))); - } - /** * Deletes a directory. * @@ -156,69 +140,6 @@ public Response deleteWithResponse(boolean recursive, DataLakeRequestCondi return StorageImplUtils.blockWithOptionalTimeout(response, timeout); } - /** - * Deletes a directory if it exists. - * - *

Code Samples

- * - * - *
-     * boolean result = client.deleteIfExists();
-     * System.out.println("Delete request completed: " + result);
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * @return {@code true} if directory is successfully deleted, {@code false} if directory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteIfExists() { - Response response = deleteIfExistsWithResponse(new DataLakePathDeleteOptions(), null, Context.NONE); - return response.getStatusCode() == 200; - } - - /** - * Deletes a directory if it exists. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * boolean recursive = false; // Default value
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteIfExistsWithResponse(options, timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the directory - * was successfully deleted. If status code is 404, the directory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteIfExistsWithResponse(DataLakePathDeleteOptions options, Duration timeout, - Context context) { - return StorageImplUtils.blockWithOptionalTimeout(dataLakePathAsyncClient.deleteIfExistsWithResponse(options, - context), timeout); - } - /** * Initializes a new DataLakeFileClient object by concatenating fileName to the end of DataLakeDirectoryClient's * URL. The new DataLakeFileClient uses the same request policy pipeline as the DataLakeDirectoryClient. @@ -335,70 +256,6 @@ public Response createFileWithResponse(String fileName, Stri return new SimpleResponse<>(response, dataLakeFileClient); } - /** - * Creates a new file within a directory if it does not exist. - * For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeFileClient fileClient = client.createFileIfNotExists(fileName);
-     * 
- * - * - * @param fileName Name of the file to create. - * @return A {@link DataLakeFileClient} used to interact with the file created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataLakeFileClient createFileIfNotExists(String fileName) { - return createFileIfNotExistsWithResponse(fileName, new DataLakePathCreateOptions(), null, null).getValue(); - } - - /** - * Creates a new file within a directory if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders().setContentLanguage("en-US").setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * Response<DataLakeFileClient> response = client.createFileIfNotExistsWithResponse(fileName, options, timeout,
-     *     new Context(key1, value1));
-     * if (response.getStatusCode() == 409) {
-     *     System.out.println("Already existed.");
-     * } else {
-     *     System.out.printf("Create completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param fileName Name of the file to create. - * @param options {@link DataLakePathCreateOptions} - * metadata key or value, it must be removed or encoded. - * @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 {@link Response} whose {@link Response#getValue() value} contains the {@link DataLakeFileAsyncClient} - * used to interact with the file created. If {@link Response}'s status code is 201, a new file was successfully - * created. If status code is 409, a file with the same name already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createFileIfNotExistsWithResponse(String fileName, DataLakePathCreateOptions - options, Duration timeout, Context context) { - DataLakeFileClient dataLakeFileClient = getFileClient(fileName); - Response response = StorageImplUtils.blockWithOptionalTimeout( - dataLakeFileClient.dataLakePathAsyncClient.createIfNotExistsWithResponse(options, context), timeout); - return new SimpleResponse<>(response, dataLakeFileClient); - } - /** * Deletes the specified file in the directory. If the file doesn't exist the operation fails. * For more information see the Azure @@ -449,68 +306,6 @@ public Response deleteFileWithResponse(String fileName, DataLakeRequestCon return getFileClient(fileName).deleteWithResponse(requestConditions, timeout, context); } - /** - * Deletes the specified file in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * boolean result = client.deleteFileIfExists(fileName);
-     * System.out.println("Delete request completed: " + result);
-     * 
- * - * - * @param fileName Name of the file to delete. - * @return {@code true} if the file is successfully deleted, {@code false} if the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteFileIfExists(String fileName) { - Response response = deleteFileIfExistsWithResponse(fileName, new DataLakePathDeleteOptions() - .setRequestConditions(new DataLakeRequestConditions()), null, Context.NONE); - return response.getStatusCode() == 200; - } - - /** - * Deletes the specified file in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteFileIfExistsWithResponse(fileName, options, timeout,
-     *     new Context(key1, value1));
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param fileName Name of the file to delete. - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the specified - * file was successfully deleted. If status code is 404, the specified file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteFileIfExistsWithResponse(String fileName, DataLakePathDeleteOptions options, - Duration timeout, Context context) { - return StorageImplUtils.blockWithOptionalTimeout(dataLakeDirectoryAsyncClient - .deleteFileIfExistsWithResponse(fileName, options, context), timeout); - } - /** * Initializes a new DataLakeDirectoryClient object by concatenating directoryName to the end of * DataLakeDirectoryClient's URL. The new DataLakeDirectoryClient uses the same request policy pipeline as the @@ -630,70 +425,6 @@ public Response createSubdirectoryWithResponse(String s return new SimpleResponse<>(response, dataLakeDirectoryClient); } - /** - * Creates a new sub-directory if it does not exist within a directory. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeDirectoryClient directoryClient = client.createSubdirectoryIfNotExists(directoryName);
-     * 
- * - * - * @param subdirectoryName Name of the subdirectory to create. - * @return A {@link DataLakeDirectoryClient} used to interact with the subdirectory created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataLakeDirectoryClient createSubdirectoryIfNotExists(String subdirectoryName) { - return createSubdirectoryIfNotExistsWithResponse(subdirectoryName, new DataLakePathCreateOptions(), null, null) - .getValue(); - } - - /** - * Creates a new sub-directory within a directory if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * Response<DataLakeDirectoryClient> response = client.createSubdirectoryIfNotExistsWithResponse(directoryName,
-     *     options, timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 409) {
-     *     System.out.println("Already existed.");
-     * } else {
-     *     System.out.printf("Create completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param subdirectoryName Name of the sub-directory to create. - * @param options {@link DataLakePathCreateOptions} - * @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 {@link Response} whose {@link Response#getValue() value} contains the {@link DataLakeDirectoryClient} - * used to interact with the subdirectory created. If {@link Response}'s status code is 201, a new subdirectory was - * successfully created. If status code is 409, a subdirectory with the same name already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createSubdirectoryIfNotExistsWithResponse(String subdirectoryName, - DataLakePathCreateOptions options, Duration timeout, Context context) { - DataLakeDirectoryClient dataLakeDirectoryClient = getSubdirectoryClient(subdirectoryName); - Response response = dataLakeDirectoryClient.createIfNotExistsWithResponse(options, timeout, context); - return new SimpleResponse<>(response, dataLakeDirectoryClient); - } - /** * Deletes the specified sub-directory in the directory. If the sub-directory doesn't exist or is not empty the * operation fails. @@ -750,71 +481,6 @@ public Response deleteSubdirectoryWithResponse(String subdirectoryName, bo return dataLakeDirectoryClient.deleteWithResponse(recursive, requestConditions, timeout, context); } - /** - * Deletes the specified sub-directory in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * boolean result = client.deleteSubdirectoryIfExists(directoryName);
-     * System.out.println("Delete request completed: " + result);
-     * 
- * - * - * @param subdirectoryName Name of the subdirectory to delete. - * @return {@code true} if subdirectory is successfully deleted, {@code false} if subdirectory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteSubdirectoryIfExists(String subdirectoryName) { - Response res = deleteSubdirectoryIfExistsWithResponse(subdirectoryName, new DataLakePathDeleteOptions() - .setIsRecursive(false).setRequestConditions(new DataLakeRequestConditions()), null, Context.NONE); - return res.getStatusCode() == 200; - } - - /** - * Deletes the specified subdirectory in the directory if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * boolean recursive = false; // Default value
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteSubdirectoryIfExistsWithResponse(directoryName, options,
-     *     timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param subdirectoryName Name of the sub-directory to delete. - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the specified - * subdirectory was successfully deleted. If status code is 404, the specified subdirectory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteSubdirectoryIfExistsWithResponse(String subdirectoryName, - DataLakePathDeleteOptions options, Duration timeout, Context context) { - DataLakeDirectoryAsyncClient dataLakeDirectoryClient = dataLakeDirectoryAsyncClient - .getSubdirectoryAsyncClient(subdirectoryName); - return StorageImplUtils.blockWithOptionalTimeout(dataLakeDirectoryClient.deleteIfExistsWithResponse(options, - context), timeout); - } - /** * Moves the directory to another location within the file system. * For more information see the diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java index 53c2308f60367..3b47386d44b77 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java @@ -8,7 +8,6 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.credential.AzureSasCredential; import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; @@ -33,11 +32,7 @@ import com.azure.storage.file.datalake.implementation.models.PathResourceType; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.ModelHelper; - -import com.azure.storage.file.datalake.implementation.models.CpkInfo; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; -import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.DownloadRetryOptions; import com.azure.storage.file.datalake.models.FileExpirationOffset; import com.azure.storage.file.datalake.models.FileQueryAsyncResponse; @@ -46,7 +41,6 @@ import com.azure.storage.file.datalake.models.PathHttpHeaders; import com.azure.storage.file.datalake.models.PathInfo; import com.azure.storage.file.datalake.models.PathProperties; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.FileParallelUploadOptions; import com.azure.storage.file.datalake.options.FileQueryOptions; import com.azure.storage.file.datalake.options.FileScheduleDeletionOptions; @@ -118,17 +112,16 @@ public class DataLakeFileAsyncClient extends DataLakePathAsyncClient { */ DataLakeFileAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, String accountName, String fileSystemName, String fileName, BlockBlobAsyncClient blockBlobAsyncClient, - AzureSasCredential sasToken, CpkInfo customerProvidedKey) { + AzureSasCredential sasToken) { super(pipeline, url, serviceVersion, accountName, fileSystemName, fileName, PathResourceType.FILE, - blockBlobAsyncClient, sasToken, customerProvidedKey); + blockBlobAsyncClient, sasToken); } DataLakeFileAsyncClient(DataLakePathAsyncClient pathAsyncClient) { super(pathAsyncClient.getHttpPipeline(), pathAsyncClient.getAccountUrl(), pathAsyncClient.getServiceVersion(), pathAsyncClient.getAccountName(), pathAsyncClient.getFileSystemName(), Utility.urlEncode(pathAsyncClient.pathName), PathResourceType.FILE, - pathAsyncClient.getBlockBlobAsyncClient(), pathAsyncClient.getSasToken(), - pathAsyncClient.getCpkInfo()); + pathAsyncClient.getBlockBlobAsyncClient(), pathAsyncClient.getSasToken()); } /** @@ -158,25 +151,6 @@ public String getFileName() { return getObjectName(); } - /** - * Creates a new {@link DataLakeFileAsyncClient} with the specified {@code customerProvidedKey}. - * - * @param customerProvidedKey the {@link CustomerProvidedKey} for the file, - * pass {@code null} to use no customer provided key. - * @return a {@link DataLakeFileAsyncClient} with the specified {@code customerProvidedKey}. - */ - public DataLakeFileAsyncClient getCustomerProvidedKeyAsyncClient(CustomerProvidedKey customerProvidedKey) { - CpkInfo finalCustomerProvidedKey = null; - if (customerProvidedKey != null) { - finalCustomerProvidedKey = new CpkInfo() - .setEncryptionKey(customerProvidedKey.getKey()) - .setEncryptionKeySha256(customerProvidedKey.getKeySha256()) - .setEncryptionAlgorithm(customerProvidedKey.getEncryptionAlgorithm()); - } - return new DataLakeFileAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), getAccountName(), - getFileSystemName(), getObjectPath(), this.blockBlobAsyncClient, getSasToken(), finalCustomerProvidedKey); - } - /** * Deletes a file. * @@ -231,82 +205,7 @@ public Mono> deleteWithResponse(DataLakeRequestConditions request } catch (RuntimeException ex) { return monoError(LOGGER, ex); } - } - /** - * Deletes a file if it exists. - * - *

Code Samples

- * - * - *
-     * client.deleteIfExists().subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("Successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @return a reactive response signaling completion. {@code true} indicates that the file was successfully - * deleted, {@code false} indicates that the file did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteIfExists() { - return deleteIfExistsWithResponse(new DataLakePathDeleteOptions()).map(response -> response.getStatusCode() != 404); - } - - /** - * Deletes a file if it exists. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteIfExistsWithResponse(options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathDeleteOptions} - * - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the file was - * successfully deleted. If status code is 404, the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteIfExistsWithResponse(DataLakePathDeleteOptions options) { - try { - options = options == null ? new DataLakePathDeleteOptions() : options; - return deleteWithResponse(options.getRequestConditions()).onErrorResume(t -> t - instanceof DataLakeStorageException && ((DataLakeStorageException) t).getStatusCode() == 404, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), null)); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } } /** @@ -883,8 +782,7 @@ Mono> appendWithResponse(Flux data, long fileOffset, PathHttpHeaders headers = new PathHttpHeaders().setTransactionalContentHash(contentMd5); return this.dataLakeStorage.getPaths().appendDataWithResponseAsync(data, fileOffset, null, length, null, null, - headers, leaseAccessConditions, getCpkInfo(), context) - .map(response -> new SimpleResponse<>(response, null)); + headers, leaseAccessConditions, context).map(response -> new SimpleResponse<>(response, null)); } /** @@ -1009,12 +907,10 @@ Mono> flushWithResponse(long position, boolean retainUncommit context = context == null ? Context.NONE : context; return this.dataLakeStorage.getPaths().flushDataWithResponseAsync(null, position, retainUncommittedData, close, - (long) 0, null, httpHeaders, lac, mac, getCpkInfo(), + (long) 0, null, httpHeaders, lac, mac, context.addData(AZ_TRACING_NAMESPACE_KEY, STORAGE_TRACING_NAMESPACE_VALUE)) .map(response -> new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), - response.getDeserializedHeaders().getLastModified(), - response.getDeserializedHeaders().isXMsRequestServerEncrypted() != null, - response.getDeserializedHeaders().getXMsEncryptionKeySha256()))); + response.getDeserializedHeaders().getLastModified()))); } /** diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java index 345640428ac24..ded423ec2210f 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java @@ -30,14 +30,12 @@ import com.azure.storage.file.datalake.implementation.models.InternalDataLakeFileOpenInputStreamResult; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.ModelHelper; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.DownloadRetryOptions; import com.azure.storage.file.datalake.models.DataLakeFileOpenInputStreamResult; import com.azure.storage.file.datalake.models.FileQueryAsyncResponse; import com.azure.storage.file.datalake.options.DataLakeFileInputStreamOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.FileParallelUploadOptions; import com.azure.storage.file.datalake.options.FileQueryOptions; import com.azure.storage.file.datalake.models.FileQueryResponse; @@ -129,18 +127,6 @@ public String getFileName() { return getObjectName(); } - /** - * Creates a new {@link DataLakeFileClient} with the specified {@code customerProvidedKey}. - * - * @param customerProvidedKey the {@link CustomerProvidedKey} for the blob, - * pass {@code null} to use no customer provided key. - * @return a {@link DataLakeFileClient} with the specified {@code customerProvidedKey}. - */ - public DataLakeFileClient getCustomerProvidedKeyClient(CustomerProvidedKey customerProvidedKey) { - return new DataLakeFileClient(dataLakeFileAsyncClient.getCustomerProvidedKeyAsyncClient(customerProvidedKey), - blockBlobClient.getCustomerProvidedKeyClient(Transforms.toBlobCustomerProvidedKey(customerProvidedKey))); - } - /** * Deletes a file. * @@ -196,69 +182,6 @@ public Response deleteWithResponse(DataLakeRequestConditions requestCondit return StorageImplUtils.blockWithOptionalTimeout(response, timeout); } - /** - * Deletes a file if it exists. - * - *

Code Samples

- * - * - *
-     * client.deleteIfExists();
-     * System.out.println("Delete request completed");
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * @return {@code true} if file is successfully deleted, {@code false} if the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteIfExists() { - Response response = deleteIfExistsWithResponse(new DataLakePathDeleteOptions(), null, Context.NONE); - return response.getStatusCode() == 200; - } - - /** - * Deletes a file if it exists. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteIfExistsWithResponse(options, timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the file - * was successfully deleted. If status code is 404, the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteIfExistsWithResponse(DataLakePathDeleteOptions options, Duration timeout, - Context context) { - return StorageImplUtils.blockWithOptionalTimeout(dataLakeFileAsyncClient - .deleteIfExistsWithResponse(options, context), timeout); - } - - /** * Creates a new file. By default, this method will not overwrite an existing file. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java index d823828b4b592..df5b185b10bce 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java @@ -8,7 +8,6 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.credential.AzureSasCredential; import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; @@ -18,7 +17,6 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.storage.blob.BlobContainerAsyncClient; -import com.azure.storage.blob.options.BlobContainerCreateOptions; import com.azure.storage.blob.specialized.BlockBlobAsyncClient; import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.Utility; @@ -35,7 +33,6 @@ import com.azure.storage.file.datalake.implementation.util.DataLakeSasImplUtil; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeSignedIdentifier; -import com.azure.storage.file.datalake.models.DataLakeStorageException; import com.azure.storage.file.datalake.models.FileSystemAccessPolicies; import com.azure.storage.file.datalake.models.FileSystemProperties; import com.azure.storage.file.datalake.models.ListPathsOptions; @@ -44,8 +41,6 @@ import com.azure.storage.file.datalake.models.PathItem; import com.azure.storage.file.datalake.models.PublicAccessType; import com.azure.storage.file.datalake.models.UserDelegationKey; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import reactor.core.publisher.Mono; @@ -168,8 +163,7 @@ public DataLakeFileAsyncClient getFileAsyncClient(String fileName) { null).getBlockBlobAsyncClient(); return new DataLakeFileAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), getAccountName(), - getFileSystemName(), fileName, blockBlobAsyncClient, sasToken, - Transforms.fromBlobCpkInfo(blobContainerAsyncClient.getCustomerProvidedKey())); + getFileSystemName(), fileName, blockBlobAsyncClient, sasToken); } /** @@ -196,8 +190,7 @@ public DataLakeDirectoryAsyncClient getDirectoryAsyncClient(String directoryName BlockBlobAsyncClient blockBlobAsyncClient = blobContainerAsyncClient.getBlobAsyncClient(directoryName, null).getBlockBlobAsyncClient(); return new DataLakeDirectoryAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), - getAccountName(), getFileSystemName(), directoryName, blockBlobAsyncClient, sasToken, - Transforms.fromBlobCpkInfo(blobContainerAsyncClient.getCustomerProvidedKey())); + getAccountName(), getFileSystemName(), directoryName, blockBlobAsyncClient, sasToken); } /** @@ -332,72 +325,6 @@ public Mono> createWithResponse(Map metadata, Pub .onErrorMap(DataLakeImplUtils::transformBlobStorageException); } - /** - * Creates a new file system within a storage account if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * client.createIfNotExists().subscribe(created -> {
-     *     if (created) {
-     *         System.out.println("Successfully created.");
-     *     } else {
-     *         System.out.println("Already exists.");
-     *     }
-     * });
-     * 
- * - * - * @return A reactive response signalling completion. {@code true} indicates that a new file system was created. - * {@code false} indicates that a file system already existed at this location. - * - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createIfNotExists() { - return createIfNotExistsWithResponse(null, null).map(response -> response.getStatusCode() != 409); - } - - /** - * Creates a new file system within a storage account if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * Map<String, String> metadata = Collections.singletonMap("metadata", "value");
-     * client.createIfNotExistsWithResponse(metadata, PublicAccessType.CONTAINER).subscribe(response -> {
-     *     if (response.getStatusCode() == 409) {
-     *         System.out.println("Already exists.");
-     *     } else {
-     *         System.out.println("successfully created.");
-     *     }
-     * });
-     * 
- * - * - * @param metadata Metadata to associate with the file system. If there is leading or trailing whitespace in any - * metadata key or value, it must be removed or encoded. - * @param accessType Specifies how the data in this file system is available to the public. See the - * x-ms-blob-public-access header in the Azure Docs for more information. Pass null for no public access. - * @return A reactive response signaling completion. If {@link Response}'s status code is 201, a new file system was - * successfully created. If status code is 409, a file system already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createIfNotExistsWithResponse(Map metadata, - PublicAccessType accessType) { - try { - BlobContainerCreateOptions options = new BlobContainerCreateOptions().setMetadata(metadata) - .setPublicAccessType(Transforms.toBlobPublicAccessType(accessType)); - return blobContainerAsyncClient.createIfNotExistsWithResponse(options) - .onErrorMap(DataLakeImplUtils::transformBlobStorageException); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Marks the specified file system for deletion. The file system and any files/directories contained within it are * later deleted during garbage collection. For more information, see the @@ -449,76 +376,6 @@ public Mono> deleteWithResponse(DataLakeRequestConditions request .onErrorMap(DataLakeImplUtils::transformBlobStorageException); } - /** - * Marks the specified file system for deletion if it exists. The file system and any files/directories contained within it are - * later deleted during garbage collection. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * client.deleteIfExists().subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("Successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - * @return a reactive response signaling completion. {@code true} indicates that the file system was successfully - * deleted, {@code false} indicates that the file system did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteIfExists() { - return deleteIfExistsWithResponse(new DataLakePathDeleteOptions()).map(response -> response.getStatusCode() != 404); - } - - /** - * Marks the specified file system for deletion if it exists. The file system and any files/directories contained within it are - * later deleted during garbage collection. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId)
-     *     .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3));
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteIfExistsWithResponse(options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - * @param options {@link DataLakePathDeleteOptions} - * @return A reactive response signaling completion. If {@link Response}'s status code is 202, the file system was - * successfully deleted. If status code is 404, the file system does not exist. - * @throws UnsupportedOperationException If either {@link DataLakeRequestConditions#getIfMatch()} or - * {@link DataLakeRequestConditions#getIfNoneMatch()} is set. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteIfExistsWithResponse(DataLakePathDeleteOptions options) { - try { - options = options == null ? new DataLakePathDeleteOptions() : options; - return blobContainerAsyncClient.deleteIfExistsWithResponse( - Transforms.toBlobRequestConditions(options.getRequestConditions())) - .onErrorMap(DataLakeImplUtils::transformBlobStorageException); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Returns the file system's metadata and system properties. For more information, see the * Azure Docs. @@ -912,82 +769,6 @@ public Mono> createFileWithResponse(String fil .map(response -> new SimpleResponse<>(response, dataLakeFileAsyncClient)); } - /** - * Creates a new file within a file system if it does not exist. For more - * information, see the Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeFileAsyncClient fileAsyncClient = client.createFileIfNotExists(fileName).block();
-     * 
- * - * - * @param fileName Name of the file to create. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @return A {@link Mono} containing a {@link DataLakeFileAsyncClient} used to interact with the file created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createFileIfNotExists(String fileName) { - return createFileIfNotExistsWithResponse(fileName, new DataLakePathCreateOptions()).flatMap(FluxUtil::toMono); - } - - /** - * Creates a new file within a file system if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * client.createFileIfNotExistsWithResponse(fileName, options).subscribe(response -> {
-     *     if (response.getStatusCode() == 409) {
-     *         System.out.println("Already exists.");
-     *     } else {
-     *         System.out.println("successfully created.");
-     *     }
-     * });
-     * 
- * - * - * @param fileName Name of the file to create. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @param options {@link DataLakePathCreateOptions} - * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a - * {@link DataLakeFileAsyncClient} used to interact with the file created. If {@link Response}'s status code is 201, - * a new file was successfully created. If status code is 409, a file with the same name already existed - * at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createFileIfNotExistsWithResponse(String fileName, - DataLakePathCreateOptions options) { - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setIfNoneMatch(Constants.HeaderConstants.ETAG_WILDCARD); - options = options == null ? new DataLakePathCreateOptions() : options; - try { - return createFileWithResponse(fileName, options.getPermissions(), options.getUmask(), - options.getPathHttpHeaders(), options.getMetadata(), requestConditions) - .onErrorResume(t -> t instanceof DataLakeStorageException && ((DataLakeStorageException) t) - .getStatusCode() == 409, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), getFileAsyncClient(fileName))); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Deletes the specified file in the file system. If the file doesn't exist the operation fails. * For more information see the Azure @@ -1045,75 +826,6 @@ public Mono> deleteFileWithResponse(String fileName, DataLakeRequ return dataLakeFileAsyncClient.deleteWithResponse(requestConditions); } - /** - * Deletes the specified file in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * client.deleteFileIfExists(fileName).subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("Successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - * @param fileName Name of the file to delete. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @return a reactive response signaling completion. {@code true} indicates that the specified file was successfully - * deleted, {@code false} indicates that the specified file did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteFileIfExists(String fileName) { - return deleteFileIfExistsWithResponse(fileName, new DataLakePathDeleteOptions()).map(response -> - response.getStatusCode() != 404); - } - - /** - * Deletes the specified file in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteFileIfExistsWithResponse(fileName, options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - * @param fileName Name of the file to delete. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @param options {@link DataLakePathDeleteOptions} - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the file was - * successfully deleted. If status code is 404, the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteFileIfExistsWithResponse(String fileName, DataLakePathDeleteOptions options) { - try { - return getFileAsyncClient(fileName).deleteIfExistsWithResponse(options); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Creates a new directory within a file system. By default, this method will not overwrite an existing directory. * For more information, see the Azure Docs. @@ -1214,83 +926,6 @@ public Mono> createDirectoryWithResponse( .map(response -> new SimpleResponse<>(response, dataLakeDirectoryAsyncClient)); } - /** - * Creates a new directory within a file system if it does not exist. - * For more information, see the Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeDirectoryAsyncClient directoryAsyncClient = client.createDirectoryIfNotExists(directoryName).block();
-     * 
- * - * - * @param directoryName Name of the directory to create. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @return A {@link Mono} containing a {@link DataLakeDirectoryAsyncClient} used to interact with the directory - * created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createDirectoryIfNotExists(String directoryName) { - return createDirectoryIfNotExistsWithResponse(directoryName, new DataLakePathCreateOptions()) - .flatMap(FluxUtil::toMono); - } - - /** - * Creates a new directory within a file system if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * client.createDirectoryIfNotExistsWithResponse(directoryName, options).subscribe(response -> {
-     *     if (response.getStatusCode() == 409) {
-     *         System.out.println("Already exists.");
-     *     } else {
-     *         System.out.println("successfully created.");
-     *     }
-     * });
-     * 
- * - * - * @param directoryName Name of the directory to create. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @param options {@link DataLakePathCreateOptions} - * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a - * {@link DataLakeDirectoryAsyncClient} used to interact with the directory created. If {@link Response}'s status - * code is 201, a new directory was successfully created. If status code is 409, a directory with the same name - * already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createDirectoryIfNotExistsWithResponse(String directoryName, - DataLakePathCreateOptions options) { - try { - options = options == null ? new DataLakePathCreateOptions() : options; - return createDirectoryWithResponse(directoryName, options.getPermissions(), options.getUmask(), - options.getPathHttpHeaders(), options.getMetadata(), - new DataLakeRequestConditions().setIfNoneMatch(Constants.HeaderConstants.ETAG_WILDCARD)) - .onErrorResume(t -> t instanceof DataLakeStorageException && ((DataLakeStorageException) t) - .getStatusCode() == 409, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), getDirectoryAsyncClient(directoryName))); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Deletes the specified directory in the file system. If the directory doesn't exist the operation fails. * For more information see the Azure @@ -1351,77 +986,6 @@ public Mono> deleteDirectoryWithResponse(String directoryName, bo return dataLakeDirectoryAsyncClient.deleteWithResponse(recursive, requestConditions); } - /** - * Deletes the specified directory in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * client.deleteDirectoryIfExists(fileName).subscribe(deleted -> {
-     *     if (deleted) {
-     *         System.out.println("Successfully deleted.");
-     *     } else {
-     *         System.out.println("Does not exist.");
-     *     }
-     * });
-     * 
- * - * - * @param directoryName Name of the directory to delete. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @return a reactive response signaling completion. {@code true} indicates that the specified directory was - * successfully deleted, {@code false} indicates that the specified directory did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteDirectoryIfExists(String directoryName) { - return deleteDirectoryIfExistsWithResponse(directoryName, new DataLakePathDeleteOptions()).map(response -> - response.getStatusCode() != 404); - } - - /** - * Deletes the specified directory in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * boolean recursive = false; // Default value
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteDirectoryIfExistsWithResponse(directoryName, options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - * @param directoryName Name of the directory to delete. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @param options {@link DataLakePathDeleteOptions} - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the file was - * successfully deleted. If status code is 404, the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteDirectoryIfExistsWithResponse(String directoryName, - DataLakePathDeleteOptions options) { - try { - return getDirectoryAsyncClient(directoryName).deleteIfExistsWithResponse(options); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Restores a soft deleted path in the file system. For more information see the * Azure @@ -1505,8 +1069,7 @@ Mono> undeletePathWithResponse(String deletedP serviceVersion, accountName, fileSystemName, deletedPath, PathResourceType.fromString(response.getDeserializedHeaders().getXMsResourceType()), blobContainerAsyncClient.getBlobAsyncClient(deletedPath, null) - .getBlockBlobAsyncClient(), sasToken, - Transforms.fromBlobCpkInfo(blobContainerAsyncClient.getCustomerProvidedKey())); + .getBlockBlobAsyncClient(), sasToken); if (PathResourceType.DIRECTORY.equals(client.pathResourceType)) { return new SimpleResponse<>(response, new DataLakeDirectoryAsyncClient(client)); } else if (PathResourceType.FILE.equals(client.pathResourceType)) { diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java index 198f411792565..9492b85ff4834 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java @@ -15,7 +15,6 @@ import com.azure.storage.blob.BlobContainerClient; import com.azure.storage.blob.models.BlobContainerAccessPolicies; import com.azure.storage.blob.models.BlobContainerProperties; -import com.azure.storage.blob.options.BlobContainerCreateOptions; import com.azure.storage.blob.specialized.BlockBlobClient; import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.implementation.Constants; @@ -28,12 +27,9 @@ import com.azure.storage.file.datalake.models.ListPathsOptions; import com.azure.storage.file.datalake.models.PathDeletedItem; import com.azure.storage.file.datalake.models.PathHttpHeaders; -import com.azure.storage.file.datalake.models.PathInfo; import com.azure.storage.file.datalake.models.PathItem; import com.azure.storage.file.datalake.models.PublicAccessType; import com.azure.storage.file.datalake.models.UserDelegationKey; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import reactor.core.publisher.Mono; @@ -280,64 +276,6 @@ public Response createWithResponse(Map metadata, PublicAcc context), LOGGER); } - /** - * Creates a new file system within a storage account if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * boolean result = client.createIfNotExists();
-     * System.out.println("file system created: " + result);
-     * 
- * - * @return {@code true} if file system is successfully created, {@code false} if file system already exists. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean createIfNotExists() { - Response response = createIfNotExistsWithResponse(null, null, null, Context.NONE); - return response.getStatusCode() == 201; - } - - /** - * Creates a new file system within a storage account if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * Map<String, String> metadata = Collections.singletonMap("metadata", "value");
-     * Context context = new Context("Key", "Value");
-     *
-     * Response<Void> response = client.createIfNotExistsWithResponse(metadata, PublicAccessType.CONTAINER, timeout, context);
-     * if (response.getStatusCode() == 409) {
-     *     System.out.println("Already existed.");
-     * } else {
-     *     System.out.printf("Create completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param metadata Metadata to associate with the file system. If there is leading or trailing whitespace in any - * metadata key or value, it must be removed or encoded. - * @param accessType Specifies how the data in this file system is available to the public. See the - * x-ms-blob-public-access header in the Azure Docs for more information. Pass null for no public access. - * @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 status code and HTTP headers. If {@link Response}'s status code is 201, a new - * file system was successfully created. If status code is 409, a file system already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createIfNotExistsWithResponse(Map metadata, PublicAccessType accessType, - Duration timeout, Context context) { - BlobContainerCreateOptions options = new BlobContainerCreateOptions().setMetadata(metadata) - .setPublicAccessType(Transforms.toBlobPublicAccessType(accessType)); - return DataLakeImplUtils.returnOrConvertException(() -> blobContainerClient.createIfNotExistsWithResponse( - options, timeout, context), LOGGER); - } - /** * Marks the specified file system for deletion. The file system and any files/directories contained within it are * later deleted during garbage collection. For more information, see the @@ -395,67 +333,6 @@ public Response deleteWithResponse(DataLakeRequestConditions requestCondit context), LOGGER); } - /** - * Marks the specified file system for deletion if it exists. The file system and any files/directories contained within it are - * later deleted during garbage collection. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * client.deleteIfExists();
-     * 
- * - * @return {@code true} if file system is successfully deleted, {@code false} if the file system does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteIfExists() { - Response response = deleteIfExistsWithResponse(new DataLakePathDeleteOptions(), null, Context.NONE); - return response.getStatusCode() == 202; - } - - /** - * Marks the specified file system for deletion if it exists. The file system and any files/directories contained within it are - * later deleted during garbage collection. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId)
-     *     .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3));
-     * Context context = new Context("Key", "Value");
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteIfExistsWithResponse(options, timeout, context);
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. The presence of a {@link Response} indicates the - * file system was deleted successfully, {@code null} indicates the file system does not exist at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteIfExistsWithResponse(DataLakePathDeleteOptions options, Duration timeout, - Context context) { - DataLakeRequestConditions requestConditions = options == null ? new DataLakeRequestConditions() - : options.getRequestConditions(); - return DataLakeImplUtils.returnOrConvertException(() -> blobContainerClient.deleteIfExistsWithResponse( - Transforms.toBlobRequestConditions(requestConditions), timeout, context), LOGGER); - - } - /** * Returns the file system's metadata and system properties. For more information, see the * Azure Docs. @@ -767,71 +644,6 @@ public Response createFileWithResponse(String fileName, Stri requestConditions, timeout, context), dataLakeFileClient); } - /** - * Creates a new file within a file system if it does not exist. For more - * information, see the Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeFileClient fileClient = client.createFile(fileName);
-     * 
- * - * - * @param fileName Name of the file to create. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @return A {@link DataLakeFileClient} used to interact with the file created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataLakeFileClient createFileIfNotExists(String fileName) { - return createFileIfNotExistsWithResponse(fileName, new DataLakePathCreateOptions(), null, null).getValue(); - } - - /** - * Creates a new file within a file system if it does not exist. - * For more information, see the Azure Docs. - * - *

Code Samples

- * - * - *
-     *
-     * PathHttpHeaders headers = new PathHttpHeaders().setContentLanguage("en-US").setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * Response<DataLakeFileClient> response = client.createFileIfNotExistsWithResponse(fileName, options, timeout,
-     *     new Context(key1, value1));
-     * if (response.getStatusCode() == 409) {
-     *     System.out.println("Already existed.");
-     * } else {
-     *     System.out.printf("Create completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param fileName Name of the file to create. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @param options {@link DataLakePathCreateOptions} - * metadata key or value, it must be removed or encoded. - * @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 {@link Response} whose {@link Response#getValue() value} contains the {@link DataLakeFileClient} used - * to interact with the file created. If {@link Response}'s status code is 201, a new file was successfully created. - * If status code is 409, a file with the same name already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createFileIfNotExistsWithResponse(String fileName, - DataLakePathCreateOptions options, Duration timeout, Context context) { - DataLakeFileClient dataLakeFileClient = getFileClient(fileName); - Response response = dataLakeFileClient.createIfNotExistsWithResponse(options, timeout, context); - return new SimpleResponse<>(response, dataLakeFileClient); - } - /** * Deletes the specified file in the file system. If the file doesn't exist the operation fails. * For more information see the Azure @@ -885,83 +697,23 @@ public Response deleteFileWithResponse(String fileName, DataLakeRequestCon } /** - * Deletes the specified file in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * boolean result = client.deleteFileIfExists(fileName);
-     * System.out.println("Delete request completed: " + result);
-     * 
- * - * - * @param fileName Name of the file to delete. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @return {@code true} if the file is successfully deleted, {@code false} if the file does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteFileIfExists(String fileName) { - Response response = deleteFileIfExistsWithResponse(fileName, new DataLakePathDeleteOptions(), null, - Context.NONE); - return response.getStatusCode() == 200; - } - - /** - * Deletes the specified file in the file system if it exists. - * For more information see the Azure - * Docs. + * Creates a new directory within a file system. By default, this method will not overwrite an existing directory. + * For more information, see the + * Azure Docs. * *

Code Samples

* - * + * *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteFileIfExistsWithResponse(fileName, options, timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
+     * DataLakeDirectoryClient directoryClient = client.createDirectory(directoryName);
      * 
- * + * * - * @param fileName Name of the file to delete. If the path name contains special characters, pass in the url encoded - * version of the path name. - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the file - * was successfully deleted. If status code is 404, the file does not exist. + * @param directoryName Name of the directory to create. If the path name contains special characters, pass in the + * url encoded version of the path name. + * @return A {@link DataLakeDirectoryClient} used to interact with the directory created. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteFileIfExistsWithResponse(String fileName, DataLakePathDeleteOptions options, - Duration timeout, Context context) { - return getFileClient(fileName).deleteIfExistsWithResponse(options, timeout, context); - } - /** - * Creates a new directory within a file system. By default, this method will not overwrite an existing directory. - * For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-             * DataLakeDirectoryClient directoryClient = client.createDirectory(directoryName);
-             * 
- * - * - * @param directoryName Name of the directory to create. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @return A {@link DataLakeDirectoryClient} used to interact with the directory created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) public DataLakeDirectoryClient createDirectory(String directoryName) { return createDirectory(directoryName, false); } @@ -1040,74 +792,6 @@ public Response createDirectoryWithResponse(String dire requestConditions, timeout, context), dataLakeDirectoryClient); } - /** - * Creates a new directory within a file system if it does not exist. - * For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeDirectoryClient directoryClient = client.createDirectoryIfNotExists(directoryName);
-     * 
- * - * - * @param directoryName Name of the directory to create. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @return A {@link DataLakeDirectoryClient} used to interact with the subdirectory created. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public DataLakeDirectoryClient createDirectoryIfNotExists(String directoryName) { - return createDirectoryIfNotExistsWithResponse(directoryName, new DataLakePathCreateOptions(), null, null) - .getValue(); - } - - /** - * Creates a new directory within a file system if it does not exist. For more information, see the - * Azure Docs. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value"));
-     *
-     * Response<DataLakeDirectoryClient> response = client.createDirectoryIfNotExistsWithResponse(directoryName,
-     *     options, timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 409) {
-     *     System.out.println("Already existed.");
-     * } else {
-     *     System.out.printf("Create completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param directoryName Name of the directory to create. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @param options {@link DataLakePathCreateOptions} - * @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 {@link Response} whose {@link Response#getValue() value} contains the {@link DataLakeDirectoryClient} - * used to interact with the directory created. If {@link Response}'s status code is 201, a new directory was - * successfully created. If status code is 409, a directory with the same name already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createDirectoryIfNotExistsWithResponse(String directoryName, - DataLakePathCreateOptions options, Duration timeout, Context context) { - DataLakeDirectoryClient dataLakeDirectoryClient = getDirectoryClient(directoryName); - Response response = dataLakeDirectoryClient - .createIfNotExistsWithResponse(options, timeout, context); - return new SimpleResponse<>(response, dataLakeDirectoryClient); - } - /** * Deletes the specified directory in the file system. If the directory doesn't exist the operation fails. * For more information see the Azure @@ -1163,69 +847,6 @@ public Response deleteDirectoryWithResponse(String directoryName, boolean return getDirectoryClient(directoryName).deleteWithResponse(recursive, requestConditions, timeout, context); } - /** - * Deletes the specified directory in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * boolean result = client.deleteDirectoryIfExists(directoryName);
-     * System.out.println("Delete request completed: " + result);
-     * 
- * - * - * @param directoryName Name of the directory to delete. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @return {@code true} if the directory is successfully deleted, {@code false} if the directory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteDirectoryIfExists(String directoryName) { - Response response = deleteDirectoryWithResponse(directoryName, false, null, null, Context.NONE); - return response.getStatusCode() == 200; - } - - /** - * Deletes the specified directory in the file system if it exists. - * For more information see the Azure - * Docs. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     * boolean recursive = false; // Default value
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteDirectoryIfExistsWithResponse(directoryName, options,
-     *     timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - * @param directoryName Name of the directory to delete. If the path name contains special characters, pass in the - * url encoded version of the path name. - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the directory - * was successfully deleted. If status code is 404, the directory does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteDirectoryIfExistsWithResponse(String directoryName, DataLakePathDeleteOptions options, - Duration timeout, Context context) { - return getDirectoryClient(directoryName).deleteIfExistsWithResponse(options, timeout, context); - } - /** * Restores a soft deleted path in the file system. For more information see the * Azure diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClientBuilder.java index c601804d54583..10f11a9d40db4 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClientBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClientBuilder.java @@ -32,7 +32,6 @@ import com.azure.storage.file.datalake.implementation.util.BuilderHelper; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.TransformUtils; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import java.net.MalformedURLException; import java.net.URL; @@ -498,20 +497,4 @@ public DataLakeFileSystemClientBuilder serviceVersion(DataLakeServiceVersion ver this.version = version; return this; } - - /** - * Sets the {@link CustomerProvidedKey customer provided key} that is used to encrypt file contents on the server. - * - * @param customerProvidedKey Customer provided key containing the encryption key information. - * @return the updated DataLakeFileSystemClientBuilder object - */ - public DataLakeFileSystemClientBuilder customerProvidedKey(CustomerProvidedKey customerProvidedKey) { - if (customerProvidedKey == null) { - blobContainerClientBuilder.customerProvidedKey(null); - } else { - blobContainerClientBuilder.customerProvidedKey(Transforms.toBlobCustomerProvidedKey(customerProvidedKey)); - } - - return this; - } } 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 aa1ad4e462b97..2ebe00bc3584f 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 @@ -8,7 +8,6 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.credential.AzureSasCredential; import com.azure.core.http.HttpPipeline; -import com.azure.core.http.HttpResponse; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.ResponseBase; import com.azure.core.http.rest.SimpleResponse; @@ -43,8 +42,6 @@ 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.implementation.models.CpkInfo; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeStorageException; @@ -57,8 +54,6 @@ 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.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; @@ -99,7 +94,6 @@ public class DataLakePathAsyncClient { private final String fileSystemName; final String pathName; private final DataLakeServiceVersion serviceVersion; - private final CpkInfo customerProvidedKey; final PathResourceType pathResourceType; @@ -120,8 +114,7 @@ public class DataLakePathAsyncClient { */ DataLakePathAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, String accountName, String fileSystemName, String pathName, PathResourceType pathResourceType, - BlockBlobAsyncClient blockBlobAsyncClient, AzureSasCredential sasToken, - CpkInfo customerProvidedKey) { + BlockBlobAsyncClient blockBlobAsyncClient, AzureSasCredential sasToken) { this.accountName = accountName; this.fileSystemName = fileSystemName; this.pathName = Utility.urlDecode(pathName); @@ -152,8 +145,6 @@ public class DataLakePathAsyncClient { .fileSystem(fileSystemName) .version(serviceVersion.getVersion()) .buildClient(); - - this.customerProvidedKey = customerProvidedKey; } /** @@ -270,39 +261,6 @@ AzureSasCredential getSasToken() { return this.sasToken; } - /** - * Gets the {@link CpkInfo} used to encrypt this path's content on the server. - * - * @return the customer provided key used for encryption. - */ - public CustomerProvidedKey getCustomerProvidedKey() { - return new CustomerProvidedKey(customerProvidedKey.getEncryptionKey()); - } - - CpkInfo getCpkInfo() { - return this.customerProvidedKey; - } - - /** - * Creates a new {@link DataLakePathAsyncClient} with the specified {@code customerProvidedKey}. - * - * @param customerProvidedKey the {@link CustomerProvidedKey} for the path, - * pass {@code null} to use no customer provided key. - * @return a {@link DataLakePathAsyncClient} with the specified {@code customerProvidedKey}. - */ - public DataLakePathAsyncClient getCustomerProvidedKeyAsyncClient(CustomerProvidedKey customerProvidedKey) { - CpkInfo finalCustomerProvidedKey = null; - if (customerProvidedKey != null) { - finalCustomerProvidedKey = new CpkInfo() - .setEncryptionKey(customerProvidedKey.getKey()) - .setEncryptionKeySha256(customerProvidedKey.getKeySha256()) - .setEncryptionAlgorithm(customerProvidedKey.getEncryptionAlgorithm()); - } - return new DataLakePathAsyncClient(getHttpPipeline(), getAccountUrl(), getServiceVersion(), getAccountName(), - getFileSystemName(), getObjectPath(), this.pathResourceType, this.blockBlobAsyncClient, getSasToken(), - finalCustomerProvidedKey); - } - /** * Creates a resource. By default, this method will not overwrite an existing path. * @@ -415,98 +373,10 @@ Mono> createWithResponse(String permissions, String umask, Pa context = context == null ? Context.NONE : context; return this.dataLakeStorage.getPaths().createWithResponseAsync(null, null, resourceType, null, null, null, null, - buildMetadataString(metadata), permissions, umask, headers, lac, mac, null, customerProvidedKey, + buildMetadataString(metadata), permissions, umask, headers, lac, mac, null, context.addData(AZ_TRACING_NAMESPACE_KEY, STORAGE_TRACING_NAMESPACE_VALUE)) .map(response -> new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), - response.getDeserializedHeaders().getLastModified(), - response.getDeserializedHeaders().isXMsRequestServerEncrypted() != null, - response.getDeserializedHeaders().getXMsEncryptionKeySha256()))); - } - - /** - * Creates a resource if it does not exist. - * - *

Code Samples

- * - * - *
-     * client.createIfNotExists().subscribe(response ->
-     *     System.out.printf("Created at %s%n", response.getLastModified()));
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @return A reactive response signaling completion. {@link PathInfo} contains information about the created resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createIfNotExists() { - return createIfNotExistsWithResponse(new DataLakePathCreateOptions()).flatMap(FluxUtil::toMono); - } - - /** - * Creates a resource if it does not exist. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * Map<String, String> metadata = Collections.singletonMap("metadata", "value");
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(metadata);
-     *
-     * client.createIfNotExistsWithResponse(options).subscribe(response -> {
-     *     if (response.getStatusCode() == 409) {
-     *         System.out.println("Already exists.");
-     *     } else {
-     *         System.out.println("successfully created.");
-     *     }
-     * });
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathCreateOptions} - * @return A {@link Mono} containing {@link Response} signaling completion, whose {@link Response#getValue() value} - * contains a {@link PathInfo} containing information about the resource. If {@link Response}'s status code is - * 201, a new resource was successfully created. If status code is 409, a resource already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> createIfNotExistsWithResponse(DataLakePathCreateOptions options) { - try { - return withContext(context -> createIfNotExistsWithResponse(options, context)); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - - Mono> createIfNotExistsWithResponse(DataLakePathCreateOptions options, Context context) { - try { - options = options == null ? new DataLakePathCreateOptions() : options; - options.setRequestConditions(new DataLakeRequestConditions() - .setIfNoneMatch(Constants.HeaderConstants.ETAG_WILDCARD)); - return createWithResponse(options.getPermissions(), options.getUmask(), pathResourceType, - options.getPathHttpHeaders(), options.getMetadata(), options.getRequestConditions(), context) - .onErrorResume(t -> t instanceof DataLakeStorageException - && ((DataLakeStorageException) t).getStatusCode() == 409, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), null)); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } + response.getDeserializedHeaders().getLastModified()))); } /** @@ -534,89 +404,6 @@ Mono> deleteWithResponse(Boolean recursive, DataLakeRequestCondit .map(response -> new SimpleResponse<>(response, null)); } - /** - * Deletes paths under the resource if it exists. - * - *

Code Samples

- * - * - *
-     * client.deleteIfExists().subscribe(
-     *     response -> System.out.printf("Delete completed%n"),
-     *     error -> System.out.printf("Delete failed: %s%n", error));
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @return a reactive response signaling completion. {@code true} indicates that the resource under the path was - * successfully deleted, {@code false} indicates the resource did not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteIfExists() { - return deleteIfExistsWithResponse(new DataLakePathDeleteOptions()).map(response -> - response.getStatusCode() != 404); - } - - /** - * Deletes all paths under the specified resource if exists. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     *
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * client.deleteIfExistsWithResponse(options).subscribe(response -> {
-     *             if (response.getStatusCode() == 404) {
-     *                 System.out.println("Does not exist.");
-     *             } else {
-     *                 System.out.println("successfully deleted.");
-     *             }
-     *         });
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathDeleteOptions} - * - * @return A reactive response signaling completion. If {@link Response}'s status code is 200, the resource was - * successfully deleted. If status code is 404, the resource does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> deleteIfExistsWithResponse(DataLakePathDeleteOptions options) { - try { - return withContext(context -> deleteIfExistsWithResponse(options, context)); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - - Mono> deleteIfExistsWithResponse(DataLakePathDeleteOptions options, Context context) { - try { - options = options == null ? new DataLakePathDeleteOptions() : options; - return deleteWithResponse(options.getIsRecursive(), options.getRequestConditions(), context) - .onErrorResume(t -> t instanceof DataLakeStorageException - && ((DataLakeStorageException) t).getStatusCode() == 404, - t -> { - HttpResponse response = ((DataLakeStorageException) t).getResponse(); - return Mono.just(new SimpleResponse<>(response.getRequest(), response.getStatusCode(), - response.getHeaders(), null)); - }); - } catch (RuntimeException ex) { - return monoError(LOGGER, ex); - } - } - /** * Changes a resource's metadata. The specified metadata in this method will replace existing metadata. If old * values must be preserved, they must be downloaded and included in the call to this method. @@ -1539,7 +1326,7 @@ Mono> renameWithResponse(String destinationFil null /* request id */, null /* timeout */, null /* pathResourceType */, null /* continuation */, PathRenameMode.LEGACY, renameSource, sourceRequestConditions.getLeaseId(), null /* metadata */, null /* permissions */, null /* umask */, - null /* pathHttpHeaders */, destLac, destMac, sourceConditions, customerProvidedKey, + null /* pathHttpHeaders */, destLac, destMac, sourceConditions, context.addData(AZ_TRACING_NAMESPACE_KEY, STORAGE_TRACING_NAMESPACE_VALUE)) .map(response -> new SimpleResponse<>(response, dataLakePathAsyncClient)); } @@ -1560,8 +1347,7 @@ DataLakePathAsyncClient getPathAsyncClient(String destinationFileSystem, String return new DataLakePathAsyncClient(getHttpPipeline(), getAccountUrl(), serviceVersion, accountName, destinationFileSystem, destinationPath, pathResourceType, - prepareBuilderReplacePath(destinationFileSystem, destinationPath).buildBlockBlobAsyncClient(), sasToken, - customerProvidedKey); + prepareBuilderReplacePath(destinationFileSystem, destinationPath).buildBlockBlobAsyncClient(), sasToken); } /** 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 fd2bfd28c129e..c57a4726299db 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 @@ -16,11 +16,9 @@ import com.azure.storage.common.StorageSharedKeyCredential; import com.azure.storage.common.implementation.Constants; import com.azure.storage.common.implementation.StorageImplUtils; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; import com.azure.storage.file.datalake.implementation.models.PathSetAccessControlRecursiveMode; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.models.AccessControlChangeResult; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import com.azure.storage.file.datalake.models.DataLakeAclChangeFailedException; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.DataLakeStorageException; @@ -32,8 +30,6 @@ 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.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; @@ -132,27 +128,6 @@ public DataLakeServiceVersion getServiceVersion() { return dataLakePathAsyncClient.getServiceVersion(); } - /** - * Gets the {@link CpkInfo} used to encrypt this path's content on the server. - * - * @return the customer provided key used for encryption. - */ - public CustomerProvidedKey getCustomerProvidedKey() { - return this.dataLakePathAsyncClient.getCustomerProvidedKey(); - } - - /** - * Creates a new {@link DataLakePathClient} with the specified {@code customerProvidedKey}. - * - * @param customerProvidedKey the {@link CustomerProvidedKey} for the path, - * pass {@code null} to use no customer provided key. - * @return a {@link DataLakePathClient} with the specified {@code customerProvidedKey}. - */ - public DataLakePathClient getCustomerProvidedKeyClient(CustomerProvidedKey customerProvidedKey) { - return new DataLakePathClient(dataLakePathAsyncClient.getCustomerProvidedKeyAsyncClient(customerProvidedKey), - blockBlobClient.getCustomerProvidedKeyClient(Transforms.toBlobCustomerProvidedKey(customerProvidedKey))); - } - /** * Creates a resource. By default, this method will not overwrite an existing path. * @@ -251,138 +226,6 @@ public Response createWithResponse(String permissions, String umask, P return StorageImplUtils.blockWithOptionalTimeout(response, timeout); } - /** - * Creates a resource if a path does not exist. - * - *

Code Samples

- * - * - *
-     * PathInfo pathInfo = client.createIfNotExists();
-     * System.out.printf("Last Modified Time:%s", pathInfo.getLastModified());
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @return {@link PathInfo} that contains information about the created resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public PathInfo createIfNotExists() { - return createIfNotExistsWithResponse(new DataLakePathCreateOptions(), null, null).getValue(); - } - - /** - * Creates a resource if a path does not exist. - * - *

Code Samples

- * - * - *
-     * PathHttpHeaders headers = new PathHttpHeaders()
-     *     .setContentLanguage("en-US")
-     *     .setContentType("binary");
-     * String permissions = "permissions";
-     * String umask = "umask";
-     * Map<String, String> metadata = Collections.singletonMap("metadata", "value");
-     * DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers)
-     *     .setPermissions(permissions).setUmask(umask).setMetadata(metadata);
-     *
-     * Response<PathInfo> response = client.createIfNotExistsWithResponse(options, timeout, new Context(key1, value1));
-     * if (response.getStatusCode() == 409) {
-     *     System.out.println("Already existed.");
-     * } else {
-     *     System.out.printf("Create completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathCreateOptions} - * metadata key or value, it must be removed or encoded. - * @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 reactive {@link Response} signaling completion, whose {@link Response#getValue() value} contains a - * {@link PathInfo} containing information about the resource. If {@link Response}'s status code is 201, a new - * resource was successfully created. If status code is 409, a resource already existed at this location. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createIfNotExistsWithResponse(DataLakePathCreateOptions options, Duration timeout, - Context context) { - return StorageImplUtils.blockWithOptionalTimeout(dataLakePathAsyncClient - .createIfNotExistsWithResponse(options, context), timeout); - } - - /** - * Deletes paths under the resource if it exists. - * - *

Code Samples

- * - * - *
-     * client.create();
-     * boolean result = client.deleteIfExists();
-     * System.out.println("Delete complete: " + result);
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * @return {@code true} if the resource is successfully deleted, {@code false} if resource does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public boolean deleteIfExists() { - Response response = deleteIfExistsWithResponse(new DataLakePathDeleteOptions(), null, null); - return response.getStatusCode() == 200; - } - - /** - * Deletes all paths under the specified resource if exists. - * - *

Code Samples

- * - * - *
-     * DataLakeRequestConditions requestConditions = new DataLakeRequestConditions()
-     *     .setLeaseId(leaseId);
-     *
-     * DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false)
-     *     .setRequestConditions(requestConditions);
-     *
-     * Response<Void> response = client.deleteIfExistsWithResponse(options, timeout, new Context(key1, value1));
-     *
-     * if (response.getStatusCode() == 404) {
-     *     System.out.println("Does not exist.");
-     * } else {
-     *     System.out.printf("Delete completed with status %d%n", response.getStatusCode());
-     * }
-     * 
- * - * - *

For more information see the - * Azure - * Docs

- * - * @param options {@link DataLakePathDeleteOptions} - * @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 status code and HTTP headers. If {@link Response}'s status code is 200, the resource - * was successfully deleted. If status code is 404, the resource does not exist. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteIfExistsWithResponse(DataLakePathDeleteOptions options, Duration timeout, - Context context) { - return StorageImplUtils.blockWithOptionalTimeout(dataLakePathAsyncClient - .deleteIfExistsWithResponse(options, context), timeout); - } - /** * Changes a resource's metadata. The specified metadata in this method will replace existing metadata. If old * values must be preserved, they must be downloaded and included in the call to this method. diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClientBuilder.java index 6bb77600a7aba..6e30d07d9994c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClientBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClientBuilder.java @@ -33,8 +33,6 @@ import com.azure.storage.file.datalake.implementation.util.BuilderHelper; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.TransformUtils; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import java.net.MalformedURLException; import java.net.URL; @@ -92,7 +90,6 @@ public final class DataLakePathClientBuilder implements private ClientOptions clientOptions = new ClientOptions(); private Configuration configuration; private DataLakeServiceVersion version; - private CpkInfo customerProvidedKey; /** * Creates a builder instance that is able to configure and construct {@link DataLakeFileClient FileClients}, {@link @@ -151,6 +148,9 @@ public DataLakeFileClient buildFileClient() { * and {@link #retryOptions(RequestRetryOptions)} have been set. */ public DataLakeFileAsyncClient buildFileAsyncClient() { + Objects.requireNonNull(pathName, "'pathName' cannot be null."); + Objects.requireNonNull(endpoint, "'endpoint' cannot be null"); + /* Implicit and explicit root container access are functionally equivalent, but explicit references are easier to read and debug. @@ -167,8 +167,7 @@ public DataLakeFileAsyncClient buildFileAsyncClient() { clientOptions, httpClient, perCallPolicies, perRetryPolicies, configuration, LOGGER); return new DataLakeFileAsyncClient(pipeline, endpoint, serviceVersion, accountName, dataLakeFileSystemName, - pathName, blobClientBuilder.buildAsyncClient().getBlockBlobAsyncClient(), azureSasCredential, - customerProvidedKey); + pathName, blobClientBuilder.buildAsyncClient().getBlockBlobAsyncClient(), azureSasCredential); } /** @@ -215,7 +214,8 @@ public DataLakeDirectoryClient buildDirectoryClient() { * and {@link #retryOptions(RequestRetryOptions)} have been set. */ public DataLakeDirectoryAsyncClient buildDirectoryAsyncClient() { - validateConstruction(); + Objects.requireNonNull(pathName, "'pathName' cannot be null."); + Objects.requireNonNull(endpoint, "'endpoint' cannot be null"); /* Implicit and explicit root container access are functionally equivalent, but explicit references are easier @@ -233,18 +233,7 @@ public DataLakeDirectoryAsyncClient buildDirectoryAsyncClient() { clientOptions, httpClient, perCallPolicies, perRetryPolicies, configuration, LOGGER); return new DataLakeDirectoryAsyncClient(pipeline, endpoint, serviceVersion, accountName, dataLakeFileSystemName, - pathName, blobClientBuilder.buildAsyncClient().getBlockBlobAsyncClient(), azureSasCredential, - customerProvidedKey); - } - - /* - * Validate that the builder is able to construct a client. - */ - private void validateConstruction() { - Objects.requireNonNull(pathName, "'pathName' cannot be null."); - Objects.requireNonNull(endpoint, "'endpoint' cannot be null"); - - BuilderHelper.httpsValidation(customerProvidedKey, "customer provided key", endpoint, LOGGER); + pathName, blobClientBuilder.buildAsyncClient().getBlockBlobAsyncClient(), azureSasCredential); } /** @@ -612,24 +601,4 @@ public DataLakePathClientBuilder serviceVersion(DataLakeServiceVersion version) return this; } - /** - * Sets the {@link CustomerProvidedKey customer provided key} that is used to encrypt blob contents on the server. - * - * @param customerProvidedKey Customer provided key containing the encryption key information. - * @return the updated DataLakePathClientBuilder object - */ - public DataLakePathClientBuilder customerProvidedKey(CustomerProvidedKey customerProvidedKey) { - if (customerProvidedKey == null) { - blobClientBuilder.customerProvidedKey(null); - this.customerProvidedKey = null; - } else { - blobClientBuilder.customerProvidedKey(Transforms.toBlobCustomerProvidedKey(customerProvidedKey)); - this.customerProvidedKey = new CpkInfo() - .setEncryptionKey(customerProvidedKey.getKey()) - .setEncryptionKeySha256(customerProvidedKey.getKeySha256()) - .setEncryptionAlgorithm(customerProvidedKey.getEncryptionAlgorithm()); - } - - return this; - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClientBuilder.java index 668fba51c2ec4..446199f781496 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClientBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClientBuilder.java @@ -32,7 +32,6 @@ import com.azure.storage.file.datalake.implementation.util.BuilderHelper; import com.azure.storage.file.datalake.implementation.util.DataLakeImplUtils; import com.azure.storage.file.datalake.implementation.util.TransformUtils; -import com.azure.storage.file.datalake.models.CustomerProvidedKey; import java.net.MalformedURLException; import java.net.URL; @@ -439,20 +438,4 @@ public DataLakeServiceClientBuilder serviceVersion(DataLakeServiceVersion versio return this; } - - /** - * Sets the {@link CustomerProvidedKey customer provided key} that is used to encrypt file contents on the server. - * - * @param customerProvidedKey Customer provided key containing the encryption key information. - * @return the updated DataLakeServiceClientBuilder object - */ - public DataLakeServiceClientBuilder customerProvidedKey(CustomerProvidedKey customerProvidedKey) { - if (customerProvidedKey == null) { - blobServiceClientBuilder.customerProvidedKey(null); - } else { - blobServiceClientBuilder.customerProvidedKey(Transforms.toBlobCustomerProvidedKey(customerProvidedKey)); - } - - return this; - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java index 7d4261f239cbe..aa97f5df2f5a6 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java @@ -62,12 +62,7 @@ public enum DataLakeServiceVersion implements ServiceVersion { /** * Service version {@code 2021-04-10}. */ - V2021_04_10("2021-04-10"), - - /** - * Service version {@code 2021-06-08}. - */ - V2021_06_08("2021-06-08"); + V2021_04_10("2021-04-10"); private final String version; @@ -89,6 +84,6 @@ public String getVersion() { * @return the latest {@link DataLakeServiceVersion} */ public static DataLakeServiceVersion getLatest() { - return V2021_06_08; + return V2021_04_10; } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/Transforms.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/Transforms.java index 9a411034b1f2e..45eaa50c87215 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/Transforms.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/Transforms.java @@ -35,7 +35,6 @@ import com.azure.storage.blob.models.BlobServiceProperties; import com.azure.storage.blob.models.BlobSignedIdentifier; import com.azure.storage.blob.models.ConsistentReadControl; -import com.azure.storage.blob.models.CustomerProvidedKey; import com.azure.storage.blob.models.ListBlobContainersOptions; import com.azure.storage.blob.models.StaticWebsite; import com.azure.storage.blob.options.BlobInputStreamOptions; @@ -47,7 +46,6 @@ import com.azure.storage.file.datalake.models.AccessTier; import com.azure.storage.file.datalake.models.ArchiveStatus; import com.azure.storage.file.datalake.models.CopyStatusType; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; import com.azure.storage.file.datalake.models.DataLakeAccessPolicy; import com.azure.storage.file.datalake.models.DataLakeAnalyticsLogging; import com.azure.storage.file.datalake.models.DataLakeCorsRule; @@ -92,13 +90,9 @@ import com.azure.storage.file.datalake.options.FileQueryOptions; import com.azure.storage.file.datalake.options.FileSystemUndeleteOptions; -import java.time.Instant; import java.time.OffsetDateTime; -import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.ArrayList; -import java.util.Calendar; -import java.util.GregorianCalendar; import java.util.List; import java.util.function.Consumer; import java.util.stream.Collectors; @@ -110,22 +104,6 @@ class Transforms { FileQueryDelimitedSerialization.class.getSimpleName(), FileQueryArrowSerialization.class.getSimpleName(), FileQueryParquetSerialization.class.getSimpleName()); - private static final long EPOCH_CONVERSION; - - static { - // https://docs.oracle.com/javase/8/docs/api/java/util/Date.html#getTime-- - GregorianCalendar unixEpoch = new GregorianCalendar(); - unixEpoch.clear(); - unixEpoch.set(1970, Calendar.JANUARY, 1, 0, 0, 0); - - // https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset.fromfiletime?view=net-6.0#remarks - GregorianCalendar windowsEpoch = new GregorianCalendar(); - windowsEpoch.clear(); - windowsEpoch.set(1601, Calendar.JANUARY, 1, 0, 0, 0); - - EPOCH_CONVERSION = unixEpoch.getTimeInMillis() - windowsEpoch.getTimeInMillis(); - } - static com.azure.storage.blob.models.PublicAccessType toBlobPublicAccessType(PublicAccessType fileSystemPublicAccessType) { if (fileSystemPublicAccessType == null) { @@ -345,28 +323,12 @@ static PathItem toPathItem(Path path) { return null; } return new PathItem(path.getETag(), - parseDateOrNull(path.getLastModified()), path.getContentLength() == null ? 0 : path.getContentLength(), + path.getLastModified() == null ? null : OffsetDateTime.parse(path.getLastModified(), + DateTimeFormatter.RFC_1123_DATE_TIME), path.getContentLength() == null ? 0 : path.getContentLength(), path.getGroup(), path.isDirectory() == null ? false : path.isDirectory(), path.getName(), path.getOwner(), - path.getPermissions(), - path.getCreationTime() == null ? null : fromWindowsFileTimeOrNull(Long.parseLong(path.getCreationTime())), - path.getExpiryTime() == null ? null : fromWindowsFileTimeOrNull(Long.parseLong(path.getExpiryTime()))); + path.getPermissions()); } - private static OffsetDateTime parseDateOrNull(String date) { - return date == null ? null : OffsetDateTime.parse(date, DateTimeFormatter.RFC_1123_DATE_TIME); - } - - private static OffsetDateTime fromWindowsFileTimeOrNull(long fileTime) { - if (fileTime == 0) { - return null; - } - long fileTimeMs = fileTime / 10000; // fileTime is given in 100ns intervals. Convert to ms - long fileTimeUnixEpoch = fileTimeMs - EPOCH_CONVERSION; // Remove difference between Unix and Windows FileTime epochs - - return Instant.ofEpochMilli(fileTimeUnixEpoch).atOffset(ZoneOffset.UTC); - } - - static BlobRequestConditions toBlobRequestConditions(DataLakeRequestConditions requestConditions) { if (requestConditions == null) { return null; @@ -827,23 +789,4 @@ static PathDeletedItem toPathDeletedItem(BlobItemInternal blobItem) { static PathDeletedItem toPathDeletedItem(BlobPrefix blobPrefix) { return new PathDeletedItem(blobPrefix.getName(), true, null, null, null); } - - static CustomerProvidedKey toBlobCustomerProvidedKey( - com.azure.storage.file.datalake.models.CustomerProvidedKey key) { - if (key == null) { - return null; - } - return new CustomerProvidedKey(key.getKey()); - } - - static CpkInfo fromBlobCpkInfo(com.azure.storage.blob.models.CpkInfo info) { - if (info == null) { - return null; - } - return new CpkInfo() - .setEncryptionKey(info.getEncryptionKey()) - .setEncryptionAlgorithm(com.azure.storage.file.datalake.models.EncryptionAlgorithmType.fromString( - info.getEncryptionAlgorithm().toString())) - .setEncryptionKeySha256(info.getEncryptionKeySha256()); - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/AzureDataLakeStorageRestAPIImplBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/AzureDataLakeStorageRestAPIImplBuilder.java index 5ad647b46369b..187b839ca9cf7 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/AzureDataLakeStorageRestAPIImplBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/AzureDataLakeStorageRestAPIImplBuilder.java @@ -4,7 +4,6 @@ package com.azure.storage.file.datalake.implementation; -import com.azure.core.annotation.Generated; import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpClient; import com.azure.core.http.HttpHeaders; @@ -33,14 +32,13 @@ /** A builder for creating a new instance of the AzureDataLakeStorageRestAPI type. */ @ServiceClientBuilder(serviceClients = {AzureDataLakeStorageRestAPIImpl.class}) public final class AzureDataLakeStorageRestAPIImplBuilder { - @Generated private static final String SDK_NAME = "name"; + private static final String SDK_NAME = "name"; - @Generated private static final String SDK_VERSION = "version"; + private static final String SDK_VERSION = "version"; - @Generated private final Map properties = new HashMap<>(); + private final Map properties = new HashMap<>(); /** Create an instance of the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder() { this.pipelinePolicies = new ArrayList<>(); } @@ -49,7 +47,7 @@ public AzureDataLakeStorageRestAPIImplBuilder() { * The URL of the service account, container, or blob that is the target of * the desired operation. */ - @Generated private String url; + private String url; /** * Sets The URL of the service account, container, or blob that is the target of the desired operation. @@ -57,7 +55,6 @@ public AzureDataLakeStorageRestAPIImplBuilder() { * @param url the url value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder url(String url) { this.url = url; return this; @@ -66,7 +63,7 @@ public AzureDataLakeStorageRestAPIImplBuilder url(String url) { /* * The value must be "filesystem" for all filesystem operations. */ - @Generated private String resource; + private String resource; /** * Sets The value must be "filesystem" for all filesystem operations. @@ -74,7 +71,6 @@ public AzureDataLakeStorageRestAPIImplBuilder url(String url) { * @param resource the resource value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder resource(String resource) { this.resource = resource; return this; @@ -83,7 +79,7 @@ public AzureDataLakeStorageRestAPIImplBuilder resource(String resource) { /* * Specifies the version of the operation to use for this request. */ - @Generated private String version; + private String version; /** * Sets Specifies the version of the operation to use for this request. @@ -91,7 +87,6 @@ public AzureDataLakeStorageRestAPIImplBuilder resource(String resource) { * @param version the version value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder version(String version) { this.version = version; return this; @@ -100,7 +95,7 @@ public AzureDataLakeStorageRestAPIImplBuilder version(String version) { /* * The filesystem identifier. */ - @Generated private String fileSystem; + private String fileSystem; /** * Sets The filesystem identifier. @@ -108,7 +103,6 @@ public AzureDataLakeStorageRestAPIImplBuilder version(String version) { * @param fileSystem the fileSystem value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder fileSystem(String fileSystem) { this.fileSystem = fileSystem; return this; @@ -117,7 +111,7 @@ public AzureDataLakeStorageRestAPIImplBuilder fileSystem(String fileSystem) { /* * The file or directory path. */ - @Generated private String path; + private String path; /** * Sets The file or directory path. @@ -125,7 +119,6 @@ public AzureDataLakeStorageRestAPIImplBuilder fileSystem(String fileSystem) { * @param path the path value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder path(String path) { this.path = path; return this; @@ -134,7 +127,7 @@ public AzureDataLakeStorageRestAPIImplBuilder path(String path) { /* * The HTTP pipeline to send requests through */ - @Generated private HttpPipeline pipeline; + private HttpPipeline pipeline; /** * Sets The HTTP pipeline to send requests through. @@ -142,7 +135,6 @@ public AzureDataLakeStorageRestAPIImplBuilder path(String path) { * @param pipeline the pipeline value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder pipeline(HttpPipeline pipeline) { this.pipeline = pipeline; return this; @@ -151,7 +143,7 @@ public AzureDataLakeStorageRestAPIImplBuilder pipeline(HttpPipeline pipeline) { /* * The serializer to serialize an object into a string */ - @Generated private SerializerAdapter serializerAdapter; + private SerializerAdapter serializerAdapter; /** * Sets The serializer to serialize an object into a string. @@ -159,7 +151,6 @@ public AzureDataLakeStorageRestAPIImplBuilder pipeline(HttpPipeline pipeline) { * @param serializerAdapter the serializerAdapter value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder serializerAdapter(SerializerAdapter serializerAdapter) { this.serializerAdapter = serializerAdapter; return this; @@ -168,7 +159,7 @@ public AzureDataLakeStorageRestAPIImplBuilder serializerAdapter(SerializerAdapte /* * The HTTP client used to send the request. */ - @Generated private HttpClient httpClient; + private HttpClient httpClient; /** * Sets The HTTP client used to send the request. @@ -176,7 +167,6 @@ public AzureDataLakeStorageRestAPIImplBuilder serializerAdapter(SerializerAdapte * @param httpClient the httpClient value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder httpClient(HttpClient httpClient) { this.httpClient = httpClient; return this; @@ -186,7 +176,7 @@ public AzureDataLakeStorageRestAPIImplBuilder httpClient(HttpClient httpClient) * The configuration store that is used during construction of the service * client. */ - @Generated private Configuration configuration; + private Configuration configuration; /** * Sets The configuration store that is used during construction of the service client. @@ -194,7 +184,6 @@ public AzureDataLakeStorageRestAPIImplBuilder httpClient(HttpClient httpClient) * @param configuration the configuration value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder configuration(Configuration configuration) { this.configuration = configuration; return this; @@ -203,7 +192,7 @@ public AzureDataLakeStorageRestAPIImplBuilder configuration(Configuration config /* * The logging configuration for HTTP requests and responses. */ - @Generated private HttpLogOptions httpLogOptions; + private HttpLogOptions httpLogOptions; /** * Sets The logging configuration for HTTP requests and responses. @@ -211,7 +200,6 @@ public AzureDataLakeStorageRestAPIImplBuilder configuration(Configuration config * @param httpLogOptions the httpLogOptions value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder httpLogOptions(HttpLogOptions httpLogOptions) { this.httpLogOptions = httpLogOptions; return this; @@ -221,7 +209,7 @@ public AzureDataLakeStorageRestAPIImplBuilder httpLogOptions(HttpLogOptions http * The retry policy that will attempt to retry failed requests, if * applicable. */ - @Generated private RetryPolicy retryPolicy; + private RetryPolicy retryPolicy; /** * Sets The retry policy that will attempt to retry failed requests, if applicable. @@ -229,7 +217,6 @@ public AzureDataLakeStorageRestAPIImplBuilder httpLogOptions(HttpLogOptions http * @param retryPolicy the retryPolicy value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder retryPolicy(RetryPolicy retryPolicy) { this.retryPolicy = retryPolicy; return this; @@ -238,13 +225,13 @@ public AzureDataLakeStorageRestAPIImplBuilder retryPolicy(RetryPolicy retryPolic /* * The list of Http pipeline policies to add. */ - @Generated private final List pipelinePolicies; + private final List pipelinePolicies; /* * The client options such as application ID and custom headers to set on a * request. */ - @Generated private ClientOptions clientOptions; + private ClientOptions clientOptions; /** * Sets The client options such as application ID and custom headers to set on a request. @@ -252,7 +239,6 @@ public AzureDataLakeStorageRestAPIImplBuilder retryPolicy(RetryPolicy retryPolic * @param clientOptions the clientOptions value. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder clientOptions(ClientOptions clientOptions) { this.clientOptions = clientOptions; return this; @@ -264,7 +250,6 @@ public AzureDataLakeStorageRestAPIImplBuilder clientOptions(ClientOptions client * @param customPolicy The custom Http pipeline policy to add. * @return the AzureDataLakeStorageRestAPIImplBuilder. */ - @Generated public AzureDataLakeStorageRestAPIImplBuilder addPolicy(HttpPipelinePolicy customPolicy) { pipelinePolicies.add(customPolicy); return this; @@ -275,13 +260,12 @@ public AzureDataLakeStorageRestAPIImplBuilder addPolicy(HttpPipelinePolicy custo * * @return an instance of AzureDataLakeStorageRestAPIImpl. */ - @Generated public AzureDataLakeStorageRestAPIImpl buildClient() { if (resource == null) { this.resource = "filesystem"; } if (version == null) { - this.version = "2021-06-08"; + this.version = "2020-06-12"; } if (pipeline == null) { this.pipeline = createHttpPipeline(); @@ -295,7 +279,6 @@ public AzureDataLakeStorageRestAPIImpl buildClient() { return client; } - @Generated private HttpPipeline createHttpPipeline() { Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java index e9a1071e7a80b..8f043c4ebf406 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java @@ -180,7 +180,7 @@ Mono listBlobHierarchySegment( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono createWithResponseAsync( @@ -219,7 +219,7 @@ public Mono createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono setPropertiesWithResponseAsync( @@ -269,7 +269,7 @@ public Mono setPropertiesWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getPropertiesWithResponseAsync( @@ -306,7 +306,7 @@ public Mono getPropertiesWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteWithResponseAsync( @@ -365,7 +365,7 @@ public Mono deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listPathsWithResponseAsync( @@ -419,7 +419,7 @@ public Mono listPathsWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an enumeration of blobs on successful completion of {@link Mono}. + * @return an enumeration of blobs. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono listBlobHierarchySegmentWithResponseAsync( 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 543c5988be461..76b216b200a2c 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 @@ -26,7 +26,6 @@ import com.azure.core.util.Base64Util; import com.azure.core.util.Context; import com.azure.core.util.DateTimeRfc1123; -import com.azure.storage.file.datalake.implementation.models.CpkInfo; 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.PathExpiryOptions; @@ -49,7 +48,6 @@ import com.azure.storage.file.datalake.implementation.models.PathsUpdateResponse; import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; import com.azure.storage.file.datalake.models.DataLakeStorageException; -import com.azure.storage.file.datalake.models.EncryptionAlgorithmType; import com.azure.storage.file.datalake.models.PathHttpHeaders; import java.nio.ByteBuffer; import java.time.OffsetDateTime; @@ -113,9 +111,6 @@ Mono create( @HeaderParam("x-ms-source-if-none-match") String sourceIfNoneMatch, @HeaderParam("x-ms-source-if-modified-since") DateTimeRfc1123 sourceIfModifiedSince, @HeaderParam("x-ms-source-if-unmodified-since") DateTimeRfc1123 sourceIfUnmodifiedSince, - @HeaderParam("x-ms-encryption-key") String encryptionKey, - @HeaderParam("x-ms-encryption-key-sha256") String encryptionKeySha256, - @HeaderParam("x-ms-encryption-algorithm") EncryptionAlgorithmType encryptionAlgorithm, @HeaderParam("Accept") String accept, Context context); @@ -197,9 +192,6 @@ Mono read( @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, - @HeaderParam("x-ms-encryption-key") String encryptionKey, - @HeaderParam("x-ms-encryption-key-sha256") String encryptionKeySha256, - @HeaderParam("x-ms-encryption-algorithm") EncryptionAlgorithmType encryptionAlgorithm, @HeaderParam("Accept") String accept, Context context); @@ -311,9 +303,6 @@ Mono flushData( @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, - @HeaderParam("x-ms-encryption-key") String encryptionKey, - @HeaderParam("x-ms-encryption-key-sha256") String encryptionKeySha256, - @HeaderParam("x-ms-encryption-algorithm") EncryptionAlgorithmType encryptionAlgorithm, @HeaderParam("Accept") String accept, Context context); @@ -333,9 +322,6 @@ Mono appendData( @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, - @HeaderParam("x-ms-encryption-key") String encryptionKey, - @HeaderParam("x-ms-encryption-key-sha256") String encryptionKeySha256, - @HeaderParam("x-ms-encryption-algorithm") EncryptionAlgorithmType encryptionAlgorithm, @BodyParam("application/octet-stream") Flux body, @HeaderParam("Accept") String accept, Context context); @@ -417,12 +403,11 @@ Mono undelete( * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. * @param sourceModifiedAccessConditions Parameter group. - * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono createWithResponseAsync( @@ -440,7 +425,6 @@ public Mono createWithResponseAsync( LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, SourceModifiedAccessConditions sourceModifiedAccessConditions, - CpkInfo cpkInfo, Context context) { final String accept = "application/json"; String cacheControlInternal = null; @@ -513,21 +497,6 @@ public Mono createWithResponseAsync( sourceIfUnmodifiedSinceInternal = sourceModifiedAccessConditions.getSourceIfUnmodifiedSince(); } OffsetDateTime sourceIfUnmodifiedSince = sourceIfUnmodifiedSinceInternal; - String encryptionKeyInternal = null; - if (cpkInfo != null) { - encryptionKeyInternal = cpkInfo.getEncryptionKey(); - } - String encryptionKey = encryptionKeyInternal; - String encryptionKeySha256Internal = null; - if (cpkInfo != null) { - encryptionKeySha256Internal = cpkInfo.getEncryptionKeySha256(); - } - String encryptionKeySha256 = encryptionKeySha256Internal; - EncryptionAlgorithmType encryptionAlgorithmInternal = null; - if (cpkInfo != null) { - encryptionAlgorithmInternal = cpkInfo.getEncryptionAlgorithm(); - } - EncryptionAlgorithmType encryptionAlgorithm = encryptionAlgorithmInternal; DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); DateTimeRfc1123 ifUnmodifiedSinceConverted = @@ -565,9 +534,6 @@ public Mono createWithResponseAsync( sourceIfNoneMatch, sourceIfModifiedSinceConverted, sourceIfUnmodifiedSinceConverted, - encryptionKey, - encryptionKeySha256, - encryptionAlgorithm, accept, context); } @@ -649,7 +615,7 @@ public Mono createWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono updateWithResponseAsync( @@ -803,7 +769,7 @@ public Mono updateWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono leaseWithResponseAsync( @@ -884,12 +850,11 @@ public Mono leaseWithResponseAsync( * 400 (Bad Request). * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. - * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono readWithResponseAsync( @@ -899,7 +864,6 @@ public Mono readWithResponseAsync( Boolean xMsRangeGetContentMd5, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, - CpkInfo cpkInfo, Context context) { final String accept = "application/json"; String leaseIdInternal = null; @@ -927,21 +891,6 @@ public Mono readWithResponseAsync( ifUnmodifiedSinceInternal = modifiedAccessConditions.getIfUnmodifiedSince(); } OffsetDateTime ifUnmodifiedSince = ifUnmodifiedSinceInternal; - String encryptionKeyInternal = null; - if (cpkInfo != null) { - encryptionKeyInternal = cpkInfo.getEncryptionKey(); - } - String encryptionKey = encryptionKeyInternal; - String encryptionKeySha256Internal = null; - if (cpkInfo != null) { - encryptionKeySha256Internal = cpkInfo.getEncryptionKeySha256(); - } - String encryptionKeySha256 = encryptionKeySha256Internal; - EncryptionAlgorithmType encryptionAlgorithmInternal = null; - if (cpkInfo != null) { - encryptionAlgorithmInternal = cpkInfo.getEncryptionAlgorithm(); - } - EncryptionAlgorithmType encryptionAlgorithm = encryptionAlgorithmInternal; DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); DateTimeRfc1123 ifUnmodifiedSinceConverted = @@ -960,9 +909,6 @@ public Mono readWithResponseAsync( ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, - encryptionKey, - encryptionKeySha256, - encryptionAlgorithm, accept, context); } @@ -992,8 +938,7 @@ public Mono readWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties returns all system and user defined properties for a path on successful completion of {@link - * Mono}. + * @return properties returns all system and user defined properties for a path. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono getPropertiesWithResponseAsync( @@ -1073,7 +1018,7 @@ public Mono getPropertiesWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteWithResponseAsync( @@ -1155,7 +1100,7 @@ public Mono deleteWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono setAccessControlWithResponseAsync( @@ -1248,7 +1193,7 @@ public Mono setAccessControlWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body on successful completion of {@link Mono}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono setAccessControlRecursiveWithResponseAsync( @@ -1311,12 +1256,11 @@ public Mono setAccessControlRecursiveWit * @param pathHttpHeaders Parameter group. * @param leaseAccessConditions Parameter group. * @param modifiedAccessConditions Parameter group. - * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono flushDataWithResponseAsync( @@ -1329,7 +1273,6 @@ public Mono flushDataWithResponseAsync( PathHttpHeaders pathHttpHeaders, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, - CpkInfo cpkInfo, Context context) { final String action = "flush"; final String accept = "application/json"; @@ -1388,21 +1331,6 @@ public Mono flushDataWithResponseAsync( ifUnmodifiedSinceInternal = modifiedAccessConditions.getIfUnmodifiedSince(); } OffsetDateTime ifUnmodifiedSince = ifUnmodifiedSinceInternal; - String encryptionKeyInternal = null; - if (cpkInfo != null) { - encryptionKeyInternal = cpkInfo.getEncryptionKey(); - } - String encryptionKey = encryptionKeyInternal; - String encryptionKeySha256Internal = null; - if (cpkInfo != null) { - encryptionKeySha256Internal = cpkInfo.getEncryptionKeySha256(); - } - String encryptionKeySha256 = encryptionKeySha256Internal; - EncryptionAlgorithmType encryptionAlgorithmInternal = null; - if (cpkInfo != null) { - encryptionAlgorithmInternal = cpkInfo.getEncryptionAlgorithm(); - } - EncryptionAlgorithmType encryptionAlgorithm = encryptionAlgorithmInternal; String contentMd5Converted = Base64Util.encodeToString(contentMd5); DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); @@ -1431,9 +1359,6 @@ public Mono flushDataWithResponseAsync( ifUnmodifiedSinceConverted, requestId, this.client.getVersion(), - encryptionKey, - encryptionKeySha256, - encryptionAlgorithm, accept, context); } @@ -1458,12 +1383,11 @@ public Mono flushDataWithResponseAsync( * analytics logs when storage analytics logging is enabled. * @param pathHttpHeaders Parameter group. * @param leaseAccessConditions Parameter group. - * @param cpkInfo Parameter group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono appendDataWithResponseAsync( @@ -1475,7 +1399,6 @@ public Mono appendDataWithResponseAsync( String requestId, PathHttpHeaders pathHttpHeaders, LeaseAccessConditions leaseAccessConditions, - CpkInfo cpkInfo, Context context) { final String action = "append"; final String accept = "application/json"; @@ -1489,21 +1412,6 @@ public Mono appendDataWithResponseAsync( leaseIdInternal = leaseAccessConditions.getLeaseId(); } String leaseId = leaseIdInternal; - String encryptionKeyInternal = null; - if (cpkInfo != null) { - encryptionKeyInternal = cpkInfo.getEncryptionKey(); - } - String encryptionKey = encryptionKeyInternal; - String encryptionKeySha256Internal = null; - if (cpkInfo != null) { - encryptionKeySha256Internal = cpkInfo.getEncryptionKeySha256(); - } - String encryptionKeySha256 = encryptionKeySha256Internal; - EncryptionAlgorithmType encryptionAlgorithmInternal = null; - if (cpkInfo != null) { - encryptionAlgorithmInternal = cpkInfo.getEncryptionAlgorithm(); - } - EncryptionAlgorithmType encryptionAlgorithm = encryptionAlgorithmInternal; String transactionalContentHashConverted = Base64Util.encodeToString(transactionalContentHash); String transactionalContentCrc64Converted = Base64Util.encodeToString(transactionalContentCrc64); return service.appendData( @@ -1519,9 +1427,6 @@ public Mono appendDataWithResponseAsync( leaseId, requestId, this.client.getVersion(), - encryptionKey, - encryptionKeySha256, - encryptionAlgorithm, body, accept, context); @@ -1541,7 +1446,7 @@ public Mono appendDataWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono setExpiryWithResponseAsync( @@ -1576,7 +1481,7 @@ public Mono setExpiryWithResponseAsync( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the completion. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono undeleteWithResponseAsync( diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java index c20b316d317a7..e9075f9d2072e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java @@ -83,7 +83,7 @@ Mono listFileSystems( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws DataLakeStorageException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> listFileSystemsSinglePageAsync( diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/CpkInfo.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/CpkInfo.java deleted file mode 100644 index f16560f4d5c35..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/CpkInfo.java +++ /dev/null @@ -1,107 +0,0 @@ -// 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.storage.file.datalake.models.EncryptionAlgorithmType; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; - -/** Parameter group. */ -@JacksonXmlRootElement(localName = "CpkInfo") -@Fluent -public final class CpkInfo { - /* - * Optional. Specifies the encryption key to use to encrypt the data - * provided in the request. If not specified, encryption is performed with - * the root account encryption key. For more information, see Encryption - * at Rest for Azure Storage Services. - */ - @JsonProperty(value = "encryptionKey") - private String encryptionKey; - - /* - * The SHA-256 hash of the provided encryption key. Must be provided if the - * x-ms-encryption-key header is provided. - */ - @JsonProperty(value = "encryptionKeySha256") - private String encryptionKeySha256; - - /* - * The algorithm used to produce the encryption key hash. Currently, the - * only accepted value is "AES256". Must be provided if the - * x-ms-encryption-key header is provided. - */ - @JsonProperty(value = "encryptionAlgorithm") - private EncryptionAlgorithmType encryptionAlgorithm; - - /** - * Get the encryptionKey property: Optional. Specifies the encryption key to use to encrypt the data provided in the - * request. If not specified, encryption is performed with the root account encryption key. For more information, - * see Encryption at Rest for Azure Storage Services. - * - * @return the encryptionKey value. - */ - public String getEncryptionKey() { - return this.encryptionKey; - } - - /** - * Set the encryptionKey property: Optional. Specifies the encryption key to use to encrypt the data provided in the - * request. If not specified, encryption is performed with the root account encryption key. For more information, - * see Encryption at Rest for Azure Storage Services. - * - * @param encryptionKey the encryptionKey value to set. - * @return the CpkInfo object itself. - */ - public CpkInfo setEncryptionKey(String encryptionKey) { - this.encryptionKey = encryptionKey; - return this; - } - - /** - * Get the encryptionKeySha256 property: The SHA-256 hash of the provided encryption key. Must be provided if the - * x-ms-encryption-key header is provided. - * - * @return the encryptionKeySha256 value. - */ - public String getEncryptionKeySha256() { - return this.encryptionKeySha256; - } - - /** - * Set the encryptionKeySha256 property: The SHA-256 hash of the provided encryption key. Must be provided if the - * x-ms-encryption-key header is provided. - * - * @param encryptionKeySha256 the encryptionKeySha256 value to set. - * @return the CpkInfo object itself. - */ - public CpkInfo setEncryptionKeySha256(String encryptionKeySha256) { - this.encryptionKeySha256 = encryptionKeySha256; - return this; - } - - /** - * Get the encryptionAlgorithm property: The algorithm used to produce the encryption key hash. Currently, the only - * accepted value is "AES256". Must be provided if the x-ms-encryption-key header is provided. - * - * @return the encryptionAlgorithm value. - */ - public EncryptionAlgorithmType getEncryptionAlgorithm() { - return this.encryptionAlgorithm; - } - - /** - * Set the encryptionAlgorithm property: The algorithm used to produce the encryption key hash. Currently, the only - * accepted value is "AES256". Must be provided if the x-ms-encryption-key header is provided. - * - * @param encryptionAlgorithm the encryptionAlgorithm value to set. - * @return the CpkInfo object itself. - */ - public CpkInfo setEncryptionAlgorithm(EncryptionAlgorithmType encryptionAlgorithm) { - this.encryptionAlgorithm = encryptionAlgorithm; - return this; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java index e2262531ebae4..383cd12c2b74c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java @@ -54,24 +54,6 @@ public final class Path { @JsonProperty(value = "permissions") private String permissions; - /* - * The name of the encryption scope under which the blob is encrypted. - */ - @JsonProperty(value = "EncryptionScope") - private String encryptionScope; - - /* - * The creationTime property. - */ - @JsonProperty(value = "creationTime") - private String creationTime; - - /* - * The expiryTime property. - */ - @JsonProperty(value = "expiryTime") - private String expiryTime; - /* * The etag property. */ @@ -218,66 +200,6 @@ public Path setPermissions(String permissions) { return this; } - /** - * Get the encryptionScope property: The name of the encryption scope under which the blob is encrypted. - * - * @return the encryptionScope value. - */ - public String getEncryptionScope() { - return this.encryptionScope; - } - - /** - * Set the encryptionScope property: The name of the encryption scope under which the blob is encrypted. - * - * @param encryptionScope the encryptionScope value to set. - * @return the Path object itself. - */ - public Path setEncryptionScope(String encryptionScope) { - this.encryptionScope = encryptionScope; - return this; - } - - /** - * Get the creationTime property: The creationTime property. - * - * @return the creationTime value. - */ - public String getCreationTime() { - return this.creationTime; - } - - /** - * Set the creationTime property: The creationTime property. - * - * @param creationTime the creationTime value to set. - * @return the Path object itself. - */ - public Path setCreationTime(String creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * Get the expiryTime property: The expiryTime property. - * - * @return the expiryTime value. - */ - public String getExpiryTime() { - return this.expiryTime; - } - - /** - * Set the expiryTime property: The expiryTime property. - * - * @param expiryTime the expiryTime value to set. - * @return the Path object itself. - */ - public Path setExpiryTime(String expiryTime) { - this.expiryTime = expiryTime; - return this; - } - /** * Get the eTag property: The etag property. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataHeaders.java index 34059b4e9ee3a..153d7863453e7 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataHeaders.java @@ -33,12 +33,6 @@ public final class PathsAppendDataHeaders { @JsonProperty(value = "x-ms-content-crc64") private byte[] xMsContentCrc64; - /* - * The x-ms-encryption-key-sha256 property. - */ - @JsonProperty(value = "x-ms-encryption-key-sha256") - private String xMsEncryptionKeySha256; - /* * The x-ms-request-id property. */ @@ -129,26 +123,6 @@ public PathsAppendDataHeaders setXMsContentCrc64(byte[] xMsContentCrc64) { return this; } - /** - * Get the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @return the xMsEncryptionKeySha256 value. - */ - public String getXMsEncryptionKeySha256() { - return this.xMsEncryptionKeySha256; - } - - /** - * Set the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @param xMsEncryptionKeySha256 the xMsEncryptionKeySha256 value to set. - * @return the PathsAppendDataHeaders object itself. - */ - public PathsAppendDataHeaders setXMsEncryptionKeySha256(String xMsEncryptionKeySha256) { - this.xMsEncryptionKeySha256 = xMsEncryptionKeySha256; - return this; - } - /** * Get the xMsRequestId property: The x-ms-request-id property. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateHeaders.java index b0ba2d7dc709c..4ea8ac130754d 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateHeaders.java @@ -38,12 +38,6 @@ public final class PathsCreateHeaders { @JsonProperty(value = "Content-Length") private Long contentLength; - /* - * The x-ms-encryption-key-sha256 property. - */ - @JsonProperty(value = "x-ms-encryption-key-sha256") - private String xMsEncryptionKeySha256; - /* * The x-ms-request-id property. */ @@ -56,12 +50,6 @@ public final class PathsCreateHeaders { @JsonProperty(value = "x-ms-continuation") private String xMsContinuation; - /* - * The x-ms-request-server-encrypted property. - */ - @JsonProperty(value = "x-ms-request-server-encrypted") - private Boolean xMsRequestServerEncrypted; - /* * The Date property. */ @@ -155,26 +143,6 @@ public PathsCreateHeaders setContentLength(Long contentLength) { return this; } - /** - * Get the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @return the xMsEncryptionKeySha256 value. - */ - public String getXMsEncryptionKeySha256() { - return this.xMsEncryptionKeySha256; - } - - /** - * Set the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @param xMsEncryptionKeySha256 the xMsEncryptionKeySha256 value to set. - * @return the PathsCreateHeaders object itself. - */ - public PathsCreateHeaders setXMsEncryptionKeySha256(String xMsEncryptionKeySha256) { - this.xMsEncryptionKeySha256 = xMsEncryptionKeySha256; - return this; - } - /** * Get the xMsRequestId property: The x-ms-request-id property. * @@ -215,26 +183,6 @@ public PathsCreateHeaders setXMsContinuation(String xMsContinuation) { return this; } - /** - * Get the xMsRequestServerEncrypted property: The x-ms-request-server-encrypted property. - * - * @return the xMsRequestServerEncrypted value. - */ - public Boolean isXMsRequestServerEncrypted() { - return this.xMsRequestServerEncrypted; - } - - /** - * Set the xMsRequestServerEncrypted property: The x-ms-request-server-encrypted property. - * - * @param xMsRequestServerEncrypted the xMsRequestServerEncrypted value to set. - * @return the PathsCreateHeaders object itself. - */ - public PathsCreateHeaders setXMsRequestServerEncrypted(Boolean xMsRequestServerEncrypted) { - this.xMsRequestServerEncrypted = xMsRequestServerEncrypted; - return this; - } - /** * Get the dateProperty property: The Date property. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataHeaders.java index a2b09e5609da9..ea066178443a7 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataHeaders.java @@ -38,24 +38,12 @@ public final class PathsFlushDataHeaders { @JsonProperty(value = "Content-Length") private Long contentLength; - /* - * The x-ms-encryption-key-sha256 property. - */ - @JsonProperty(value = "x-ms-encryption-key-sha256") - private String xMsEncryptionKeySha256; - /* * The x-ms-request-id property. */ @JsonProperty(value = "x-ms-request-id") private String xMsRequestId; - /* - * The x-ms-request-server-encrypted property. - */ - @JsonProperty(value = "x-ms-request-server-encrypted") - private Boolean xMsRequestServerEncrypted; - /* * The Date property. */ @@ -155,26 +143,6 @@ public PathsFlushDataHeaders setContentLength(Long contentLength) { return this; } - /** - * Get the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @return the xMsEncryptionKeySha256 value. - */ - public String getXMsEncryptionKeySha256() { - return this.xMsEncryptionKeySha256; - } - - /** - * Set the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @param xMsEncryptionKeySha256 the xMsEncryptionKeySha256 value to set. - * @return the PathsFlushDataHeaders object itself. - */ - public PathsFlushDataHeaders setXMsEncryptionKeySha256(String xMsEncryptionKeySha256) { - this.xMsEncryptionKeySha256 = xMsEncryptionKeySha256; - return this; - } - /** * Get the xMsRequestId property: The x-ms-request-id property. * @@ -195,26 +163,6 @@ public PathsFlushDataHeaders setXMsRequestId(String xMsRequestId) { return this; } - /** - * Get the xMsRequestServerEncrypted property: The x-ms-request-server-encrypted property. - * - * @return the xMsRequestServerEncrypted value. - */ - public Boolean isXMsRequestServerEncrypted() { - return this.xMsRequestServerEncrypted; - } - - /** - * Set the xMsRequestServerEncrypted property: The x-ms-request-server-encrypted property. - * - * @param xMsRequestServerEncrypted the xMsRequestServerEncrypted value to set. - * @return the PathsFlushDataHeaders object itself. - */ - public PathsFlushDataHeaders setXMsRequestServerEncrypted(Boolean xMsRequestServerEncrypted) { - this.xMsRequestServerEncrypted = xMsRequestServerEncrypted; - return this; - } - /** * Get the dateProperty property: The Date property. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadHeaders.java index 6009edaa9ce86..9f6b985a97c33 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadHeaders.java @@ -56,18 +56,6 @@ public final class PathsReadHeaders { @JsonProperty(value = "x-ms-properties") private String xMsProperties; - /* - * The x-ms-encryption-key-sha256 property. - */ - @JsonProperty(value = "x-ms-encryption-key-sha256") - private String xMsEncryptionKeySha256; - - /* - * The x-ms-request-server-encrypted property. - */ - @JsonProperty(value = "x-ms-request-server-encrypted") - private Boolean xMsRequestServerEncrypted; - /* * The Date property. */ @@ -293,46 +281,6 @@ public PathsReadHeaders setXMsProperties(String xMsProperties) { return this; } - /** - * Get the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @return the xMsEncryptionKeySha256 value. - */ - public String getXMsEncryptionKeySha256() { - return this.xMsEncryptionKeySha256; - } - - /** - * Set the xMsEncryptionKeySha256 property: The x-ms-encryption-key-sha256 property. - * - * @param xMsEncryptionKeySha256 the xMsEncryptionKeySha256 value to set. - * @return the PathsReadHeaders object itself. - */ - public PathsReadHeaders setXMsEncryptionKeySha256(String xMsEncryptionKeySha256) { - this.xMsEncryptionKeySha256 = xMsEncryptionKeySha256; - return this; - } - - /** - * Get the xMsRequestServerEncrypted property: The x-ms-request-server-encrypted property. - * - * @return the xMsRequestServerEncrypted value. - */ - public Boolean isXMsRequestServerEncrypted() { - return this.xMsRequestServerEncrypted; - } - - /** - * Set the xMsRequestServerEncrypted property: The x-ms-request-server-encrypted property. - * - * @param xMsRequestServerEncrypted the xMsRequestServerEncrypted value to set. - * @return the PathsReadHeaders object itself. - */ - public PathsReadHeaders setXMsRequestServerEncrypted(Boolean xMsRequestServerEncrypted) { - this.xMsRequestServerEncrypted = xMsRequestServerEncrypted; - return this; - } - /** * Get the dateProperty property: The Date property. * diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java index 7d85b29cc33ff..8f534763371d2 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java @@ -201,18 +201,4 @@ private static HttpPipelinePolicy getResponseValidationPolicy() { public static BlobUserAgentModificationPolicy getBlobUserAgentModificationPolicy() { return new BlobUserAgentModificationPolicy(CLIENT_NAME, CLIENT_VERSION); } - - /** - * Validates that the client is properly configured to use https. - * - * @param objectToCheck The object to check for. - * @param objectName The name of the object. - * @param endpoint The endpoint for the client. - */ - public static void httpsValidation(Object objectToCheck, String objectName, String endpoint, ClientLogger logger) { - if (objectToCheck != null && !BlobUrlParts.parse(endpoint).getScheme().equals(Constants.HTTPS)) { - throw logger.logExceptionAsError(new IllegalArgumentException( - "Using a(n) " + objectName + " requires https")); - } - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/TransformUtils.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/TransformUtils.java index 3a17d428eec91..54d04accadeb6 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/TransformUtils.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/TransformUtils.java @@ -34,8 +34,6 @@ public static BlobServiceVersion toBlobServiceVersion(DataLakeServiceVersion ver return BlobServiceVersion.V2021_02_12; } else if (DataLakeServiceVersion.V2021_04_10.ordinal() == version.ordinal()) { return BlobServiceVersion.V2021_04_10; - } else if (DataLakeServiceVersion.V2021_06_08.ordinal() == version.ordinal()) { - return BlobServiceVersion.V2021_06_08; } return null; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/CustomerProvidedKey.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/CustomerProvidedKey.java deleted file mode 100644 index d75bbc4676317..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/CustomerProvidedKey.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.file.datalake.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; - -import java.security.MessageDigest; -import java.security.NoSuchAlgorithmException; -import java.util.Base64; - -/** - * Contains the customer provided key information used to encrypt a file's content on the server. - */ -@Immutable -public class CustomerProvidedKey { - private static final ClientLogger LOGGER = new ClientLogger(CustomerProvidedKey.class); - - /** - * Base64 encoded string of the encryption key. - */ - private final String key; - - /** - * Base64 encoded string of the encryption key's SHA256 hash. - */ - private final String keySha256; - - /** - * The algorithm for Azure Data Lake Storage to encrypt with. - * Azure Data Lake Storage only offers AES256 encryption. - */ - private final EncryptionAlgorithmType encryptionAlgorithm = EncryptionAlgorithmType.AES256; - - /** - * Creates a new wrapper for a client provided key. - * - * @param key The encryption key encoded as a base64 string. - * @throws RuntimeException If "SHA-256" cannot be found. - */ - public CustomerProvidedKey(String key) { - - this.key = key; - - MessageDigest sha256; - try { - sha256 = MessageDigest.getInstance("SHA-256"); - } catch (NoSuchAlgorithmException e) { - throw LOGGER.logExceptionAsError(new RuntimeException(e)); - } - byte[] keyhash = sha256.digest(Base64.getDecoder().decode(key)); - this.keySha256 = Base64.getEncoder().encodeToString(keyhash); - } - - /** - * Creates a new wrapper for a client provided key. - * - * @param key The encryption key bytes. - * - * @throws RuntimeException If "SHA-256" cannot be found. - */ - public CustomerProvidedKey(byte[] key) { - - this.key = Base64.getEncoder().encodeToString(key); - - MessageDigest sha256; - try { - sha256 = MessageDigest.getInstance("SHA-256"); - } catch (NoSuchAlgorithmException e) { - throw LOGGER.logExceptionAsError(new RuntimeException(e)); - } - byte[] keyhash = sha256.digest(key); - this.keySha256 = Base64.getEncoder().encodeToString(keyhash); - } - - /** - * Gets the encryption key. - * - * @return A base64 encoded string of the encryption key. - */ - public String getKey() { - return key; - } - - /** - * Gets the encryption key's hash. - * - * @return A base64 encoded string of the encryption key hash. - */ - public String getKeySha256() { - return keySha256; - } - - /** - * Gets the algorithm to use this key with. - * - * @return A label for the encryption algorithm, as understood by Azure Storage. - */ - public EncryptionAlgorithmType getEncryptionAlgorithm() { - return encryptionAlgorithm; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/EncryptionAlgorithmType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/EncryptionAlgorithmType.java deleted file mode 100644 index ac6d8ca733608..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/EncryptionAlgorithmType.java +++ /dev/null @@ -1,44 +0,0 @@ -// 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.models; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** Defines values for EncryptionAlgorithmType. */ -public enum EncryptionAlgorithmType { - /** Enum value AES256. */ - AES256("AES256"); - - /** The actual serialized value for a EncryptionAlgorithmType instance. */ - private final String value; - - EncryptionAlgorithmType(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a EncryptionAlgorithmType instance. - * - * @param value the serialized value to parse. - * @return the parsed EncryptionAlgorithmType object, or null if unable to parse. - */ - @JsonCreator - public static EncryptionAlgorithmType fromString(String value) { - EncryptionAlgorithmType[] items = EncryptionAlgorithmType.values(); - for (EncryptionAlgorithmType 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/models/PathInfo.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathInfo.java index 39c8a63069c53..391559f33c538 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathInfo.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathInfo.java @@ -13,8 +13,6 @@ public class PathInfo { private final String eTag; private final OffsetDateTime lastModified; - private final boolean isServerEncrypted; - private final String encryptionKeySha256; /** * Constructs a {@link PathInfo} @@ -22,21 +20,8 @@ public class PathInfo { * @param lastModified Datetime when the path was last modified. */ public PathInfo(String eTag, OffsetDateTime lastModified) { - this(eTag, lastModified, false, null); - } - - /** - * Constructs a {@link PathInfo} - * @param eTag ETag of the path. - * @param lastModified Datetime when the path was last modified. - * @param isServerEncrypted Indicates whether the path is encrypted using Cpk. - * @param encryptionKeySha256 An echo of the SHA256 of the key that was used to encrypt the data. - */ - public PathInfo(String eTag, OffsetDateTime lastModified, boolean isServerEncrypted, String encryptionKeySha256) { this.eTag = eTag; this.lastModified = lastModified; - this.isServerEncrypted = isServerEncrypted; - this.encryptionKeySha256 = encryptionKeySha256; } /** @@ -56,18 +41,4 @@ public String getETag() { public OffsetDateTime getLastModified() { return lastModified; } - - /** - * @return the encryption status of the block blob on the server - */ - public Boolean isServerEncrypted() { - return isServerEncrypted; - } - - /** - * @return the key used to encrypt the block blob - */ - public String getEncryptionKeySha256() { - return encryptionKeySha256; - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathItem.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathItem.java index ef0bffaee6cf0..d3e221564d24a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathItem.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathItem.java @@ -18,8 +18,6 @@ public class PathItem { private final String name; private final String owner; private final String permissions; - private final OffsetDateTime creationTime; - private final OffsetDateTime expiryTime; /** * Constructs a {@link PathItem} @@ -34,24 +32,6 @@ public class PathItem { */ public PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, String name, String owner, String permissions) { - this(eTag, lastModified, contentLength, group, isDirectory, name, owner, permissions, null, null); - } - - /** - * Constructs a {@link PathItem} - * @param eTag ETag of the path. - * @param lastModified Datetime when the path was last modified. - * @param contentLength The content length of the path. - * @param group The group the path belongs to. - * @param isDirectory Whether or not the path is a directory. - * @param name The name of the path. - * @param owner The owner the path belongs to. - * @param permissions The permissions set on the path. - * @param creationTime The creation time of the path item. - * @param expiryTime The expiry time of the path item. - */ - public PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, - String name, String owner, String permissions, OffsetDateTime creationTime, OffsetDateTime expiryTime) { this.eTag = eTag; this.lastModified = lastModified; this.contentLength = contentLength; @@ -60,8 +40,6 @@ public PathItem(String eTag, OffsetDateTime lastModified, long contentLength, St this.name = name; this.owner = owner; this.permissions = permissions; - this.creationTime = creationTime; - this.expiryTime = expiryTime; } /** @@ -135,22 +113,4 @@ public String getOwner() { public String getPermissions() { return permissions; } - - /** - * Get the creation time property. - * - * @return the creation time value. - */ - public OffsetDateTime getCreationTime() { - return creationTime; - } - - /** - * Get the expiry time property. - * - * @return the expiry time value. - */ - public OffsetDateTime getExpiryTime() { - return expiryTime; - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/DataLakePathCreateOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/DataLakePathCreateOptions.java deleted file mode 100644 index 5413d7c10b9db..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/DataLakePathCreateOptions.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.file.datalake.options; - -import com.azure.core.annotation.Fluent; -import com.azure.storage.file.datalake.models.DataLakeRequestConditions; -import com.azure.storage.file.datalake.models.PathHttpHeaders; -import java.util.Map; - -/** - * Extended options that may be passed when creating a datalake resource. - */ -@Fluent -public class DataLakePathCreateOptions { - - private String permissions; - private String umask; - private PathHttpHeaders headers; - private Map metadata; - private DataLakeRequestConditions requestConditions; - - /** - * Constructs a {@link DataLakePathCreateOptions}. - */ - public DataLakePathCreateOptions() { - } - - /** - * Gets the permissions. - * - * @return the permissions - */ - public String getPermissions() { - return permissions; - } - - /** - * Sets the permissions. - * - * @param permissions The permissions. - * @return the updated options. - */ - public DataLakePathCreateOptions setPermissions(String permissions) { - this.permissions = permissions; - return this; - } - - /** - * Gets the umask. - * - * @return the umask. - */ - public String getUmask() { - return umask; - } - - /** - * Sets the umask. - * - * @param umask The umask. - * @return the updated options. - */ - public DataLakePathCreateOptions setUmask(String umask) { - this.umask = umask; - return this; - } - - /** - * Gets the http headers. - * - * @return the http headers. - */ - public PathHttpHeaders getPathHttpHeaders() { - return headers; - } - - /** - * Sets the umask. - * - * @param headers The http headers. - * @return the updated options. - */ - public DataLakePathCreateOptions setPathHttpHeaders(PathHttpHeaders headers) { - this.headers = headers; - return this; - } - - /** - * @return Metadata to associate with the datalake path. - */ - public Map getMetadata() { - return metadata; - } - - /** - * @param metadata Metadata to associate with the datalake path. If there is leading or trailing whitespace in any - * metadata key or value, it must be removed or encoded. - * @return The updated options. - */ - public DataLakePathCreateOptions setMetadata(Map metadata) { - this.metadata = metadata; - return this; - } - - /** - * Gets the request conditions. - * - * @return the request conditions. - */ - public DataLakeRequestConditions getRequestConditions() { - return requestConditions; - } - - /** - * Sets the request conditions. - * - * @param requestConditions The request conditions. - * @return the updated FileQueryOptions object. - */ - public DataLakePathCreateOptions setRequestConditions(DataLakeRequestConditions requestConditions) { - this.requestConditions = requestConditions; - return this; - } - -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/DataLakePathDeleteOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/DataLakePathDeleteOptions.java deleted file mode 100644 index 2825aafc5cff3..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/options/DataLakePathDeleteOptions.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.file.datalake.options; - -import com.azure.core.annotation.Fluent; -import com.azure.storage.file.datalake.models.DataLakeRequestConditions; - -/** - * Extended options that may be passed when deleting a datalake resource. - */ -@Fluent -public class DataLakePathDeleteOptions { - - private boolean isRecursive; - private DataLakeRequestConditions requestConditions; - - /** - * Constructs a {@link DataLakePathDeleteOptions}. - */ - public DataLakePathDeleteOptions() { - } - - /** - * @return whether everything under the resource should be deleted recursively - */ - public boolean getIsRecursive() { - return isRecursive; - } - - /** - * Sets the permissions. - * - * @param recursive whether resource should be deleted recursively. - * @return the updated options. - */ - public DataLakePathDeleteOptions setIsRecursive(boolean recursive) { - isRecursive = recursive; - return this; - } - - /** - * Gets the request conditions. - * - * @return the request conditions. - */ - public DataLakeRequestConditions getRequestConditions() { - return requestConditions; - } - - /** - * Sets the request conditions. - * - * @param requestConditions The request conditions. - * @return the updated FileQueryOptions object. - */ - public DataLakePathDeleteOptions setRequestConditions(DataLakeRequestConditions requestConditions) { - this.requestConditions = requestConditions; - return this; - } - -} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClientJavaDocSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClientJavaDocSamples.java index f5c1562aa4299..1e9f3bb55732e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClientJavaDocSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClientJavaDocSamples.java @@ -5,8 +5,6 @@ import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathHttpHeaders; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import java.util.Collections; import java.util.Map; @@ -22,8 +20,6 @@ public class DataLakeDirectoryAsyncClientJavaDocSamples { private String leaseId = "leaseId"; private String destinationPath = "destinationPath"; private String fileSystemName = "fileSystemName"; - private String key1 = "key1"; - private String value1 = "val1"; /** * Code snippet for {@link DataLakeDirectoryAsyncClient#getSubdirectoryAsyncClient(String)} @@ -196,155 +192,4 @@ public void listPaths() { .subscribe(path -> System.out.printf("Name: %s%n", path.getName())); // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.listPaths#boolean-boolean-Integer } - - /** - * Code snippets for {@link DataLakeDirectoryAsyncClient#deleteIfExists()} and - * {@link DataLakeDirectoryAsyncClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteIfExists - client.deleteIfExists().subscribe(deleted -> { - if (deleted) { - System.out.println("Successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - boolean recursive = false; // Default value - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive) - .setRequestConditions(requestConditions); - - client.deleteIfExistsWithResponse(options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - } - - /** - * Code snippets for {@link DataLakeDirectoryAsyncClient#createFileIfNotExists(String)} and - * {@link DataLakeDirectoryAsyncClient#createFileIfNotExistsWithResponse(String, DataLakePathCreateOptions)} - */ - public void createFileIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileIfNotExists#String - DataLakeFileAsyncClient fileClient = client.createFileIfNotExists(fileName).block(); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - client.createFileIfNotExistsWithResponse(fileName, options).subscribe(response -> { - if (response.getStatusCode() == 409) { - System.out.println("Already exists."); - } else { - System.out.println("successfully created."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions - } - - /** - * Code snippets for {@link DataLakeDirectoryAsyncClient#deleteFile(String)} and - * {@link DataLakeDirectoryAsyncClient#deleteFileIfExistsWithResponse(String, DataLakePathDeleteOptions)} - */ - public void deleteFileIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileIfExists#String - client.deleteFileIfExists(fileName).subscribe(deleted -> { - if (deleted) { - System.out.println("successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - client.deleteFileIfExistsWithResponse(fileName, options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions - } - - /** - * Code snippets for {@link DataLakeDirectoryAsyncClient#createSubdirectoryIfNotExists(String)} and - * {@link DataLakeDirectoryAsyncClient#createSubdirectoryIfNotExistsWithResponse(String, DataLakePathCreateOptions)} - */ - public void createSubdirectoryIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubdirectoryIfNotExists#String - DataLakeDirectoryAsyncClient subdirectoryClient = client.createSubdirectoryIfNotExists(directoryName).block(); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubdirectoryIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubdirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - client.createSubdirectoryIfNotExistsWithResponse(directoryName, options).subscribe(response -> { - if (response.getStatusCode() == 409) { - System.out.println("Already exists."); - } else { - System.out.println("successfully created."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubdirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions - } - - /** - * Code snippets for {@link DataLakeDirectoryAsyncClient#deleteSubdirectoryIfExists(String)} and - * {@link DataLakeDirectoryAsyncClient#deleteSubdirectoryIfExistsWithResponse(String, DataLakePathDeleteOptions)} - */ - public void deleteSubdirectoryIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubdirectoryIfExists#String - client.deleteSubdirectoryIfExists(directoryName).subscribe(deleted -> { - if (deleted) { - System.out.println("Successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubdirectoryIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubdirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - boolean recursive = false; // Default value - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive) - .setRequestConditions(requestConditions); - - client.deleteSubdirectoryIfExistsWithResponse(directoryName, options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubdirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryClientJavaDocSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryClientJavaDocSamples.java index 116e90e922f49..b630858df6db8 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryClientJavaDocSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryClientJavaDocSamples.java @@ -7,8 +7,6 @@ import com.azure.core.util.Context; import com.azure.storage.file.datalake.models.DataLakeRequestConditions; import com.azure.storage.file.datalake.models.PathHttpHeaders; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import java.time.Duration; import java.util.Collections; @@ -200,137 +198,4 @@ public void listPaths() { .forEach(path -> System.out.printf("Name: %s%n", path.getName())); // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.listPaths#boolean-boolean-Integer-Duration } - - /** - * Code snippets for {@link DataLakeDirectoryClient#deleteIfExists()} and - * {@link DataLakeDirectoryClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteIfExists - boolean result = client.deleteIfExists(); - System.out.println("Delete request completed: " + result); - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - boolean recursive = false; // Default value - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive) - .setRequestConditions(requestConditions); - - Response response = client.deleteIfExistsWithResponse(options, timeout, new Context(key1, value1)); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeDirectoryClient#createFileIfNotExists(String)} and - * {@link DataLakeDirectoryClient#createFileIfNotExistsWithResponse(String, DataLakePathCreateOptions, Duration, Context)} - */ - public void createFileIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileIfNotExists#String - DataLakeFileClient fileClient = client.createFileIfNotExists(fileName); - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - PathHttpHeaders headers = new PathHttpHeaders().setContentLanguage("en-US").setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - Response response = client.createFileIfNotExistsWithResponse(fileName, options, timeout, - new Context(key1, value1)); - if (response.getStatusCode() == 409) { - System.out.println("Already existed."); - } else { - System.out.printf("Create completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeDirectoryClient#deleteFileIfExists(String)} and - * {@link DataLakeDirectoryClient#deleteFileIfExistsWithResponse(String, DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteFileIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileIfExists#String - boolean result = client.deleteFileIfExists(fileName); - System.out.println("Delete request completed: " + result); - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - Response response = client.deleteFileIfExistsWithResponse(fileName, options, timeout, - new Context(key1, value1)); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeDirectoryClient#createSubdirectoryIfNotExists(String)} and - * {@link DataLakeDirectoryClient#createSubdirectoryIfNotExistsWithResponse(String, DataLakePathCreateOptions, Duration, Context)} - */ - public void createSubdirectoryIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubdirectoryIfNotExists#String - DataLakeDirectoryClient directoryClient = client.createSubdirectoryIfNotExists(directoryName); - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubdirectoryIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubdirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - Response response = client.createSubdirectoryIfNotExistsWithResponse(directoryName, - options, timeout, new Context(key1, value1)); - if (response.getStatusCode() == 409) { - System.out.println("Already existed."); - } else { - System.out.printf("Create completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubdirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeDirectoryClient#deleteSubdirectoryIfExists(String)} and - * {@link DataLakeDirectoryClient#deleteSubdirectoryIfExistsWithResponse(String, DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteSubdirectoryIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubdirectoryIfExists#String - boolean result = client.deleteSubdirectoryIfExists(directoryName); - System.out.println("Delete request completed: " + result); - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubdirectoryIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubdirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - boolean recursive = false; // Default value - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive) - .setRequestConditions(requestConditions); - - Response response = client.deleteSubdirectoryIfExistsWithResponse(directoryName, options, - timeout, new Context(key1, value1)); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubdirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - } } diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileAsyncClientJavaDocSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileAsyncClientJavaDocSamples.java index 8a1f3429fafce..8ea27b7e305a9 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileAsyncClientJavaDocSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileAsyncClientJavaDocSamples.java @@ -10,7 +10,6 @@ import com.azure.storage.file.datalake.models.FileQueryDelimitedSerialization; import com.azure.storage.file.datalake.models.FileQueryError; import com.azure.storage.file.datalake.models.FileQueryJsonSerialization; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.FileParallelUploadOptions; import com.azure.storage.file.datalake.options.FileQueryOptions; import com.azure.storage.file.datalake.models.FileQueryProgress; @@ -427,35 +426,4 @@ public void scheduleDeletionWithResponse() { // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.scheduleDeletionWithResponse#FileScheduleDeletionOptions } - /** - * Code snippets for {@link DataLakeFileAsyncClient#deleteIfExists()} and - * {@link DataLakeFileAsyncClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteIfExists - client.deleteIfExists().subscribe(deleted -> { - if (deleted) { - System.out.println("Successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - client.deleteIfExistsWithResponse(options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - } - } diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileClientJavaDocSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileClientJavaDocSamples.java index bfe9a78678c82..02c79b35058ac 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileClientJavaDocSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileClientJavaDocSamples.java @@ -12,7 +12,6 @@ import com.azure.storage.file.datalake.models.FileQueryDelimitedSerialization; import com.azure.storage.file.datalake.models.FileQueryError; import com.azure.storage.file.datalake.models.FileQueryJsonSerialization; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.FileParallelUploadOptions; import com.azure.storage.file.datalake.options.FileQueryOptions; import com.azure.storage.file.datalake.models.FileQueryProgress; @@ -412,30 +411,5 @@ public void scheduleDeletionWithResponse() { // END: com.azure.storage.file.datalake.DataLakeFileClient.scheduleDeletionWithResponse#FileScheduleDeletionOptions-Duration-Context } - /** - * Code snippets for {@link DataLakeFileClient#deleteIfExists()} and - * {@link DataLakeFileClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.deleteIfExists - client.deleteIfExists(); - System.out.println("Delete request completed"); - // END: com.azure.storage.file.datalake.DataLakeFileClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - Response response = client.deleteIfExistsWithResponse(options, timeout, new Context(key1, value1)); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - } - } diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemAsyncClientJavaDocCodeSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemAsyncClientJavaDocCodeSamples.java index ae5b8bb87cc0f..f86b1c4e7338b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemAsyncClientJavaDocCodeSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemAsyncClientJavaDocCodeSamples.java @@ -12,8 +12,6 @@ import com.azure.storage.file.datalake.models.PathHttpHeaders; import com.azure.storage.file.datalake.models.PublicAccessType; import com.azure.storage.file.datalake.models.UserDelegationKey; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import com.azure.storage.file.datalake.sas.FileSystemSasPermission; import reactor.core.publisher.Mono; @@ -454,184 +452,6 @@ public void generateSasWithContext() { // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.generateUserDelegationSas#DataLakeServiceSasSignatureValues-UserDelegationKey-String-Context } - /** - * Code snippet for {@link DataLakeFileSystemAsyncClient#createIfNotExists()} and - * for {@link DataLakeFileSystemAsyncClient#createIfNotExistsWithResponse(Map, PublicAccessType)} - */ - public void createIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createIfNotExists - client.createIfNotExists().subscribe(created -> { - if (created) { - System.out.println("Successfully created."); - } else { - System.out.println("Already exists."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createIfNotExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createIfNotExistsWithResponse#Map-PublicAccessType - Map metadata = Collections.singletonMap("metadata", "value"); - client.createIfNotExistsWithResponse(metadata, PublicAccessType.CONTAINER).subscribe(response -> { - if (response.getStatusCode() == 409) { - System.out.println("Already exists."); - } else { - System.out.println("successfully created."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createIfNotExistsWithResponse#Map-PublicAccessType - } - - /** - * Code snippet for {@link DataLakeFileSystemAsyncClient#deleteIfExists()} and - * for {@link DataLakeFileSystemAsyncClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteIfExists - client.deleteIfExists().subscribe(deleted -> { - if (deleted) { - System.out.println("Successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId) - .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - client.deleteIfExistsWithResponse(options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - } - - /** - * Code snippets for {@link DataLakeFileSystemAsyncClient#createFileIfNotExists(String)} and - * {@link DataLakeFileSystemAsyncClient#createFileIfNotExistsWithResponse(String, DataLakePathCreateOptions)} - */ - public void createFileIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileIfNotExists#String - DataLakeFileAsyncClient fileAsyncClient = client.createFileIfNotExists(fileName).block(); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - client.createFileIfNotExistsWithResponse(fileName, options).subscribe(response -> { - if (response.getStatusCode() == 409) { - System.out.println("Already exists."); - } else { - System.out.println("successfully created."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions - } - - /** - * Code snippets for {@link DataLakeFileSystemAsyncClient#deleteFileIfExists(String)} and - * {@link DataLakeFileSystemAsyncClient#deleteFileIfExistsWithResponse(String, DataLakePathDeleteOptions)} - */ - public void deleteFileIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileIfExists#String - client.deleteFileIfExists(fileName).subscribe(deleted -> { - if (deleted) { - System.out.println("Successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - client.deleteFileIfExistsWithResponse(fileName, options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions - } - - /** - * Code snippets for {@link DataLakeFileSystemAsyncClient#createDirectoryIfNotExists(String)} and - * {@link DataLakeFileSystemAsyncClient#createDirectoryIfNotExistsWithResponse(String, DataLakePathCreateOptions)} - */ - public void createDirectoryIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryIfNotExists#String - DataLakeDirectoryAsyncClient directoryAsyncClient = client.createDirectoryIfNotExists(directoryName).block(); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - client.createDirectoryIfNotExistsWithResponse(directoryName, options).subscribe(response -> { - if (response.getStatusCode() == 409) { - System.out.println("Already exists."); - } else { - System.out.println("successfully created."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions - } - - /** - * Code snippets for {@link DataLakeFileSystemAsyncClient#deleteDirectoryIfExists(String)} and - * {@link DataLakeFileSystemAsyncClient#deleteDirectoryIfExistsWithResponse(String, DataLakePathDeleteOptions)} - */ - public void deleteDirectoryIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryIfExists#String - client.deleteDirectoryIfExists(fileName).subscribe(deleted -> { - if (deleted) { - System.out.println("Successfully deleted."); - } else { - System.out.println("Does not exist."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - boolean recursive = false; // Default value - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive) - .setRequestConditions(requestConditions); - - client.deleteDirectoryIfExistsWithResponse(directoryName, options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions - } - // /** // * Code snippet for {@link DataLakeFileSystemAsyncClient#rename(String)} // */ diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientJavaDocCodeSamples.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientJavaDocCodeSamples.java index 819f5c42a7221..20638f587c4c2 100644 --- a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientJavaDocCodeSamples.java +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientJavaDocCodeSamples.java @@ -16,8 +16,6 @@ import com.azure.storage.file.datalake.models.PathHttpHeaders; import com.azure.storage.file.datalake.models.PublicAccessType; import com.azure.storage.file.datalake.models.UserDelegationKey; -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; import com.azure.storage.file.datalake.sas.FileSystemSasPermission; @@ -493,161 +491,6 @@ public void generateSasWithContext() { // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.generateUserDelegationSas#DataLakeServiceSasSignatureValues-UserDelegationKey-String-Context } - /** - * Code snippet for {@link DataLakeFileSystemClient#createIfNotExists()} and - * {@link DataLakeFileSystemClient#createIfNotExistsWithResponse(Map, PublicAccessType, Duration, Context)} - */ - public void createIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createIfNotExists - boolean result = client.createIfNotExists(); - System.out.println("file system created: " + result); - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createIfNotExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createIfNotExistsWithResponse#Map-PublicAccessType-Duration-Context - Map metadata = Collections.singletonMap("metadata", "value"); - Context context = new Context("Key", "Value"); - - Response response = client.createIfNotExistsWithResponse(metadata, PublicAccessType.CONTAINER, timeout, context); - if (response.getStatusCode() == 409) { - System.out.println("Already existed."); - } else { - System.out.printf("Create completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createIfNotExistsWithResponse#Map-PublicAccessType-Duration-Context - } - - /** - * Code snippet for {@link DataLakeFileSystemClient#deleteIfExists()} and - * {@link DataLakeFileSystemClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteIfExists - client.deleteIfExists(); - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId) - .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); - Context context = new Context("Key", "Value"); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - Response response = client.deleteIfExistsWithResponse(options, timeout, context); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeFileSystemClient#createFileIfNotExists(String)} and - * {@link DataLakeFileSystemClient#createFileIfNotExistsWithResponse(String, DataLakePathCreateOptions, Duration, Context)} - */ - public void createFileIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileIfNotExists#String - DataLakeFileClient fileClient = client.createFile(fileName); - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - - PathHttpHeaders headers = new PathHttpHeaders().setContentLanguage("en-US").setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - Response response = client.createFileIfNotExistsWithResponse(fileName, options, timeout, - new Context(key1, value1)); - if (response.getStatusCode() == 409) { - System.out.println("Already existed."); - } else { - System.out.printf("Create completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeFileSystemClient#deleteFileIfExists(String)} and - * {@link DataLakeFileSystemClient#deleteFileIfExistsWithResponse(String, DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteFileIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileIfExists#String - boolean result = client.deleteFileIfExists(fileName); - System.out.println("Delete request completed: " + result); - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setRequestConditions(requestConditions); - - Response response = client.deleteFileIfExistsWithResponse(fileName, options, timeout, new Context(key1, value1)); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeFileSystemClient#createDirectoryIfNotExists(String)} and - * {@link DataLakeFileSystemClient#createDirectoryIfNotExistsWithResponse(String, DataLakePathCreateOptions, Duration, Context)} - */ - public void createDirectoryIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryIfNotExists#String - DataLakeDirectoryClient directoryClient = client.createDirectoryIfNotExists(directoryName); - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryIfNotExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(Collections.singletonMap("metadata", "value")); - - Response response = client.createDirectoryIfNotExistsWithResponse(directoryName, - options, timeout, new Context(key1, value1)); - if (response.getStatusCode() == 409) { - System.out.println("Already existed."); - } else { - System.out.printf("Create completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryIfNotExistsWithResponse#String-DataLakePathCreateOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakeFileSystemClient#deleteDirectoryIfExists(String)} and - * {@link DataLakeFileSystemClient#deleteDirectoryIfExistsWithResponse(String, DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteDirectoryIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryIfExists#String - boolean result = client.deleteDirectoryIfExists(directoryName); - System.out.println("Delete request completed: " + result); - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryIfExists#String - - // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - boolean recursive = false; // Default value - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(recursive) - .setRequestConditions(requestConditions); - - Response response = client.deleteDirectoryIfExistsWithResponse(directoryName, options, - timeout, new Context(key1, value1)); - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryIfExistsWithResponse#String-DataLakePathDeleteOptions-Duration-Context - } - // /** // * Code snippet for {@link DataLakeFileSystemClient#rename(String)} // */ 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 a5211f6a9e1ee..433fbecf7ff0c 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 @@ -13,8 +13,6 @@ 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.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; @@ -455,62 +453,4 @@ public void generateSasWithContext() { client.generateUserDelegationSas(values, userDelegationKey, accountName, new Context("key", "value")); // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.generateUserDelegationSas#DataLakeServiceSasSignatureValues-UserDelegationKey-String-Context } - - /** - * Code snippets for {@link DataLakePathAsyncClient#createIfNotExists()} and - * {@link DataLakePathAsyncClient#createIfNotExistsWithResponse(DataLakePathCreateOptions)} - */ - public void createIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.createIfNotExists - client.createIfNotExists().subscribe(response -> - System.out.printf("Created at %s%n", response.getLastModified())); - // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.createIfNotExists - - // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.createIfNotExistsWithResponse#DataLakePathCreateOptions - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - Map metadata = Collections.singletonMap("metadata", "value"); - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(metadata); - - client.createIfNotExistsWithResponse(options).subscribe(response -> { - if (response.getStatusCode() == 409) { - System.out.println("Already exists."); - } else { - System.out.println("successfully created."); - } - }); - // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.createIfNotExistsWithResponse#DataLakePathCreateOptions - } - - /** - * Code snippets for {@link DataLakePathAsyncClient#deleteIfExists()} and - * {@link DataLakePathAsyncClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.deleteIfExists - client.deleteIfExists().subscribe( - response -> System.out.printf("Delete completed%n"), - error -> System.out.printf("Delete failed: %s%n", error)); - // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - client.deleteIfExistsWithResponse(options).subscribe(response -> { - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.println("successfully deleted."); - } - }); - // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions - } } 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 f2e596566770b..13c89af99d036 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 @@ -17,8 +17,6 @@ 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.DataLakePathCreateOptions; -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions; import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions; import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions; @@ -484,61 +482,4 @@ public void generateSasWithContext() { // END: com.azure.storage.file.datalake.DataLakePathClient.generateUserDelegationSas#DataLakeServiceSasSignatureValues-UserDelegationKey-String-Context } - /** - * Code snippets for {@link DataLakePathClient#createIfNotExists()} and - * {@link DataLakePathClient#createIfNotExistsWithResponse(DataLakePathCreateOptions, Duration, Context)} - */ - public void createIfNotExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.createIfNotExists - PathInfo pathInfo = client.createIfNotExists(); - System.out.printf("Last Modified Time:%s", pathInfo.getLastModified()); - // END: com.azure.storage.file.datalake.DataLakePathClient.createIfNotExists - - // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.createIfNotExistsWithResponse#DataLakePathCreateOptions-Duration-Context - PathHttpHeaders headers = new PathHttpHeaders() - .setContentLanguage("en-US") - .setContentType("binary"); - String permissions = "permissions"; - String umask = "umask"; - Map metadata = Collections.singletonMap("metadata", "value"); - DataLakePathCreateOptions options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - .setPermissions(permissions).setUmask(umask).setMetadata(metadata); - - Response response = client.createIfNotExistsWithResponse(options, timeout, new Context(key1, value1)); - if (response.getStatusCode() == 409) { - System.out.println("Already existed."); - } else { - System.out.printf("Create completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakePathClient.createIfNotExistsWithResponse#DataLakePathCreateOptions-Duration-Context - } - - /** - * Code snippets for {@link DataLakePathClient#deleteIfExists()} and - * {@link DataLakePathClient#deleteIfExistsWithResponse(DataLakePathDeleteOptions, Duration, Context)} - */ - public void deleteIfExistsCodeSnippets() { - // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.deleteIfExists - client.create(); - boolean result = client.deleteIfExists(); - System.out.println("Delete complete: " + result); - // END: com.azure.storage.file.datalake.DataLakePathClient.deleteIfExists - - // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() - .setLeaseId(leaseId); - - DataLakePathDeleteOptions options = new DataLakePathDeleteOptions().setIsRecursive(false) - .setRequestConditions(requestConditions); - - Response response = client.deleteIfExistsWithResponse(options, timeout, new Context(key1, value1)); - - if (response.getStatusCode() == 404) { - System.out.println("Does not exist."); - } else { - System.out.printf("Delete completed with status %d%n", response.getStatusCode()); - } - // END: com.azure.storage.file.datalake.DataLakePathClient.deleteIfExistsWithResponse#DataLakePathDeleteOptions-Duration-Context - } - } diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CPKTest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CPKTest.groovy deleted file mode 100644 index 826169ba3a281..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/CPKTest.groovy +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.file.datalake - -import com.azure.storage.common.implementation.Constants -import com.azure.storage.file.datalake.models.CustomerProvidedKey -import com.azure.storage.file.datalake.models.DataLakeStorageException - -class CPKTest extends APISpec { - CustomerProvidedKey key - DataLakeFileClient cpkFile - DataLakeDirectoryClient cpkDirectory - DataLakeFileSystemClient cpkFileSystem - - def setup() { - key = new CustomerProvidedKey(getRandomKey()) - def builder = instrument(new DataLakeFileSystemClientBuilder()) - .endpoint(fsc.getFileSystemUrl().toString()) - .customerProvidedKey(key) - .credential(environment.dataLakeAccount.credential) - - cpkFileSystem = builder.buildClient() - cpkDirectory = cpkFileSystem.getDirectoryClient(generatePathName()) - cpkFile = cpkFileSystem.getFileClient(generatePathName()) - } - - /** - * Insecurely and quickly generates a random AES256 key for the purpose of unit tests. No one should ever make a - * real key this way. - */ - def getRandomKey(long seed = new Random().nextLong()) { - def key = new byte[32] // 256 bit key - new Random(seed).nextBytes(key) - return key - } - - def "Path create"() { - when: - def response = cpkDirectory.createWithResponse(null, null, null, null, null, null, null) - - then: - response.getStatusCode() == 201 - response.getValue().isServerEncrypted() - response.getValue().getEncryptionKeySha256() == key.getKeySha256() - } - - def "Path get properties"() { - setup: - cpkFile.create() - - when: - def response = cpkFile.getPropertiesWithResponse(null, null, null) - - then: - response.getStatusCode() == 200 - Boolean.parseBoolean(response.getHeaders().getValue(Constants.HeaderConstants.SERVER_ENCRYPTED)) - response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) == key.getKeySha256() - } - - def "Path set metadata"() { - setup: - def metadata = new HashMap() - metadata.put("foo", "bar") - cpkFile.create() - - when: - def response = cpkFile.setMetadataWithResponse(metadata, null, null, null) - - then: - response.getStatusCode() == 200 - Boolean.parseBoolean(response.getHeaders().getValue(Constants.HeaderConstants.REQUEST_SERVER_ENCRYPTED)) - response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) == key.getKeySha256() - } - - def "File read"() { - setup: - cpkFile.create() - - when: - cpkFile.readWithResponse(new ByteArrayOutputStream(), null, null, null, false, null, null) - - then: - notThrown(DataLakeStorageException) - } - - def "File append"() { - setup: - cpkFile.create() - - when: - def response = cpkFile.appendWithResponse(getData().defaultInputStream, 0, getData().defaultDataSizeLong, null, - null, null, null) - - then: - Boolean.parseBoolean(response.getHeaders().getValue(Constants.HeaderConstants.REQUEST_SERVER_ENCRYPTED)) - response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) == key.getKeySha256() - } - - def "File flush"() { - setup: - cpkFile.create() - cpkFile.append(getData().defaultInputStream, 0, getData().defaultDataSizeLong) - - when: - def response = cpkFile.flushWithResponse(getData().defaultDataSizeLong, true, true, null, null, null, null) - - then: - Boolean.parseBoolean(response.getHeaders().getValue(Constants.HeaderConstants.REQUEST_SERVER_ENCRYPTED)) - response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) == key.getKeySha256() - } - - def "Directory createSupDir"() { - setup: - cpkDirectory.create() - - when: - def response = cpkDirectory.createSubdirectoryWithResponse(generatePathName(), null, null, null, null, null, null, - null) - - then: - response.getValue().getCustomerProvidedKey().getKeySha256() == key.getKeySha256() - Boolean.parseBoolean(response.getHeaders().getValue(Constants.HeaderConstants.REQUEST_SERVER_ENCRYPTED)) - response.getHeaders().getValue(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) == key.getKeySha256() - } - - def "getCustomerProvidedKeyClient"() { - setup: - def newCpk = new CustomerProvidedKey(getRandomKey()) - - when: "FileClieng" - def newCpkFileClient = cpkFile.getCustomerProvidedKeyClient(newCpk) - - then: - newCpkFileClient instanceof DataLakeFileClient - newCpkFileClient.getCustomerProvidedKey() != cpkFile.getCustomerProvidedKey() - - when: "Directory" - def newCpkDirectoryClient = cpkDirectory.getCustomerProvidedKeyClient(newCpk) - - then: - newCpkDirectoryClient instanceof DataLakeDirectoryClient - newCpkDirectoryClient.getCustomerProvidedKey() != cpkDirectory.getCustomerProvidedKey() - - when: "PathClient" - def newCpkPathClient = ((DataLakePathClient) cpkFile).getCustomerProvidedKeyClient(newCpk) - - then: - newCpkPathClient instanceof DataLakePathClient - newCpkPathClient.getCustomerProvidedKey() != cpkFile.getCustomerProvidedKey() - } - - def "Exists without CPK"() { - setup: - cpkFile.create() - def clientWithoutCpk = cpkFile.getCustomerProvidedKeyClient(null) - - expect: - clientWithoutCpk.exists() - } -} 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 aac0823a2f725..17ef3d5592d5d 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 @@ -14,8 +14,6 @@ import com.azure.storage.blob.models.BlobErrorCode import com.azure.storage.common.Utility import com.azure.storage.common.test.shared.extensions.RequiredServiceVersion import com.azure.storage.file.datalake.models.* -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions import com.azure.storage.file.datalake.options.PathRemoveAccessControlRecursiveOptions import com.azure.storage.file.datalake.options.PathSetAccessControlRecursiveOptions import com.azure.storage.file.datalake.options.PathUpdateAccessControlRecursiveOptions @@ -27,7 +25,6 @@ import spock.lang.IgnoreIf import spock.lang.Unroll import java.util.function.Consumer -import java.util.logging.FileHandler import java.util.stream.Collectors class DirectoryAPITest extends APISpec { @@ -230,119 +227,6 @@ class DirectoryAPITest extends APISpec { dc.createWithResponse(permissions, umask, null, null, null, null, Context.NONE).getStatusCode() == 201 } - def "Create if not exists min"() { - when: - dc = fsc.getDirectoryClient(generatePathName()) - dc.createIfNotExists() - - then: - notThrown(DataLakeStorageException) - } - - def "Create if not exists defaults"() { - setup: - dc = fsc.getDirectoryClient(generatePathName()) - - when: - def createResponse = dc.createIfNotExistsWithResponse(new DataLakePathCreateOptions(), null, null) - - then: - createResponse.getStatusCode() == 201 - validateBasicHeaders(createResponse.getHeaders()) - } - - def "Create if not exists overwrite"() { - setup: - def options = new DataLakePathCreateOptions() - when: - dc = fsc.getDirectoryClient(generatePathName()) - def initialResponse = dc.createIfNotExistsWithResponse(options, null, null) - - // Try to create the resource again - def secondResponse = dc.createIfNotExistsWithResponse(options, null, null) - - then: - initialResponse.getStatusCode() == 201 - secondResponse.getStatusCode() == 409 - } - - def "Create if not exists does exist"() { - when: - dc = fsc.getDirectoryClient(generatePathName()) - dc.createIfNotExists() - - then: - dc.exists() - } - - @Unroll - def "Create if not exists headers"() { - // Create does not set md5 - setup: - def headers = new PathHttpHeaders().setCacheControl(cacheControl) - .setContentDisposition(contentDisposition) - .setContentEncoding(contentEncoding) - .setContentLanguage(contentLanguage) - .setContentType(contentType) - dc = fsc.getDirectoryClient(generatePathName()) - def options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - - when: - dc.createIfNotExistsWithResponse(options, null, null) - def response = dc.getPropertiesWithResponse(null, null, null) - - // If the value isn't set the service will automatically set it - contentType = (contentType == null) ? "application/octet-stream" : contentType - - then: - validatePathProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, null, contentType) - - where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentType - null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | "type" - } - - @Unroll - def "Create if not exists metadata"() { - setup: - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - def options = new DataLakePathCreateOptions().setMetadata(metadata) - - when: - dc.createIfNotExistsWithResponse(options, null, Context.NONE) - def response = dc.getProperties() - - then: - // Directory adds a directory metadata value - for(String k : metadata.keySet()) { - response.getMetadata().containsKey(k) - response.getMetadata().get(k) == metadata.get(k) - } - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - } - - def "Create if not exists permissions and umask"() { - setup: - def client = fsc.getDirectoryClient(generatePathName()) - def permissions = "0777" - def umask = "0057" - def options = new DataLakePathCreateOptions().setPermissions(permissions).setUmask(umask) - - expect: - client.createIfNotExistsWithResponse(options, null, Context.NONE).getStatusCode() == 201 - } - def "Delete min"() { expect: dc.deleteWithResponse(false, null, null, null).getStatusCode() == 200 @@ -417,96 +301,6 @@ class DirectoryAPITest extends APISpec { null | null | null | null | garbageLeaseID } - def "Delete if exists"() { - expect: - dc.deleteIfExists() - } - - def "Delete if exists min"() { - expect: - dc.deleteIfExistsWithResponse(null, null, null).getStatusCode() == 200 - } - - def "Delete if exists recursive"() { - expect: - dc.deleteIfExistsWithResponse(new DataLakePathDeleteOptions().setIsRecursive(true), - null, null).getStatusCode() == 200 - } - - def "Delete if exists dir does not exist anymore"() { - when: - def response = dc.deleteIfExistsWithResponse(null, null, null) - dc.getPropertiesWithResponse(null, null, null) - - then: - thrown(DataLakeStorageException) - response.getStatusCode() == 200 - } - - def "Delete if exists dir that was already deleted"() { - when: - def initialResponse = dc.deleteIfExistsWithResponse(null, null, null) - def secondResponse = dc.deleteIfExistsWithResponse(null, null, null) - - then: - initialResponse.getStatusCode() == 200 - secondResponse.getStatusCode() == 404 - } - - @Unroll - def "Delete if exists AC"() { - setup: - match = setupPathMatchCondition(dc, match) - leaseID = setupPathLeaseCondition(dc, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc).setIsRecursive(false) - - expect: - dc.deleteIfExistsWithResponse(options, null, null).getStatusCode() == 200 - - where: - modified | unmodified | match | noneMatch | leaseID - null | null | null | null | null - oldDate | null | null | null | null - null | newDate | null | null | null - null | null | receivedEtag | null | null - null | null | null | garbageEtag | null - null | null | null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists AC fail"() { - setup: - noneMatch = setupPathMatchCondition(dc, noneMatch) - setupPathLeaseCondition(dc, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc).setIsRecursive(false) - - when: - dc.deleteIfExistsWithResponse(options, null, null).getStatusCode() - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | match | noneMatch | leaseID - newDate | null | null | null | null - null | oldDate | null | null | null - null | null | garbageEtag | null | null - null | null | null | receivedEtag | null - null | null | null | null | garbageLeaseID - } - def "Set permissions min"() { when: def resp = dc.setPermissions(permissions, group, owner) @@ -2564,6 +2358,15 @@ class DirectoryAPITest extends APISpec { false || _ } + def "Create file defaults"() { + when: + def createResponse = dc.createFileWithResponse(generatePathName(), null, null, null, null, null, null, null) + + then: + createResponse.getStatusCode() == 201 + validateBasicHeaders(createResponse.getHeaders()) + } + def "Create file error"() { when: dc.createFileWithResponse(generatePathName(), null, null, null, null, new DataLakeRequestConditions().setIfMatch("garbage"), null, @@ -2691,102 +2494,6 @@ class DirectoryAPITest extends APISpec { dc.createFileWithResponse(generatePathName(), permissions, umask, null, null, null, null, Context.NONE).getStatusCode() == 201 } - def "Create if not exists file min"() { - when: - def result = dc.createFileIfNotExists(generatePathName()) - - then: - notThrown(DataLakeStorageException) - result.exists() - } - - @Unroll - def "Create if not exists file overwrite"() { - setup: - def pathName = generatePathName() - def initialResponse = dc.createFileIfNotExistsWithResponse(pathName, null, null, null) - - when: - def secondResponse = dc.createFileIfNotExistsWithResponse(pathName, null, null, null) - - then: - initialResponse.getStatusCode() == 201 - secondResponse.getStatusCode() == 409 - } - - def "Create if not exists file defaults"() { - when: - def createResponse = dc.createFileIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions(), null, null) - - then: - createResponse.getStatusCode() == 201 - validateBasicHeaders(createResponse.getHeaders()) - } - - @Unroll - def "Create if not exists file headers"() { - // Create does not set md5 - setup: - def headers = new PathHttpHeaders().setCacheControl(cacheControl) - .setContentDisposition(contentDisposition) - .setContentEncoding(contentEncoding) - .setContentLanguage(contentLanguage) - .setContentType(contentType) - def options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - - when: - def client = dc.createFileIfNotExistsWithResponse(generatePathName(), options, null, null).getValue() - def response = client.getPropertiesWithResponse(null, null, null) - - // If the value isn't set the service will automatically set it - contentType = (contentType == null) ? "application/octet-stream" : contentType - - then: - validatePathProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, null, contentType) - - where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentType - null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | "type" - } - - @Unroll - def "Create if not exists file metadata"() { - setup: - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - def options = new DataLakePathCreateOptions().setMetadata(metadata) - - when: - def client = dc.createFileIfNotExistsWithResponse(generatePathName(), options, null, Context.NONE).getValue() - def response = client.getProperties() - - then: - client.exists() - response.getMetadata() == metadata - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - } - - def "Create if not exists file permissions and umask"() { - setup: - def client = fsc.getDirectoryClient(generatePathName()) - def permissions = "0777" - def umask = "0057" - def options = new DataLakePathCreateOptions().setPermissions(permissions).setUmask(umask) - - expect: - client.createFileIfNotExistsWithResponse(generatePathName(), options, null, Context.NONE).getStatusCode() == 201 - } - def "Delete file min"() { expect: def pathName = generatePathName() @@ -2864,102 +2571,6 @@ class DirectoryAPITest extends APISpec { null | null | null | null | garbageLeaseID } - def "Delete if exists file"() { - expect: - def pathName = generatePathName() - dc.createFile(pathName) - dc.deleteFileIfExists(pathName) - } - - def "Delete if exists file min"() { - expect: - def pathName = generatePathName() - dc.createFile(pathName) - dc.deleteFileIfExistsWithResponse(pathName, null, null, null).getStatusCode() == 200 - } - - def "Delete if exists file file does not exist anymore"() { - when: - def pathName = generatePathName() - def client = dc.createFile(pathName) - def response = dc.deleteFileIfExistsWithResponse(pathName, null, null, null) - - then: - response.getStatusCode() == 200 - !client.exists() - } - - def "Delete if exists file file that was already deleted"() { - when: - def pathName = generatePathName() - def client = dc.createFile(pathName) - def response = dc.deleteFileIfExistsWithResponse(pathName, null, null, null) - def response2 = dc.deleteFileIfExistsWithResponse(pathName, null, null, null) - - then: - response.getStatusCode() == 200 - !client.exists() - response2.getStatusCode() == 404 - } - - @Unroll - def "Delete if exists file AC"() { - setup: - def pathName = generatePathName() - def client = dc.createFile(pathName) - match = setupPathMatchCondition(client, match) - leaseID = setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - expect: - dc.deleteFileIfExistsWithResponse(pathName, options, null, null).getStatusCode() == 200 - - where: - modified | unmodified | match | noneMatch | leaseID - null | null | null | null | null - oldDate | null | null | null | null - null | newDate | null | null | null - null | null | receivedEtag | null | null - null | null | null | garbageEtag | null - null | null | null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists file AC fail"() { - setup: - def pathName = generatePathName() - def client = dc.createFile(pathName) - noneMatch = setupPathMatchCondition(client, noneMatch) - setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - when: - dc.deleteFileIfExistsWithResponse(pathName, options, null, null).getStatusCode() - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | match | noneMatch | leaseID - newDate | null | null | null | null - null | oldDate | null | null | null - null | null | garbageEtag | null | null - null | null | null | receivedEtag | null - null | null | null | null | garbageLeaseID - } - def "Create sub dir min"() { when: dc.createSubdirectory(generatePathName()) @@ -3132,121 +2743,6 @@ class DirectoryAPITest extends APISpec { dc.createSubdirectoryWithResponse(generatePathName(), permissions, umask, null, null, null, null, Context.NONE).getStatusCode() == 201 } - def "Create if not exists sub dir min"() { - when: - def client = dc.createSubdirectoryIfNotExists(generatePathName()) - - then: - notThrown(DataLakeStorageException) - client.exists() - } - - @Unroll - def "Create if not exists sub dir overwrite"() { - setup: - def pathName = generatePathName() - def client = dc.createSubdirectoryIfNotExists(pathName) - - when: - def secondClient = dc.createSubdirectoryIfNotExists(pathName) - - then: - client.exists() - // same client is returned since subdirectory has already been created - secondClient.exists() - client.getDirectoryName() == secondClient.getDirectoryName() - } - - @Unroll - def "Create if not exists sub dir that already exists"() { - setup: - def pathName = generatePathName() - def initialResponse = dc.createSubdirectoryIfNotExistsWithResponse(pathName, new DataLakePathCreateOptions(), null, null) - - when: - def secondResponse = dc.createSubdirectoryIfNotExistsWithResponse(pathName, new DataLakePathCreateOptions(), null, null) - - then: - initialResponse.getStatusCode() == 201 - secondResponse.getStatusCode() == 409 - } - - def "Create if not exists sub dir defaults"() { - when: - def createResponse = dc.createSubdirectoryIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions(), null, null) - - then: - createResponse.getStatusCode() == 201 - validateBasicHeaders(createResponse.getHeaders()) - } - - @Unroll - def "Create if not exists sub dir headers"() { - // Create does not set md5 - setup: - def headers = new PathHttpHeaders().setCacheControl(cacheControl) - .setContentDisposition(contentDisposition) - .setContentEncoding(contentEncoding) - .setContentLanguage(contentLanguage) - .setContentType(contentType) - def options = new DataLakePathCreateOptions().setPathHttpHeaders(headers) - - when: - def client = dc.createSubdirectoryIfNotExistsWithResponse(generatePathName(), options, null, null).getValue() - def response = client.getPropertiesWithResponse(null, null, null) - - // If the value isn't set the service will automatically set it - contentType = (contentType == null) ? "application/octet-stream" : contentType - - then: - validatePathProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, null, contentType) - - where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentType - null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | "type" - } - - @Unroll - def "Create if not exists sub dir metadata"() { - setup: - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - def options = new DataLakePathCreateOptions().setMetadata(metadata) - - when: - def client = dc.createSubdirectoryIfNotExistsWithResponse(generatePathName(), options, null, Context.NONE).getValue() - def response = client.getProperties() - - then: - // Directory adds a directory metadata value - for(String k : metadata.keySet()) { - response.getMetadata().containsKey(k) - response.getMetadata().get(k) == metadata.get(k) - } - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - } - - def "Create if not exists sub dir permissions and umask"() { - setup: - def client = fsc.getDirectoryClient(generatePathName()) - def permissions = "0777" - def umask = "0057" - def options = new DataLakePathCreateOptions().setPermissions(permissions).setUmask(umask) - - expect: - client.createSubdirectoryIfNotExistsWithResponse(generatePathName(), options, null, Context.NONE).getStatusCode() == 201 - } - def "Delete sub dir min"() { expect: def pathName = generatePathName() @@ -3331,96 +2827,6 @@ class DirectoryAPITest extends APISpec { null | null | null | null | garbageLeaseID } - def "Delete if exists sub dir"() { - expect: - def pathName = generatePathName() - dc.createSubdirectoryIfNotExists(pathName) - dc.deleteSubdirectoryIfExists(pathName) - } - - def "Delete if exists sub dir min"() { - expect: - def pathName = generatePathName() - dc.createSubdirectoryIfNotExists(pathName) - dc.deleteSubdirectoryIfExistsWithResponse(pathName, null, null, null).getStatusCode() == 200 - } - - def "Delete if exists sub dir recursive"() { - expect: - def pathName = generatePathName() - dc.createSubdirectory(pathName) - dc.deleteSubdirectoryIfExistsWithResponse(pathName, new DataLakePathDeleteOptions().setIsRecursive(true), null, null).getStatusCode() == 200 - } - - def "Delete if exists sub dir dir does not exist anymore"() { - when: - def pathName = generatePathName() - def client = dc.createSubdirectory(pathName) - def response = dc.deleteSubdirectoryIfExistsWithResponse(pathName, null, null, null) - - then: - response.getStatusCode() == 200 - !client.exists() - } - - @Unroll - def "Delete if exists sub dir AC"() { - setup: - def pathName = generatePathName() - def client = dc.createSubdirectory(pathName) - match = setupPathMatchCondition(client, match) - leaseID = setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc).setIsRecursive(false) - - expect: - dc.deleteSubdirectoryIfExistsWithResponse(pathName, options, null, null).getStatusCode() == 200 - - where: - modified | unmodified | match | noneMatch | leaseID - null | null | null | null | null - oldDate | null | null | null | null - null | newDate | null | null | null - null | null | receivedEtag | null | null - null | null | null | garbageEtag | null - null | null | null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists sub dir AC fail"() { - setup: - def pathName = generatePathName() - def client = dc.createSubdirectory(pathName) - noneMatch = setupPathMatchCondition(client, noneMatch) - setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc).setIsRecursive(false) - - when: - dc.deleteSubdirectoryIfExistsWithResponse(pathName, options, null, null).getStatusCode() - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | match | noneMatch | leaseID - newDate | null | null | null | null - null | oldDate | null | null | null - null | null | garbageEtag | null | null - null | null | null | receivedEtag | null - null | null | null | null | garbageLeaseID - } - @Unroll def "Get Directory Name and Build Client"() { when: 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 7aa44913534c6..73da0083f8dcf 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 @@ -15,9 +15,11 @@ import com.azure.storage.blob.models.BlobStorageException import com.azure.storage.common.ParallelTransferOptions import com.azure.storage.common.ProgressReceiver import com.azure.storage.common.implementation.Constants +import com.azure.storage.common.sas.AccountSasPermission +import com.azure.storage.common.sas.AccountSasResourceType +import com.azure.storage.common.sas.AccountSasService +import com.azure.storage.common.sas.AccountSasSignatureValues import com.azure.storage.common.test.shared.extensions.LiveOnly -import com.azure.storage.common.test.shared.extensions.PlaybackOnly - import com.azure.storage.common.test.shared.extensions.RequiredServiceVersion import com.azure.storage.common.test.shared.policy.MockFailureResponsePolicy import com.azure.storage.common.test.shared.policy.MockRetryRangeResponsePolicy @@ -44,8 +46,6 @@ 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.DataLakePathCreateOptions -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions import com.azure.storage.file.datalake.options.FileParallelUploadOptions import com.azure.storage.file.datalake.options.FileQueryOptions import com.azure.storage.file.datalake.options.FileScheduleDeletionOptions @@ -266,113 +266,6 @@ class FileAPITest extends APISpec { fc.createWithResponse(permissions, umask, null, null, null, null, Context.NONE).getStatusCode() == 201 } - def "Create if not exists min"() { - when: - fc = fsc.getFileClient(generatePathName()) - fc.createIfNotExists() - - then: - notThrown(DataLakeStorageException) - fc.exists() - } - - def "Create if not exists defaults"() { - setup: - fc = fsc.getFileClient(generatePathName()) - - when: - def createResponse = fc.createIfNotExistsWithResponse(new DataLakePathCreateOptions(), null, null) - - then: - createResponse.getStatusCode() == 201 - validateBasicHeaders(createResponse.getHeaders()) - } - - def "Create if not exists overwrite"() { - when: - fc = fsc.getFileClient(generatePathName()) - def initialResponse = fc.createIfNotExistsWithResponse(new DataLakePathCreateOptions(), null, null) - - // Try to create the resource again - def secondResponse = fc.createIfNotExistsWithResponse(new DataLakePathCreateOptions(), null, null) - - then: - initialResponse.getStatusCode() == 201 - fc.exists() - secondResponse.getStatusCode() == 409 - } - - def "Create if not exists Exists"() { - when: - fc = fsc.getFileClient(generatePathName()) - fc.createIfNotExists() - - then: - fc.exists() - } - - @Unroll - def "Create if not exists headers"() { - // Create does not set md5 - setup: - def headers = new PathHttpHeaders().setCacheControl(cacheControl) - .setContentDisposition(contentDisposition) - .setContentEncoding(contentEncoding) - .setContentLanguage(contentLanguage) - .setContentType(contentType) - fc = fsc.getFileClient(generatePathName()) - - when: - fc.createIfNotExistsWithResponse(new DataLakePathCreateOptions().setPathHttpHeaders(headers), null, null) - def response = fc.getPropertiesWithResponse(null, null, null) - - // If the value isn't set the service will automatically set it - contentType = (contentType == null) ? "application/octet-stream" : contentType - - then: - validatePathProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, null, contentType) - - where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentType - null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | "type" - } - - @Unroll - def "Create if not exists metadata"() { - setup: - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - - when: - def client = fsc.getFileClient(generatePathName()) - client.createIfNotExistsWithResponse(new DataLakePathCreateOptions().setMetadata(metadata), null, Context.NONE) - def response = client.getProperties() - - then: - response.getMetadata() == metadata - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - } - - def "Create if not exists permissions and umask"() { - setup: - def permissions = "0777" - def umask = "0057" - - expect: - def client = fsc.getFileClient(generatePathName()) - client.createIfNotExistsWithResponse(new DataLakePathCreateOptions().setUmask(umask), null, Context.NONE).getStatusCode() == 201 - } - def "Delete min"() { expect: fc.deleteWithResponse(null, null, null).getStatusCode() == 200 @@ -441,91 +334,6 @@ class FileAPITest extends APISpec { null | null | null | null | garbageLeaseID } - def "Delete if exists"() { - expect: - fc.deleteIfExists() - } - - def "Delete if exists min"() { - expect: - fc.deleteIfExistsWithResponse(null, null, null).getStatusCode() == 200 - } - - def "Delete if exists file does not exist anymore"() { - when: - def response = fc.deleteIfExistsWithResponse(null, null, null) - fc.getPropertiesWithResponse(null, null, null) - - then: - thrown(DataLakeStorageException) - response.getStatusCode() == 200 - } - - def "Delete if exists file that does not exist"() { - when: - def initialResponse = fc.deleteIfExistsWithResponse(null, null, null) - def secondResponse = fc.deleteIfExistsWithResponse(null, null, null) - - then: - initialResponse.getStatusCode() == 200 - secondResponse.getStatusCode() == 404 - } - - @Unroll - def "Delete if exists AC"() { - setup: - match = setupPathMatchCondition(fc, match) - leaseID = setupPathLeaseCondition(fc, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - - def options = new DataLakePathDeleteOptions().setIsRecursive(false).setRequestConditions(drc) - - expect: - fc.deleteIfExistsWithResponse(options, null, null).getStatusCode() == 200 - - where: - modified | unmodified | match | noneMatch | leaseID - null | null | null | null | null - oldDate | null | null | null | null - null | newDate | null | null | null - null | null | receivedEtag | null | null - null | null | null | garbageEtag | null - null | null | null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists AC fail"() { - setup: - noneMatch = setupPathMatchCondition(fc, noneMatch) - setupPathLeaseCondition(fc, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - when: - fc.deleteIfExistsWithResponse(options, null, null).getStatusCode() - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | match | noneMatch | leaseID - newDate | null | null | null | null - null | oldDate | null | null | null - null | null | garbageEtag | null | null - null | null | null | receivedEtag | null - null | null | null | null | garbageLeaseID - } - def "Set permissions min"() { when: def resp = fc.setPermissions(permissions, group, owner) @@ -3606,7 +3414,6 @@ class FileAPITest extends APISpec { @RequiredServiceVersion(clazz = DataLakeServiceVersion.class, min = "V2019_12_12") @Retry(count = 5, delay = 5, condition = { environment.testMode == TestMode.LIVE }) - @PlaybackOnly(expiryTime = "2022-05-18") def "Query Input csv Output arrow"() { setup: FileQueryDelimitedSerialization inSer = new FileQueryDelimitedSerialization() @@ -3620,14 +3427,14 @@ class FileAPITest extends APISpec { schema.add(new FileQueryArrowField(FileQueryArrowFieldType.DECIMAL).setName("Name").setPrecision(4).setScale(2)) FileQueryArrowSerialization outSer = new FileQueryArrowSerialization().setSchema(schema) def expression = "SELECT _2 from BlobStorage WHERE _1 > 250;" - String expectedData = "/////4AAAAAQAAAAAAAKAAwABgAFAAgACgAAAAABBAAMAAAACAAIAAAABAAIAAAABAAAAAEAAAAUAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEHEAAAACAAAAAEAAAAAAAAAAQAAABOYW1lAAAAAAgADAAEAAgACAAAAAQAAAACAAAAAAAAAP////9wAAAAEAAAAAAACgAOAAYABQAIAAoAAAAAAwQAEAAAAAAACgAMAAAABAAIAAoAAAAwAAAABAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAA/////4gAAAAUAAAAAAAAAAwAFgAGAAUACAAMAAwAAAAAAwQAGAAAAAACAAAAAAAAAAAKABgADAAEAAgACgAAADwAAAAQAAAAIAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAEAAAAgAAAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAAA=" + String expectedData = "/////4AAAAAQAAAAAAAKAAwABgAFAAgACgAAAAABAwAMAAAACAAIAAAABAAIAAAABAAAAAEAAAAUAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEHJAAAABQAAAAEAAAAAAAAAAgADAAEAAgACAAAAAQAAAACAAAABAAAAE5hbWUAAAAAAAAAAP////9wAAAAEAAAAAAACgAOAAYABQAIAAoAAAAAAwMAEAAAAAAACgAMAAAABAAIAAoAAAAwAAAABAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAP////+IAAAAFAAAAAAAAAAMABYABgAFAAgADAAMAAAAAAMDABgAAAAAAgAAAAAAAAAACgAYAAwABAAIAAoAAAA8AAAAEAAAACAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAABAAAAIAAAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAA" OutputStream os = new ByteArrayOutputStream() - FileQueryOptions options = new FileQueryOptions(expression, os).setOutputSerialization(outSer) + FileQueryOptions options = new FileQueryOptions(expression, os).setInputSerialization(inSer).setOutputSerialization(outSer) /* Input Stream. */ when: InputStream qqStream = fc.openQueryInputStreamWithResponse(options).getValue() - byte[] queryData = readFromInputStream(qqStream, 920) + byte[] queryData = readFromInputStream(qqStream, 912) then: notThrown(IOException) @@ -4228,5 +4035,4 @@ class FileAPITest extends APISpec { notThrown(DataLakeStorageException) response.getHeaders().getValue("x-ms-version") == "2019-02-02" } - } diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileSystemAPITest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileSystemAPITest.groovy index 1d202ce05f50f..53d0a2b07a4e7 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileSystemAPITest.groovy +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileSystemAPITest.groovy @@ -5,8 +5,6 @@ import com.azure.identity.DefaultAzureCredentialBuilder import com.azure.storage.blob.BlobUrlParts import com.azure.storage.blob.models.BlobErrorCode import com.azure.storage.common.Utility -import com.azure.storage.common.test.shared.extensions.RequiredServiceVersion -import com.azure.storage.common.test.shared.extensions.PlaybackOnly import com.azure.storage.file.datalake.models.DataLakeAccessPolicy import com.azure.storage.file.datalake.models.DataLakeRequestConditions import com.azure.storage.file.datalake.models.DataLakeSignedIdentifier @@ -18,9 +16,6 @@ import com.azure.storage.file.datalake.models.PathAccessControlEntry import com.azure.storage.file.datalake.models.PathHttpHeaders import com.azure.storage.file.datalake.models.PathItem import com.azure.storage.file.datalake.models.PublicAccessType -import com.azure.storage.file.datalake.options.DataLakePathCreateOptions -import com.azure.storage.file.datalake.options.DataLakePathDeleteOptions -import com.azure.storage.file.datalake.options.FileScheduleDeletionOptions import spock.lang.Unroll import java.time.OffsetDateTime @@ -108,89 +103,6 @@ class FileSystemAPITest extends APISpec { e.getServiceMessage().contains("The specified container already exists.") } - def "Create if not exists all null"() { - setup: - // Overwrite the existing fsc, which has already been created - fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - - when: - def response = fsc.createIfNotExistsWithResponse(null, null, null, null) - - then: - response.getStatusCode() == 201 - validateBasicHeaders(response.getHeaders()) - } - - def "Create if not exists min"() { - setup: - fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - - when: - def result = fsc.createIfNotExists() - - then: - fsc.getBlobContainerClient().exists() - result - } - - @Unroll - def "Create if not exists metadata"() { - setup: - fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - - when: - fsc.createIfNotExistsWithResponse(metadata, null, null, null) - def response = fsc.getPropertiesWithResponse(null, null, null) - - then: - response.getValue().getMetadata() == metadata - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - "testFoo" | "testBar" | "testFizz" | "testBuzz" - } - - @Unroll - def "Create if not exists publicAccess"() { - setup: - fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - - when: - fsc.createIfNotExistsWithResponse(null, publicAccess, null, null) - def access = fsc.getProperties().getDataLakePublicAccess() - - then: - access == publicAccess - - where: - publicAccess | _ - PublicAccessType.BLOB | _ - PublicAccessType.CONTAINER | _ - null | _ - } - - def "Create if not exists on file system that already exists"() { - setup: - def fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - - when: - def initialResponse = fsc.createIfNotExistsWithResponse(null, null, null, null) - def secondResponse = fsc.createIfNotExistsWithResponse(null, null, null, null) - - then: - initialResponse.getStatusCode() == 201 - secondResponse.getStatusCode() == 409 - } - def "Get properties null"() { when: def response = fsc.getPropertiesWithResponse(null, null, null) @@ -452,134 +364,6 @@ class FileSystemAPITest extends APISpec { thrown(DataLakeStorageException) } - def "Delete if exists"() { - setup: - def fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - fsc.create() - - when: - def response = fsc.deleteIfExistsWithResponse(null, null, null) - - then: - response.getStatusCode() == 202 - response.getHeaders().getValue("x-ms-request-id") != null - response.getHeaders().getValue("x-ms-version") != null - response.getHeaders().getValue("Date") != null - } - - def "Delete if exists min"() { - setup: - def fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - fsc.create() - fsc.getBlobContainerClient().exists() - - when: - def result = fsc.deleteIfExists() - - and: - fsc.getProperties() - - then: - thrown(DataLakeStorageException) - !fsc.getBlobContainerClient().exists() - result - } - - def "Delete if exists on file system that does not exist"() { - setup: - def fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - - when: - def response = fsc.deleteIfExistsWithResponse(null, null, null) - - then: - response.getStatusCode() == 404 - !fsc.getBlobContainerClient().exists() - } - - // We can't guarantee that the requests will always happen before the container is garbage collected - @PlaybackOnly - def "Delete if exists file system that was already deleted"() { - setup: - def fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) - fsc.create() - fsc.getBlobContainerClient().exists() - - when: - def initialResponse = fsc.deleteIfExistsWithResponse(null, null, null) - def secondResponse = fsc.deleteIfExistsWithResponse(null, null, null) - - then: - !fsc.getBlobContainerClient().exists() - initialResponse.getStatusCode() == 202 - // Confirming the behavior of the api when the container is in the deleting state. - // After delete has been called once but before it has been garbage collected - secondResponse.getStatusCode() == 202 - } - - @Unroll - def "Delete if exists AC"() { - setup: - leaseID = setupFileSystemLeaseCondition(fsc, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - expect: - fsc.deleteIfExistsWithResponse(options, null, null).getStatusCode() == 202 - - where: - modified | unmodified | leaseID - null | null | null - oldDate | null | null - null | newDate | null - null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists AC fail"() { - setup: - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - when: - fsc.deleteIfExistsWithResponse(options, null, null) - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | leaseID - newDate | null | null - null | oldDate | null - null | null | garbageLeaseID - } - - @Unroll - def "Delete if exists AC illegal"() { - setup: - def drc = new DataLakeRequestConditions() - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - when: - fsc.deleteIfExistsWithResponse(options, null, null) - - then: - thrown(UnsupportedOperationException) - - where: - match | noneMatch - receivedEtag | null - null | garbageEtag - } - def "Create file min"() { when: fsc.createFile(generatePathName()) @@ -748,99 +532,6 @@ class FileSystemAPITest extends APISpec { fsc.createFileWithResponse(generatePathName(), permissions, umask, null, null, null, null, Context.NONE).getStatusCode() == 201 } - def "Create if not exists file min"() { - when: - def client = fsc.createFileIfNotExists(generatePathName()) - - then: - notThrown(DataLakeStorageException) - client.exists() - } - - @Unroll - def "Create if not exists file overwrite"() { - setup: - def pathName = generatePathName() - def initialResponse = fsc.createFileIfNotExistsWithResponse(pathName, new DataLakePathCreateOptions(), null, null) - - when: - def secondResponse = fsc.createFileIfNotExistsWithResponse(pathName, new DataLakePathCreateOptions(), null, null) - - - then: - initialResponse.getStatusCode() == 201 - secondResponse.getStatusCode() == 409 - } - - def "Create if not exists file defaults"() { - when: - def createResponse = fsc.createFileIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions(), null, null) - - then: - createResponse.getStatusCode() == 201 - validateBasicHeaders(createResponse.getHeaders()) - } - - - @Unroll - def "Create if not exists file headers"() { - // Create does not set md5 - setup: - def headers = new PathHttpHeaders().setCacheControl(cacheControl) - .setContentDisposition(contentDisposition) - .setContentEncoding(contentEncoding) - .setContentLanguage(contentLanguage) - .setContentType(contentType) - - when: - def client = fsc.createFileIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions().setPathHttpHeaders(headers), null, null).getValue() - def response = client.getPropertiesWithResponse(null, null, null) - - // If the value isn't set the service will automatically set it - contentType = (contentType == null) ? "application/octet-stream" : contentType - - then: - validatePathProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, null, contentType) - - where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentType - null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | "type" - } - - @Unroll - def "Create if not exists file metadata"() { - setup: - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - - when: - def client = fsc.createFileIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions().setMetadata(metadata), null, null).getValue() - def response = client.getProperties() - - then: - response.getMetadata() == metadata - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - } - - def "Create if not exists file permissions and umask"() { - setup: - def permissions = "0777" - def umask = "0057" - - expect: - fsc.createFileIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions().setUmask(umask).setPermissions(permissions), null, Context.NONE).getStatusCode() == 201 - } - def "Delete file min"() { expect: def pathName = generatePathName() @@ -918,101 +609,6 @@ class FileSystemAPITest extends APISpec { null | null | null | null | garbageLeaseID } - def "Delete if exists file min"() { - expect: - def pathName = generatePathName() - fsc.createFile(pathName) - fsc.deleteFileIfExists(pathName) - } - - def "Delete if exists file null args"() { - expect: - def pathName = generatePathName() - fsc.createFile(pathName) - fsc.deleteFileIfExistsWithResponse(pathName, null, null, null).getStatusCode() == 200 - } - - def "Delete if exists file that does not exist"() { - when: - def pathName = generatePathName() - def response = fsc.deleteFileIfExistsWithResponse(pathName, null, null, null) - - then: - response.getStatusCode() == 404 - } - - def "Delete if exists file that was already deleted"() { - setup: - def pathName = generatePathName() - fsc.createFile(pathName) - - when: - def initialResponse = fsc.deleteFileIfExistsWithResponse(pathName, null, null, null) - def secondResponse = fsc.deleteFileIfExistsWithResponse(pathName, null, null, null) - - then: - initialResponse.getStatusCode() == 200 - secondResponse.getStatusCode() == 404 - } - - @Unroll - def "Delete if exists file AC"() { - setup: - def pathName = generatePathName() - def client = fsc.createFile(pathName) - match = setupPathMatchCondition(client, match) - leaseID = setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - expect: - fsc.deleteFileIfExistsWithResponse(pathName, options, null, null).getStatusCode() == 200 - - where: - modified | unmodified | match | noneMatch | leaseID - null | null | null | null | null - oldDate | null | null | null | null - null | newDate | null | null | null - null | null | receivedEtag | null | null - null | null | null | garbageEtag | null - null | null | null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists file AC fail"() { - setup: - def pathName = generatePathName() - def client = fsc.createFile(pathName) - noneMatch = setupPathMatchCondition(client, noneMatch) - setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc) - - when: - fsc.deleteFileIfExistsWithResponse(pathName, options, null, null).getStatusCode() - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | match | noneMatch | leaseID - newDate | null | null | null | null - null | oldDate | null | null | null - null | null | garbageEtag | null | null - null | null | null | receivedEtag | null - null | null | null | null | garbageLeaseID - } - def "Create dir min"() { when: fsc.createDirectory(generatePathName()) @@ -1185,103 +781,6 @@ class FileSystemAPITest extends APISpec { fsc.createDirectoryWithResponse(generatePathName(), permissions, umask, null, null, null, null, Context.NONE).getStatusCode() == 201 } - def "Create if not exists dir min"() { - when: - def client = fsc.createDirectoryIfNotExists(generatePathName()) - - then: - client.exists() - } - - def "Create if not exists dir defaults"() { - when: - def createResponse = fsc.createDirectoryIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions(), null, null) - - then: - createResponse.getStatusCode() == 201 - validateBasicHeaders(createResponse.getHeaders()) - } - - def "Create if not exists dir that already exists"() { - setup: - def dirName = generatePathName() - when: - def initialResponse = fsc.createDirectoryIfNotExistsWithResponse(dirName, - new DataLakePathCreateOptions(), null, Context.NONE) - def secondResponse = fsc.createDirectoryIfNotExistsWithResponse(dirName, - new DataLakePathCreateOptions(), null, Context.NONE) - - then: - initialResponse.getStatusCode() == 201 - secondResponse.getStatusCode() == 409 - } - - @Unroll - def "Create if not exists dir headers"() { - // Create does not set md5 - setup: - def headers = new PathHttpHeaders().setCacheControl(cacheControl) - .setContentDisposition(contentDisposition) - .setContentEncoding(contentEncoding) - .setContentLanguage(contentLanguage) - .setContentType(contentType) - - when: - def client = fsc.createDirectoryIfNotExistsWithResponse(generatePathName(), - new DataLakePathCreateOptions().setPathHttpHeaders(headers), null, null).getValue() - def response = client.getPropertiesWithResponse(null, null, null) - - // If the value isn't set the service will automatically set it - contentType = (contentType == null) ? "application/octet-stream" : contentType - - then: - validatePathProperties(response, cacheControl, contentDisposition, contentEncoding, contentLanguage, null, contentType) - - where: - cacheControl | contentDisposition | contentEncoding | contentLanguage | contentType - null | null | null | null | null - "control" | "disposition" | "encoding" | "language" | "type" - } - - @Unroll - def "Create if not exists dir metadata"() { - setup: - def metadata = new HashMap() - if (key1 != null) { - metadata.put(key1, value1) - } - if (key2 != null) { - metadata.put(key2, value2) - } - - when: - def client = fsc.createDirectoryIfNotExistsWithResponse(generatePathName(), - new DataLakePathCreateOptions().setMetadata(metadata), null, null).getValue() - def response = client.getProperties() - - then: - // Directory adds a directory metadata value - for(String k : metadata.keySet()) { - response.getMetadata().containsKey(k) - response.getMetadata().get(k) == metadata.get(k) - } - - where: - key1 | value1 | key2 | value2 - null | null | null | null - "foo" | "bar" | "fizz" | "buzz" - } - - def "Create if not exists dir permissions and umask"() { - setup: - def permissions = "0777" - def umask = "0057" - - expect: - fsc.createDirectoryIfNotExistsWithResponse(generatePathName(), new DataLakePathCreateOptions() - .setPermissions(permissions).setUmask(umask), null, Context.NONE).getStatusCode() == 201 - } - def "Delete dir min"() { expect: def pathName = generatePathName() @@ -1366,118 +865,13 @@ class FileSystemAPITest extends APISpec { null | null | null | null | garbageLeaseID } - def "Delete if exists dir min"() { - expect: - def pathName = generatePathName() - fsc.createDirectory(pathName) - fsc.deleteDirectoryIfExists(pathName) - } - - def "Delete if exists dir null args"() { - expect: - def pathName = generatePathName() - fsc.createDirectory(pathName) - fsc.deleteDirectoryIfExistsWithResponse(pathName, null, null, null).getStatusCode() == 200 - } - - def "Delete if exists dir recursive"() { - expect: - def pathName = generatePathName() - fsc.createDirectory(pathName) - fsc.deleteDirectoryIfExistsWithResponse(pathName, new DataLakePathDeleteOptions().setIsRecursive(true), null, null).getStatusCode() == 200 - } - - def "Delete if exists dir that does not exist"() { - when: - def pathName = generatePathName() - def response = fsc.deleteDirectoryIfExistsWithResponse(pathName, null, null, null) - - then: - response.getStatusCode() == 404 - !fsc.getDirectoryClient(pathName).exists() - } - - def "Delete if exists dir that was already deleted"() { - setup: - def pathName = generatePathName() - fsc.createDirectory(pathName) - - when: - def initialResponse = fsc.deleteDirectoryIfExistsWithResponse(pathName, null, null, null) - def secondResponse = fsc.deleteDirectoryIfExistsWithResponse(pathName, null, null, null) - - then: - initialResponse.getStatusCode() == 200 - secondResponse.getStatusCode() == 404 - - } - - @Unroll - def "Delete if exists dir AC"() { - setup: - def pathName = generatePathName() - def client = fsc.createDirectory(pathName) - match = setupPathMatchCondition(client, match) - leaseID = setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc).setIsRecursive(false) - - expect: - fsc.deleteDirectoryIfExistsWithResponse(pathName, options, null, null).getStatusCode() == 200 - - where: - modified | unmodified | match | noneMatch | leaseID - null | null | null | null | null - oldDate | null | null | null | null - null | newDate | null | null | null - null | null | receivedEtag | null | null - null | null | null | garbageEtag | null - null | null | null | null | receivedLeaseID - } - - @Unroll - def "Delete if exists dir AC fail"() { - setup: - def pathName = generatePathName() - def client = fsc.createDirectory(pathName) - noneMatch = setupPathMatchCondition(client, noneMatch) - setupPathLeaseCondition(client, leaseID) - def drc = new DataLakeRequestConditions() - .setLeaseId(leaseID) - .setIfMatch(match) - .setIfNoneMatch(noneMatch) - .setIfModifiedSince(modified) - .setIfUnmodifiedSince(unmodified) - def options = new DataLakePathDeleteOptions().setRequestConditions(drc).setIsRecursive(false) - - when: - fsc.deleteDirectoryIfExistsWithResponse(pathName, options, null, null).getStatusCode() - - then: - thrown(DataLakeStorageException) - - where: - modified | unmodified | match | noneMatch | leaseID - newDate | null | null | null | null - null | oldDate | null | null | null - null | null | garbageEtag | null | null - null | null | null | receivedEtag | null - null | null | null | null | garbageLeaseID - } - def "List paths"() { setup: def dirName = generatePathName() fsc.getDirectoryClient(dirName).create() def fileName = generatePathName() - def fileClient = fsc.getFileClient(fileName) - fileClient.create() + fsc.getFileClient(fileName).create() when: def response = fsc.listPaths().iterator() @@ -1507,31 +901,6 @@ class FileSystemAPITest extends APISpec { !response.hasNext() } - @RequiredServiceVersion(clazz = DataLakeServiceVersion.class, min = "V2020_02_10") - def "List paths expiry and creation"() { - setup: - def dirName = generatePathName() - fsc.getDirectoryClient(dirName).create() - - def fileName = generatePathName() - def fileClient = fsc.getFileClient(fileName) - fileClient.create() - fileClient.scheduleDeletion(new FileScheduleDeletionOptions(OffsetDateTime.now().plusDays(2))) - - when: - def response = fsc.listPaths().iterator() - - then: - def dirPath = response.next() - dirPath.getName() == dirName - dirPath.getCreationTime() - !dirPath.getExpiryTime() - - def filePath = response.next() - filePath.getExpiryTime() - filePath.getCreationTime() - } - def "List paths recursive"() { setup: def dirName = generatePathName() diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestDirectoryCreateSupDir.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestDirectoryCreateSupDir.json deleted file mode 100644 index e202d8a3f1f44..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestDirectoryCreateSupDir.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/6b670d8206b670d82ea770835785461c5987c48bba8c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "47add1a7-9353-4e9e-beba-3aa639f03572" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F30DE1B", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "49ebd5df-601e-002f-18bd-4afbea000000", - "x-ms-client-request-id" : "47add1a7-9353-4e9e-beba-3aa639f03572", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/6b670d8206b670d82ea770835785461c5987c48bba8c/6b670d8216b670d82ea76279100528f45e1ca40289f6?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "4fab8d76-5b16-4b0e-938a-4ad05c63434b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FE601F9", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7b3b603f-101f-0078-6cbd-4a55d9000000", - "x-ms-client-request-id" : "4fab8d76-5b16-4b0e-938a-4ad05c63434b", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/6b670d8206b670d82ea770835785461c5987c48bba8c/6b670d8216b670d82ea76279100528f45e1ca40289f6%2F6b670d8236b670d82ea726920c82b5fe8923b4190972?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "ba2f06c0-384d-447a-8a16-bbcb8025076a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FF697B4", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0858bd8e-d01f-00ce-41bd-4a27af000000", - "x-ms-client-request-id" : "ba2f06c0-384d-447a-8a16-bbcb8025076a", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - } ], - "variables" : [ "6b670d8206b670d82ea770835785461c5987c48bba8c", "6b670d8216b670d82ea76279100528f45e1ca40289f6", "6b670d8226b670d82ea7818971cf049763fc54fe2853", "6b670d8236b670d82ea726920c82b5fe8923b4190972" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestExistsWithoutCPK.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestExistsWithoutCPK.json deleted file mode 100644 index 3b2548fe282c7..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestExistsWithoutCPK.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/f4980b440f4980b445d81993722685a491ba141039b5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "8a073d30-b1be-4b4b-bd06-79ed49e770ba" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D92121BE24", - "Last-Modified" : "Thu, 07 Apr 2022 20:56:46 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7a62cf19-701e-00b5-16c1-4a6533000000", - "x-ms-client-request-id" : "8a073d30-b1be-4b4b-bd06-79ed49e770ba", - "Date" : "Thu, 07 Apr 2022 20:56:46 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f4980b440f4980b445d81993722685a491ba141039b5/f4980b442f4980b445d83910575c4aa4d20434ec4aa4?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "13d5d590-8dfc-454b-b03d-77707306d417" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D921A9FCCA", - "Last-Modified" : "Thu, 07 Apr 2022 20:56:47 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5307850d-701f-006e-6dc1-4aa30e000000", - "x-ms-client-request-id" : "13d5d590-8dfc-454b-b03d-77707306d417", - "Date" : "Thu, 07 Apr 2022 20:56:47 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/f4980b440f4980b445d81993722685a491ba141039b5/f4980b442f4980b445d83910575c4aa4d20434ec4aa4", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "af0271d5-5813-498f-9260-7899673d635c" - }, - "Response" : { - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "BlobUsesCustomerSpecifiedEncryption", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "c43e0582-601e-0010-55c1-4a3349000000", - "x-ms-client-request-id" : "af0271d5-5813-498f-9260-7899673d635c", - "Date" : "Thu, 07 Apr 2022 20:56:47 GMT" - }, - "Exception" : null - } ], - "variables" : [ "f4980b440f4980b445d81993722685a491ba141039b5", "f4980b441f4980b445d866448aa0ba14175cc4022ad3", "f4980b442f4980b445d83910575c4aa4d20434ec4aa4" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileAppend.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileAppend.json deleted file mode 100644 index 7771769a43a19..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileAppend.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/bfcb60030bfcb6003846138164b2924d2e37b4a1087c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "019bd75a-8054-4c03-836b-7494be0c0056" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F3260FA", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "60cf5f22-401e-004a-74bd-4a55ae000000", - "x-ms-client-request-id" : "019bd75a-8054-4c03-836b-7494be0c0056", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/bfcb60030bfcb6003846138164b2924d2e37b4a1087c/bfcb60032bfcb600384667691edebd8456f7344e49e6?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "e4c935d5-19b8-40c5-a344-49a5d7d7de03" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FC9890A", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6bb654ff-201f-0097-5bbd-4aa02c000000", - "x-ms-client-request-id" : "e4c935d5-19b8-40c5-a344-49a5d7d7de03", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - }, { - "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/bfcb60030bfcb6003846138164b2924d2e37b4a1087c/bfcb60032bfcb600384667691edebd8456f7344e49e6?action=append&position=0", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "28993d91-fab7-42ef-9865-d68b02b63ab4", - "Content-Type" : "application/octet-stream" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "202", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6bb65500-201f-0097-5cbd-4aa02c000000", - "x-ms-client-request-id" : "28993d91-fab7-42ef-9865-d68b02b63ab4", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - } ], - "variables" : [ "bfcb60030bfcb6003846138164b2924d2e37b4a1087c", "bfcb60031bfcb600384605753f0e2a27b36ce4a9aadf", "bfcb60032bfcb600384667691edebd8456f7344e49e6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileFlush.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileFlush.json deleted file mode 100644 index bdc2a957850e8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileFlush.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/4fb4834f04fb4834f803032904aab961b01724a31bcf?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "e5707a64-910b-434e-8532-907f41127b42" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F2C1D84", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7540ae01-c01e-0009-2fbd-4ab3f2000000", - "x-ms-client-request-id" : "e5707a64-910b-434e-8532-907f41127b42", - "Date" : "Thu, 07 Apr 2022 20:23:09 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/4fb4834f04fb4834f803032904aab961b01724a31bcf/4fb4834f24fb4834f803324029c571b07cdbe44ed8cf?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "23d01fe3-5ae5-41fc-a14e-b21b0353aa09" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FE2E179", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "dffff640-001f-00dd-33bd-4a03a3000000", - "x-ms-client-request-id" : "23d01fe3-5ae5-41fc-a14e-b21b0353aa09", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - }, { - "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4fb4834f04fb4834f803032904aab961b01724a31bcf/4fb4834f24fb4834f803324029c571b07cdbe44ed8cf?action=append&position=0", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "728115a5-a705-4107-8e40-c75443498f57", - "Content-Type" : "application/octet-stream" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "202", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0f96c62e-301f-0050-74bd-4a3471000000", - "x-ms-client-request-id" : "728115a5-a705-4107-8e40-c75443498f57", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - }, { - "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4fb4834f04fb4834f803032904aab961b01724a31bcf/4fb4834f24fb4834f803324029c571b07cdbe44ed8cf?action=flush&position=7&retainUncommittedData=true&close=true", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "df86f3bb-435a-4548-babb-cb81489f8ead" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D47030B5B9", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:12 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "200", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7ddc9116-a01f-0030-66bd-4a48ee000000", - "x-ms-client-request-id" : "df86f3bb-435a-4548-babb-cb81489f8ead", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - } ], - "variables" : [ "4fb4834f04fb4834f803032904aab961b01724a31bcf", "4fb4834f14fb4834f8035791741ba2740c3dc44e29f0", "4fb4834f24fb4834f803324029c571b07cdbe44ed8cf" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileRead.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileRead.json deleted file mode 100644 index aa83a44a7c30a..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestFileRead.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/19ccc438019ccc438702483814e74185d75f143f7a4c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "bd3e926f-4452-45ef-9a11-2712e2317353" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F30A341", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "f9208663-901e-0014-1abd-4abe4e000000", - "x-ms-client-request-id" : "bd3e926f-4452-45ef-9a11-2712e2317353", - "Date" : "Thu, 07 Apr 2022 20:23:09 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/19ccc438019ccc438702483814e74185d75f143f7a4c/19ccc438219ccc43870202007a3d799387ea34b279e1?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "a1a85578-495b-4f0b-900b-1d74c9c3688a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FCDFF96", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0858bd8d-d01f-00ce-40bd-4a27af000000", - "x-ms-client-request-id" : "a1a85578-495b-4f0b-900b-1d74c9c3688a", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/19ccc438019ccc438702483814e74185d75f143f7a4c/19ccc438219ccc43870202007a3d799387ea34b279e1", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "bd2adc9d-3636-4f5d-897b-b2e032c56fea" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-creation-time" : "Thu, 07 Apr 2022 20:23:11 GMT", - "eTag" : "0x8DA18D46FCDFF96", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "6f8c9525-901e-003b-17bd-4ab385000000", - "x-ms-client-request-id" : "bd2adc9d-3636-4f5d-897b-b2e032c56fea", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "19ccc438019ccc438702483814e74185d75f143f7a4c", "19ccc438119ccc438702893291198ae695f2c4ba78da", "19ccc438219ccc43870202007a3d799387ea34b279e1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestGetCustomerProvidedKeyClient.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestGetCustomerProvidedKeyClient.json deleted file mode 100644 index 00b2d3488fe2b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestGetCustomerProvidedKeyClient.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/b02f778c0b02f778c54004474ff5ef5bd49954c009e3?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "4b004b4d-b149-4482-930e-ee7dde2100e9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F2DD0FF", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "124bd429-801e-0045-34bd-4a23c2000000", - "x-ms-client-request-id" : "4b004b4d-b149-4482-930e-ee7dde2100e9", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - } ], - "variables" : [ "b02f778c0b02f778c54004474ff5ef5bd49954c009e3", "b02f778c1b02f778c540448848e8d3550e1574cddb85", "b02f778c2b02f778c54017224b9900ad6a0ab409bb45" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathCreate.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathCreate.json deleted file mode 100644 index 7ef4a8c71b98b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathCreate.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/70c64fbd070c64fbd3ce311717d0a9c81e57b477f95d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "b9080d43-0433-4efa-b9a0-0af92314fd1b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D92121F730", - "Last-Modified" : "Thu, 07 Apr 2022 20:56:46 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c43e052c-601e-0010-0fc1-4a3349000000", - "x-ms-client-request-id" : "b9080d43-0433-4efa-b9a0-0af92314fd1b", - "Date" : "Thu, 07 Apr 2022 20:56:46 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/70c64fbd070c64fbd3ce311717d0a9c81e57b477f95d/70c64fbd170c64fbd3ce470844f71d897ebd94c0185f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "d66ed723-1add-4f39-9af1-fd5b270ef45a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D921DC6D94", - "Last-Modified" : "Thu, 07 Apr 2022 20:56:48 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "31fbcb0e-501f-00ef-4dc1-4a03d4000000", - "x-ms-client-request-id" : "d66ed723-1add-4f39-9af1-fd5b270ef45a", - "Date" : "Thu, 07 Apr 2022 20:56:47 GMT" - }, - "Exception" : null - } ], - "variables" : [ "70c64fbd070c64fbd3ce311717d0a9c81e57b477f95d", "70c64fbd170c64fbd3ce470844f71d897ebd94c0185f", "70c64fbd270c64fbd3ce2280872d6e42ed9b4470fb9c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathGetProperties.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathGetProperties.json deleted file mode 100644 index 1ac73e05afc19..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathGetProperties.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/d89e88870d89e88879d917942ad558c41192b4439b88?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "9bd5212d-3eaa-408d-b340-6dd8e17c414a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F2F46A5", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7b79f48c-901e-0059-23bd-4a71a2000000", - "x-ms-client-request-id" : "9bd5212d-3eaa-408d-b340-6dd8e17c414a", - "Date" : "Thu, 07 Apr 2022 20:23:10 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/d89e88870d89e88879d917942ad558c41192b4439b88/d89e88872d89e88879d98158102e6937452ec464ca1a?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "404bd557-ace4-403c-977c-2c1d1590d9d2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FE17EF1", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "53077b7b-701f-006e-2dbd-4aa30e000000", - "x-ms-client-request-id" : "404bd557-ace4-403c-977c-2c1d1590d9d2", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/d89e88870d89e88879d917942ad558c41192b4439b88/d89e88872d89e88879d98158102e6937452ec464ca1a", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "c6560d5c-7e26-4ab3-8133-3dd5d59e34a3" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 07 Apr 2022 20:23:11 GMT", - "eTag" : "0x8DA18D46FE17EF1", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "60cf6012-401e-004a-51bd-4a55ae000000", - "x-ms-client-request-id" : "c6560d5c-7e26-4ab3-8133-3dd5d59e34a3", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "d89e88870d89e88879d917942ad558c41192b4439b88", "d89e88871d89e88879d916005aeeff44da2ef489897c", "d89e88872d89e88879d98158102e6937452ec464ca1a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathSetMetadata.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathSetMetadata.json deleted file mode 100644 index 2ce5fe9149ec5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/CPKTestPathSetMetadata.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/083fab600083fab60a2361772235903105d47484da0f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "377ce527-56d9-4a5c-92ec-f84eb3d2826a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46F2E88FB", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:10 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6f8c94bc-901e-003b-44bd-4ab385000000", - "x-ms-client-request-id" : "377ce527-56d9-4a5c-92ec-f84eb3d2826a", - "Date" : "Thu, 07 Apr 2022 20:23:09 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/083fab600083fab60a2361772235903105d47484da0f/083fab602083fab60a2380205e078ecc3616b4066a78?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "fe76526e-3fcf-47d3-88b4-e7c5a484d91c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FDEDD36", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7ddc9115-a01f-0030-65bd-4a48ee000000", - "x-ms-client-request-id" : "fe76526e-3fcf-47d3-88b4-e7c5a484d91c", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/083fab600083fab60a2361772235903105d47484da0f/083fab602083fab60a2380205e078ecc3616b4066a78?comp=metadata", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "353eed49-e75a-4b59-a45a-9bae8ed13c90" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA18D46FEFF7BE", - "Last-Modified" : "Thu, 07 Apr 2022 20:23:11 GMT", - "retry-after" : "0", - "x-ms-encryption-key-sha256" : "REDACTED", - "StatusCode" : "200", - "x-ms-request-id" : "7b79f4e2-901e-0059-57bd-4a71a2000000", - "x-ms-request-server-encrypted" : "true", - "x-ms-client-request-id" : "353eed49-e75a-4b59-a45a-9bae8ed13c90", - "Date" : "Thu, 07 Apr 2022 20:23:11 GMT" - }, - "Exception" : null - } ], - "variables" : [ "083fab600083fab60a2361772235903105d47484da0f", "083fab601083fab60a23972321e7375fddc96487faec", "083fab602083fab60a2380205e078ecc3616b4066a78" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsDefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsDefaults.json deleted file mode 100644 index a0985271e8ba9..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsDefaults.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/2781d5f902781d5f95b131340c4767b3d63ba4dc098f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e8054aef-a4a3-41cf-86a4-a4a74c22e3f9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF44D9B", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c6fc9855-501e-0055-0530-4ef347000000", - "x-ms-client-request-id" : "e8054aef-a4a3-41cf-86a4-a4a74c22e3f9", - "Date" : "Tue, 12 Apr 2022 05:46:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/2781d5f902781d5f95b131340c4767b3d63ba4dc098f/2781d5f912781d5f95b187966ec7bbbc9c6e745f7828?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a5bc7eaa-85d9-490a-b2b6-514ccd634ed4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC5786B5", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "448e58b7-901f-0061-7730-4e5cef000000", - "x-ms-client-request-id" : "a5bc7eaa-85d9-490a-b2b6-514ccd634ed4", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/2781d5f902781d5f95b131340c4767b3d63ba4dc098f/2781d5f922781d5f95b1438366674a766fadd42f88c0?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e754c52a-76aa-4b1b-a811-548d069e9e3f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC656161", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ae793d01-501f-0033-5a30-4e411d000000", - "x-ms-client-request-id" : "e754c52a-76aa-4b1b-a811-548d069e9e3f", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - } ], - "variables" : [ "2781d5f902781d5f95b131340c4767b3d63ba4dc098f", "2781d5f912781d5f95b187966ec7bbbc9c6e745f7828", "2781d5f922781d5f95b1438366674a766fadd42f88c0" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsDoesExist.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsDoesExist.json deleted file mode 100644 index b1bff189ba658..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsDoesExist.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/c5be7c6d0c5be7c6de8908214048f646f4e8240149fb?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "555b9804-a3a4-43d2-834b-2deb11c7cdde" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF32774", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6f3b1b0d-e01e-004c-5530-4edf2f000000", - "x-ms-client-request-id" : "555b9804-a3a4-43d2-834b-2deb11c7cdde", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c5be7c6d0c5be7c6de8908214048f646f4e8240149fb/c5be7c6d1c5be7c6de8986938d9cb0519d44f4ab8926?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "90f9428e-b2ba-4590-805d-2a8051a7fa14" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC80FA2C", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0d44a7ba-501f-005e-7c30-4eeb33000000", - "x-ms-client-request-id" : "90f9428e-b2ba-4590-805d-2a8051a7fa14", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c5be7c6d0c5be7c6de8908214048f646f4e8240149fb/c5be7c6d2c5be7c6de8933476beb49ea9f2914f8195e?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6312ee3a-1d1e-471e-b7e2-b9e18d6542f9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC8C1B79", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "136a0d6c-901f-0043-2a30-4e32d9000000", - "x-ms-client-request-id" : "6312ee3a-1d1e-471e-b7e2-b9e18d6542f9", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/c5be7c6d0c5be7c6de8908214048f646f4e8240149fb/c5be7c6d2c5be7c6de8933476beb49ea9f2914f8195e", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "99faba59-32a1-4763-bd0e-f8ff57273ac0" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:46:59 GMT", - "eTag" : "0x8DA1C47DC8C1B79", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "7e7f2f45-b01e-001b-7e30-4e36a2000000", - "x-ms-client-request-id" : "99faba59-32a1-4763-bd0e-f8ff57273ac0", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "c5be7c6d0c5be7c6de8908214048f646f4e8240149fb", "c5be7c6d1c5be7c6de8986938d9cb0519d44f4ab8926", "c5be7c6d2c5be7c6de8933476beb49ea9f2914f8195e" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileDefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileDefaults.json deleted file mode 100644 index 7f80f2b9f7421..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileDefaults.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/6da72fca06da72fcac5210674efc6a6afc62643519b2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "89628d1a-35e7-431d-a2c8-30da33a0fe1b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB6B01F4", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "bdffdee2-601e-0012-41d2-442c2c000000", - "x-ms-client-request-id" : "89628d1a-35e7-431d-a2c8-30da33a0fe1b", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6da72fca06da72fcac5210674efc6a6afc62643519b2/6da72fca16da72fcac52788764847780fdffa49cd8a2?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "56c9b742-5784-4c78-b114-1f25c787e1de" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBD0E856", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "57aac4b2-e01f-0021-20d2-447501000000", - "x-ms-client-request-id" : "56c9b742-5784-4c78-b114-1f25c787e1de", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6da72fca06da72fcac5210674efc6a6afc62643519b2/6da72fca16da72fcac52788764847780fdffa49cd8a2%2F6da72fca26da72fcac5248551ac6b852de1cd44dbb3d?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5c8ff0a9-c357-47a6-9c53-1c541a768370" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE50FA6", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "57aac4b3-e01f-0021-21d2-447501000000", - "x-ms-client-request-id" : "5c8ff0a9-c357-47a6-9c53-1c541a768370", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - } ], - "variables" : [ "6da72fca06da72fcac5210674efc6a6afc62643519b2", "6da72fca16da72fcac52788764847780fdffa49cd8a2", "6da72fca26da72fcac5248551ac6b852de1cd44dbb3d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileHeaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileHeaders[0].json deleted file mode 100644 index adb5757c936a2..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileHeaders[0].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/24cfa4d6024cfa4d617e85599a17c131e32024ec2819?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "faa290e4-2c4c-4982-add7-bea74d958e6e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB6A7CA5", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "68ac81d0-801e-0013-67d2-442dd1000000", - "x-ms-client-request-id" : "faa290e4-2c4c-4982-add7-bea74d958e6e", - "Date" : "Thu, 31 Mar 2022 07:41:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/24cfa4d6024cfa4d617e85599a17c131e32024ec2819/24cfa4d6124cfa4d617e49769451e69674a164caabb1?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "06a84ad5-d3ff-4a95-9f46-f6c06cf55197" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBCF2AAF", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "51e96324-a01f-004b-08d2-4429aa000000", - "x-ms-client-request-id" : "06a84ad5-d3ff-4a95-9f46-f6c06cf55197", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/24cfa4d6024cfa4d617e85599a17c131e32024ec2819/24cfa4d6124cfa4d617e49769451e69674a164caabb1%2F24cfa4d6224cfa4d617e11692c444d6db29524be5a2d?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5226f0aa-5410-4f94-b43f-032095bafc83" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE5782B", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "876d0854-301f-0001-41d2-4419cd000000", - "x-ms-client-request-id" : "5226f0aa-5410-4f94-b43f-032095bafc83", - "Date" : "Thu, 31 Mar 2022 07:41:52 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/24cfa4d6024cfa4d617e85599a17c131e32024ec2819/24cfa4d6124cfa4d617e49769451e69674a164caabb1%2F24cfa4d6224cfa4d617e11692c444d6db29524be5a2d", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "539d6e8d-e3a5-40f5-8d64-e14ea2c5503b" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE5782B", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "50248bf1-901e-002e-4ad2-4498f7000000", - "x-ms-client-request-id" : "539d6e8d-e3a5-40f5-8d64-e14ea2c5503b", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "24cfa4d6024cfa4d617e85599a17c131e32024ec2819", "24cfa4d6124cfa4d617e49769451e69674a164caabb1", "24cfa4d6224cfa4d617e11692c444d6db29524be5a2d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileHeaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileHeaders[1].json deleted file mode 100644 index 989e9419df074..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileHeaders[1].json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/3dd4959703dd49597fb68548819859cd5ce854692af4?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4b095c07-e3ba-4cfe-9bea-ad0d886ee32e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB6AAB69", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d06f5fc6-701e-000d-62d2-44f73c000000", - "x-ms-client-request-id" : "4b095c07-e3ba-4cfe-9bea-ad0d886ee32e", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/3dd4959703dd49597fb68548819859cd5ce854692af4/3dd4959713dd49597fb6664814c81fcfaa181445690b?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c2f102c4-a42a-4a93-8785-cb0b05f51186" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBD258DB", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c999e9d8-b01f-0054-51d2-44f2ba000000", - "x-ms-client-request-id" : "c2f102c4-a42a-4a93-8785-cb0b05f51186", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/3dd4959703dd49597fb68548819859cd5ce854692af4/3dd4959713dd49597fb6664814c81fcfaa181445690b%2F3dd4959723dd49597fb6969870d5da677a9cb45a1b03?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0b3bcc3b-fd12-49f1-879b-abc7d211b295" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE69DF7", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c999e9d9-b01f-0054-52d2-44f2ba000000", - "x-ms-client-request-id" : "0b3bcc3b-fd12-49f1-879b-abc7d211b295", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/3dd4959703dd49597fb68548819859cd5ce854692af4/3dd4959713dd49597fb6664814c81fcfaa181445690b%2F3dd4959723dd49597fb6969870d5da677a9cb45a1b03", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7ed1987d-b69d-47ef-8208-d64bbba49b23" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "Content-Encoding" : "encoding", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE69DF7", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "68ac836c-801e-0013-5cd2-442dd1000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "type", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "Cache-Control" : "control", - "Content-Disposition" : "disposition", - "Content-Language" : "language", - "x-ms-client-request-id" : "7ed1987d-b69d-47ef-8208-d64bbba49b23" - }, - "Exception" : null - } ], - "variables" : [ "3dd4959703dd49597fb68548819859cd5ce854692af4", "3dd4959713dd49597fb6664814c81fcfaa181445690b", "3dd4959723dd49597fb6969870d5da677a9cb45a1b03" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMetadata[0].json deleted file mode 100644 index 89fdc10fd5c3c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMetadata[0].json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/edfe51e60edfe51e607e45232ffad2bc4ec8546f48bd?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c1bb0b16-76c0-4332-bd6e-c6bef09b817e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB6AC004", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "bfc5c83c-101e-001d-78d2-44c1da000000", - "x-ms-client-request-id" : "c1bb0b16-76c0-4332-bd6e-c6bef09b817e", - "Date" : "Thu, 31 Mar 2022 07:41:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/edfe51e60edfe51e607e45232ffad2bc4ec8546f48bd/edfe51e61edfe51e607e8445355bbf0eaa80845c4b89?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "22df02a0-d28e-40f0-a509-71aa9fafa434" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBD0E578", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e65bff5a-701f-0049-70d2-442b50000000", - "x-ms-client-request-id" : "22df02a0-d28e-40f0-a509-71aa9fafa434", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/edfe51e60edfe51e607e45232ffad2bc4ec8546f48bd/edfe51e61edfe51e607e8445355bbf0eaa80845c4b89%2Fedfe51e62edfe51e607e14831121ce709495d466d976?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "78625c2b-82ce-41c6-98da-769d9deefa00" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE4F91D", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "cd360f24-101f-001d-16d2-44c1da000000", - "x-ms-client-request-id" : "78625c2b-82ce-41c6-98da-769d9deefa00", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/edfe51e60edfe51e607e45232ffad2bc4ec8546f48bd/edfe51e61edfe51e607e8445355bbf0eaa80845c4b89%2Fedfe51e62edfe51e607e14831121ce709495d466d976", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f3b1bcce-6ef2-461a-b122-c1dd5a29aabd" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE4F91D", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "b93c8e66-201e-001e-6bd2-44c2dd000000", - "x-ms-client-request-id" : "f3b1bcce-6ef2-461a-b122-c1dd5a29aabd", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/edfe51e60edfe51e607e45232ffad2bc4ec8546f48bd/edfe51e61edfe51e607e8445355bbf0eaa80845c4b89%2Fedfe51e62edfe51e607e14831121ce709495d466d976", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a64ec760-9f1a-4af3-acfb-233e039c6a10" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE4F91D", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "bcab12c1-601e-0030-76d2-44421a000000", - "x-ms-client-request-id" : "a64ec760-9f1a-4af3-acfb-233e039c6a10", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "edfe51e60edfe51e607e45232ffad2bc4ec8546f48bd", "edfe51e61edfe51e607e8445355bbf0eaa80845c4b89", "edfe51e62edfe51e607e14831121ce709495d466d976" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMetadata[1].json deleted file mode 100644 index bd8693790c9df..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMetadata[1].json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/f4e560a70f4e560a7e45974689932e0e2a20f4e528e9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "de9ceb7a-7be0-42af-9d70-7cd2d670b350" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB69AD7D", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "50248a92-901e-002e-0dd2-4498f7000000", - "x-ms-client-request-id" : "de9ceb7a-7be0-42af-9d70-7cd2d670b350", - "Date" : "Thu, 31 Mar 2022 07:41:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/f4e560a70f4e560a7e45974689932e0e2a20f4e528e9/f4e560a71f4e560a7e4551428e4b845500dc24eafaae?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "76bf8f7c-2b34-4759-9c10-a20c432a0dde" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBD545DB", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "876d0850-301f-0001-3ed2-4419cd000000", - "x-ms-client-request-id" : "76bf8f7c-2b34-4759-9c10-a20c432a0dde", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/f4e560a70f4e560a7e45974689932e0e2a20f4e528e9/f4e560a71f4e560a7e4551428e4b845500dc24eafaae%2Ff4e560a72f4e560a7e45239844394d84c70e84daa956?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8a34b533-7e4a-4f42-b910-2623974ff36d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE74E3E", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f90ef945-501f-0038-4fd2-445969000000", - "x-ms-client-request-id" : "8a34b533-7e4a-4f42-b910-2623974ff36d", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/f4e560a70f4e560a7e45974689932e0e2a20f4e528e9/f4e560a71f4e560a7e4551428e4b845500dc24eafaae%2Ff4e560a72f4e560a7e45239844394d84c70e84daa956", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "060a3573-9e90-4803-be3e-09ad6e401bee" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE74E3E", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "bcab126b-601e-0030-27d2-44421a000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT", - "x-ms-meta-foo" : "bar", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "060a3573-9e90-4803-be3e-09ad6e401bee" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/f4e560a70f4e560a7e45974689932e0e2a20f4e528e9/f4e560a71f4e560a7e4551428e4b845500dc24eafaae%2Ff4e560a72f4e560a7e45239844394d84c70e84daa956", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ece6ce70-38a0-41bc-83ae-848bd152c4ff" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE74E3E", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "d06f614c-701e-000d-37d2-44f73c000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:52 GMT", - "x-ms-meta-foo" : "bar", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "ece6ce70-38a0-41bc-83ae-848bd152c4ff" - }, - "Exception" : null - } ], - "variables" : [ "f4e560a70f4e560a7e45974689932e0e2a20f4e528e9", "f4e560a71f4e560a7e4551428e4b845500dc24eafaae", "f4e560a72f4e560a7e45239844394d84c70e84daa956" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMin.json deleted file mode 100644 index 585f7370f76f8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileMin.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/031cc4970031cc497fae5842862a14239cb964d80858?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e6c7bf55-5d16-4d06-948a-94e76838d5af" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB6BBDF9", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7d685e1b-101e-0070-63d2-446bf4000000", - "x-ms-client-request-id" : "e6c7bf55-5d16-4d06-948a-94e76838d5af", - "Date" : "Thu, 31 Mar 2022 07:41:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/031cc4970031cc497fae5842862a14239cb964d80858/031cc4971031cc497fae57771d9eefa52aa6c49fdb47?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9496ed90-8a49-4bc8-8c2b-4d4a88ecef94" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBCEDB3A", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "cd360f23-101f-001d-15d2-44c1da000000", - "x-ms-client-request-id" : "9496ed90-8a49-4bc8-8c2b-4d4a88ecef94", - "Date" : "Thu, 31 Mar 2022 07:41:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/031cc4970031cc497fae5842862a14239cb964d80858/031cc4971031cc497fae57771d9eefa52aa6c49fdb47%2F031cc4972031cc497fae58282331ac40d230c4a3f84f?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "15bc4c44-670c-4178-9035-a5401e9350ae" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE58808", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a9484e2c-201f-0037-80d2-44b49f000000", - "x-ms-client-request-id" : "15bc4c44-670c-4178-9035-a5401e9350ae", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/031cc4970031cc497fae5842862a14239cb964d80858/031cc4971031cc497fae57771d9eefa52aa6c49fdb47%2F031cc4972031cc497fae58282331ac40d230c4a3f84f", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7bb4d315-1b9f-4bc3-b43c-1574b2d5b8ee" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Thu, 31 Mar 2022 07:41:52 GMT", - "eTag" : "0x8DA12E9EBE58808", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "d06f6129-701e-000d-1dd2-44f73c000000", - "x-ms-client-request-id" : "7bb4d315-1b9f-4bc3-b43c-1574b2d5b8ee", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "031cc4970031cc497fae5842862a14239cb964d80858", "031cc4971031cc497fae57771d9eefa52aa6c49fdb47", "031cc4972031cc497fae58282331ac40d230c4a3f84f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileOverwrite.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileOverwrite.json deleted file mode 100644 index 807fcfad1072b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFileOverwrite.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/c174e14e0c174e14eaf903893f5fc2feddc994a1095f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "797fb780-2a82-4a49-aea3-4eac76f6655e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C621042C24E", - "Last-Modified" : "Tue, 12 Apr 2022 08:54:33 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "05248fb6-501e-005e-6b4a-4eeb33000000", - "x-ms-client-request-id" : "797fb780-2a82-4a49-aea3-4eac76f6655e", - "Date" : "Tue, 12 Apr 2022 08:54:32 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c174e14e0c174e14eaf903893f5fc2feddc994a1095f/c174e14e1c174e14eaf94875809d857fff733431b940?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "db05aa2d-4b0d-4b16-8fbf-5d518a5d268d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C62112B170B", - "Last-Modified" : "Tue, 12 Apr 2022 08:54:34 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6d9de757-601f-0030-644a-4e421a000000", - "x-ms-client-request-id" : "db05aa2d-4b0d-4b16-8fbf-5d518a5d268d", - "Date" : "Tue, 12 Apr 2022 08:54:34 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c174e14e0c174e14eaf903893f5fc2feddc994a1095f/c174e14e1c174e14eaf94875809d857fff733431b940%2Fc174e14e2c174e14eaf9486877090e6f4abe24d37b02?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e04449ef-7962-4b88-8da0-0e93113edb84" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C62113B6BC6", - "Last-Modified" : "Tue, 12 Apr 2022 08:54:34 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6d9de75a-601f-0030-674a-4e421a000000", - "x-ms-client-request-id" : "e04449ef-7962-4b88-8da0-0e93113edb84", - "Date" : "Tue, 12 Apr 2022 08:54:34 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c174e14e0c174e14eaf903893f5fc2feddc994a1095f/c174e14e1c174e14eaf94875809d857fff733431b940%2Fc174e14e2c174e14eaf9486877090e6f4abe24d37b02?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5dde7a08-dcff-4cce-8d55-05672bb94dde" - }, - "Response" : { - "content-length" : "168", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "6d9de75d-601f-0030-694a-4e421a000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:6d9de75d-601f-0030-694a-4e421a000000\\nTime:2022-04-12T08:54:34.8499297Z\"}}", - "x-ms-client-request-id" : "5dde7a08-dcff-4cce-8d55-05672bb94dde", - "Date" : "Tue, 12 Apr 2022 08:54:34 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "c174e14e0c174e14eaf903893f5fc2feddc994a1095f", "c174e14e1c174e14eaf94875809d857fff733431b940", "c174e14e2c174e14eaf9486877090e6f4abe24d37b02" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFilePermissionsAndUmask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFilePermissionsAndUmask.json deleted file mode 100644 index e50921fcbd005..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsFilePermissionsAndUmask.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/086f6c510086f6c5106e13497dcd1d23e5818405cbf6?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "abd0a8f1-997f-446d-9276-83f0e4b1114a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EB6AB910", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "b93c8c56-201e-001e-0bd2-44c2dd000000", - "x-ms-client-request-id" : "abd0a8f1-997f-446d-9276-83f0e4b1114a", - "Date" : "Thu, 31 Mar 2022 07:41:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/086f6c510086f6c5106e13497dcd1d23e5818405cbf6/086f6c511086f6c5106e3981971ccd81742754ed2ae4?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2ddae86e-9d6d-4441-a2cd-efab831531ee" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBD47303", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f90ef944-501f-0038-4ed2-445969000000", - "x-ms-client-request-id" : "2ddae86e-9d6d-4441-a2cd-efab831531ee", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/086f6c510086f6c5106e13497dcd1d23e5818405cbf6/086f6c512086f6c5106e84957a3cff97be67c48279e5%2F086f6c513086f6c5106e714962ec9d63dcdb84721805?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "34b37e41-ec94-41d0-8c03-88219cb8f198" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9EBE849B6", - "Last-Modified" : "Thu, 31 Mar 2022 07:41:52 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e65bff5b-701f-0049-71d2-442b50000000", - "x-ms-client-request-id" : "34b37e41-ec94-41d0-8c03-88219cb8f198", - "Date" : "Thu, 31 Mar 2022 07:41:51 GMT" - }, - "Exception" : null - } ], - "variables" : [ "086f6c510086f6c5106e13497dcd1d23e5818405cbf6", "086f6c511086f6c5106e3981971ccd81742754ed2ae4", "086f6c512086f6c5106e84957a3cff97be67c48279e5", "086f6c513086f6c5106e714962ec9d63dcdb84721805" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsHeaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsHeaders[0].json deleted file mode 100644 index f38f9f12ed6b5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsHeaders[0].json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/8dcc90c208dcc90c21cc31429de37d0cab79b484ea3f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "af0917f0-a941-4a3d-944d-f4bef566b75f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF434FF", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d413cef4-801e-0057-1330-4ef1bd000000", - "x-ms-client-request-id" : "af0917f0-a941-4a3d-944d-f4bef566b75f", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/8dcc90c208dcc90c21cc31429de37d0cab79b484ea3f/8dcc90c218dcc90c21cc08738474d5443c8644cdaa9c?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f5a22310-0259-4e9b-a1a9-f0d9eb4c8b6b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC56C470", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "136a0d56-901f-0043-1430-4e32d9000000", - "x-ms-client-request-id" : "f5a22310-0259-4e9b-a1a9-f0d9eb4c8b6b", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/8dcc90c208dcc90c21cc31429de37d0cab79b484ea3f/8dcc90c228dcc90c21cc539205a615038ebb34901bf7?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "56398202-12fd-4654-9c2a-9bcd16db570b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC670A8C", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a94859e7-e01f-0021-1d30-4e7501000000", - "x-ms-client-request-id" : "56398202-12fd-4654-9c2a-9bcd16db570b", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/8dcc90c208dcc90c21cc31429de37d0cab79b484ea3f/8dcc90c228dcc90c21cc539205a615038ebb34901bf7", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b3fc2bb9-7efc-4242-a668-8c83257297a9" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:46:59 GMT", - "eTag" : "0x8DA1C47DC670A8C", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "c6fc9b8d-501e-0055-0a30-4ef347000000", - "x-ms-client-request-id" : "b3fc2bb9-7efc-4242-a668-8c83257297a9", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "8dcc90c208dcc90c21cc31429de37d0cab79b484ea3f", "8dcc90c218dcc90c21cc08738474d5443c8644cdaa9c", "8dcc90c228dcc90c21cc539205a615038ebb34901bf7" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsHeaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsHeaders[1].json deleted file mode 100644 index babab893dc522..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsHeaders[1].json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/94d7a183094d7a18329e552620e3992a8470d4a049b9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6c59d570-c114-49a3-a9af-ebc9e42ec86b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF45E79", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "79427902-001e-0020-0130-4e74fc000000", - "x-ms-client-request-id" : "6c59d570-c114-49a3-a9af-ebc9e42ec86b", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/94d7a183094d7a18329e552620e3992a8470d4a049b9/94d7a183194d7a18329e036193f23f22e8a124c65809?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "581d8c86-c895-41c4-aa4f-d65cb9dfbad0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC56DFBB", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6b073d28-101f-0052-1d30-4e05c2000000", - "x-ms-client-request-id" : "581d8c86-c895-41c4-aa4f-d65cb9dfbad0", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/94d7a183094d7a18329e552620e3992a8470d4a049b9/94d7a183294d7a18329e07336cfad61ad730147cfa2f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "602b970a-af71-4044-9fbf-016eb2569f5e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC651373", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7440e695-801f-005c-7230-4ee9c9000000", - "x-ms-client-request-id" : "602b970a-af71-4044-9fbf-016eb2569f5e", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/94d7a183094d7a18329e552620e3992a8470d4a049b9/94d7a183294d7a18329e07336cfad61ad730147cfa2f", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1aa8a92f-e663-4652-8e1e-4758268c3d3e" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "Content-Encoding" : "encoding", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:46:59 GMT", - "eTag" : "0x8DA1C47DC651373", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "d413d0ca-801e-0057-3330-4ef1bd000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "type", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "Cache-Control" : "control", - "Content-Disposition" : "disposition", - "Content-Language" : "language", - "x-ms-client-request-id" : "1aa8a92f-e663-4652-8e1e-4758268c3d3e" - }, - "Exception" : null - } ], - "variables" : [ "94d7a183094d7a18329e552620e3992a8470d4a049b9", "94d7a183194d7a18329e036193f23f22e8a124c65809", "94d7a183294d7a18329e07336cfad61ad730147cfa2f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMetadata[0].json deleted file mode 100644 index 4bc68be101576..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMetadata[0].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/f78d86af0f78d86af45631479a2473320f9944cca8f7?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "86b74227-5f56-4ef5-a85a-95b2a1448092" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF30993", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "59528064-301e-0023-5530-4e77fb000000", - "x-ms-client-request-id" : "86b74227-5f56-4ef5-a85a-95b2a1448092", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f78d86af0f78d86af45631479a2473320f9944cca8f7/f78d86af1f78d86af456301066cf37fbc56fd4de4a2f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "33e2008a-a9e7-4992-a19d-65ea335112da" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC5769AC", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "970fea57-a01f-004b-1630-4e29aa000000", - "x-ms-client-request-id" : "33e2008a-a9e7-4992-a19d-65ea335112da", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f78d86af0f78d86af45631479a2473320f9944cca8f7/f78d86af1f78d86af456301066cf37fbc56fd4de4a2f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2dbdc43a-0392-4413-803e-1fb51779b178" - }, - "Response" : { - "content-length" : "168", - "x-ms-existing-resource-type" : "directory", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "6b073d34-101f-0052-2930-4e05c2000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:6b073d34-101f-0052-2930-4e05c2000000\\nTime:2022-04-12T05:46:59.2119625Z\"}}", - "x-ms-client-request-id" : "2dbdc43a-0392-4413-803e-1fb51779b178", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/f78d86af0f78d86af45631479a2473320f9944cca8f7/f78d86af1f78d86af456301066cf37fbc56fd4de4a2f", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f311b9ae-f66b-4bbf-a411-de98d646fa91" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:46:59 GMT", - "eTag" : "0x8DA1C47DC5769AC", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "6f3b1ea1-e01e-004c-1d30-4edf2f000000", - "x-ms-client-request-id" : "f311b9ae-f66b-4bbf-a411-de98d646fa91", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "f78d86af0f78d86af45631479a2473320f9944cca8f7", "f78d86af1f78d86af456301066cf37fbc56fd4de4a2f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMetadata[1].json deleted file mode 100644 index d20bed27a121c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMetadata[1].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/ee96b7ee0ee96b7eed81208551216ac7d134544f1a91?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c78736a8-4f2b-4dc2-8854-2eb695717de9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF30D78", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ac93d8dd-a01e-004b-2d30-4e29aa000000", - "x-ms-client-request-id" : "c78736a8-4f2b-4dc2-8854-2eb695717de9", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/ee96b7ee0ee96b7eed81208551216ac7d134544f1a91/ee96b7ee1ee96b7eed81511448b6717f4242149adb79?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "92d8f828-93eb-4086-ae36-076dc5a4fb83" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC57EF93", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ae793d00-501f-0033-5930-4e411d000000", - "x-ms-client-request-id" : "92d8f828-93eb-4086-ae36-076dc5a4fb83", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/ee96b7ee0ee96b7eed81208551216ac7d134544f1a91/ee96b7ee1ee96b7eed81511448b6717f4242149adb79?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7486e307-0486-46cb-a082-28066df5a07c" - }, - "Response" : { - "content-length" : "168", - "x-ms-existing-resource-type" : "directory", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "ab07acff-401f-0041-1f30-4e3023000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:ab07acff-401f-0041-1f30-4e3023000000\\nTime:2022-04-12T05:46:59.2114505Z\"}}", - "x-ms-client-request-id" : "7486e307-0486-46cb-a082-28066df5a07c", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ee96b7ee0ee96b7eed81208551216ac7d134544f1a91/ee96b7ee1ee96b7eed81511448b6717f4242149adb79", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "32ada028-b495-4130-a4b6-028387b712a6" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:46:59 GMT", - "eTag" : "0x8DA1C47DC57EF93", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "7e7f2ef5-b01e-001b-3430-4e36a2000000", - "x-ms-client-request-id" : "32ada028-b495-4130-a4b6-028387b712a6", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "ee96b7ee0ee96b7eed81208551216ac7d134544f1a91", "ee96b7ee1ee96b7eed81511448b6717f4242149adb79" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMin.json deleted file mode 100644 index c578822aa048f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsMin.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/7986453d07986453d1c09087128a953934f874eb282a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7e07fe55-f20f-4c1a-9f7b-fe0d440d35ab" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF343E4", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7e7f2d7f-b01e-001b-5d30-4e36a2000000", - "x-ms-client-request-id" : "7e07fe55-f20f-4c1a-9f7b-fe0d440d35ab", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/7986453d07986453d1c09087128a953934f874eb282a/7986453d17986453d1c045340aa27b412aa9e4f6fa15?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "62b64815-dabf-46ca-b52d-43e2e20bc957" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC57F96C", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a94859e1-e01f-0021-1730-4e7501000000", - "x-ms-client-request-id" : "62b64815-dabf-46ca-b52d-43e2e20bc957", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/7986453d07986453d1c09087128a953934f874eb282a/7986453d27986453d1c03178957da847791444d7a9b6?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9dd29aca-ec39-4e3b-9541-7d22dcfe6035" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC61103B", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "970fea64-a01f-004b-2330-4e29aa000000", - "x-ms-client-request-id" : "9dd29aca-ec39-4e3b-9541-7d22dcfe6035", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT" - }, - "Exception" : null - } ], - "variables" : [ "7986453d07986453d1c09087128a953934f874eb282a", "7986453d17986453d1c045340aa27b412aa9e4f6fa15", "7986453d27986453d1c03178957da847791444d7a9b6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsOverwrite.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsOverwrite.json deleted file mode 100644 index ae90b65e8fe09..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsOverwrite.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/7eeea6a207eeea6a275794351b4a36481973d4bf2a80?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a97c50a2-9ead-472b-bb62-d04af10e3aba" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF400BF", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0f5ebb71-701e-0060-5f30-4e5d12000000", - "x-ms-client-request-id" : "a97c50a2-9ead-472b-bb62-d04af10e3aba", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/7eeea6a207eeea6a275794351b4a36481973d4bf2a80/7eeea6a217eeea6a275755076374d9bd9b1f449ce84b?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fa66b537-6034-42ad-8869-afe4b367284b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC59290E", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7440e694-801f-005c-7130-4ee9c9000000", - "x-ms-client-request-id" : "fa66b537-6034-42ad-8869-afe4b367284b", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/7eeea6a207eeea6a275794351b4a36481973d4bf2a80/7eeea6a227eeea6a275759909d3775a2f097c46f6bab?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "14f3c4f4-b430-426c-b2ae-be9721f6ae35" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC62B071", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "136a0d5c-901f-0043-1a30-4e32d9000000", - "x-ms-client-request-id" : "14f3c4f4-b430-426c-b2ae-be9721f6ae35", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/7eeea6a207eeea6a275794351b4a36481973d4bf2a80/7eeea6a227eeea6a275759909d3775a2f097c46f6bab?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "74aea4a4-3f14-44e4-8f81-76d7c736edce" - }, - "Response" : { - "content-length" : "168", - "x-ms-existing-resource-type" : "directory", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "970fea72-a01f-004b-3130-4e29aa000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:970fea72-a01f-004b-3130-4e29aa000000\\nTime:2022-04-12T05:46:59.2566733Z\"}}", - "x-ms-client-request-id" : "74aea4a4-3f14-44e4-8f81-76d7c736edce", - "Date" : "Tue, 12 Apr 2022 05:46:59 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "7eeea6a207eeea6a275794351b4a36481973d4bf2a80", "7eeea6a217eeea6a275755076374d9bd9b1f449ce84b", "7eeea6a227eeea6a275759909d3775a2f097c46f6bab" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsPermissionsAndUmask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsPermissionsAndUmask.json deleted file mode 100644 index 31589d87b8fce..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsPermissionsAndUmask.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/f73f78100f73f781075768051fadc34c4e65d4c05b28?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "33c7ede5-7a74-41d0-91e8-43d1fc05b21d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DBF458FC", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "bd13b9b7-801e-005c-7530-4ee9c9000000", - "x-ms-client-request-id" : "33c7ede5-7a74-41d0-91e8-43d1fc05b21d", - "Date" : "Tue, 12 Apr 2022 05:46:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f73f78100f73f781075768051fadc34c4e65d4c05b28/f73f78101f73f7810757992507b38dbb5c18a4fd48ad?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5a725263-73ce-408a-9568-ee1a173dd8d3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC567D0B", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ab07acfa-401f-0041-1a30-4e3023000000", - "x-ms-client-request-id" : "5a725263-73ce-408a-9568-ee1a173dd8d3", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f73f78100f73f781075768051fadc34c4e65d4c05b28/f73f78102f73f781075735808238dddb10ae142838cf?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d64f12d8-4ebf-498d-ad89-48c6fa1c1bb3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C47DC6343EF", - "Last-Modified" : "Tue, 12 Apr 2022 05:46:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "448e58c4-901f-0061-0430-4e5cef000000", - "x-ms-client-request-id" : "d64f12d8-4ebf-498d-ad89-48c6fa1c1bb3", - "Date" : "Tue, 12 Apr 2022 05:46:58 GMT" - }, - "Exception" : null - } ], - "variables" : [ "f73f78100f73f781075768051fadc34c4e65d4c05b28", "f73f78101f73f7810757992507b38dbb5c18a4fd48ad", "f73f78102f73f781075735808238dddb10ae142838cf" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirDefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirDefaults.json deleted file mode 100644 index bccd2a3eb5510..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirDefaults.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/d4c7fed40d4c7fed4aa8606335345d740268d4412998?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b471f8bd-c7c7-4978-9c21-7eca89384e88" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2E22CE", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "f8e8717f-301e-0001-104b-4e19cd000000", - "x-ms-client-request-id" : "b471f8bd-c7c7-4978-9c21-7eca89384e88", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/d4c7fed40d4c7fed4aa8606335345d740268d4412998/d4c7fed41d4c7fed4aa868342bea39cab2d7546fabc0?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "74dc09dc-f6be-4fc0-a603-9d72ca825db2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7DE626", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d010aba2-201f-0051-0b4b-4e06c5000000", - "x-ms-client-request-id" : "74dc09dc-f6be-4fc0-a603-9d72ca825db2", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/d4c7fed40d4c7fed4aa8606335345d740268d4412998/d4c7fed41d4c7fed4aa868342bea39cab2d7546fabc0%2Fd4c7fed42d4c7fed4aa888894e73a7ff1fcbb4c5bb24?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d148356a-da7b-4e13-9cc0-9d0730f965c9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8E8863", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d010aba3-201f-0051-0c4b-4e06c5000000", - "x-ms-client-request-id" : "d148356a-da7b-4e13-9cc0-9d0730f965c9", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "d4c7fed40d4c7fed4aa8606335345d740268d4412998", "d4c7fed41d4c7fed4aa868342bea39cab2d7546fabc0", "d4c7fed42d4c7fed4aa888894e73a7ff1fcbb4c5bb24" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirHeaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirHeaders[0].json deleted file mode 100644 index 2e65e918a0545..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirHeaders[0].json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/015ac02b0015ac02b0613116275e0e8bbde2c457e9fd?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "027a02f2-9bc3-4e10-bdb8-80e954d64b0e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2E1575", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7380c1ff-501e-0033-5f4b-4e411d000000", - "x-ms-client-request-id" : "027a02f2-9bc3-4e10-bdb8-80e954d64b0e", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/015ac02b0015ac02b0613116275e0e8bbde2c457e9fd/015ac02b1015ac02b061529018a7549ab4c0442b6905?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "651ac7f5-751f-44a5-a34c-8eb630a0bf4e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7DB7EA", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "44993120-901f-0061-2e4b-4e5cef000000", - "x-ms-client-request-id" : "651ac7f5-751f-44a5-a34c-8eb630a0bf4e", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/015ac02b0015ac02b0613116275e0e8bbde2c457e9fd/015ac02b1015ac02b061529018a7549ab4c0442b6905%2F015ac02b2015ac02b061584077de9c0eed3b84c53a79?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "92d34474-62a0-408b-8aa0-5bfabbe84cd0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8CA33A", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "2795bd90-c01f-001f-284b-4ec320000000", - "x-ms-client-request-id" : "92d34474-62a0-408b-8aa0-5bfabbe84cd0", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/015ac02b0015ac02b0613116275e0e8bbde2c457e9fd/015ac02b1015ac02b061529018a7549ab4c0442b6905%2F015ac02b2015ac02b061584077de9c0eed3b84c53a79", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "076ab523-e12e-4fa7-97e3-e2d8aa574a8a" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8CA33A", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "e025c1a0-901e-0061-5f4b-4e5cef000000", - "x-ms-client-request-id" : "076ab523-e12e-4fa7-97e3-e2d8aa574a8a", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "015ac02b0015ac02b0613116275e0e8bbde2c457e9fd", "015ac02b1015ac02b061529018a7549ab4c0442b6905", "015ac02b2015ac02b061584077de9c0eed3b84c53a79" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirHeaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirHeaders[1].json deleted file mode 100644 index f06f3ea0a52f7..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirHeaders[1].json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/1841f16a01841f16a23423717a005a2e5c20443afab7?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8da049b0-b0c6-44d8-bf16-09d613da966e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2DD611", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e025bf8f-901e-0061-6d4b-4e5cef000000", - "x-ms-client-request-id" : "8da049b0-b0c6-44d8-bf16-09d613da966e", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/1841f16a01841f16a23423717a005a2e5c20443afab7/1841f16a11841f16a2349856748d2eb85c19a4792b69?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a7dc12c9-f853-4a18-8286-d2c9969f8c77" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7F0C9E", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "fd47316c-d01f-000b-5d4b-4e0044000000", - "x-ms-client-request-id" : "a7dc12c9-f853-4a18-8286-d2c9969f8c77", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/1841f16a01841f16a23423717a005a2e5c20443afab7/1841f16a11841f16a2349856748d2eb85c19a4792b69%2F1841f16a21841f16a23475388eaf2ff661edd4845a6b?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "87796a58-e08f-4532-bc35-32bf086e057f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8C0395", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e48db2dc-c01f-0050-074b-4e0738000000", - "x-ms-client-request-id" : "87796a58-e08f-4532-bc35-32bf086e057f", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/1841f16a01841f16a23423717a005a2e5c20443afab7/1841f16a11841f16a2349856748d2eb85c19a4792b69%2F1841f16a21841f16a23475388eaf2ff661edd4845a6b", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "12b5ae92-6ee2-4b8d-9ac4-5e1b7daf5c06" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "Content-Encoding" : "encoding", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8C0395", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "a83e39c0-601e-0074-134b-4e9e76000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "type", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "Cache-Control" : "control", - "Content-Disposition" : "disposition", - "Content-Language" : "language", - "x-ms-client-request-id" : "12b5ae92-6ee2-4b8d-9ac4-5e1b7daf5c06" - }, - "Exception" : null - } ], - "variables" : [ "1841f16a01841f16a23423717a005a2e5c20443afab7", "1841f16a11841f16a2349856748d2eb85c19a4792b69", "1841f16a21841f16a23475388eaf2ff661edd4845a6b" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMetadata[0].json deleted file mode 100644 index cbaf4677e2a17..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMetadata[0].json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/2ed74a2302ed74a23fed0440503aefc7551e94713a12?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8db28532-93df-4b24-921e-77fb40ebf840" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2DCFFA", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5fbda98e-a01e-0004-294b-4eedb2000000", - "x-ms-client-request-id" : "8db28532-93df-4b24-921e-77fb40ebf840", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/2ed74a2302ed74a23fed0440503aefc7551e94713a12/2ed74a2312ed74a23fed392755ececc5d5a4742808c0?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e2727d7c-794e-48c6-964b-10d9ce48cc88" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7F7004", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "936aefce-701f-0049-2f4b-4e2b50000000", - "x-ms-client-request-id" : "e2727d7c-794e-48c6-964b-10d9ce48cc88", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/2ed74a2302ed74a23fed0440503aefc7551e94713a12/2ed74a2312ed74a23fed392755ececc5d5a4742808c0%2F2ed74a2322ed74a23fed0187906e5330908954da99df?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8c86d748-7b53-471c-b3e9-2406215d1342" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8D998B", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "8300a111-a01f-0004-0d4b-4eedb2000000", - "x-ms-client-request-id" : "8c86d748-7b53-471c-b3e9-2406215d1342", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/2ed74a2302ed74a23fed0440503aefc7551e94713a12/2ed74a2312ed74a23fed392755ececc5d5a4742808c0%2F2ed74a2322ed74a23fed0187906e5330908954da99df", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8578acba-7dc8-485a-92a0-6082d76351ec" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8D998B", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "8f31dd0e-001e-006f-3b4b-4eb0e4000000", - "x-ms-client-request-id" : "8578acba-7dc8-485a-92a0-6082d76351ec", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "2ed74a2302ed74a23fed0440503aefc7551e94713a12", "2ed74a2312ed74a23fed392755ececc5d5a4742808c0", "2ed74a2322ed74a23fed0187906e5330908954da99df" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMetadata[1].json deleted file mode 100644 index 3559d5fee562a..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMetadata[1].json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/37cc7b62037cc7b6261821687d788a0f24f714fceb1b?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "36a03e93-bddd-490b-a094-b5ed686c394f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2DC72E", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a83e3739-601e-0074-484b-4e9e76000000", - "x-ms-client-request-id" : "36a03e93-bddd-490b-a094-b5ed686c394f", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/37cc7b62037cc7b6261821687d788a0f24f714fceb1b/37cc7b62137cc7b6261805072ec860bf9abbd4830974?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c98a6767-7f37-47de-b1b7-4687b4546092" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7EB684", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "8300a10a-a01f-0004-064b-4eedb2000000", - "x-ms-client-request-id" : "c98a6767-7f37-47de-b1b7-4687b4546092", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/37cc7b62037cc7b6261821687d788a0f24f714fceb1b/37cc7b62137cc7b6261805072ec860bf9abbd4830974%2F37cc7b62237cc7b6261805984f74a18b0b2494a34a28?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "321601c5-ef81-4fd6-bf96-47b368ec2676" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8D2976", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "936aefcf-701f-0049-304b-4e2b50000000", - "x-ms-client-request-id" : "321601c5-ef81-4fd6-bf96-47b368ec2676", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/37cc7b62037cc7b6261821687d788a0f24f714fceb1b/37cc7b62137cc7b6261805072ec860bf9abbd4830974%2F37cc7b62237cc7b6261805984f74a18b0b2494a34a28", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7163a9d2-afd0-4223-922d-04fff080ffe0" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8D2976", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "9b2261a3-d01e-004f-164b-4edc28000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "x-ms-meta-foo" : "bar", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-client-request-id" : "7163a9d2-afd0-4223-922d-04fff080ffe0" - }, - "Exception" : null - } ], - "variables" : [ "37cc7b62037cc7b6261821687d788a0f24f714fceb1b", "37cc7b62137cc7b6261805072ec860bf9abbd4830974", "37cc7b62237cc7b6261805984f74a18b0b2494a34a28" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMin.json deleted file mode 100644 index 8116dc3790e76..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirMin.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/253bb8510253bb851e0040504e427637709724a6f910?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "23c05f0c-07d2-4c4b-9d9f-915cdc689bfc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2E7957", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "4c966bc0-401e-0063-224b-4e5e15000000", - "x-ms-client-request-id" : "23c05f0c-07d2-4c4b-9d9f-915cdc689bfc", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/253bb8510253bb851e0040504e427637709724a6f910/253bb8511253bb851e00211036f1b4d5ee42f4e6e976?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c3815f97-3d9c-4e81-ab0a-950f8ed47df3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7CF577", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4fc8e46a-601f-0012-5b4b-4e2c2c000000", - "x-ms-client-request-id" : "c3815f97-3d9c-4e81-ab0a-950f8ed47df3", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/253bb8510253bb851e0040504e427637709724a6f910/253bb8511253bb851e00211036f1b4d5ee42f4e6e976%2F253bb8512253bb851e006431004542beb41f34691869?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d732e9f1-7808-4282-b56e-af7042c84b85" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8B85A2", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "fd473175-d01f-000b-664b-4e0044000000", - "x-ms-client-request-id" : "d732e9f1-7808-4282-b56e-af7042c84b85", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/253bb8510253bb851e0040504e427637709724a6f910/253bb8511253bb851e00211036f1b4d5ee42f4e6e976%2F253bb8512253bb851e006431004542beb41f34691869", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2188e588-81f5-4201-b95a-b7b16d873047" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8B85A2", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "4c966d1c-401e-0063-4f4b-4e5e15000000", - "x-ms-client-request-id" : "2188e588-81f5-4201-b95a-b7b16d873047", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "253bb8510253bb851e0040504e427637709724a6f910", "253bb8511253bb851e00211036f1b4d5ee42f4e6e976", "253bb8512253bb851e006431004542beb41f34691869" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirOverwrite.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirOverwrite.json deleted file mode 100644 index 6f410d8bad1a0..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirOverwrite.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "45bcdb6e-d376-4d5e-a0ba-e0ea9225f8ec" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2DF63C", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8f31dac5-001e-006f-204b-4eb0e4000000", - "x-ms-client-request-id" : "45bcdb6e-d376-4d5e-a0ba-e0ea9225f8ec", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf/3bc2bcfc13bc2bcfcac798301ab3e9d4bea87485ba93?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "88531b4e-842e-461b-bea0-d576188a3ffe" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E80D59A", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "2795bd8f-c01f-001f-274b-4ec320000000", - "x-ms-client-request-id" : "88531b4e-842e-461b-bea0-d576188a3ffe", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf/3bc2bcfc13bc2bcfcac798301ab3e9d4bea87485ba93%2F3bc2bcfc23bc2bcfcac7240713dbf0637f9e44532a6f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "befbcb85-29c2-4165-baf2-4f70988be885" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8DDCC6", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4fc8e46b-601f-0012-5c4b-4e2c2c000000", - "x-ms-client-request-id" : "befbcb85-29c2-4165-baf2-4f70988be885", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf/3bc2bcfc13bc2bcfcac798301ab3e9d4bea87485ba93%2F3bc2bcfc23bc2bcfcac7240713dbf0637f9e44532a6f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6b50101d-34a0-4d6d-8c9a-20d9bbeee9ad" - }, - "Response" : { - "content-length" : "168", - "x-ms-existing-resource-type" : "directory", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "fd47317c-d01f-000b-6d4b-4e0044000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:fd47317c-d01f-000b-6d4b-4e0044000000\\nTime:2022-04-12T08:55:24.0477911Z\"}}", - "x-ms-client-request-id" : "6b50101d-34a0-4d6d-8c9a-20d9bbeee9ad", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf/3bc2bcfc13bc2bcfcac798301ab3e9d4bea87485ba93%2F3bc2bcfc23bc2bcfcac7240713dbf0637f9e44532a6f", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c3bccc86-16a1-41b3-8f0f-87ebf612e274" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8DDCC6", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "575fa4e2-401e-000e-054b-4ef43b000000", - "x-ms-client-request-id" : "c3bccc86-16a1-41b3-8f0f-87ebf612e274", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf/3bc2bcfc13bc2bcfcac798301ab3e9d4bea87485ba93%2F3bc2bcfc23bc2bcfcac7240713dbf0637f9e44532a6f", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1bfc879d-423a-4471-988f-f273877246b6" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 08:55:23 GMT", - "eTag" : "0x8DA1C622E8DDCC6", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "575fa51c-401e-000e-394b-4ef43b000000", - "x-ms-client-request-id" : "1bfc879d-423a-4471-988f-f273877246b6", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "3bc2bcfc03bc2bcfcac74886065f7d15f8fdb45538bf", "3bc2bcfc13bc2bcfcac798301ab3e9d4bea87485ba93", "3bc2bcfc23bc2bcfcac7240713dbf0637f9e44532a6f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirPermissionsAndUmask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirPermissionsAndUmask.json deleted file mode 100644 index 86ec5ca6dd64c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirPermissionsAndUmask.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/d1e62bc30d1e62bc33b8205270ba0a16708fe4522934?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b2405e87-f72e-4a90-a6e3-484e0154e8ce" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2DD12C", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9b225fb7-d01e-004f-694b-4edc28000000", - "x-ms-client-request-id" : "b2405e87-f72e-4a90-a6e3-484e0154e8ce", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/d1e62bc30d1e62bc33b8205270ba0a16708fe4522934/d1e62bc31d1e62bc33b867123e8b464cd7b994f4f985?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4f48acc7-9ae2-4ebf-8baf-f6e9c518a659" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E7FE875", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4ffd0c91-201f-0015-294b-4edaa9000000", - "x-ms-client-request-id" : "4f48acc7-9ae2-4ebf-8baf-f6e9c518a659", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/d1e62bc30d1e62bc33b8205270ba0a16708fe4522934/d1e62bc32d1e62bc33b840396aa9c33362954469f906%2Fd1e62bc33d1e62bc33b896090e060028df5c04569afe?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6248f823-45af-4cfb-987b-78252f800718" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E909ACF", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4ffd0c92-201f-0015-2a4b-4edaa9000000", - "x-ms-client-request-id" : "6248f823-45af-4cfb-987b-78252f800718", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "d1e62bc30d1e62bc33b8205270ba0a16708fe4522934", "d1e62bc31d1e62bc33b867123e8b464cd7b994f4f985", "d1e62bc32d1e62bc33b840396aa9c33362954469f906", "d1e62bc33d1e62bc33b896090e060028df5c04569afe" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirThatAlreadyExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirThatAlreadyExists.json deleted file mode 100644 index 84e3797a2ddbf..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestCreateIfNotExistsSubDirThatAlreadyExists.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/c560abce0c560abcef4d9620349c365814c1f43aaa24?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6742b7f4-f0a7-44a6-b5b1-84a07aa1d6dd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E2E1F8A", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "575fa27a-401e-000e-534b-4ef43b000000", - "x-ms-client-request-id" : "6742b7f4-f0a7-44a6-b5b1-84a07aa1d6dd", - "Date" : "Tue, 12 Apr 2022 08:55:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c560abce0c560abcef4d9620349c365814c1f43aaa24/c560abce1c560abcef4d72567fba4b1f239a14835b43?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e01d305a-6773-4796-8bd7-5183e85496a4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8194CB", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e48db2db-c01f-0050-064b-4e0738000000", - "x-ms-client-request-id" : "e01d305a-6773-4796-8bd7-5183e85496a4", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c560abce0c560abcef4d9620349c365814c1f43aaa24/c560abce1c560abcef4d72567fba4b1f239a14835b43%2Fc560abce2c560abcef4d5560565cd4837812c48fea0a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "29c060dd-0e7f-426f-9817-ba2b1e7e2d3d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C622E8EBFDB", - "Last-Modified" : "Tue, 12 Apr 2022 08:55:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "44993136-901f-0061-444b-4e5cef000000", - "x-ms-client-request-id" : "29c060dd-0e7f-426f-9817-ba2b1e7e2d3d", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c560abce0c560abcef4d9620349c365814c1f43aaa24/c560abce1c560abcef4d72567fba4b1f239a14835b43%2Fc560abce2c560abcef4d5560565cd4837812c48fea0a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7bd94f58-86de-42de-a545-d104b3b642c9" - }, - "Response" : { - "content-length" : "168", - "x-ms-existing-resource-type" : "directory", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "2795bd91-c01f-001f-294b-4ec320000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:2795bd91-c01f-001f-294b-4ec320000000\\nTime:2022-04-12T08:55:24.0544941Z\"}}", - "x-ms-client-request-id" : "7bd94f58-86de-42de-a545-d104b3b642c9", - "Date" : "Tue, 12 Apr 2022 08:55:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "c560abce0c560abcef4d9620349c365814c1f43aaa24", "c560abce1c560abcef4d72567fba4b1f239a14835b43", "c560abce2c560abcef4d5560565cd4837812c48fea0a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExists.json deleted file mode 100644 index 76f98acb38d76..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExists.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/69db8933069db8933720291220289d40b23254b258f2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "14fd90ec-d0c0-44d9-bef4-3ceefde6778a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9A00D9E08", - "Last-Modified" : "Thu, 31 Mar 2022 07:39:44 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5a2e3601-301e-0001-3dd2-4419cd000000", - "x-ms-client-request-id" : "14fd90ec-d0c0-44d9-bef4-3ceefde6778a", - "Date" : "Thu, 31 Mar 2022 07:39:44 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/69db8933069db8933720291220289d40b23254b258f2/69db8933169db893372041628822bcb45857a40dd8c2?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5408fdc9-a5d2-4103-b90b-25963aca73a6" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA12E9A05A0F16", - "Last-Modified" : "Thu, 31 Mar 2022 07:39:45 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "752f4c5f-201f-003c-7fd2-44aceb000000", - "x-ms-client-request-id" : "5408fdc9-a5d2-4103-b90b-25963aca73a6", - "Date" : "Thu, 31 Mar 2022 07:39:45 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/69db8933069db8933720291220289d40b23254b258f2/69db8933169db893372041628822bcb45857a40dd8c2?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "09ffc600-8fc2-45be-a919-bb20dbab2a74" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "8b60a18e-401f-0063-44d2-445e15000000", - "x-ms-client-request-id" : "09ffc600-8fc2-45be-a919-bb20dbab2a74", - "Date" : "Thu, 31 Mar 2022 07:39:44 GMT" - }, - "Exception" : null - } ], - "variables" : [ "69db8933069db8933720291220289d40b23254b258f2", "69db8933169db893372041628822bcb45857a40dd8c2" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[0].json deleted file mode 100644 index 6bc2cca08d9b1..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[0].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/fed1b6ff0fed1b6ffb9c88684e42efb0092784dc8ae0?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "846d1b14-2a90-4b94-b6f1-024f14fcf0b9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA858EC7", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a89f6c9d-801e-0018-191e-4635a5000000", - "x-ms-client-request-id" : "846d1b14-2a90-4b94-b6f1-024f14fcf0b9", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/fed1b6ff0fed1b6ffb9c88684e42efb0092784dc8ae0/fed1b6ff1fed1b6ffb9c154633310b0cf29ef4c5f97a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2c2830db-9a2d-441d-a89f-0b1c8a1f1d21" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DAD9BDBA", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c4ce5d57-701f-002f-671e-46990a000000", - "x-ms-client-request-id" : "2c2830db-9a2d-441d-a89f-0b1c8a1f1d21", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/fed1b6ff0fed1b6ffb9c88684e42efb0092784dc8ae0/fed1b6ff1fed1b6ffb9c154633310b0cf29ef4c5f97a?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "64811cdf-4ab1-49ec-9253-624368dd85df" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "e17e6b76-401f-0063-421e-465e15000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:e17e6b76-401f-0063-421e-465e15000000\\nTime:2022-04-01T23:17:56.5157104Z\"}}", - "x-ms-client-request-id" : "64811cdf-4ab1-49ec-9253-624368dd85df", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "fed1b6ff0fed1b6ffb9c88684e42efb0092784dc8ae0", "fed1b6ff1fed1b6ffb9c154633310b0cf29ef4c5f97a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[1].json deleted file mode 100644 index 14e7d1c1247e6..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/e7ca87be0e7ca87be0b516089d1074c3373244020bd2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "605b4513-3929-4f7c-8e98-0ce10d5e2d58" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA855F23", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "1904df8c-d01e-0066-6b1e-46aa6a000000", - "x-ms-client-request-id" : "605b4513-3929-4f7c-8e98-0ce10d5e2d58", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/e7ca87be0e7ca87be0b516089d1074c3373244020bd2/e7ca87be1e7ca87be0b514130c5f71068c2864c2399a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "11688fa0-56d8-412a-a4c3-10bf0287ade3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADA5184", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "45987419-c01f-0014-731e-46db54000000", - "x-ms-client-request-id" : "11688fa0-56d8-412a-a4c3-10bf0287ade3", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/e7ca87be0e7ca87be0b516089d1074c3373244020bd2/e7ca87be1e7ca87be0b514130c5f71068c2864c2399a?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "05e105d7-7290-4b50-a64e-b6e6dfaf38d6" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "c4ce5d6a-701f-002f-7a1e-46990a000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:c4ce5d6a-701f-002f-7a1e-46990a000000\\nTime:2022-04-01T23:17:56.4908086Z\"}}", - "x-ms-client-request-id" : "05e105d7-7290-4b50-a64e-b6e6dfaf38d6", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "e7ca87be0e7ca87be0b516089d1074c3373244020bd2", "e7ca87be1e7ca87be0b514130c5f71068c2864c2399a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[2].json deleted file mode 100644 index 0e378ad7e0c53..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[2].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/cce7d47d0cce7d47d69867768bffae32e6f054719b75?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2543d65d-7c1a-4974-98ac-dfb83d1a5d0b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA849DCA", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3489178e-801e-003a-541e-465b93000000", - "x-ms-client-request-id" : "2543d65d-7c1a-4974-98ac-dfb83d1a5d0b", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/cce7d47d0cce7d47d69867768bffae32e6f054719b75/cce7d47d1cce7d47d69802104e07f9d36786c4ead95a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f8e50667-0904-4bab-ab71-483c38040f7d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADBAA77", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ac901490-901f-0025-3c1e-468083000000", - "x-ms-client-request-id" : "f8e50667-0904-4bab-ab71-483c38040f7d", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/cce7d47d0cce7d47d69867768bffae32e6f054719b75/cce7d47d1cce7d47d69802104e07f9d36786c4ead95a?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6ee0ea93-20c5-4a79-b689-c47ac16a03d9" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "4598741a-c01f-0014-741e-46db54000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:4598741a-c01f-0014-741e-46db54000000\\nTime:2022-04-01T23:17:56.4688103Z\"}}", - "x-ms-client-request-id" : "6ee0ea93-20c5-4a79-b689-c47ac16a03d9", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "cce7d47d0cce7d47d69867768bffae32e6f054719b75", "cce7d47d1cce7d47d69802104e07f9d36786c4ead95a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[3].json deleted file mode 100644 index 960b2dfb128e9..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[3].json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/d5fce53c0d5fce53c56224393d6026dca7f8a4be5aa6?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c4c38b5c-6b5b-41df-9854-37fb8c8bb6ab" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA84688C", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "86dab1fd-a01e-0062-521e-465fe8000000", - "x-ms-client-request-id" : "c4c38b5c-6b5b-41df-9854-37fb8c8bb6ab", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/d5fce53c0d5fce53c56224393d6026dca7f8a4be5aa6/d5fce53c1d5fce53c562219425a14464e48bc4f8bb8f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cf8601a2-27e2-4a02-9f1e-b119f5b0d389" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DAD7DF61", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d34040fc-e01f-0008-371e-460343000000", - "x-ms-client-request-id" : "cf8601a2-27e2-4a02-9f1e-b119f5b0d389", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/d5fce53c0d5fce53c56224393d6026dca7f8a4be5aa6/d5fce53c1d5fce53c562219425a14464e48bc4f8bb8f", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "95d337ca-11e6-4e0f-8a30-71a48d713ae5" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 01 Apr 2022 23:17:56 GMT", - "eTag" : "0x8DA1435DAD7DF61", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "a89f6e86-801e-0018-561e-4635a5000000", - "x-ms-client-request-id" : "95d337ca-11e6-4e0f-8a30-71a48d713ae5", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/d5fce53c0d5fce53c56224393d6026dca7f8a4be5aa6/d5fce53c1d5fce53c562219425a14464e48bc4f8bb8f?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7b436c49-401b-4a0b-b60e-fe747397be8f" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "4fce9e3a-e01f-0047-091e-46c75b000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:4fce9e3a-e01f-0047-091e-46c75b000000\\nTime:2022-04-01T23:17:56.6009928Z\"}}", - "x-ms-client-request-id" : "7b436c49-401b-4a0b-b60e-fe747397be8f", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "d5fce53c0d5fce53c56224393d6026dca7f8a4be5aa6", "d5fce53c1d5fce53c562219425a14464e48bc4f8bb8f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[4].json deleted file mode 100644 index ccfab346851df..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsACFail[4].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/9abd73fb09abd73fbdb51699681359c7d372a4defa43?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7c3dc818-ff6a-4bcd-a59b-37a349efbe00" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA84758F", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "05820afa-401e-0005-5a1e-46ec4f000000", - "x-ms-client-request-id" : "7c3dc818-ff6a-4bcd-a59b-37a349efbe00", - "Date" : "Fri, 01 Apr 2022 23:17:54 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/9abd73fb09abd73fbdb51699681359c7d372a4defa43/9abd73fb19abd73fbdb548329e34fa9baad7e4056b99?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "01226cd2-43a6-48ed-a5d6-1206ac974990" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADA39E6", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d805adea-c01f-005b-2c1e-461f4c000000", - "x-ms-client-request-id" : "01226cd2-43a6-48ed-a5d6-1206ac974990", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/9abd73fb09abd73fbdb51699681359c7d372a4defa43/9abd73fb19abd73fbdb548329e34fa9baad7e4056b99?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3f0b8fd5-f5ec-4d26-81fe-ce56d5a242b3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "b464ad7f-3bf4-4707-a9b1-483781956618", - "eTag" : "0x8DA1435DADA39E6", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "348919d2-801e-003a-631e-465b93000000", - "x-ms-client-request-id" : "3f0b8fd5-f5ec-4d26-81fe-ce56d5a242b3", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/9abd73fb09abd73fbdb51699681359c7d372a4defa43/9abd73fb19abd73fbdb548329e34fa9baad7e4056b99?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cf755c34-089c-4ab2-a34c-6d4f161bde9c" - }, - "Response" : { - "content-length" : "199", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseIdMismatch", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "83d04fd5-201f-003c-181e-46aceb000000", - "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:83d04fd5-201f-003c-181e-46aceb000000\\nTime:2022-04-01T23:17:56.5939589Z\"}}", - "x-ms-client-request-id" : "cf755c34-089c-4ab2-a34c-6d4f161bde9c", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "9abd73fb09abd73fbdb51699681359c7d372a4defa43", "9abd73fb19abd73fbdb548329e34fa9baad7e4056b99" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[0].json deleted file mode 100644 index deb385deec5ed..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[0].json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/c3569a040c3569a04f7661253666fbc1697734c89b2d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9cef40d1-4d2f-42be-894a-1acca3fc798f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA857564", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "83bfa7b7-801e-0031-191e-4643e7000000", - "x-ms-client-request-id" : "9cef40d1-4d2f-42be-894a-1acca3fc798f", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/c3569a040c3569a04f7661253666fbc1697734c89b2d/c3569a041c3569a04f76649478f8fd8554a14414d985?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b582a7dd-eb15-49b0-93ca-489b5c3ff9e2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADCCB42", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5cbe44a2-501f-001a-361e-46375f000000", - "x-ms-client-request-id" : "b582a7dd-eb15-49b0-93ca-489b5c3ff9e2", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/c3569a040c3569a04f7661253666fbc1697734c89b2d/c3569a041c3569a04f76649478f8fd8554a14414d985?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1827087d-1a63-4e2c-b492-36867da069fb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "ac901497-901f-0025-431e-468083000000", - "x-ms-client-request-id" : "1827087d-1a63-4e2c-b492-36867da069fb", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - } ], - "variables" : [ "c3569a040c3569a04f7661253666fbc1697734c89b2d", "c3569a041c3569a04f76649478f8fd8554a14414d985" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[1].json deleted file mode 100644 index 77e7979a0f1d3..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[1].json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/da4dab450da4dab45a30270436637c4d8eae147e7b15?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7b3b2773-3e8e-4757-972c-4254f8d2947b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA859828", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "00847a1a-f01e-001c-581e-46c027000000", - "x-ms-client-request-id" : "7b3b2773-3e8e-4757-972c-4254f8d2947b", - "Date" : "Fri, 01 Apr 2022 23:17:54 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/da4dab450da4dab45a30270436637c4d8eae147e7b15/da4dab451da4dab45a30359624c0f359f6e6e497a937?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9af216c8-7b2e-49b3-82c9-28950750cf84" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADE902C", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "099f288e-f01f-001c-611e-46c027000000", - "x-ms-client-request-id" : "9af216c8-7b2e-49b3-82c9-28950750cf84", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/da4dab450da4dab45a30270436637c4d8eae147e7b15/da4dab451da4dab45a30359624c0f359f6e6e497a937?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fe2bf3a2-8615-46e6-9bac-e21bcb924332" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "932593a1-401f-000e-0e1e-46f43b000000", - "x-ms-client-request-id" : "fe2bf3a2-8615-46e6-9bac-e21bcb924332", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - } ], - "variables" : [ "da4dab450da4dab45a30270436637c4d8eae147e7b15", "da4dab451da4dab45a30359624c0f359f6e6e497a937" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[2].json deleted file mode 100644 index 59151f245d9d9..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[2].json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/f160f8860f160f88666144453250df1f3131d4a3fb2d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f9b0e1c7-ee73-4327-adf5-b44ec0e2f42e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA84595F", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "189e157a-d01e-000b-6a1e-460044000000", - "x-ms-client-request-id" : "f9b0e1c7-ee73-4327-adf5-b44ec0e2f42e", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/f160f8860f160f88666144453250df1f3131d4a3fb2d/f160f8861f160f88666137250041c438a0f0f43a88f3?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1b000440-9b0b-49de-8c6f-52da6e1e2066" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADCD03E", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4fce9e39-e01f-0047-081e-46c75b000000", - "x-ms-client-request-id" : "1b000440-9b0b-49de-8c6f-52da6e1e2066", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/f160f8860f160f88666144453250df1f3131d4a3fb2d/f160f8861f160f88666137250041c438a0f0f43a88f3?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "918b791e-7bb8-47c6-bf1f-9d9c1da174da" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5143895b-701f-000d-761e-46f73c000000", - "x-ms-client-request-id" : "918b791e-7bb8-47c6-bf1f-9d9c1da174da", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - } ], - "variables" : [ "f160f8860f160f88666144453250df1f3131d4a3fb2d", "f160f8861f160f88666137250041c438a0f0f43a88f3" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[3].json deleted file mode 100644 index cdc0aa619997d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[3].json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/e87bc9c70e87bc9c7ce0161360530d43f4c724729a8b?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e8e19d9a-3c91-4a76-9c89-abc860faabcc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA8485AD", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d0b1d3c0-f01e-0053-741e-46043f000000", - "x-ms-client-request-id" : "e8e19d9a-3c91-4a76-9c89-abc860faabcc", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/e87bc9c70e87bc9c7ce0161360530d43f4c724729a8b/e87bc9c71e87bc9c7ce0669163aa214e3890948efb62?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1cdd1495-dd7f-4ddb-b046-7047b6db687d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADA1F13", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a1b4a125-901f-0061-041e-465cef000000", - "x-ms-client-request-id" : "1cdd1495-dd7f-4ddb-b046-7047b6db687d", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/e87bc9c70e87bc9c7ce0161360530d43f4c724729a8b/e87bc9c71e87bc9c7ce0669163aa214e3890948efb62", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "69b855ff-d359-4eed-bb7f-954030eb55ab" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 01 Apr 2022 23:17:56 GMT", - "eTag" : "0x8DA1435DADA1F13", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "189e17bd-d01e-000b-7a1e-460044000000", - "x-ms-client-request-id" : "69b855ff-d359-4eed-bb7f-954030eb55ab", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/e87bc9c70e87bc9c7ce0161360530d43f4c724729a8b/e87bc9c71e87bc9c7ce0669163aa214e3890948efb62?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8662c602-3b57-4a56-a18a-73e51f958d88" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "099f288f-f01f-001c-621e-46c027000000", - "x-ms-client-request-id" : "8662c602-3b57-4a56-a18a-73e51f958d88", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - } ], - "variables" : [ "e87bc9c70e87bc9c7ce0161360530d43f4c724729a8b", "e87bc9c71e87bc9c7ce0669163aa214e3890948efb62" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[4].json deleted file mode 100644 index c5744b2073e31..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[4].json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a73a5f000a73a5f00e6b284496904e7192d444126be9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "26690642-c409-4286-b1a0-452df5982aec" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA846649", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "f5d9838c-701e-0060-0f1e-465d12000000", - "x-ms-client-request-id" : "26690642-c409-4286-b1a0-452df5982aec", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a73a5f000a73a5f00e6b284496904e7192d444126be9/a73a5f001a73a5f00e6b36219eaa55237a6004565a21?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e990d68d-3e16-475f-814b-c3799c7ef837" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADA2BD4", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e5ae863c-c01f-001f-591e-46c320000000", - "x-ms-client-request-id" : "e990d68d-3e16-475f-814b-c3799c7ef837", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a73a5f000a73a5f00e6b284496904e7192d444126be9/a73a5f001a73a5f00e6b36219eaa55237a6004565a21?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d2a0c190-b58f-49b5-928d-b97b7c592543" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "d805adeb-c01f-005b-2d1e-461f4c000000", - "x-ms-client-request-id" : "d2a0c190-b58f-49b5-928d-b97b7c592543", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - } ], - "variables" : [ "a73a5f000a73a5f00e6b284496904e7192d444126be9", "a73a5f001a73a5f00e6b36219eaa55237a6004565a21" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[5].json deleted file mode 100644 index f50113e36e0de..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsAC[5].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/be216e410be216e41acb7591705e8e6c7bc5d42508c3?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "415939f1-2dae-475d-bd6a-cbf25c1c17dc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA858FFF", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "65745393-401e-0041-7d1e-463023000000", - "x-ms-client-request-id" : "415939f1-2dae-475d-bd6a-cbf25c1c17dc", - "Date" : "Fri, 01 Apr 2022 23:17:54 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/be216e410be216e41acb7591705e8e6c7bc5d42508c3/be216e411be216e41acb65685aad0f54d78bb494ca1a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a0da069b-13d0-454a-ab4e-2c1a954a0ac9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DAE00800", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "83d04fd4-201f-003c-171e-46aceb000000", - "x-ms-client-request-id" : "a0da069b-13d0-454a-ab4e-2c1a954a0ac9", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/be216e410be216e41acb7591705e8e6c7bc5d42508c3/be216e411be216e41acb65685aad0f54d78bb494ca1a?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3e3875e1-06fc-4e02-851e-d7f78a3ae436" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "86a03052-d697-41c3-8498-3830194a0dba", - "eTag" : "0x8DA1435DAE00800", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "cba5c021-201e-001e-231e-46c2dd000000", - "x-ms-client-request-id" : "3e3875e1-06fc-4e02-851e-d7f78a3ae436", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/be216e410be216e41acb7591705e8e6c7bc5d42508c3/be216e411be216e41acb65685aad0f54d78bb494ca1a?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d6442435-155b-4013-a649-8737680e12fd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5cbe44a3-501f-001a-371e-46375f000000", - "x-ms-client-request-id" : "d6442435-155b-4013-a649-8737680e12fd", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - } ], - "variables" : [ "be216e410be216e41acb7591705e8e6c7bc5d42508c3", "be216e411be216e41acb65685aad0f54d78bb494ca1a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsDirDoesNotExistAnymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsDirDoesNotExistAnymore.json deleted file mode 100644 index a7f59266ee6ea..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsDirDoesNotExistAnymore.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a63e87ac0a63e87ac77990926e7fce5752df44b3482a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "07b749ef-d478-4efa-9137-f2f5b4b574ef" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA85745D", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "cba5bd5e-201e-001e-171e-46c2dd000000", - "x-ms-client-request-id" : "07b749ef-d478-4efa-9137-f2f5b4b574ef", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a63e87ac0a63e87ac77990926e7fce5752df44b3482a/a63e87ac1a63e87ac77972070c7cb57decf844b2fb5c?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c91a06f9-3757-4aea-bec7-40e39caabf3d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADB6235", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e17e6b75-401f-0063-411e-465e15000000", - "x-ms-client-request-id" : "c91a06f9-3757-4aea-bec7-40e39caabf3d", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a63e87ac0a63e87ac77990926e7fce5752df44b3482a/a63e87ac1a63e87ac77972070c7cb57decf844b2fb5c?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "81cadd39-66fa-4305-a7bd-e4143f345cd7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "e5ae863d-c01f-001f-5a1e-46c320000000", - "x-ms-client-request-id" : "81cadd39-66fa-4305-a7bd-e4143f345cd7", - "Date" : "Fri, 01 Apr 2022 23:17:56 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/a63e87ac0a63e87ac77990926e7fce5752df44b3482a/a63e87ac1a63e87ac77972070c7cb57decf844b2fb5c", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b7674498-c349-45fe-a2e4-94ce8fef9e8c" - }, - "Response" : { - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "d0b1d735-f01e-0053-391e-46043f000000", - "x-ms-client-request-id" : "b7674498-c349-45fe-a2e4-94ce8fef9e8c", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - } ], - "variables" : [ "a63e87ac0a63e87ac77990926e7fce5752df44b3482a", "a63e87ac1a63e87ac77972070c7cb57decf844b2fb5c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsDirThatWasAlreadyDeleted.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsDirThatWasAlreadyDeleted.json deleted file mode 100644 index c170b431f26a9..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsDirThatWasAlreadyDeleted.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/964917fd0964917fd7ac0217699d99e66d3064f52be4?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ce9be90f-8984-4223-8119-82fa35bbaf59" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1829C77229EB", - "Last-Modified" : "Thu, 07 Apr 2022 00:01:34 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "09aaa9c7-d01e-0022-7612-4a7606000000", - "x-ms-client-request-id" : "ce9be90f-8984-4223-8119-82fa35bbaf59", - "Date" : "Thu, 07 Apr 2022 00:01:33 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/964917fd0964917fd7ac0217699d99e66d3064f52be4/964917fd1964917fd7ac03742639d31d3853445fb8fe?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1cd36793-36f6-4b92-9b3f-8fbb8aa8a112" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1829C801C042", - "Last-Modified" : "Thu, 07 Apr 2022 00:01:35 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "1b5bfd44-301f-0028-2d12-4a6f8f000000", - "x-ms-client-request-id" : "1cd36793-36f6-4b92-9b3f-8fbb8aa8a112", - "Date" : "Thu, 07 Apr 2022 00:01:35 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "https://REDACTED.dfs.core.windows.net/964917fd0964917fd7ac0217699d99e66d3064f52be4/964917fd1964917fd7ac03742639d31d3853445fb8fe?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "39f6c11a-ebba-4517-9b6d-45369b624e0f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "1b5bfd51-301f-0028-3a12-4a6f8f000000", - "x-ms-client-request-id" : "39f6c11a-ebba-4517-9b6d-45369b624e0f", - "Date" : "Thu, 07 Apr 2022 00:01:35 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "https://REDACTED.dfs.core.windows.net/964917fd0964917fd7ac0217699d99e66d3064f52be4/964917fd1964917fd7ac03742639d31d3853445fb8fe?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "775ff7a5-577d-4f08-bb91-5f6d089ebd6c" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "1b5bfd5d-301f-0028-4612-4a6f8f000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:1b5bfd5d-301f-0028-4612-4a6f8f000000\\nTime:2022-04-07T00:01:35.6782792Z\"}}", - "x-ms-client-request-id" : "775ff7a5-577d-4f08-bb91-5f6d089ebd6c", - "Date" : "Thu, 07 Apr 2022 00:01:35 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "964917fd0964917fd7ac0217699d99e66d3064f52be4", "964917fd1964917fd7ac03742639d31d3853445fb8fe" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFile.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFile.json deleted file mode 100644 index 3eb4a9e762066..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFile.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/76752b46076752b4646d10901ab5ea28876d846688d9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ffb2301a-a6f9-4d6b-a884-62f9c4f94328" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE5D6AF", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "080a4aa1-301e-0001-461e-4619cd000000", - "x-ms-client-request-id" : "ffb2301a-a6f9-4d6b-a884-62f9c4f94328", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/76752b46076752b4646d10901ab5ea28876d846688d9/76752b46176752b4646d701069b6e60a533824db0962?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "734d1cf5-1028-430e-a13f-464793b28d8b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3F0FEB", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e872bf2c-f01f-0017-011e-46d853000000", - "x-ms-client-request-id" : "734d1cf5-1028-430e-a13f-464793b28d8b", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/76752b46076752b4646d10901ab5ea28876d846688d9/76752b46176752b4646d701069b6e60a533824db0962%2F76752b46276752b4646d53642f0c43479a9164f39898?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2bfc95af-795c-4434-ba8e-6cf1d1b47752" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F50DE4B", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f62f301a-401f-0005-5a1e-46ec4f000000", - "x-ms-client-request-id" : "2bfc95af-795c-4434-ba8e-6cf1d1b47752", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/76752b46076752b4646d10901ab5ea28876d846688d9/76752b46176752b4646d701069b6e60a533824db0962%2F76752b46276752b4646d53642f0c43479a9164f39898?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5908790a-b26e-4ab8-b1c6-f5e6a0fab0fc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "ba3fc9a7-701f-0006-461e-46ef48000000", - "x-ms-client-request-id" : "5908790a-b26e-4ab8-b1c6-f5e6a0fab0fc", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "76752b46076752b4646d10901ab5ea28876d846688d9", "76752b46176752b4646d701069b6e60a533824db0962", "76752b46276752b4646d53642f0c43479a9164f39898" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[0].json deleted file mode 100644 index 88a2aeeb23601..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[0].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/4999c8e904999c8e97063000622259c7f2b0f4041837?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9e890015-230a-45cd-ba82-966d03fc5d8e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE7296E", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "422f2449-f01e-0071-0f1e-466a09000000", - "x-ms-client-request-id" : "9e890015-230a-45cd-ba82-966d03fc5d8e", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/4999c8e904999c8e97063000622259c7f2b0f4041837/4999c8e914999c8e9706146265f6506920df54a249c3?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "730ea286-b461-4400-8108-c5cc2cf76ba2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3D9D83", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "89e5d434-801f-0013-091e-462dd1000000", - "x-ms-client-request-id" : "730ea286-b461-4400-8108-c5cc2cf76ba2", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/4999c8e904999c8e97063000622259c7f2b0f4041837/4999c8e914999c8e9706146265f6506920df54a249c3%2F4999c8e924999c8e9706361443c4b435b6ad947e6be0?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "96deba4a-524e-4de6-bcd0-994140397ca9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F50BB39", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3fc3a198-101f-0034-4b1e-46b798000000", - "x-ms-client-request-id" : "96deba4a-524e-4de6-bcd0-994140397ca9", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/4999c8e904999c8e97063000622259c7f2b0f4041837/4999c8e914999c8e9706146265f6506920df54a249c3%2F4999c8e924999c8e9706361443c4b435b6ad947e6be0?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "628e5902-645a-4eee-9acd-d3b09e457b39" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "e45d56e1-b01f-0010-301e-462ed6000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:e45d56e1-b01f-0010-301e-462ed6000000\\nTime:2022-04-01T23:19:24.4880708Z\"}}", - "x-ms-client-request-id" : "628e5902-645a-4eee-9acd-d3b09e457b39", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "4999c8e904999c8e97063000622259c7f2b0f4041837", "4999c8e914999c8e9706146265f6506920df54a249c3", "4999c8e924999c8e9706361443c4b435b6ad947e6be0" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[1].json deleted file mode 100644 index 17534ab708abc..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[1].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/5082f9a805082f9a8960380907b4fd5bf746c493fbf2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "67e76e3e-3e67-421b-b35b-06d65f522360" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE6A3F1", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a3dd4150-601e-0056-441e-46f040000000", - "x-ms-client-request-id" : "67e76e3e-3e67-421b-b35b-06d65f522360", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/5082f9a805082f9a8960380907b4fd5bf746c493fbf2/5082f9a815082f9a89604332480d9f4e4103943789b6?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ed844284-9ef9-44cd-9ead-cae4535d58bb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3DB8B3", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "78979162-a01f-0004-041e-46edb2000000", - "x-ms-client-request-id" : "ed844284-9ef9-44cd-9ead-cae4535d58bb", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/5082f9a805082f9a8960380907b4fd5bf746c493fbf2/5082f9a815082f9a89604332480d9f4e4103943789b6%2F5082f9a825082f9a896072413da840396d40e4448b16?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a244e899-9a7c-4a4d-b2c0-bb355da85590" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F523F2A", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "9636c233-601f-0012-0d1e-462c2c000000", - "x-ms-client-request-id" : "a244e899-9a7c-4a4d-b2c0-bb355da85590", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/5082f9a805082f9a8960380907b4fd5bf746c493fbf2/5082f9a815082f9a89604332480d9f4e4103943789b6%2F5082f9a825082f9a896072413da840396d40e4448b16?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f42b2ea6-d0e3-4c4d-bb89-1fe8fe5f94c8" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "796852f8-e01f-004c-491e-46df2f000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:796852f8-e01f-004c-491e-46df2f000000\\nTime:2022-04-01T23:19:24.4909347Z\"}}", - "x-ms-client-request-id" : "f42b2ea6-d0e3-4c4d-bb89-1fe8fe5f94c8", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "5082f9a805082f9a8960380907b4fd5bf746c493fbf2", "5082f9a815082f9a89604332480d9f4e4103943789b6", "5082f9a825082f9a896072413da840396d40e4448b16" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[2].json deleted file mode 100644 index d539c0e2e3edd..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[2].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7bafaa6b07bafaa6b83a13273f859fafb1b3d41bf975?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9904889b-fba4-4b9c-aeff-4739f749ab0e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE5B85D", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "715531e9-301e-000a-2d1e-4601b9000000", - "x-ms-client-request-id" : "9904889b-fba4-4b9c-aeff-4739f749ab0e", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bafaa6b07bafaa6b83a13273f859fafb1b3d41bf975/7bafaa6b17bafaa6b83a7389832f004b46e0244899d3?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "24aea9f8-e214-4a4d-8ac2-74ad286e57ed" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3DC91C", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ac73b3cb-001f-0009-0d1e-4602be000000", - "x-ms-client-request-id" : "24aea9f8-e214-4a4d-8ac2-74ad286e57ed", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bafaa6b07bafaa6b83a13273f859fafb1b3d41bf975/7bafaa6b17bafaa6b83a7389832f004b46e0244899d3%2F7bafaa6b27bafaa6b83a06054d3dc8695a13b4aa2a5c?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6e289d04-8c58-472f-82ef-af9d74cad2ff" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F53CAE8", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7897916c-a01f-0004-0e1e-46edb2000000", - "x-ms-client-request-id" : "6e289d04-8c58-472f-82ef-af9d74cad2ff", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bafaa6b07bafaa6b83a13273f859fafb1b3d41bf975/7bafaa6b17bafaa6b83a7389832f004b46e0244899d3%2F7bafaa6b27bafaa6b83a06054d3dc8695a13b4aa2a5c?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6e66d9e7-b646-410b-b644-69f48f6e982f" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "e872bf63-f01f-0017-371e-46d853000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:e872bf63-f01f-0017-371e-46d853000000\\nTime:2022-04-01T23:19:24.4903814Z\"}}", - "x-ms-client-request-id" : "6e66d9e7-b646-410b-b644-69f48f6e982f", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "7bafaa6b07bafaa6b83a13273f859fafb1b3d41bf975", "7bafaa6b17bafaa6b83a7389832f004b46e0244899d3", "7bafaa6b27bafaa6b83a06054d3dc8695a13b4aa2a5c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[3].json deleted file mode 100644 index abc3e9bd2aa56..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[3].json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/62b49b2a062b49b2a4452447821517edaaa3d4925a3b?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e7944c55-9d1a-4354-a5d1-12976497e88a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE6C4A8", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0338dadd-101e-0034-061e-46b798000000", - "x-ms-client-request-id" : "e7944c55-9d1a-4354-a5d1-12976497e88a", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/62b49b2a062b49b2a4452447821517edaaa3d4925a3b/62b49b2a162b49b2a445421384d9caf8c9ec94f28ac0?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "057a521f-c109-4a7e-8168-7049215a8c66" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3F10FD", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3fc3a197-101f-0034-4a1e-46b798000000", - "x-ms-client-request-id" : "057a521f-c109-4a7e-8168-7049215a8c66", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/62b49b2a062b49b2a4452447821517edaaa3d4925a3b/62b49b2a162b49b2a445421384d9caf8c9ec94f28ac0%2F62b49b2a262b49b2a44538395ead4b663ff6b4fc392e?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "35d957c6-8a20-498a-a779-e092f0c02947" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F4EE34C", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ac73b3cd-001f-0009-0f1e-4602be000000", - "x-ms-client-request-id" : "35d957c6-8a20-498a-a779-e092f0c02947", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/62b49b2a062b49b2a4452447821517edaaa3d4925a3b/62b49b2a162b49b2a445421384d9caf8c9ec94f28ac0%2F62b49b2a262b49b2a44538395ead4b663ff6b4fc392e", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "608603c8-bc74-4db1-a7b6-72063f5a7859" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 01 Apr 2022 23:19:24 GMT", - "eTag" : "0x8DA14360F4EE34C", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "715537da-301e-000a-6b1e-4601b9000000", - "x-ms-client-request-id" : "608603c8-bc74-4db1-a7b6-72063f5a7859", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/62b49b2a062b49b2a4452447821517edaaa3d4925a3b/62b49b2a162b49b2a445421384d9caf8c9ec94f28ac0%2F62b49b2a262b49b2a44538395ead4b663ff6b4fc392e?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4cb2cc65-fd45-4253-b8df-f70407d58fd3" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "7897917a-a01f-0004-1c1e-46edb2000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:7897917a-a01f-0004-1c1e-46edb2000000\\nTime:2022-04-01T23:19:24.6186240Z\"}}", - "x-ms-client-request-id" : "4cb2cc65-fd45-4253-b8df-f70407d58fd3", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "62b49b2a062b49b2a4452447821517edaaa3d4925a3b", "62b49b2a162b49b2a445421384d9caf8c9ec94f28ac0", "62b49b2a262b49b2a44538395ead4b663ff6b4fc392e" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[4].json deleted file mode 100644 index 6562ccf32da42..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileACFail[4].json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/2df50ded02df50ded6e459944c93354bd94274182aea?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "16560f41-5bd5-4489-9585-4ea2e76925b6" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE6AE58", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "7e7e9f65-401e-000e-7c1e-46f43b000000", - "x-ms-client-request-id" : "16560f41-5bd5-4489-9585-4ea2e76925b6", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/2df50ded02df50ded6e459944c93354bd94274182aea/2df50ded12df50ded6e408836ebf55bfbed3b4de4b57?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "09b38260-b2aa-4d7b-a2bb-7e61ac2a95b8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3EF7FB", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c0247020-301f-0045-661e-46c5a1000000", - "x-ms-client-request-id" : "09b38260-b2aa-4d7b-a2bb-7e61ac2a95b8", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/2df50ded02df50ded6e459944c93354bd94274182aea/2df50ded12df50ded6e408836ebf55bfbed3b4de4b57%2F2df50ded22df50ded6e426326aca0cf59cba34f23a02?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "481d7797-5284-4abf-9302-1ba31bff7057" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F4F4BCD", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "796852ed-e01f-004c-3e1e-46df2f000000", - "x-ms-client-request-id" : "481d7797-5284-4abf-9302-1ba31bff7057", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/2df50ded02df50ded6e459944c93354bd94274182aea/2df50ded12df50ded6e408836ebf55bfbed3b4de4b57%2F2df50ded22df50ded6e426326aca0cf59cba34f23a02?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b6c0f9c3-412f-4736-922b-325c71b6ec05" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "c0b2a277-7a23-491b-8cb6-5c388fcc1f89", - "eTag" : "0x8DA14360F4F4BCD", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a3dd42a1-601e-0056-691e-46f040000000", - "x-ms-client-request-id" : "b6c0f9c3-412f-4736-922b-325c71b6ec05", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/2df50ded02df50ded6e459944c93354bd94274182aea/2df50ded12df50ded6e408836ebf55bfbed3b4de4b57%2F2df50ded22df50ded6e426326aca0cf59cba34f23a02?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f76242ea-2908-446d-b12e-2780509dd8e1" - }, - "Response" : { - "content-length" : "199", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseIdMismatch", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "3809e0f9-201f-005a-451e-461eb1000000", - "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:3809e0f9-201f-005a-451e-461eb1000000\\nTime:2022-04-01T23:19:24.6036990Z\"}}", - "x-ms-client-request-id" : "f76242ea-2908-446d-b12e-2780509dd8e1", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "2df50ded02df50ded6e459944c93354bd94274182aea", "2df50ded12df50ded6e408836ebf55bfbed3b4de4b57", "2df50ded22df50ded6e426326aca0cf59cba34f23a02" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[0].json deleted file mode 100644 index c842b5b54cbf2..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[0].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/0bba5ac100bba5ac1be513916ea39599484384473a6f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b90b9858-3dc5-439b-a5d6-fe8b8023c3ef" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE5E099", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e147f7fc-301e-0023-1c1e-4677fb000000", - "x-ms-client-request-id" : "b90b9858-3dc5-439b-a5d6-fe8b8023c3ef", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/0bba5ac100bba5ac1be513916ea39599484384473a6f/0bba5ac110bba5ac1be50167827e8c29dcc014f95a4a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "07a43dc7-7006-49a5-89bd-95e191f4e8ba" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3D7F3D", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e45d56df-b01f-0010-2e1e-462ed6000000", - "x-ms-client-request-id" : "07a43dc7-7006-49a5-89bd-95e191f4e8ba", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/0bba5ac100bba5ac1be513916ea39599484384473a6f/0bba5ac110bba5ac1be50167827e8c29dcc014f95a4a%2F0bba5ac120bba5ac1be590384146383da0a094f16a38?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7792be4b-be6f-4505-a35f-6cc06dc82d47" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F51CE19", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3eb048dc-301f-0023-641e-4677fb000000", - "x-ms-client-request-id" : "7792be4b-be6f-4505-a35f-6cc06dc82d47", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/0bba5ac100bba5ac1be513916ea39599484384473a6f/0bba5ac110bba5ac1be50167827e8c29dcc014f95a4a%2F0bba5ac120bba5ac1be590384146383da0a094f16a38?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "60a693a1-8e7b-4935-8b97-09e6189a5935" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "3eb048dd-301f-0023-651e-4677fb000000", - "x-ms-client-request-id" : "60a693a1-8e7b-4935-8b97-09e6189a5935", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - } ], - "variables" : [ "0bba5ac100bba5ac1be513916ea39599484384473a6f", "0bba5ac110bba5ac1be50167827e8c29dcc014f95a4a", "0bba5ac120bba5ac1be590384146383da0a094f16a38" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[1].json deleted file mode 100644 index ffd83536c8700..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[1].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/12a16b80012a16b806e01479812275ecdfec34723817?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5969fe1e-79ed-4a7c-8d54-5e70b408892a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE886A8", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ecda067a-801e-0075-7a1e-469f8b000000", - "x-ms-client-request-id" : "5969fe1e-79ed-4a7c-8d54-5e70b408892a", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/12a16b80012a16b806e01479812275ecdfec34723817/12a16b80112a16b806e025373c21306ee4a804247911?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "542bc5bd-e752-4805-8a54-2adf632bd1a9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3DA6E5", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3809e0e2-201f-005a-2e1e-461eb1000000", - "x-ms-client-request-id" : "542bc5bd-e752-4805-8a54-2adf632bd1a9", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/12a16b80012a16b806e01479812275ecdfec34723817/12a16b80112a16b806e025373c21306ee4a804247911%2F12a16b80212a16b806e09270363561e539b6441f9ae7?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a63f095d-f454-4570-b5e6-cbddd8cbfa5a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F52051F", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3809e0f2-201f-005a-3e1e-461eb1000000", - "x-ms-client-request-id" : "a63f095d-f454-4570-b5e6-cbddd8cbfa5a", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/12a16b80012a16b806e01479812275ecdfec34723817/12a16b80112a16b806e025373c21306ee4a804247911%2F12a16b80212a16b806e09270363561e539b6441f9ae7?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "094377f7-bddb-476a-89a1-961a98e737de" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "3fc3a199-101f-0034-4c1e-46b798000000", - "x-ms-client-request-id" : "094377f7-bddb-476a-89a1-961a98e737de", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "12a16b80012a16b806e01479812275ecdfec34723817", "12a16b80112a16b806e025373c21306ee4a804247911", "12a16b80212a16b806e09270363561e539b6441f9ae7" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[2].json deleted file mode 100644 index 35fb9b8e10b47..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[2].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/398c38430398c384335d11668218f9a21bfd04a87b7c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f27da4be-7f50-4be4-9365-1337bcad0bb8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE6EE5D", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "450f9b57-e01e-0021-451e-467501000000", - "x-ms-client-request-id" : "f27da4be-7f50-4be4-9365-1337bcad0bb8", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/398c38430398c384335d11668218f9a21bfd04a87b7c/398c38431398c384335d2661772e771f8b4dc40c38fa?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "234b0b5a-3707-45cb-b608-51eb913a2f06" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3DCDFC", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "9636c21d-601f-0012-771e-462c2c000000", - "x-ms-client-request-id" : "234b0b5a-3707-45cb-b608-51eb913a2f06", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/398c38430398c384335d11668218f9a21bfd04a87b7c/398c38431398c384335d2661772e771f8b4dc40c38fa%2F398c38432398c384335d70648417c1b52e61e4f55998?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f0d85736-437b-47cb-8bd7-4af1cacdfc12" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F4F517E", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d3c7bab5-601f-0056-481e-46f040000000", - "x-ms-client-request-id" : "f0d85736-437b-47cb-8bd7-4af1cacdfc12", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/398c38430398c384335d11668218f9a21bfd04a87b7c/398c38431398c384335d2661772e771f8b4dc40c38fa%2F398c38432398c384335d70648417c1b52e61e4f55998?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "91e2f9ec-3cb7-4829-af96-0fe4c05eaf36" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "ac73b3ce-001f-0009-101e-4602be000000", - "x-ms-client-request-id" : "91e2f9ec-3cb7-4829-af96-0fe4c05eaf36", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - } ], - "variables" : [ "398c38430398c384335d11668218f9a21bfd04a87b7c", "398c38431398c384335d2661772e771f8b4dc40c38fa", "398c38432398c384335d70648417c1b52e61e4f55998" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[3].json deleted file mode 100644 index 518e8526d04bd..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[3].json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/209709020209709029ea45225ff68a1067efc4dcf9ef?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3042aa3e-5daf-4436-9ea3-54c1bcf35f19" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE6C1C7", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ab5696a6-c01e-0036-091e-46b562000000", - "x-ms-client-request-id" : "3042aa3e-5daf-4436-9ea3-54c1bcf35f19", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/209709020209709029ea45225ff68a1067efc4dcf9ef/209709021209709029ea500170827e62ce3194316b09?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "dfa6ae2d-f049-4bcd-adeb-f48a3d0d4de3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F400003", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f62f3019-401f-0005-591e-46ec4f000000", - "x-ms-client-request-id" : "dfa6ae2d-f049-4bcd-adeb-f48a3d0d4de3", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/209709020209709029ea45225ff68a1067efc4dcf9ef/209709021209709029ea500170827e62ce3194316b09%2F209709022209709029ea29485be36c2226b3d487cbdb?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3b4e47c0-c383-401a-8319-59f579b331ee" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F4ED8DD", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c0247021-301f-0045-671e-46c5a1000000", - "x-ms-client-request-id" : "3b4e47c0-c383-401a-8319-59f579b331ee", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/209709020209709029ea45225ff68a1067efc4dcf9ef/209709021209709029ea500170827e62ce3194316b09%2F209709022209709029ea29485be36c2226b3d487cbdb", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e31e7bdb-08b2-4c20-84d4-df37ba6910e8" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 01 Apr 2022 23:19:24 GMT", - "eTag" : "0x8DA14360F4ED8DD", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "7e7ea112-401e-000e-051e-46f43b000000", - "x-ms-client-request-id" : "e31e7bdb-08b2-4c20-84d4-df37ba6910e8", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/209709020209709029ea45225ff68a1067efc4dcf9ef/209709021209709029ea500170827e62ce3194316b09%2F209709022209709029ea29485be36c2226b3d487cbdb?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "43a605ac-a2a4-4c0a-bdf1-7896a83d6c74" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "f62f3028-401f-0005-681e-46ec4f000000", - "x-ms-client-request-id" : "43a605ac-a2a4-4c0a-bdf1-7896a83d6c74", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "209709020209709029ea45225ff68a1067efc4dcf9ef", "209709021209709029ea500170827e62ce3194316b09", "209709022209709029ea29485be36c2226b3d487cbdb" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[4].json deleted file mode 100644 index 9ac18d5abf63f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[4].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/6fd69fc506fd69fc590e65500b53f5612a76e487bb7f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a697b028-594a-4a35-99cf-1b62f775d53a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE7C12A", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "65629af6-e01e-0065-561e-46a96d000000", - "x-ms-client-request-id" : "a697b028-594a-4a35-99cf-1b62f775d53a", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6fd69fc506fd69fc590e65500b53f5612a76e487bb7f/6fd69fc516fd69fc590e41048ffd500539c0f49ce898?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f61cb207-5516-405f-ad13-2f3f006335ae" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3DAA15", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d3c7baab-601f-0056-3e1e-46f040000000", - "x-ms-client-request-id" : "f61cb207-5516-405f-ad13-2f3f006335ae", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6fd69fc506fd69fc590e65500b53f5612a76e487bb7f/6fd69fc516fd69fc590e41048ffd500539c0f49ce898%2F6fd69fc526fd69fc590e1973554ea74e98394451dbf3?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2759c43e-5734-42da-9e06-4f81032e3c1f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F50B753", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ba3fc9a6-701f-0006-451e-46ef48000000", - "x-ms-client-request-id" : "2759c43e-5734-42da-9e06-4f81032e3c1f", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/6fd69fc506fd69fc590e65500b53f5612a76e487bb7f/6fd69fc516fd69fc590e41048ffd500539c0f49ce898%2F6fd69fc526fd69fc590e1973554ea74e98394451dbf3?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1cd7cc53-ef22-4484-9e7a-3f4c55399ecb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "d3c7bab9-601f-0056-4c1e-46f040000000", - "x-ms-client-request-id" : "1cd7cc53-ef22-4484-9e7a-3f4c55399ecb", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "6fd69fc506fd69fc590e65500b53f5612a76e487bb7f", "6fd69fc516fd69fc590e41048ffd500539c0f49ce898", "6fd69fc526fd69fc590e1973554ea74e98394451dbf3" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[5].json deleted file mode 100644 index 4ff5aa7798b8b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileAC[5].json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/76cdae84076cdae84e1b21806923510f6e21f458fa12?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "aa276cbd-7106-49c0-b1ee-3baae7bb9630" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE5A2D4", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "913bff3a-901e-0048-561e-462aad000000", - "x-ms-client-request-id" : "aa276cbd-7106-49c0-b1ee-3baae7bb9630", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/76cdae84076cdae84e1b21806923510f6e21f458fa12/76cdae84176cdae84e1b85525ce0ac2c7131c4320a7c?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b83220cc-2a22-4dd6-ac96-2b951abc6e2b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3E3F81", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ba3fc9a5-701f-0006-441e-46ef48000000", - "x-ms-client-request-id" : "b83220cc-2a22-4dd6-ac96-2b951abc6e2b", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/76cdae84076cdae84e1b21806923510f6e21f458fa12/76cdae84176cdae84e1b85525ce0ac2c7131c4320a7c%2F76cdae84276cdae84e1b36156fc1890731aad44d1907?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "31c60314-e10b-42c5-9ac0-daae2c84339b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F501A39", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e45d56e0-b01f-0010-2f1e-462ed6000000", - "x-ms-client-request-id" : "31c60314-e10b-42c5-9ac0-daae2c84339b", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/76cdae84076cdae84e1b21806923510f6e21f458fa12/76cdae84176cdae84e1b85525ce0ac2c7131c4320a7c%2F76cdae84276cdae84e1b36156fc1890731aad44d1907?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "76ab9c9f-8d24-4903-b549-6b2a920c7ad7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "38956a19-842a-4191-b10d-13c94de6b121", - "eTag" : "0x8DA14360F501A39", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "422f26cf-f01e-0071-6a1e-466a09000000", - "x-ms-client-request-id" : "76ab9c9f-8d24-4903-b549-6b2a920c7ad7", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/76cdae84076cdae84e1b21806923510f6e21f458fa12/76cdae84176cdae84e1b85525ce0ac2c7131c4320a7c%2F76cdae84276cdae84e1b36156fc1890731aad44d1907?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1620cbec-5af8-4c04-acd0-ec72a8034f03" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "9636c258-601f-0012-321e-462c2c000000", - "x-ms-client-request-id" : "1620cbec-5af8-4c04-acd0-ec72a8034f03", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "76cdae84076cdae84e1b21806923510f6e21f458fa12", "76cdae84176cdae84e1b85525ce0ac2c7131c4320a7c", "76cdae84276cdae84e1b36156fc1890731aad44d1907" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileFileDoesNotExistAnymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileFileDoesNotExistAnymore.json deleted file mode 100644 index 84697ea53f318..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileFileDoesNotExistAnymore.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/c5114c190c5114c19ce766129da7a7a92cddb499e88c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7de27074-93cb-4f6d-b45a-29390ada9db5" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE5D12E", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "b726b236-f01e-0017-2d1e-46d853000000", - "x-ms-client-request-id" : "7de27074-93cb-4f6d-b45a-29390ada9db5", - "Date" : "Fri, 01 Apr 2022 23:19:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/c5114c190c5114c19ce766129da7a7a92cddb499e88c/c5114c191c5114c19ce74068409d16c7a173b413fafc?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "34d12cb9-4563-4279-98c2-308d15463315" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3F6A06", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "796852e9-e01f-004c-3a1e-46df2f000000", - "x-ms-client-request-id" : "34d12cb9-4563-4279-98c2-308d15463315", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/c5114c190c5114c19ce766129da7a7a92cddb499e88c/c5114c191c5114c19ce74068409d16c7a173b413fafc%2Fc5114c192c5114c19ce7790344df41797f899476fab2?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8a053015-e10a-4b53-8f0a-0ba63f7deba3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F4F6758", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e872bf46-f01f-0017-1b1e-46d853000000", - "x-ms-client-request-id" : "8a053015-e10a-4b53-8f0a-0ba63f7deba3", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/c5114c190c5114c19ce766129da7a7a92cddb499e88c/c5114c191c5114c19ce74068409d16c7a173b413fafc%2Fc5114c192c5114c19ce7790344df41797f899476fab2?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "53ec367c-41bc-47bb-8888-6f82aeff8607" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "c0247022-301f-0045-681e-46c5a1000000", - "x-ms-client-request-id" : "53ec367c-41bc-47bb-8888-6f82aeff8607", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/c5114c190c5114c19ce766129da7a7a92cddb499e88c/c5114c191c5114c19ce74068409d16c7a173b413fafc%2Fc5114c192c5114c19ce7790344df41797f899476fab2", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5cfc29cf-e962-4125-b0c6-edd5879e88d4" - }, - "Response" : { - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "913c01d9-901e-0048-511e-462aad000000", - "x-ms-client-request-id" : "5cfc29cf-e962-4125-b0c6-edd5879e88d4", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "c5114c190c5114c19ce766129da7a7a92cddb499e88c", "c5114c191c5114c19ce74068409d16c7a173b413fafc", "c5114c192c5114c19ce7790344df41797f899476fab2" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileFileThatWasAlreadyDeleted.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileFileThatWasAlreadyDeleted.json deleted file mode 100644 index 07698fe299bb4..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileFileThatWasAlreadyDeleted.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/034d35170034d3517ed2436728560d0285ed543fcb46?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fbc5e532-7afa-447a-81e4-0c631bb83267" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA211BDB6AB549", - "Last-Modified" : "Mon, 18 Apr 2022 09:14:35 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "50af3cd5-601e-002f-1104-53406b000000", - "x-ms-client-request-id" : "fbc5e532-7afa-447a-81e4-0c631bb83267", - "Date" : "Mon, 18 Apr 2022 09:14:34 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/034d35170034d3517ed2436728560d0285ed543fcb46/034d35171034d3517ed212308e9542bf6da8a45eaa8b?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8a0ed257-0904-4950-b803-1aaf299d73a4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA211BDBD9087C", - "Last-Modified" : "Mon, 18 Apr 2022 09:14:36 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "dac68c02-e01f-0021-1704-5369db000000", - "x-ms-client-request-id" : "8a0ed257-0904-4950-b803-1aaf299d73a4", - "Date" : "Mon, 18 Apr 2022 09:14:35 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/034d35170034d3517ed2436728560d0285ed543fcb46/034d35171034d3517ed212308e9542bf6da8a45eaa8b%2F034d35172034d3517ed281721a1df93c50569479eb07?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a5918da1-a80d-4f90-bde0-116822e4ccb4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA211BDBF40A7A", - "Last-Modified" : "Mon, 18 Apr 2022 09:14:36 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "dac68c03-e01f-0021-1804-5369db000000", - "x-ms-client-request-id" : "a5918da1-a80d-4f90-bde0-116822e4ccb4", - "Date" : "Mon, 18 Apr 2022 09:14:35 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/034d35170034d3517ed2436728560d0285ed543fcb46/034d35171034d3517ed212308e9542bf6da8a45eaa8b%2F034d35172034d3517ed281721a1df93c50569479eb07?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "20c63b64-479b-4c0f-ae0d-faa92cac8b58" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132947468767322566", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "dac68c04-e01f-0021-1904-5369db000000", - "x-ms-client-request-id" : "20c63b64-479b-4c0f-ae0d-faa92cac8b58", - "Date" : "Mon, 18 Apr 2022 09:14:36 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/034d35170034d3517ed2436728560d0285ed543fcb46/034d35171034d3517ed212308e9542bf6da8a45eaa8b%2F034d35172034d3517ed281721a1df93c50569479eb07?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "00cf4583-21bf-46d4-b666-f19505874c00" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "dac68c05-e01f-0021-1a04-5369db000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:dac68c05-e01f-0021-1a04-5369db000000\\nTime:2022-04-18T09:14:37.0117411Z\"}}", - "x-ms-client-request-id" : "00cf4583-21bf-46d4-b666-f19505874c00", - "Date" : "Mon, 18 Apr 2022 09:14:36 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/034d35170034d3517ed2436728560d0285ed543fcb46/034d35171034d3517ed212308e9542bf6da8a45eaa8b%2F034d35172034d3517ed281721a1df93c50569479eb07", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5c6f2226-8e16-4dda-8e5f-923a003c4b8b" - }, - "Response" : { - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "50af3e88-601e-002f-2404-53406b000000", - "x-ms-client-request-id" : "5c6f2226-8e16-4dda-8e5f-923a003c4b8b", - "Date" : "Mon, 18 Apr 2022 09:14:36 GMT" - }, - "Exception" : null - } ], - "variables" : [ "034d35170034d3517ed2436728560d0285ed543fcb46", "034d35171034d3517ed212308e9542bf6da8a45eaa8b", "034d35172034d3517ed281721a1df93c50569479eb07" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileMin.json deleted file mode 100644 index 1f41e2e436ea8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsFileMin.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/bb3ed2ee0bb3ed2ee2a497605f773d90be02e44c18ae?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9e27e6dc-02ad-481f-a2c2-ef6fab916567" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360EE789A2", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c34b8384-101e-0059-0a1e-461db6000000", - "x-ms-client-request-id" : "9e27e6dc-02ad-481f-a2c2-ef6fab916567", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/bb3ed2ee0bb3ed2ee2a497605f773d90be02e44c18ae/bb3ed2ee1bb3ed2ee2a458914ff11b22ed69442ba8c6?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7bc14f2a-8b62-4db7-bae8-6254bea8f084" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F3E7409", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3eb048db-301f-0023-631e-4677fb000000", - "x-ms-client-request-id" : "7bc14f2a-8b62-4db7-bae8-6254bea8f084", - "Date" : "Fri, 01 Apr 2022 23:19:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/bb3ed2ee0bb3ed2ee2a497605f773d90be02e44c18ae/bb3ed2ee1bb3ed2ee2a458914ff11b22ed69442ba8c6%2Fbb3ed2ee2bb3ed2ee2a498891907b2445e6a942ab882?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ecb1c160-5c27-4e6f-8fe3-46030b26b7f9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14360F4EE727", - "Last-Modified" : "Fri, 01 Apr 2022 23:19:24 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "89e5d435-801f-0013-0a1e-462dd1000000", - "x-ms-client-request-id" : "ecb1c160-5c27-4e6f-8fe3-46030b26b7f9", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/bb3ed2ee0bb3ed2ee2a497605f773d90be02e44c18ae/bb3ed2ee1bb3ed2ee2a458914ff11b22ed69442ba8c6%2Fbb3ed2ee2bb3ed2ee2a498891907b2445e6a942ab882?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "97d6deba-0faf-41ba-b250-e44c7fd0919a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "89e5d438-801f-0013-0d1e-462dd1000000", - "x-ms-client-request-id" : "97d6deba-0faf-41ba-b250-e44c7fd0919a", - "Date" : "Fri, 01 Apr 2022 23:19:24 GMT" - }, - "Exception" : null - } ], - "variables" : [ "bb3ed2ee0bb3ed2ee2a497605f773d90be02e44c18ae", "bb3ed2ee1bb3ed2ee2a458914ff11b22ed69442ba8c6", "bb3ed2ee2bb3ed2ee2a498891907b2445e6a942ab882" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsMin.json deleted file mode 100644 index 4ac1ee7ebe1c6..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsMin.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/445b28ce0445b28ce430385873e047c6d27fa419eb4f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "64c8cb27-989a-4e35-ac73-5e97ca649718" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA833D2A", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3e27ee3f-001e-004d-7c1e-46ded2000000", - "x-ms-client-request-id" : "64c8cb27-989a-4e35-ac73-5e97ca649718", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/445b28ce0445b28ce430385873e047c6d27fa419eb4f/445b28ce1445b28ce4309886547dafc3111cb44e4b36?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6e4e3a0a-7ba0-4657-a2b7-6e90b7d55f31" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADC5024", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5143895a-701f-000d-751e-46f73c000000", - "x-ms-client-request-id" : "6e4e3a0a-7ba0-4657-a2b7-6e90b7d55f31", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/445b28ce0445b28ce430385873e047c6d27fa419eb4f/445b28ce1445b28ce4309886547dafc3111cb44e4b36?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "11767999-6344-4119-accf-14cab5acc647" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "d3404112-e01f-0008-4d1e-460343000000", - "x-ms-client-request-id" : "11767999-6344-4119-accf-14cab5acc647", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - } ], - "variables" : [ "445b28ce0445b28ce430385873e047c6d27fa419eb4f", "445b28ce1445b28ce4309886547dafc3111cb44e4b36" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsRecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsRecursive.json deleted file mode 100644 index 5a7c976af73f1..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsRecursive.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/e7c375950e7c3759585e0295775b909ae04f94a8dbb9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3ecaa8b4-2edd-47fd-b9c5-07af7414417e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DA84F37C", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:55 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9e3d641d-001e-0064-351e-46a890000000", - "x-ms-client-request-id" : "3ecaa8b4-2edd-47fd-b9c5-07af7414417e", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/e7c375950e7c3759585e0295775b909ae04f94a8dbb9/e7c375951e7c3759585e79184d7bcf764cb0245d28dd?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4e2ad7ef-fe8c-4644-aaae-bb7d588bb93a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1435DADA08A9", - "Last-Modified" : "Fri, 01 Apr 2022 23:17:56 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "932593a0-401f-000e-0d1e-46f43b000000", - "x-ms-client-request-id" : "4e2ad7ef-fe8c-4644-aaae-bb7d588bb93a", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/e7c375950e7c3759585e0295775b909ae04f94a8dbb9/e7c375951e7c3759585e79184d7bcf764cb0245d28dd?recursive=true", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fb3e4eb1-4d2d-443d-8f44-a212cd8bbdd3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "a1b4a126-901f-0061-051e-465cef000000", - "x-ms-client-request-id" : "fb3e4eb1-4d2d-443d-8f44-a212cd8bbdd3", - "Date" : "Fri, 01 Apr 2022 23:17:55 GMT" - }, - "Exception" : null - } ], - "variables" : [ "e7c375950e7c3759585e0295775b909ae04f94a8dbb9", "e7c375951e7c3759585e79184d7bcf764cb0245d28dd" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDir.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDir.json deleted file mode 100644 index 083035799612c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDir.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/6e2907f806e2907f8b5f09060b932cf601b5b48c989a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "99e5c757-2921-430c-9e43-8be67fdfbc25" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323C2088", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d7578e03-a01e-0069-3e1f-46479c000000", - "x-ms-client-request-id" : "99e5c757-2921-430c-9e43-8be67fdfbc25", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6e2907f806e2907f8b5f09060b932cf601b5b48c989a/6e2907f816e2907f8b5f0733122ae7a3b110f4a27ab9?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fbef8aec-6787-4135-b6ae-cba677d93391" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327E4494", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "cd917194-401f-0027-281f-468279000000", - "x-ms-client-request-id" : "fbef8aec-6787-4135-b6ae-cba677d93391", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6e2907f806e2907f8b5f09060b932cf601b5b48c989a/6e2907f816e2907f8b5f0733122ae7a3b110f4a27ab9%2F6e2907f826e2907f8b5f70560abd7f0236ad541c7b46?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fc76e13e-f52d-4d25-a082-52ef5ec48bbd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328DD294", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "592726ed-801f-003a-4a1f-465b93000000", - "x-ms-client-request-id" : "fc76e13e-f52d-4d25-a082-52ef5ec48bbd", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/6e2907f806e2907f8b5f09060b932cf601b5b48c989a/6e2907f816e2907f8b5f0733122ae7a3b110f4a27ab9%2F6e2907f826e2907f8b5f70560abd7f0236ad541c7b46?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ca8476b2-0168-4a01-88dc-a9c24728fa02" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "7dee22a5-d01f-0022-121f-467606000000", - "x-ms-client-request-id" : "ca8476b2-0168-4a01-88dc-a9c24728fa02", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "6e2907f806e2907f8b5f09060b932cf601b5b48c989a", "6e2907f816e2907f8b5f0733122ae7a3b110f4a27ab9", "6e2907f826e2907f8b5f70560abd7f0236ad541c7b46" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[0].json deleted file mode 100644 index 39ef62586168a..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[0].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/6c16a7ca06c16a7ca5b164744f4a1cc15717e4e5887d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "09ba6843-1148-445f-9b46-9e4c9d2bbd98" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323ADECC", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "f95bf233-c01e-0072-141f-46690e000000", - "x-ms-client-request-id" : "09ba6843-1148-445f-9b46-9e4c9d2bbd98", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6c16a7ca06c16a7ca5b164744f4a1cc15717e4e5887d/6c16a7ca16c16a7ca5b1617337a6bf91317704842bcd?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "acf302ed-0858-4f75-b004-c563ecd160a5" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA143632805124", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c9abff3e-001f-002b-481f-466c88000000", - "x-ms-client-request-id" : "acf302ed-0858-4f75-b004-c563ecd160a5", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/6c16a7ca06c16a7ca5b164744f4a1cc15717e4e5887d/6c16a7ca16c16a7ca5b1617337a6bf91317704842bcd%2F6c16a7ca26c16a7ca5b198613961ba2e7e54a4eeabab?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "03601418-5d44-4a01-942a-316891458e58" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328FC78C", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b90b61de-501f-0033-691f-46411d000000", - "x-ms-client-request-id" : "03601418-5d44-4a01-942a-316891458e58", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/6c16a7ca06c16a7ca5b164744f4a1cc15717e4e5887d/6c16a7ca16c16a7ca5b1617337a6bf91317704842bcd%2F6c16a7ca26c16a7ca5b198613961ba2e7e54a4eeabab?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c3c9aee6-e361-445f-bb94-3cea83c34684" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "a8668b3c-801f-0057-401f-46f1bd000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:a8668b3c-801f-0057-401f-46f1bd000000\\nTime:2022-04-01T23:20:23.6299521Z\"}}", - "x-ms-client-request-id" : "c3c9aee6-e361-445f-bb94-3cea83c34684", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "6c16a7ca06c16a7ca5b164744f4a1cc15717e4e5887d", "6c16a7ca16c16a7ca5b1617337a6bf91317704842bcd", "6c16a7ca26c16a7ca5b198613961ba2e7e54a4eeabab" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[1].json deleted file mode 100644 index 7b5a88e7438d5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[1].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/750d968b0750d968b88052783910038882a5f4c76aa1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "82112138-e70b-4529-b47e-022f71fe5999" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323B3AC0", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d6a7cd4d-c01e-0050-7a1f-460738000000", - "x-ms-client-request-id" : "82112138-e70b-4529-b47e-022f71fe5999", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/750d968b0750d968b88052783910038882a5f4c76aa1/750d968b1750d968b88093190419a11f3ad9a42d1b95?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8fcbc028-2c79-46eb-98d5-e8f6eb696646" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327E9884", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6d361627-301f-0028-431f-466f8f000000", - "x-ms-client-request-id" : "8fcbc028-2c79-46eb-98d5-e8f6eb696646", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/750d968b0750d968b88052783910038882a5f4c76aa1/750d968b1750d968b88093190419a11f3ad9a42d1b95%2F750d968b2750d968b88069310af34fd74223c4edab1f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a7e423ea-118a-4b31-91b5-28c83f07242b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328FFE91", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "8ead8bb6-401f-0041-0c1f-463023000000", - "x-ms-client-request-id" : "a7e423ea-118a-4b31-91b5-28c83f07242b", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/750d968b0750d968b88052783910038882a5f4c76aa1/750d968b1750d968b88093190419a11f3ad9a42d1b95%2F750d968b2750d968b88069310af34fd74223c4edab1f?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "286c3667-55f5-4f01-beda-398dbc3469a5" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "e5674339-601f-0019-5a1f-463458000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:e5674339-601f-0019-5a1f-463458000000\\nTime:2022-04-01T23:20:23.6391082Z\"}}", - "x-ms-client-request-id" : "286c3667-55f5-4f01-beda-398dbc3469a5", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "750d968b0750d968b88052783910038882a5f4c76aa1", "750d968b1750d968b88093190419a11f3ad9a42d1b95", "750d968b2750d968b88069310af34fd74223c4edab1f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[2].json deleted file mode 100644 index 77cf62d1884ab..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[2].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/5e20c54805e20c548d0c24624f0e97272c3ce45fa8a1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ccd3dbc9-a945-4fa5-9055-240b4a41b29d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA143632395429", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0ce83ac7-b01e-0032-281f-4640e0000000", - "x-ms-client-request-id" : "ccd3dbc9-a945-4fa5-9055-240b4a41b29d", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/5e20c54805e20c548d0c24624f0e97272c3ce45fa8a1/5e20c54815e20c548d0c18659da7f994dab594b17a0f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "087e92b4-d1d9-42f7-a585-fb29df27bb0c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327D1A33", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "32abcd52-f01f-0053-0c1f-46043f000000", - "x-ms-client-request-id" : "087e92b4-d1d9-42f7-a585-fb29df27bb0c", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/5e20c54805e20c548d0c24624f0e97272c3ce45fa8a1/5e20c54815e20c548d0c18659da7f994dab594b17a0f%2F5e20c54825e20c548d0c65284a5bd2c0ab31a48e2926?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8d789390-5a87-4d34-a489-913a560e9195" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328E4509", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "75d85d87-101f-003f-191f-46afec000000", - "x-ms-client-request-id" : "8d789390-5a87-4d34-a489-913a560e9195", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/5e20c54805e20c548d0c24624f0e97272c3ce45fa8a1/5e20c54815e20c548d0c18659da7f994dab594b17a0f%2F5e20c54825e20c548d0c65284a5bd2c0ab31a48e2926?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "91d9c9ad-6222-409f-a56c-afe321d48f2d" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "75d85d88-101f-003f-1a1f-46afec000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:75d85d88-101f-003f-1a1f-46afec000000\\nTime:2022-04-01T23:20:23.6092861Z\"}}", - "x-ms-client-request-id" : "91d9c9ad-6222-409f-a56c-afe321d48f2d", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "5e20c54805e20c548d0c24624f0e97272c3ce45fa8a1", "5e20c54815e20c548d0c18659da7f994dab594b17a0f", "5e20c54825e20c548d0c65284a5bd2c0ab31a48e2926" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[3].json deleted file mode 100644 index 322396d2fa277..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[3].json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/473bf4090473bf40914903224111ea18bbc294dc2879?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "253e1ef5-4ec8-4f03-9270-a50b5f867427" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363238F49D", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "f4d249e0-a01e-0040-371f-4631de000000", - "x-ms-client-request-id" : "253e1ef5-4ec8-4f03-9270-a50b5f867427", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/473bf4090473bf40914903224111ea18bbc294dc2879/473bf4091473bf409149662119fa884b6f1284977a43?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a5bd311b-fab2-48a1-be6f-3a3b580dc804" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327D1981", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7dee2284-d01f-0022-711f-467606000000", - "x-ms-client-request-id" : "a5bd311b-fab2-48a1-be6f-3a3b580dc804", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/473bf4090473bf40914903224111ea18bbc294dc2879/473bf4091473bf409149662119fa884b6f1284977a43%2F473bf4092473bf40914910282366bcdf81f2142d2864?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e25db125-e23a-4b5b-8385-c516ce5edb5b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328F6F60", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a8668b37-801f-0057-3b1f-46f1bd000000", - "x-ms-client-request-id" : "e25db125-e23a-4b5b-8385-c516ce5edb5b", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/473bf4090473bf40914903224111ea18bbc294dc2879/473bf4091473bf409149662119fa884b6f1284977a43%2F473bf4092473bf40914910282366bcdf81f2142d2864", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "718ec2d0-fd6f-4374-a661-ae0177234a2e" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 01 Apr 2022 23:20:23 GMT", - "eTag" : "0x8DA1436328F6F60", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "53edcb5b-d01e-0029-0a1f-466e72000000", - "x-ms-client-request-id" : "718ec2d0-fd6f-4374-a661-ae0177234a2e", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/473bf4090473bf40914903224111ea18bbc294dc2879/473bf4091473bf409149662119fa884b6f1284977a43%2F473bf4092473bf40914910282366bcdf81f2142d2864?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fa2784b0-f7ce-48fe-affd-487a4dcd9bbb" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "c9abff66-001f-002b-701f-466c88000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:c9abff66-001f-002b-701f-466c88000000\\nTime:2022-04-01T23:20:23.7689549Z\"}}", - "x-ms-client-request-id" : "fa2784b0-f7ce-48fe-affd-487a4dcd9bbb", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "473bf4090473bf40914903224111ea18bbc294dc2879", "473bf4091473bf409149662119fa884b6f1284977a43", "473bf4092473bf40914910282366bcdf81f2142d2864" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[4].json deleted file mode 100644 index 0601feb639025..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirACFail[4].json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/087a62ce0087a62ceb071120344bb8d79361b44659ca?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "66eabb5a-c60d-4606-ae14-498e47d5f2c7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363238DDFE", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ab78a9f7-201e-0051-271f-4606c5000000", - "x-ms-client-request-id" : "66eabb5a-c60d-4606-ae14-498e47d5f2c7", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/087a62ce0087a62ceb071120344bb8d79361b44659ca/087a62ce1087a62ceb0785576bc1e44e67e654b83a2d?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "92400e81-461b-44f7-836e-3b5c7e988890" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327FED9C", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "592726da-801f-003a-371f-465b93000000", - "x-ms-client-request-id" : "92400e81-461b-44f7-836e-3b5c7e988890", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/087a62ce0087a62ceb071120344bb8d79361b44659ca/087a62ce1087a62ceb0785576bc1e44e67e654b83a2d%2F087a62ce2087a62ceb072527473388caeaf46432e93e?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "34c608d9-9e37-4c02-bdf1-ab62b9329c14" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328C78C8", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7dee2299-d01f-0022-061f-467606000000", - "x-ms-client-request-id" : "34c608d9-9e37-4c02-bdf1-ab62b9329c14", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/087a62ce0087a62ceb071120344bb8d79361b44659ca/087a62ce1087a62ceb0785576bc1e44e67e654b83a2d%2F087a62ce2087a62ceb072527473388caeaf46432e93e?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b28a6bd4-3330-4915-850f-8d1f1a28f921" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "7eabc77a-1237-46af-b21f-b52c18f7c77d", - "eTag" : "0x8DA1436328C78C8", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "f95bf3c3-c01e-0072-0c1f-46690e000000", - "x-ms-client-request-id" : "b28a6bd4-3330-4915-850f-8d1f1a28f921", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/087a62ce0087a62ceb071120344bb8d79361b44659ca/087a62ce1087a62ceb0785576bc1e44e67e654b83a2d%2F087a62ce2087a62ceb072527473388caeaf46432e93e?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ee2a545e-36e5-4fa8-a979-dc745564acd7" - }, - "Response" : { - "content-length" : "199", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseIdMismatch", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "4ef14fb3-601f-0030-541f-46421a000000", - "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:4ef14fb3-601f-0030-541f-46421a000000\\nTime:2022-04-01T23:20:23.7070445Z\"}}", - "x-ms-client-request-id" : "ee2a545e-36e5-4fa8-a979-dc745564acd7", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "087a62ce0087a62ceb071120344bb8d79361b44659ca", "087a62ce1087a62ceb0785576bc1e44e67e654b83a2d", "087a62ce2087a62ceb072527473388caeaf46432e93e" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[0].json deleted file mode 100644 index d8887756e1854..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[0].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a914b3bf0a914b3bfa9481999798c2e34ca4f45b0b45?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7e1d5610-b515-42cd-9a41-0ed89a0a7551" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA143632394C87", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "85beee4b-201e-005a-531f-461eb1000000", - "x-ms-client-request-id" : "7e1d5610-b515-42cd-9a41-0ed89a0a7551", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a914b3bf0a914b3bfa9481999798c2e34ca4f45b0b45/a914b3bf1a914b3bfa94638281bcdacde40fe4fd8922?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e52212f4-269e-46af-8d8d-93154cd287fc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327EC112", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a8668b2d-801f-0057-311f-46f1bd000000", - "x-ms-client-request-id" : "e52212f4-269e-46af-8d8d-93154cd287fc", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a914b3bf0a914b3bfa9481999798c2e34ca4f45b0b45/a914b3bf1a914b3bfa94638281bcdacde40fe4fd8922%2Fa914b3bf2a914b3bfa9480894161b42752b3049e5bf9?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "88f86116-a877-4df0-b5d0-645e2bf831c0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328DAAFD", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c0092a79-201f-0051-361f-4606c5000000", - "x-ms-client-request-id" : "88f86116-a877-4df0-b5d0-645e2bf831c0", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a914b3bf0a914b3bfa9481999798c2e34ca4f45b0b45/a914b3bf1a914b3bfa94638281bcdacde40fe4fd8922%2Fa914b3bf2a914b3bfa9480894161b42752b3049e5bf9?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "129e1e4d-9636-479b-a401-455468df2812" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "c0092a92-201f-0051-4f1f-4606c5000000", - "x-ms-client-request-id" : "129e1e4d-9636-479b-a401-455468df2812", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "a914b3bf0a914b3bfa9481999798c2e34ca4f45b0b45", "a914b3bf1a914b3bfa94638281bcdacde40fe4fd8922", "a914b3bf2a914b3bfa9480894161b42752b3049e5bf9" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[1].json deleted file mode 100644 index f3a263695cf73..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[1].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/b00f82fe0b00f82fed7c9272090e05a5098b34c2b8f3?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "13e215b9-c409-4bfa-a6e1-a48a08ed6f27" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363238ED99", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "22c5be31-301e-004e-191f-46ddd5000000", - "x-ms-client-request-id" : "13e215b9-c409-4bfa-a6e1-a48a08ed6f27", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/b00f82fe0b00f82fed7c9272090e05a5098b34c2b8f3/b00f82fe1b00f82fed7c05881c8e87587d89844988b2?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0e2e5836-1bc6-4517-8938-370ba3a78cde" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327CE8C7", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "dd5ae587-f01f-0058-541f-461c4b000000", - "x-ms-client-request-id" : "0e2e5836-1bc6-4517-8938-370ba3a78cde", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/b00f82fe0b00f82fed7c9272090e05a5098b34c2b8f3/b00f82fe1b00f82fed7c05881c8e87587d89844988b2%2Fb00f82fe2b00f82fed7c044083e38d76a92464af0bbf?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "efb6c356-263f-4c8d-8879-8a73ee7334da" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328DF607", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f08fe933-f01f-0035-801f-46b665000000", - "x-ms-client-request-id" : "efb6c356-263f-4c8d-8879-8a73ee7334da", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/b00f82fe0b00f82fed7c9272090e05a5098b34c2b8f3/b00f82fe1b00f82fed7c05881c8e87587d89844988b2%2Fb00f82fe2b00f82fed7c044083e38d76a92464af0bbf?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c0387f59-4036-4f6a-a6d5-603c71b9e933" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "cd9171be-401f-0027-521f-468279000000", - "x-ms-client-request-id" : "c0387f59-4036-4f6a-a6d5-603c71b9e933", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "b00f82fe0b00f82fed7c9272090e05a5098b34c2b8f3", "b00f82fe1b00f82fed7c05881c8e87587d89844988b2", "b00f82fe2b00f82fed7c044083e38d76a92464af0bbf" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[2].json deleted file mode 100644 index de515e43e03fe..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[2].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/9b22d13d09b22d13d749222571e1214a2919d4bd19ec?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "11dd6c1c-7d94-48f5-905b-4496ef7051a0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323A2446", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5e387fac-e01e-004c-5f1f-46df2f000000", - "x-ms-client-request-id" : "11dd6c1c-7d94-48f5-905b-4496ef7051a0", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/9b22d13d09b22d13d749222571e1214a2919d4bd19ec/9b22d13d19b22d13d74909349450a8cc7c80349fea5b?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c8ac902e-e341-4ca5-849b-46a4c0f424ee" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327CFA31", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "8ead8ba3-401f-0041-791f-463023000000", - "x-ms-client-request-id" : "c8ac902e-e341-4ca5-849b-46a4c0f424ee", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/9b22d13d09b22d13d749222571e1214a2919d4bd19ec/9b22d13d19b22d13d74909349450a8cc7c80349fea5b%2F9b22d13d29b22d13d7496687343cb0986c0b649b38c6?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9600938b-8406-444e-b7ab-7b05e065b399" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363292A10E", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6d361643-301f-0028-5f1f-466f8f000000", - "x-ms-client-request-id" : "9600938b-8406-444e-b7ab-7b05e065b399", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/9b22d13d09b22d13d749222571e1214a2919d4bd19ec/9b22d13d19b22d13d74909349450a8cc7c80349fea5b%2F9b22d13d29b22d13d7496687343cb0986c0b649b38c6?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f0a34b15-d8f1-4d96-ba83-cf78eb9eb886" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "b90b61ed-501f-0033-781f-46411d000000", - "x-ms-client-request-id" : "f0a34b15-d8f1-4d96-ba83-cf78eb9eb886", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - } ], - "variables" : [ "9b22d13d09b22d13d749222571e1214a2919d4bd19ec", "9b22d13d19b22d13d74909349450a8cc7c80349fea5b", "9b22d13d29b22d13d7496687343cb0986c0b649b38c6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[3].json deleted file mode 100644 index efca48c5d94a8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[3].json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/8239e07c08239e07cbb5897409b8d15a8a6bf47f3bd5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "13cfcae3-2802-4338-a97e-ac45a935e494" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363238E626", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "53edca54-d01e-0029-201f-466e72000000", - "x-ms-client-request-id" : "13cfcae3-2802-4338-a97e-ac45a935e494", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/8239e07c08239e07cbb5897409b8d15a8a6bf47f3bd5/8239e07c18239e07cbb533701b97939421b3141318dc?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "84997827-5571-453e-a8f6-4ba44d8f96ee" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327ED999", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f08fe922-f01f-0035-6f1f-46b665000000", - "x-ms-client-request-id" : "84997827-5571-453e-a8f6-4ba44d8f96ee", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/8239e07c08239e07cbb5897409b8d15a8a6bf47f3bd5/8239e07c18239e07cbb533701b97939421b3141318dc%2F8239e07c28239e07cbb5456833fb5f061dece4570b23?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e72a5b6a-8c3a-42b5-98a5-510a4c0d4c13" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328DA691", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "dd5ae598-f01f-0058-651f-461c4b000000", - "x-ms-client-request-id" : "e72a5b6a-8c3a-42b5-98a5-510a4c0d4c13", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/8239e07c08239e07cbb5897409b8d15a8a6bf47f3bd5/8239e07c18239e07cbb533701b97939421b3141318dc%2F8239e07c28239e07cbb5456833fb5f061dece4570b23", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a0cd6a5d-b1dc-48ce-9121-d87d1dadc1fa" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 01 Apr 2022 23:20:23 GMT", - "eTag" : "0x8DA1436328DA691", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "38946ee9-a01e-002d-781f-469bf0000000", - "x-ms-client-request-id" : "a0cd6a5d-b1dc-48ce-9121-d87d1dadc1fa", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/8239e07c08239e07cbb5897409b8d15a8a6bf47f3bd5/8239e07c18239e07cbb533701b97939421b3141318dc%2F8239e07c28239e07cbb5456833fb5f061dece4570b23?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "da36e032-f4c2-4c2a-9e1f-5c2c45f6efae" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "6d361672-301f-0028-0e1f-466f8f000000", - "x-ms-client-request-id" : "da36e032-f4c2-4c2a-9e1f-5c2c45f6efae", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - } ], - "variables" : [ "8239e07c08239e07cbb5897409b8d15a8a6bf47f3bd5", "8239e07c18239e07cbb533701b97939421b3141318dc", "8239e07c28239e07cbb5456833fb5f061dece4570b23" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[4].json deleted file mode 100644 index 878d9b7d0d1b2..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[4].json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/cd7876bb0cd7876bb923468880fd4d4a3cf4c41abb73?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1431be5b-b653-4c87-85cc-eb127172d8b5" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363239085F", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "821c66d0-701e-0024-121f-46817e000000", - "x-ms-client-request-id" : "1431be5b-b653-4c87-85cc-eb127172d8b5", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/cd7876bb0cd7876bb923468880fd4d4a3cf4c41abb73/cd7876bb1cd7876bb92392393e91c23091d5d4e9bb49?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e7466fb5-8234-4197-ba36-77333438c117" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327EF6B7", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "75d85d86-101f-003f-181f-46afec000000", - "x-ms-client-request-id" : "e7466fb5-8234-4197-ba36-77333438c117", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/cd7876bb0cd7876bb923468880fd4d4a3cf4c41abb73/cd7876bb1cd7876bb92392393e91c23091d5d4e9bb49%2Fcd7876bb2cd7876bb923546039f3158c7d41448efb21?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3854794b-4e73-42fd-92aa-6fbf678357b1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328E1904", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "cd9171ab-401f-0027-3f1f-468279000000", - "x-ms-client-request-id" : "3854794b-4e73-42fd-92aa-6fbf678357b1", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/cd7876bb0cd7876bb923468880fd4d4a3cf4c41abb73/cd7876bb1cd7876bb92392393e91c23091d5d4e9bb49%2Fcd7876bb2cd7876bb923546039f3158c7d41448efb21?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "532f656e-73c8-467f-85e2-e46708fa90e1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "32abcd76-f01f-0053-301f-46043f000000", - "x-ms-client-request-id" : "532f656e-73c8-467f-85e2-e46708fa90e1", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - } ], - "variables" : [ "cd7876bb0cd7876bb923468880fd4d4a3cf4c41abb73", "cd7876bb1cd7876bb92392393e91c23091d5d4e9bb49", "cd7876bb2cd7876bb923546039f3158c7d41448efb21" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[5].json deleted file mode 100644 index 8ad09d25d36c9..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirAC[5].json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/d46347fa0d46347fa76c19615cf8ee69273c341daae0?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "52a50e17-f15d-4f5a-b77c-c3be1e8dba7d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323B3748", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e6ec28ac-201e-0037-141f-46b49f000000", - "x-ms-client-request-id" : "52a50e17-f15d-4f5a-b77c-c3be1e8dba7d", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/d46347fa0d46347fa76c19615cf8ee69273c341daae0/d46347fa1d46347fa76c015171a0b24a0932a4049901?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7c8e0d93-69f6-43e0-a7f9-6a1ae51e8bc0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327EC64B", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b90b61cc-501f-0033-571f-46411d000000", - "x-ms-client-request-id" : "7c8e0d93-69f6-43e0-a7f9-6a1ae51e8bc0", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/d46347fa0d46347fa76c19615cf8ee69273c341daae0/d46347fa1d46347fa76c015171a0b24a0932a4049901%2Fd46347fa2d46347fa76c5661612d419e00ebe4ffcab6?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "96ca8ad7-6302-44b5-b6bf-4e27b6596e6f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA143632910880", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c9abff4a-001f-002b-541f-466c88000000", - "x-ms-client-request-id" : "96ca8ad7-6302-44b5-b6bf-4e27b6596e6f", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/d46347fa0d46347fa76c19615cf8ee69273c341daae0/d46347fa1d46347fa76c015171a0b24a0932a4049901%2Fd46347fa2d46347fa76c5661612d419e00ebe4ffcab6?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6fa537a6-1e29-4f8d-841f-1aecc12b12d2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "6bfd9bcc-26e1-4015-b9ad-ba34b68332a2", - "eTag" : "0x8DA143632910880", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "22c5bfcb-301e-004e-0a1f-46ddd5000000", - "x-ms-client-request-id" : "6fa537a6-1e29-4f8d-841f-1aecc12b12d2", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/d46347fa0d46347fa76c19615cf8ee69273c341daae0/d46347fa1d46347fa76c015171a0b24a0932a4049901%2Fd46347fa2d46347fa76c5661612d419e00ebe4ffcab6?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b54142ac-4817-4d18-87ba-375dd2f71939" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "8ead8bd0-401f-0041-261f-463023000000", - "x-ms-client-request-id" : "b54142ac-4817-4d18-87ba-375dd2f71939", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - } ], - "variables" : [ "d46347fa0d46347fa76c19615cf8ee69273c341daae0", "d46347fa1d46347fa76c015171a0b24a0932a4049901", "d46347fa2d46347fa76c5661612d419e00ebe4ffcab6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirDirDoesNotExistAnymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirDirDoesNotExistAnymore.json deleted file mode 100644 index d1a43ff076cf7..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirDirDoesNotExistAnymore.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/66191924066191924d5765760ec86e6bc6ce1477dafc?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "197de124-7256-444f-8eb7-232bddd26b07" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363238FEE0", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "70f2b334-901e-002e-481f-4698f7000000", - "x-ms-client-request-id" : "197de124-7256-444f-8eb7-232bddd26b07", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/66191924066191924d5765760ec86e6bc6ce1477dafc/66191924166191924d576465401ac2414fe694a24aa1?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6ec5f2e4-611b-41c7-8431-ad70bfcf60ee" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327F2C85", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c0092a5a-201f-0051-171f-4606c5000000", - "x-ms-client-request-id" : "6ec5f2e4-611b-41c7-8431-ad70bfcf60ee", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/66191924066191924d5765760ec86e6bc6ce1477dafc/66191924166191924d576465401ac2414fe694a24aa1%2F66191924266191924d57796654bdb3830a2d84b97933?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6d132f7f-895e-46e1-8b83-2aa3b64e40c8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436329089AA", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4ef14f91-601f-0030-321f-46421a000000", - "x-ms-client-request-id" : "6d132f7f-895e-46e1-8b83-2aa3b64e40c8", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/66191924066191924d5765760ec86e6bc6ce1477dafc/66191924166191924d576465401ac2414fe694a24aa1%2F66191924266191924d57796654bdb3830a2d84b97933?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e7910f89-ca76-4bdb-a052-924a07d37b43" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "f08fe93d-f01f-0035-0a1f-46b665000000", - "x-ms-client-request-id" : "e7910f89-ca76-4bdb-a052-924a07d37b43", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/66191924066191924d5765760ec86e6bc6ce1477dafc/66191924166191924d576465401ac2414fe694a24aa1%2F66191924266191924d57796654bdb3830a2d84b97933", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "33bef54a-2334-4734-a483-798628d06610" - }, - "Response" : { - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "ab78abf3-201e-0051-7e1f-4606c5000000", - "x-ms-client-request-id" : "33bef54a-2334-4734-a483-798628d06610", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "66191924066191924d5765760ec86e6bc6ce1477dafc", "66191924166191924d576465401ac2414fe694a24aa1", "66191924266191924d57796654bdb3830a2d84b97933" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirMin.json deleted file mode 100644 index fe86f41e92d44..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirMin.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/2f12779d02f12779d3b6710832256b49fb83f4acd8c2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9aa9f4c5-bd0f-401e-8c9a-b5f5d4d482f5" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323952F7", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3594975d-501e-0033-451f-46411d000000", - "x-ms-client-request-id" : "9aa9f4c5-bd0f-401e-8c9a-b5f5d4d482f5", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/2f12779d02f12779d3b6710832256b49fb83f4acd8c2/2f12779d12f12779d3b6672486ea0b25634464664a2a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "274902ff-d9bb-40ea-a08c-5ca858b29702" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA14363280FEED", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e567431f-601f-0019-401f-463458000000", - "x-ms-client-request-id" : "274902ff-d9bb-40ea-a08c-5ca858b29702", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/2f12779d02f12779d3b6710832256b49fb83f4acd8c2/2f12779d12f12779d3b6672486ea0b25634464664a2a%2F2f12779d22f12779d3b64345655e26cd3958649739eb?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b7176f5c-02b0-480d-963c-a2e0e1a640cf" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328E292F", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "32abcd68-f01f-0053-221f-46043f000000", - "x-ms-client-request-id" : "b7176f5c-02b0-480d-963c-a2e0e1a640cf", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/2f12779d02f12779d3b6710832256b49fb83f4acd8c2/2f12779d12f12779d3b6672486ea0b25634464664a2a%2F2f12779d22f12779d3b64345655e26cd3958649739eb?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "dabf3709-30e3-4ca6-826b-c883a0da7cfc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "592726f9-801f-003a-561f-465b93000000", - "x-ms-client-request-id" : "dabf3709-30e3-4ca6-826b-c883a0da7cfc", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "2f12779d02f12779d3b6710832256b49fb83f4acd8c2", "2f12779d12f12779d3b6672486ea0b25634464664a2a", "2f12779d22f12779d3b64345655e26cd3958649739eb" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirRecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirRecursive.json deleted file mode 100644 index 091d7c7bf8d6f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestDeleteIfExistsSubDirRecursive.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/750464a00750464a06a567725a7485b77e3944fb1919?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cd23a370-033e-4dec-9fc4-2937b506d4b2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436323922F0", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "38946d2d-a01e-002d-6d1f-469bf0000000", - "x-ms-client-request-id" : "cd23a370-033e-4dec-9fc4-2937b506d4b2", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/750464a00750464a06a567725a7485b77e3944fb1919/750464a01750464a06a552471bc459d36bfdc4b4ba81?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "234d74c7-2f29-4377-aa9d-3620821f3fad" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436327CB91A", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4ef14f74-601f-0030-151f-46421a000000", - "x-ms-client-request-id" : "234d74c7-2f29-4377-aa9d-3620821f3fad", - "Date" : "Fri, 01 Apr 2022 23:20:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/750464a00750464a06a567725a7485b77e3944fb1919/750464a01750464a06a552471bc459d36bfdc4b4ba81%2F750464a02750464a06a5323830041d24401674b24b7d?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2828df07-8b42-466f-bf0a-334b970f9e86" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1436328F2AE9", - "Last-Modified" : "Fri, 01 Apr 2022 23:20:23 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e567432b-601f-0019-4c1f-463458000000", - "x-ms-client-request-id" : "2828df07-8b42-466f-bf0a-334b970f9e86", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/750464a00750464a06a567725a7485b77e3944fb1919/750464a01750464a06a552471bc459d36bfdc4b4ba81%2F750464a02750464a06a5323830041d24401674b24b7d?recursive=true", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "66b20224-df10-4c0f-aefc-db9298baf5cd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "true", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "dd5ae5a4-f01f-0058-711f-461c4b000000", - "x-ms-client-request-id" : "66b20224-df10-4c0f-aefc-db9298baf5cd", - "Date" : "Fri, 01 Apr 2022 23:20:23 GMT" - }, - "Exception" : null - } ], - "variables" : [ "750464a00750464a06a567725a7485b77e3944fb1919", "750464a01750464a06a552471bc459d36bfdc4b4ba81", "750464a02750464a06a5323830041d24401674b24b7d" ] -} \ 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 index 71c5178dc83d5..9ad68504590f6 100644 --- 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 @@ -440,7 +440,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/6fee15e906fee15e9aef2018545ad4b3d2478482aac1/6fee15e926fee15e9aef80119ee92ed5eea46459ca92?action=setAccessControlRecursive&mode=remove&forceFlag=true&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=ec81d240-5532-4901-a15e-23aa693040dd&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/6fee15e906fee15e9aef2018545ad4b3d2478482aac1/6fee15e926fee15e9aef80119ee92ed5eea46459ca92?action=setAccessControlRecursive&mode=remove&forceFlag=true&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=ec81d240-5532-4901-a15e-23aa693040dd&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRemoveACLRecursiveContinueOnFailureBatchFailures.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRemoveACLRecursiveContinueOnFailureBatchFailures.json index ae22f0a8258d8..6ffc593cfcb37 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRemoveACLRecursiveContinueOnFailureBatchFailures.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRemoveACLRecursiveContinueOnFailureBatchFailures.json @@ -440,7 +440,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -463,7 +463,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBbni%2B6U7bGaxNUBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS83MWMyNWNiYjA3MWMyNWNiYjdmYjcwNTkzOTM3ZGU5MjIzNzhiNGI3YmI3NAEwMUQ3NDFEODk2RTRCMkM0LzcxYzI1Y2JiMjcxYzI1Y2JiN2ZiMTgwNzNhYWVlOTBjMGFjNmY0NjU5OTI5LzcxYzI1Y2JiMzcxYzI1Y2JiN2ZiOTUxMjBlNzM2M2U1ZDMxYjU0OTlmYTdmLzcxYzI1Y2JiNDcxYzI1Y2JiN2ZiMTIwNzg5NDQxODMwZjYwYzM0YjFiODk5FgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBbni%2B6U7bGaxNUBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS83MWMyNWNiYjA3MWMyNWNiYjdmYjcwNTkzOTM3ZGU5MjIzNzhiNGI3YmI3NAEwMUQ3NDFEODk2RTRCMkM0LzcxYzI1Y2JiMjcxYzI1Y2JiN2ZiMTgwNzNhYWVlOTBjMGFjNmY0NjU5OTI5LzcxYzI1Y2JiMzcxYzI1Y2JiN2ZiOTUxMjBlNzM2M2U1ZDMxYjU0OTlmYTdmLzcxYzI1Y2JiNDcxYzI1Y2JiN2ZiMTIwNzg5NDQxODMwZjYwYzM0YjFiODk5FgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -486,7 +486,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBbz3%2BavqbTNzRsYwAEYugEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzcxYzI1Y2JiMDcxYzI1Y2JiN2ZiNzA1OTM5MzdkZTkyMjM3OGI0YjdiYjc0ATAxRDc0MUQ4OTZFNEIyQzQvNzFjMjVjYmIyNzFjMjVjYmI3ZmIxODA3M2FhZWU5MGMwYWM2ZjQ2NTk5MjkvNzFjMjVjYmI2NzFjMjVjYmI3ZmIwMjI0MzY3M2YzODdkZDQ5ZjQwYzA4NzYWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBbz3%2BavqbTNzRsYwAEYugEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzcxYzI1Y2JiMDcxYzI1Y2JiN2ZiNzA1OTM5MzdkZTkyMjM3OGI0YjdiYjc0ATAxRDc0MUQ4OTZFNEIyQzQvNzFjMjVjYmIyNzFjMjVjYmI3ZmIxODA3M2FhZWU5MGMwYWM2ZjQ2NTk5MjkvNzFjMjVjYmI2NzFjMjVjYmI3ZmIwMjI0MzY3M2YzODdkZDQ5ZjQwYzA4NzYWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -509,7 +509,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBaY4sLNz7mElgwY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzcxYzI1Y2JiMDcxYzI1Y2JiN2ZiNzA1OTM5MzdkZTkyMjM3OGI0YjdiYjc0ATAxRDc0MUQ4OTZFNEIyQzQvNzFjMjVjYmIyNzFjMjVjYmI3ZmIxODA3M2FhZWU5MGMwYWM2ZjQ2NTk5MjkvNzFjMjVjYmI2NzFjMjVjYmI3ZmIwMjI0MzY3M2YzODdkZDQ5ZjQwYzA4NzYvNzFjMjVjYmIxMTcxYzI1Y2JiN2ZiNjYwMTEyOTlhMjE2NGQ1YWU0ZmNkOWEWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBaY4sLNz7mElgwY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzcxYzI1Y2JiMDcxYzI1Y2JiN2ZiNzA1OTM5MzdkZTkyMjM3OGI0YjdiYjc0ATAxRDc0MUQ4OTZFNEIyQzQvNzFjMjVjYmIyNzFjMjVjYmI3ZmIxODA3M2FhZWU5MGMwYWM2ZjQ2NTk5MjkvNzFjMjVjYmI2NzFjMjVjYmI3ZmIwMjI0MzY3M2YzODdkZDQ5ZjQwYzA4NzYvNzFjMjVjYmIxMTcxYzI1Y2JiN2ZiNjYwMTEyOTlhMjE2NGQ1YWU0ZmNkOWEWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -532,7 +532,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBbBq4y93I6%2B1YABGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS83MWMyNWNiYjA3MWMyNWNiYjdmYjcwNTkzOTM3ZGU5MjIzNzhiNGI3YmI3NAEwMUQ3NDFEODk2RTRCMkM0LzcxYzI1Y2JiMjcxYzI1Y2JiN2ZiMTgwNzNhYWVlOTBjMGFjNmY0NjU5OTI5LzcxYzI1Y2JiNjcxYzI1Y2JiN2ZiMDIyNDM2NzNmMzg3ZGQ0OWY0MGMwODc2LzcxYzI1Y2JiODcxYzI1Y2JiN2ZiMDgxOTYzNjNiYjlkNDIxYjE0NjJmODAyFgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71c25cbb071c25cbb7fb70593937de922378b4b7bb74/71c25cbb271c25cbb7fb18073aaee90c0ac6f4659929?action=setAccessControlRecursive&continuation=VBbBq4y93I6%2B1YABGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS83MWMyNWNiYjA3MWMyNWNiYjdmYjcwNTkzOTM3ZGU5MjIzNzhiNGI3YmI3NAEwMUQ3NDFEODk2RTRCMkM0LzcxYzI1Y2JiMjcxYzI1Y2JiN2ZiMTgwNzNhYWVlOTBjMGFjNmY0NjU5OTI5LzcxYzI1Y2JiNjcxYzI1Y2JiN2ZiMDIyNDM2NzNmMzg3ZGQ0OWY0MGMwODc2LzcxYzI1Y2JiODcxYzI1Y2JiN2ZiMDgxOTYzNjNiYjlkNDIxYjE0NjJmODAyFgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=4727c5b4-2b93-42a2-ae0f-a3207a74b1c2&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index 521559ffa714c..0e26e1dd6eafa 100644 --- 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 @@ -616,7 +616,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -639,7 +639,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBbN5ZOKoPnb0ykY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjYxNDg5ZmU1N2Y2MDU1Mjg3NjlkMzRiYzMyZmEwNjQ0NWNkOTkvODlmZTU3ZjYxNTg5ZmU1N2Y2MDU1NzMwODI1MmM2M2ZkY2Q2NWU0N2ZjYWMWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBbN5ZOKoPnb0ykY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjYxNDg5ZmU1N2Y2MDU1Mjg3NjlkMzRiYzMyZmEwNjQ0NWNkOTkvODlmZTU3ZjYxNTg5ZmU1N2Y2MDU1NzMwODI1MmM2M2ZkY2Q2NWU0N2ZjYWMWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -662,7 +662,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBakn4Ke4pfrm3sY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjYzODlmZTU3ZjYwNTU1NzA4MmQ0MGE1N2M4YmQ1YTQzY2I5YzQvODlmZTU3ZjYxMjg5ZmU1N2Y2MDU1ODM0OTU1MjRmZTAyYTYwOWU0Y2FiOWYWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBakn4Ke4pfrm3sY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjYzODlmZTU3ZjYwNTU1NzA4MmQ0MGE1N2M4YmQ1YTQzY2I5YzQvODlmZTU3ZjYxMjg5ZmU1N2Y2MDU1ODM0OTU1MjRmZTAyYTYwOWU0Y2FiOWYWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -685,7 +685,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBaM9aiL%2BMzRt%2BcBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS84OWZlNTdmNjA4OWZlNTdmNjA1NTU5OTExNzliNjA3OGU4ZGYwNDhiZGIyNgEwMUQ3NDFEODk2RjVGM0VBLzg5ZmU1N2Y2Mjg5ZmU1N2Y2MDU1MTU4NzhlNGIzYWIzNTFlNjg0MTU1YjkyLzg5ZmU1N2Y2Mzg5ZmU1N2Y2MDU1NTcwODJkNDBhNTdjOGJkNWE0M2NiOWM0Lzg5ZmU1N2Y2NDg5ZmU1N2Y2MDU1MDk3ODQwYTkxZjEwM2Q1ZDg0OTVjOTY5FgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBaM9aiL%2BMzRt%2BcBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS84OWZlNTdmNjA4OWZlNTdmNjA1NTU5OTExNzliNjA3OGU4ZGYwNDhiZGIyNgEwMUQ3NDFEODk2RjVGM0VBLzg5ZmU1N2Y2Mjg5ZmU1N2Y2MDU1MTU4NzhlNGIzYWIzNTFlNjg0MTU1YjkyLzg5ZmU1N2Y2Mzg5ZmU1N2Y2MDU1NTcwODJkNDBhNTdjOGJkNWE0M2NiOWM0Lzg5ZmU1N2Y2NDg5ZmU1N2Y2MDU1MDk3ODQwYTkxZjEwM2Q1ZDg0OTVjOTY5FgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -708,7 +708,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBaFodn/h8XM2hYYwAEYugEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjY2ODlmZTU3ZjYwNTU0Mjg2MjlhY2ViNjRjMjA0MDRhNDg4OWIWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBaFodn/h8XM2hYYwAEYugEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjY2ODlmZTU3ZjYwNTU0Mjg2MjlhY2ViNjRjMjA0MDRhNDg4OWIWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -731,7 +731,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBb/2eja5/uW65oBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS84OWZlNTdmNjA4OWZlNTdmNjA1NTU5OTExNzliNjA3OGU4ZGYwNDhiZGIyNgEwMUQ3NDFEODk2RjVGM0VBLzg5ZmU1N2Y2Mjg5ZmU1N2Y2MDU1MTU4NzhlNGIzYWIzNTFlNjg0MTU1YjkyLzg5ZmU1N2Y2Njg5ZmU1N2Y2MDU1NDI4NjI5YWNlYjY0YzIwNDA0YTQ4ODliLzg5ZmU1N2Y2MTE4OWZlNTdmNjA1NTQ4OTg0YmM2NzkyNGJiODIzNDBkOTgxFgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBb/2eja5/uW65oBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS84OWZlNTdmNjA4OWZlNTdmNjA1NTU5OTExNzliNjA3OGU4ZGYwNDhiZGIyNgEwMUQ3NDFEODk2RjVGM0VBLzg5ZmU1N2Y2Mjg5ZmU1N2Y2MDU1MTU4NzhlNGIzYWIzNTFlNjg0MTU1YjkyLzg5ZmU1N2Y2Njg5ZmU1N2Y2MDU1NDI4NjI5YWNlYjY0YzIwNDA0YTQ4ODliLzg5ZmU1N2Y2MTE4OWZlNTdmNjA1NTQ4OTg0YmM2NzkyNGJiODIzNDBkOTgxFgAAAA%3D%3D&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -754,7 +754,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBaQpLDSiKe8qDYY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjY2ODlmZTU3ZjYwNTU0Mjg2MjlhY2ViNjRjMjA0MDRhNDg4OWIvODlmZTU3ZjY4ODlmZTU3ZjYwNTUxMzc1Nzg5NzU2OTAxYTczNjQ3M2FhYTgWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/89fe57f6089fe57f60555991179b6078e8df048bdb26/89fe57f6289fe57f605515878e4b3ab351e684155b92?action=setAccessControlRecursive&continuation=VBaQpLDSiKe8qDYY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1Lzg5ZmU1N2Y2MDg5ZmU1N2Y2MDU1NTk5MTE3OWI2MDc4ZThkZjA0OGJkYjI2ATAxRDc0MUQ4OTZGNUYzRUEvODlmZTU3ZjYyODlmZTU3ZjYwNTUxNTg3OGU0YjNhYjM1MWU2ODQxNTViOTIvODlmZTU3ZjY2ODlmZTU3ZjYwNTU0Mjg2MjlhY2ViNjRjMjA0MDRhNDg4OWIvODlmZTU3ZjY4ODlmZTU3ZjYwNTUxMzc1Nzg5NzU2OTAxYTczNjQ3M2FhYTgWAAAA&mode=remove&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A58Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=5734dd49-c4f0-4f4e-9ec0-557ab96c7ba3&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index 7224805405be9..f8900385586f5 100644 --- 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 @@ -374,7 +374,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/55a8cb62055a8cb627ed66699c83541aff75547a7b25/55a8cb62255a8cb627ed79042d674e35bc84c4be5a02?action=setAccessControlRecursive&mode=remove&forceFlag=false&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=2dec70e3-0970-407d-9687-663858248625&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/55a8cb62055a8cb627ed66699c83541aff75547a7b25/55a8cb62255a8cb627ed79042d674e35bc84c4be5a02?action=setAccessControlRecursive&mode=remove&forceFlag=false&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=2dec70e3-0970-407d-9687-663858248625&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRenameSasToken.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRenameSasToken.json index 783adb1b6582c..70ce5d525e35e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRenameSasToken.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestRenameSasToken.json @@ -44,7 +44,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/89bd6ed3089bd6ed3e92138284d337df37bc94d1e9d5/89bd6ed3289bd6ed3e9279532fe077e86f6fe405b823?mode=legacy&sv=2021-06-08&se=2022-03-12T07%3A25%3A07Z&sr=c&sp=racwdm&sig=REDACTED", + "Uri" : "http://REDACTED.dfs.core.windows.net/89bd6ed3089bd6ed3e92138284d337df37bc94d1e9d5/89bd6ed3289bd6ed3e9279532fe077e86f6fe405b823?mode=legacy&sv=2021-04-10&se=2022-03-12T07%3A25%3A07Z&sr=c&sp=racwdm&sig=REDACTED", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", @@ -65,7 +65,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/89bd6ed3089bd6ed3e92138284d337df37bc94d1e9d5/89bd6ed3289bd6ed3e9279532fe077e86f6fe405b823?sv=2021-06-08&se=2022-03-12T07%3A25%3A07Z&sr=c&sp=racwdm&sig=REDACTED", + "Uri" : "http://REDACTED.blob.core.windows.net/89bd6ed3089bd6ed3e92138284d337df37bc94d1e9d5/89bd6ed3289bd6ed3e9279532fe077e86f6fe405b823?sv=2021-04-10&se=2022-03-12T07%3A25%3A07Z&sr=c&sp=racwdm&sig=REDACTED", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", @@ -100,4 +100,4 @@ "Exception" : null } ], "variables" : [ "89bd6ed3089bd6ed3e92138284d337df37bc94d1e9d5", "89bd6ed3189bd6ed3e92325157c4a2162de874e5e8f6", "2022-03-11T07:25:07.900517600Z", "89bd6ed3289bd6ed3e9279532fe077e86f6fe405b823" ] -} +} \ 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 index 3f14ceaecbc56..9da63f30acff8 100644 --- 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 @@ -440,7 +440,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/87bc6ec8087bc6ec8b25157667bc72bbb9a384aad809/87bc6ec8287bc6ec8b2532950e3a61bc8597442ad84b?action=setAccessControlRecursive&mode=set&forceFlag=true&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=86948892-f90b-4e14-91ff-81d06f5327c9&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/87bc6ec8087bc6ec8b25157667bc72bbb9a384aad809/87bc6ec8287bc6ec8b2532950e3a61bc8597442ad84b?action=setAccessControlRecursive&mode=set&forceFlag=true&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=86948892-f90b-4e14-91ff-81d06f5327c9&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestSetACLRecursiveContinueOnFailureBatchFailures.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestSetACLRecursiveContinueOnFailureBatchFailures.json index 5f750e99c6841..a4bd25f1df24c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestSetACLRecursiveContinueOnFailureBatchFailures.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestSetACLRecursiveContinueOnFailureBatchFailures.json @@ -440,7 +440,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -463,7 +463,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBaWotCvz/Kn5HMY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzRlMTVjMjUxMDRlMTVjMjUxMjVjNTkxMTU1YjQxNzgxZDQ0NmY0MzUxYTJlATAxRDc0MUQ4OTZFNjM5QTIvNGUxNWMyNTEyNGUxNWMyNTEyNWM3NTk3OGQzMTRhMjZiZTBjOTQyNzhhNDAvNGUxNWMyNTEzNGUxNWMyNTEyNWM2MzEwMDRiZjI4MzY3YjUxNTQ5N2NiOTMvNGUxNWMyNTE0NGUxNWMyNTEyNWM3ODI4N2UwNTM0MzgzYTY5ZjQzZjBhY2MWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBaWotCvz/Kn5HMY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzRlMTVjMjUxMDRlMTVjMjUxMjVjNTkxMTU1YjQxNzgxZDQ0NmY0MzUxYTJlATAxRDc0MUQ4OTZFNjM5QTIvNGUxNWMyNTEyNGUxNWMyNTEyNWM3NTk3OGQzMTRhMjZiZTBjOTQyNzhhNDAvNGUxNWMyNTEzNGUxNWMyNTEyNWM2MzEwMDRiZjI4MzY3YjUxNTQ5N2NiOTMvNGUxNWMyNTE0NGUxNWMyNTEyNWM3ODI4N2UwNTM0MzgzYTY5ZjQzZjBhY2MWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -486,7 +486,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBad3aGGjYSox5gBGMABGLoBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS80ZTE1YzI1MTA0ZTE1YzI1MTI1YzU5MTE1NWI0MTc4MWQ0NDZmNDM1MWEyZQEwMUQ3NDFEODk2RTYzOUEyLzRlMTVjMjUxMjRlMTVjMjUxMjVjNzU5NzhkMzE0YTI2YmUwYzk0Mjc4YTQwLzRlMTVjMjUxNjRlMTVjMjUxMjVjMTEzOTBiNjAxZjZkZDE3MGM0MGJjOTM3FgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBad3aGGjYSox5gBGMABGLoBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS80ZTE1YzI1MTA0ZTE1YzI1MTI1YzU5MTE1NWI0MTc4MWQ0NDZmNDM1MWEyZQEwMUQ3NDFEODk2RTYzOUEyLzRlMTVjMjUxMjRlMTVjMjUxMjVjNzU5NzhkMzE0YTI2YmUwYzk0Mjc4YTQwLzRlMTVjMjUxNjRlMTVjMjUxMjVjMTEzOTBiNjAxZjZkZDE3MGM0MGJjOTM3FgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -509,7 +509,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBaPnuPS/Lisw04Y7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzRlMTVjMjUxMDRlMTVjMjUxMjVjNTkxMTU1YjQxNzgxZDQ0NmY0MzUxYTJlATAxRDc0MUQ4OTZFNjM5QTIvNGUxNWMyNTEyNGUxNWMyNTEyNWM3NTk3OGQzMTRhMjZiZTBjOTQyNzhhNDAvNGUxNWMyNTE2NGUxNWMyNTEyNWMxMTM5MGI2MDFmNmRkMTcwYzQwYmM5MzcvNGUxNWMyNTExMTRlMTVjMjUxMjVjNzY1NzYyYmMwM2E0MTdhOGQ0OTM5OTcWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBaPnuPS/Lisw04Y7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzRlMTVjMjUxMDRlMTVjMjUxMjVjNTkxMTU1YjQxNzgxZDQ0NmY0MzUxYTJlATAxRDc0MUQ4OTZFNjM5QTIvNGUxNWMyNTEyNGUxNWMyNTEyNWM3NTk3OGQzMTRhMjZiZTBjOTQyNzhhNDAvNGUxNWMyNTE2NGUxNWMyNTEyNWMxMTM5MGI2MDFmNmRkMTcwYzQwYmM5MzcvNGUxNWMyNTExMTRlMTVjMjUxMjVjNzY1NzYyYmMwM2E0MTdhOGQ0OTM5OTcWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -532,7 +532,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBbi7JPUvaaQ2hwY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzRlMTVjMjUxMDRlMTVjMjUxMjVjNTkxMTU1YjQxNzgxZDQ0NmY0MzUxYTJlATAxRDc0MUQ4OTZFNjM5QTIvNGUxNWMyNTEyNGUxNWMyNTEyNWM3NTk3OGQzMTRhMjZiZTBjOTQyNzhhNDAvNGUxNWMyNTE2NGUxNWMyNTEyNWMxMTM5MGI2MDFmNmRkMTcwYzQwYmM5MzcvNGUxNWMyNTE4NGUxNWMyNTEyNWM1MjY4NDVhMDFmZmU5MTdmNDRlNDVhZjEWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/4e15c25104e15c25125c591155b41781d446f4351a2e/4e15c25124e15c25125c75978d314a26be0c94278a40?action=setAccessControlRecursive&continuation=VBbi7JPUvaaQ2hwY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzRlMTVjMjUxMDRlMTVjMjUxMjVjNTkxMTU1YjQxNzgxZDQ0NmY0MzUxYTJlATAxRDc0MUQ4OTZFNjM5QTIvNGUxNWMyNTEyNGUxNWMyNTEyNWM3NTk3OGQzMTRhMjZiZTBjOTQyNzhhNDAvNGUxNWMyNTE2NGUxNWMyNTEyNWMxMTM5MGI2MDFmNmRkMTcwYzQwYmM5MzcvNGUxNWMyNTE4NGUxNWMyNTEyNWM1MjY4NDVhMDFmZmU5MTdmNDRlNDVhZjEWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=b64baf11-c24c-481e-982c-4bdcd243385f&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index c26749d2193d0..3606201f0a9df 100644 --- 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 @@ -616,7 +616,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -639,7 +639,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBbuhNm33f7Hx0IY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2I2MjljOTFjMGI2MjljOTFjZDYzMTI2OTEwNDEyYmFmYmZjMGU0YTdhYTc0ATAxRDc0MUQ4OTZFNUM0NUEvYjYyOWM5MWMyYjYyOWM5MWNkNjM0OTg1NGM0YTBlYmQyMjQwNTQxYTI5YTYvYjYyOWM5MWMxNGI2MjljOTFjZDYzODc2MzcyYTBkZmU2ZjJlOTQ0NjNmOGIvYjYyOWM5MWMxNWI2MjljOTFjZDYzNjY2NjRlYzNlYTMyZTljMDU0ZDg1ODEWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBbuhNm33f7Hx0IY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2I2MjljOTFjMGI2MjljOTFjZDYzMTI2OTEwNDEyYmFmYmZjMGU0YTdhYTc0ATAxRDc0MUQ4OTZFNUM0NUEvYjYyOWM5MWMyYjYyOWM5MWNkNjM0OTg1NGM0YTBlYmQyMjQwNTQxYTI5YTYvYjYyOWM5MWMxNGI2MjljOTFjZDYzODc2MzcyYTBkZmU2ZjJlOTQ0NjNmOGIvYjYyOWM5MWMxNWI2MjljOTFjZDYzNjY2NjRlYzNlYTMyZTljMDU0ZDg1ODEWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -662,7 +662,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBa/lZee%2B7vB9BUY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2I2MjljOTFjMGI2MjljOTFjZDYzMTI2OTEwNDEyYmFmYmZjMGU0YTdhYTc0ATAxRDc0MUQ4OTZFNUM0NUEvYjYyOWM5MWMyYjYyOWM5MWNkNjM0OTg1NGM0YTBlYmQyMjQwNTQxYTI5YTYvYjYyOWM5MWMzYjYyOWM5MWNkNjMwNjMyMzJjZTgzMDc5ZDIxYTQ3NTZiZDkvYjYyOWM5MWMxMmI2MjljOTFjZDYzNTg5NTYxNjRhMWY0YmFmNjA0NGZiODkWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBa/lZee%2B7vB9BUY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2I2MjljOTFjMGI2MjljOTFjZDYzMTI2OTEwNDEyYmFmYmZjMGU0YTdhYTc0ATAxRDc0MUQ4OTZFNUM0NUEvYjYyOWM5MWMyYjYyOWM5MWNkNjM0OTg1NGM0YTBlYmQyMjQwNTQxYTI5YTYvYjYyOWM5MWMzYjYyOWM5MWNkNjMwNjMyMzJjZTgzMDc5ZDIxYTQ3NTZiZDkvYjYyOWM5MWMxMmI2MjljOTFjZDYzNTg5NTYxNjRhMWY0YmFmNjA0NGZiODkWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -685,7 +685,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBaHtZX79qvd06sBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS9iNjI5YzkxYzBiNjI5YzkxY2Q2MzEyNjkxMDQxMmJhZmJmYzBlNGE3YWE3NAEwMUQ3NDFEODk2RTVDNDVBL2I2MjljOTFjMmI2MjljOTFjZDYzNDk4NTRjNGEwZWJkMjI0MDU0MWEyOWE2L2I2MjljOTFjM2I2MjljOTFjZDYzMDYzMjMyY2U4MzA3OWQyMWE0NzU2YmQ5L2I2MjljOTFjNGI2MjljOTFjZDYzOTY1NjkyZmE3MzAyYWE4ZmQ0NzcyOTVmFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBaHtZX79qvd06sBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS9iNjI5YzkxYzBiNjI5YzkxY2Q2MzEyNjkxMDQxMmJhZmJmYzBlNGE3YWE3NAEwMUQ3NDFEODk2RTVDNDVBL2I2MjljOTFjMmI2MjljOTFjZDYzNDk4NTRjNGEwZWJkMjI0MDU0MWEyOWE2L2I2MjljOTFjM2I2MjljOTFjZDYzMDYzMjMyY2U4MzA3OWQyMWE0NzU2YmQ5L2I2MjljOTFjNGI2MjljOTFjZDYzOTY1NjkyZmE3MzAyYWE4ZmQ0NzcyOTVmFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -708,7 +708,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBaCl/f0zdiuy58BGMABGLoBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS9iNjI5YzkxYzBiNjI5YzkxY2Q2MzEyNjkxMDQxMmJhZmJmYzBlNGE3YWE3NAEwMUQ3NDFEODk2RTVDNDVBL2I2MjljOTFjMmI2MjljOTFjZDYzNDk4NTRjNGEwZWJkMjI0MDU0MWEyOWE2L2I2MjljOTFjNmI2MjljOTFjZDYzMjU5MzcwN2Q5M2Q2NjhiNmI0ZWVkYWFmFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBaCl/f0zdiuy58BGMABGLoBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS9iNjI5YzkxYzBiNjI5YzkxY2Q2MzEyNjkxMDQxMmJhZmJmYzBlNGE3YWE3NAEwMUQ3NDFEODk2RTVDNDVBL2I2MjljOTFjMmI2MjljOTFjZDYzNDk4NTRjNGEwZWJkMjI0MDU0MWEyOWE2L2I2MjljOTFjNmI2MjljOTFjZDYzMjU5MzcwN2Q5M2Q2NjhiNmI0ZWVkYWFmFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -731,7 +731,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBbkqM3djsm5gaMBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS9iNjI5YzkxYzBiNjI5YzkxY2Q2MzEyNjkxMDQxMmJhZmJmYzBlNGE3YWE3NAEwMUQ3NDFEODk2RTVDNDVBL2I2MjljOTFjMmI2MjljOTFjZDYzNDk4NTRjNGEwZWJkMjI0MDU0MWEyOWE2L2I2MjljOTFjNmI2MjljOTFjZDYzMjU5MzcwN2Q5M2Q2NjhiNmI0ZWVkYWFmL2I2MjljOTFjMTFiNjI5YzkxY2Q2MzQ5OTQyZmI1NWNiY2RhYzk0NDcwZGJiFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBbkqM3djsm5gaMBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS9iNjI5YzkxYzBiNjI5YzkxY2Q2MzEyNjkxMDQxMmJhZmJmYzBlNGE3YWE3NAEwMUQ3NDFEODk2RTVDNDVBL2I2MjljOTFjMmI2MjljOTFjZDYzNDk4NTRjNGEwZWJkMjI0MDU0MWEyOWE2L2I2MjljOTFjNmI2MjljOTFjZDYzMjU5MzcwN2Q5M2Q2NjhiNmI0ZWVkYWFmL2I2MjljOTFjMTFiNjI5YzkxY2Q2MzQ5OTQyZmI1NWNiY2RhYzk0NDcwZGJiFgAAAA%3D%3D&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -754,7 +754,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBaHotWotJCA938Y7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2I2MjljOTFjMGI2MjljOTFjZDYzMTI2OTEwNDEyYmFmYmZjMGU0YTdhYTc0ATAxRDc0MUQ4OTZFNUM0NUEvYjYyOWM5MWMyYjYyOWM5MWNkNjM0OTg1NGM0YTBlYmQyMjQwNTQxYTI5YTYvYjYyOWM5MWM2YjYyOWM5MWNkNjMyNTkzNzA3ZDkzZDY2OGI2YjRlZWRhYWYvYjYyOWM5MWM4YjYyOWM5MWNkNjM0Mjk0NTE5NzMwY2MyNThiNjQ1MDRhN2EWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/b629c91c0b629c91cd63126910412bafbfc0e4a7aa74/b629c91c2b629c91cd6349854c4a0ebd2240541a29a6?action=setAccessControlRecursive&continuation=VBaHotWotJCA938Y7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2I2MjljOTFjMGI2MjljOTFjZDYzMTI2OTEwNDEyYmFmYmZjMGU0YTdhYTc0ATAxRDc0MUQ4OTZFNUM0NUEvYjYyOWM5MWMyYjYyOWM5MWNkNjM0OTg1NGM0YTBlYmQyMjQwNTQxYTI5YTYvYjYyOWM5MWM2YjYyOWM5MWNkNjMyNTkzNzA3ZDkzZDY2OGI2YjRlZWRhYWYvYjYyOWM5MWM4YjYyOWM5MWNkNjM0Mjk0NTE5NzMwY2MyNThiNjQ1MDRhN2EWAAAA&mode=set&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=7d4cff68-b9ef-40d9-bd7e-5edff6d743d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index 71fef5b7a5093..38064504c3e3a 100644 --- 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 @@ -374,7 +374,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/1ee09e6701ee09e67301479428853d52d64a640d5a5c/1ee09e6721ee09e6730157046f281d377a84349dfb3a?action=setAccessControlRecursive&mode=set&forceFlag=false&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=073d80fc-ce28-4ea6-acb2-1871c9f0d314&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/1ee09e6701ee09e67301479428853d52d64a640d5a5c/1ee09e6721ee09e6730157046f281d377a84349dfb3a?action=setAccessControlRecursive&mode=set&forceFlag=false&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=073d80fc-ce28-4ea6-acb2-1871c9f0d314&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index ea66b59588038..f2063907a4ab8 100644 --- 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 @@ -440,7 +440,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/121997fc0121997fcc9f5024795c584a1244c422183b/121997fc2121997fcc9f0402806bbc5903661426e8c1?action=setAccessControlRecursive&mode=modify&forceFlag=true&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=fa9cdf52-fbf0-412e-aa64-89390819d705&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/121997fc0121997fcc9f5024795c584a1244c422183b/121997fc2121997fcc9f0402806bbc5903661426e8c1?action=setAccessControlRecursive&mode=modify&forceFlag=true&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=fa9cdf52-fbf0-412e-aa64-89390819d705&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestUpdateACLRecursiveContinueOnFailureBatchFailures.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestUpdateACLRecursiveContinueOnFailureBatchFailures.json index 83582d64e208d..346e08ec61ebe 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestUpdateACLRecursiveContinueOnFailureBatchFailures.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestUpdateACLRecursiveContinueOnFailureBatchFailures.json @@ -440,7 +440,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -463,7 +463,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBaCkovc6fO58QkY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2EzZjc1OWM0Y2E5OTk2NDIxM2I2YTk4ZTgyODIxYjQ1YzdiYjcvZjc1OWM0Y2E0Zjc1OWM0Y2E5OTk3NDc3NGFhMTM4YjJiN2VjMDQyNjZiZWIWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBaCkovc6fO58QkY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2EzZjc1OWM0Y2E5OTk2NDIxM2I2YTk4ZTgyODIxYjQ1YzdiYjcvZjc1OWM0Y2E0Zjc1OWM0Y2E5OTk3NDc3NGFhMTM4YjJiN2VjMDQyNjZiZWIWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -486,7 +486,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBaQsci37I3egXEYwAEYugEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2E2Zjc1OWM0Y2E5OTkyNDExOTMxMTMyYjY5M2JmMDQ5YmY4MDAWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBaQsci37I3egXEYwAEYugEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2E2Zjc1OWM0Y2E5OTkyNDExOTMxMTMyYjY5M2JmMDQ5YmY4MDAWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -509,7 +509,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBbHocLQsYTDj2AY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2E2Zjc1OWM0Y2E5OTkyNDExOTMxMTMyYjY5M2JmMDQ5YmY4MDAvZjc1OWM0Y2ExMWY3NTljNGNhOTk5NDkwMDUzMDVmMjc5YTczYTY0NGZlYjcWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBbHocLQsYTDj2AY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2E2Zjc1OWM0Y2E5OTkyNDExOTMxMTMyYjY5M2JmMDQ5YmY4MDAvZjc1OWM0Y2ExMWY3NTljNGNhOTk5NDkwMDUzMDVmMjc5YTczYTY0NGZlYjcWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -532,7 +532,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBa60qLOmLKIuS0Y7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2E2Zjc1OWM0Y2E5OTkyNDExOTMxMTMyYjY5M2JmMDQ5YmY4MDAvZjc1OWM0Y2E4Zjc1OWM0Y2E5OTkxNTg1NWY5NGFjZThmNDI0ZTRiZmE5YmEWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/f759c4ca0f759c4ca99957562e1a04545e7284974860/f759c4ca2f759c4ca9990983153bacf1682bc4195aeb?action=setAccessControlRecursive&continuation=VBa60qLOmLKIuS0Y7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1L2Y3NTljNGNhMGY3NTljNGNhOTk5NTc1NjJlMWEwNDU0NWU3Mjg0OTc0ODYwATAxRDc0MUQ4OTZFNEQ5RDkvZjc1OWM0Y2EyZjc1OWM0Y2E5OTkwOTgzMTUzYmFjZjE2ODJiYzQxOTVhZWIvZjc1OWM0Y2E2Zjc1OWM0Y2E5OTkyNDExOTMxMTMyYjY5M2JmMDQ5YmY4MDAvZjc1OWM0Y2E4Zjc1OWM0Y2E5OTkxNTg1NWY5NGFjZThmNDI0ZTRiZmE5YmEWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=e5fa4124-73a5-4783-809a-638d2d0faae4&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index 1fbafe7764123..525185831b006 100644 --- 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 @@ -616,7 +616,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -639,7 +639,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBau%2Btbl1K2tzN0BGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3MTQwZjY1Y2Y4N2U2MTY4NTI1OTc0OTZkNWEyMjU0NGJiZTgyLzBmNjVjZjg3MTUwZjY1Y2Y4N2U2MTUwODk3MjA0MWUwODQzNWUwNDQxNTkyFgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBau%2Btbl1K2tzN0BGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3MTQwZjY1Y2Y4N2U2MTY4NTI1OTc0OTZkNWEyMjU0NGJiZTgyLzBmNjVjZjg3MTUwZjY1Y2Y4N2U2MTUwODk3MjA0MWUwODQzNWUwNDQxNTkyFgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -662,7 +662,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBbulZCgqsnSxdMBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3MzBmNjVjZjg3ZTYxMzIzNDZhNDVlMjNiMTE1YjI0NjE3YmM5LzBmNjVjZjg3MTIwZjY1Y2Y4N2U2MTc4NjUyYTk0MmIzMTFkMmE2NDNjZGE0FgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBbulZCgqsnSxdMBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3MzBmNjVjZjg3ZTYxMzIzNDZhNDVlMjNiMTE1YjI0NjE3YmM5LzBmNjVjZjg3MTIwZjY1Y2Y4N2U2MTc4NjUyYTk0MmIzMTFkMmE2NDNjZGE0FgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -685,7 +685,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBajmoun8OjapXIY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzBmNjVjZjg3MDBmNjVjZjg3ZTYxOTEyMDk4ZTUyMmE4YThhYjY0YTJjYTdiATAxRDc0MUQ4OTZFNUM0NUEvMGY2NWNmODcyMGY2NWNmODdlNjExMjAzMzBmMzllYTk2NDJjYTRiZTBhNzkvMGY2NWNmODczMGY2NWNmODdlNjEzMjM0NmE0NWUyM2IxMTViMjQ2MTdiYzkvMGY2NWNmODc0MGY2NWNmODdlNjE4NjAxMmFjNGNjYzI0NDYwNDQwMzM5MGEWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBajmoun8OjapXIY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzBmNjVjZjg3MDBmNjVjZjg3ZTYxOTEyMDk4ZTUyMmE4YThhYjY0YTJjYTdiATAxRDc0MUQ4OTZFNUM0NUEvMGY2NWNmODcyMGY2NWNmODdlNjExMjAzMzBmMzllYTk2NDJjYTRiZTBhNzkvMGY2NWNmODczMGY2NWNmODdlNjEzMjM0NmE0NWUyM2IxMTViMjQ2MTdiYzkvMGY2NWNmODc0MGY2NWNmODdlNjE4NjAxMmFjNGNjYzI0NDYwNDQwMzM5MGEWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -708,7 +708,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBbt3OW0kcaDtZoBGMABGLoBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3NjBmNjVjZjg3ZTYxNDg3NjVkZWYzNWEwZjg1MmU0MDFiYjBlFgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBbt3OW0kcaDtZoBGMABGLoBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3NjBmNjVjZjg3ZTYxNDg3NjVkZWYzNWEwZjg1MmU0MDFiYjBlFgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -731,7 +731,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBaq5p%2BRm7%2Bv9awBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3NjBmNjVjZjg3ZTYxNDg3NjVkZWYzNWEwZjg1MmU0MDFiYjBlLzBmNjVjZjg3MTEwZjY1Y2Y4N2U2MTQxOTI5OTA0ZjQ5YjE4Y2Y2NGNlYTkyFgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBaq5p%2BRm7%2Bv9awBGO0BGOcBL2thc29ib2xjYW5hZGFobnMBMDFENzQxQzhFOTY5NTAxNS8wZjY1Y2Y4NzAwZjY1Y2Y4N2U2MTkxMjA5OGU1MjJhOGE4YWI2NGEyY2E3YgEwMUQ3NDFEODk2RTVDNDVBLzBmNjVjZjg3MjBmNjVjZjg3ZTYxMTIwMzMwZjM5ZWE5NjQyY2E0YmUwYTc5LzBmNjVjZjg3NjBmNjVjZjg3ZTYxNDg3NjVkZWYzNWEwZjg1MmU0MDFiYjBlLzBmNjVjZjg3MTEwZjY1Y2Y4N2U2MTQxOTI5OTA0ZjQ5YjE4Y2Y2NGNlYTkyFgAAAA%3D%3D&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -754,7 +754,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBaok7z2s9uu4jgY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzBmNjVjZjg3MDBmNjVjZjg3ZTYxOTEyMDk4ZTUyMmE4YThhYjY0YTJjYTdiATAxRDc0MUQ4OTZFNUM0NUEvMGY2NWNmODcyMGY2NWNmODdlNjExMjAzMzBmMzllYTk2NDJjYTRiZTBhNzkvMGY2NWNmODc2MGY2NWNmODdlNjE0ODc2NWRlZjM1YTBmODUyZTQwMWJiMGUvMGY2NWNmODc4MGY2NWNmODdlNjE4NjY2MGY4YTNhYzY4OWQ4YTQzYjFiMDIWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-06-08&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/0f65cf8700f65cf87e61912098e522a8a8ab64a2ca7b/0f65cf8720f65cf87e61120330f39ea9642ca4be0a79?action=setAccessControlRecursive&continuation=VBaok7z2s9uu4jgY7QEY5wEva2Fzb2JvbGNhbmFkYWhucwEwMUQ3NDFDOEU5Njk1MDE1LzBmNjVjZjg3MDBmNjVjZjg3ZTYxOTEyMDk4ZTUyMmE4YThhYjY0YTJjYTdiATAxRDc0MUQ4OTZFNUM0NUEvMGY2NWNmODcyMGY2NWNmODdlNjExMjAzMzBmMzllYTk2NDJjYTRiZTBhNzkvMGY2NWNmODc2MGY2NWNmODdlNjE0ODc2NWRlZjM1YTBmODUyZTQwMWJiMGUvMGY2NWNmODc4MGY2NWNmODdlNjE4NjY2MGY4YTNhYzY4OWQ4YTQzYjFiMDIWAAAA&mode=modify&forceFlag=true&maxRecords=2&sv=2021-04-10&se=2021-05-05T19%3A00%3A57Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A57Z&ske=2021-05-05T19%3A00%3A57Z&sks=b&skv=2020-08-04&suoid=2694e848-4720-4d6a-867d-b789482013d8&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", 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 index 04a620042af95..88957e59a5305 100644 --- 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 @@ -374,7 +374,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/61abb28d061abb28da3631487b0ddffcc36d4488ca1f/61abb28d261abb28da369136227846db02eb64cbd954?action=setAccessControlRecursive&mode=modify&forceFlag=false&sv=2021-06-08&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=c8354358-bf30-4a47-affb-b7a95f321e64&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/61abb28d061abb28da3631487b0ddffcc36d4488ca1f/61abb28d261abb28da369136227846db02eb64cbd954?action=setAccessControlRecursive&mode=modify&forceFlag=false&sv=2021-04-10&se=2021-05-05T19%3A00%3A56Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A56Z&ske=2021-05-05T19%3A00%3A56Z&sks=b&skv=2020-08-04&suoid=c8354358-bf30-4a47-affb-b7a95f321e64&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsDefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsDefaults.json deleted file mode 100644 index afcaa3937eef5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsDefaults.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/ba7215f80ba7215f8c4202373036097274d7542e8a3d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a88ff085-c36c-4420-852b-9e1242cefab4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF4E1A", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d27c7387-b01e-0039-6431-4e5894000000", - "x-ms-client-request-id" : "a88ff085-c36c-4420-852b-9e1242cefab4", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/ba7215f80ba7215f8c4202373036097274d7542e8a3d/ba7215f81ba7215f8c42216029a9d37d9c5dc42dc8e8?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b1206a03-b46b-4aa3-8459-3a24f219ad45" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5C0CC0", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b77b6054-301f-004e-2731-4eddd5000000", - "x-ms-client-request-id" : "b1206a03-b46b-4aa3-8459-3a24f219ad45", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/ba7215f80ba7215f8c4202373036097274d7542e8a3d/ba7215f82ba7215f8c4288443a9a62d8e8b3246d99bf?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "512e7548-ed16-4883-af2f-834076502f3b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B68B627", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0fc744da-601f-003b-5431-4e5a6e000000", - "x-ms-client-request-id" : "512e7548-ed16-4883-af2f-834076502f3b", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - } ], - "variables" : [ "ba7215f80ba7215f8c4202373036097274d7542e8a3d", "ba7215f81ba7215f8c42216029a9d37d9c5dc42dc8e8", "ba7215f82ba7215f8c4288443a9a62d8e8b3246d99bf" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsExists.json deleted file mode 100644 index 1cf149591b2fc..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsExists.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/a1914c520a1914c527f38765732458772f9524bd2bb9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b5666acc-c809-4071-8231-a207b1528c59" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEDDA18", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0c62d88c-a01e-0004-0b31-4eedb2000000", - "x-ms-client-request-id" : "b5666acc-c809-4071-8231-a207b1528c59", - "Date" : "Tue, 12 Apr 2022 05:50:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/a1914c520a1914c527f38765732458772f9524bd2bb9/a1914c521a1914c527f30534690c123a49ecf490dabc?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0d5479c1-0519-4c30-8f09-b77216bb8610" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5C23CA", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "439b0c9f-901f-0048-3331-4e2aad000000", - "x-ms-client-request-id" : "0d5479c1-0519-4c30-8f09-b77216bb8610", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/a1914c520a1914c527f38765732458772f9524bd2bb9/a1914c522a1914c527f335803e6e6c1623a10482bbfd?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b5931ce0-393d-4826-be16-4e1f9f05276b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B68C7F6", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "9f0dce0b-801f-0031-3531-4e43e7000000", - "x-ms-client-request-id" : "b5931ce0-393d-4826-be16-4e1f9f05276b", - "Date" : "Tue, 12 Apr 2022 05:50:59 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/a1914c520a1914c527f38765732458772f9524bd2bb9/a1914c522a1914c527f335803e6e6c1623a10482bbfd", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "81c9a75a-b027-4671-9162-c674beea6f4a" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B68C7F6", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "0c62dc16-a01e-0004-4831-4eedb2000000", - "x-ms-client-request-id" : "81c9a75a-b027-4671-9162-c674beea6f4a", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "a1914c520a1914c527f38765732458772f9524bd2bb9", "a1914c521a1914c527f30534690c123a49ecf490dabc", "a1914c522a1914c527f335803e6e6c1623a10482bbfd" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsHeaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsHeaders[0].json deleted file mode 100644 index 315fc7be5171e..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsHeaders[0].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/0fb3fec000fb3fec099e979191a9d588c64fe4eea89f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3722c93a-9966-46f5-84bf-b93ea9c91751" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF52FF", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "2fe8c7a5-f01e-0035-3a31-4eb665000000", - "x-ms-client-request-id" : "3722c93a-9966-46f5-84bf-b93ea9c91751", - "Date" : "Tue, 12 Apr 2022 05:50:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/0fb3fec000fb3fec099e979191a9d588c64fe4eea89f/0fb3fec010fb3fec099e73920921580a60c3249a7ac9?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f1a885ee-51cf-4e78-8142-6e4652ec218f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5A7FC0", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e48a2e00-c01f-0050-2c31-4e0738000000", - "x-ms-client-request-id" : "f1a885ee-51cf-4e78-8142-6e4652ec218f", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/0fb3fec000fb3fec099e979191a9d588c64fe4eea89f/0fb3fec020fb3fec099e094404952563e6fbe4558ac2?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "950ee90d-71ff-40a3-b462-63bd46824a51" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B678322", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b77b605c-301f-004e-2f31-4eddd5000000", - "x-ms-client-request-id" : "950ee90d-71ff-40a3-b462-63bd46824a51", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/0fb3fec000fb3fec099e979191a9d588c64fe4eea89f/0fb3fec020fb3fec099e094404952563e6fbe4558ac2", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6d2f2293-e95b-4519-b00a-300c000e264c" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B678322", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "d27c7586-b01e-0039-3231-4e5894000000", - "x-ms-client-request-id" : "6d2f2293-e95b-4519-b00a-300c000e264c", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "0fb3fec000fb3fec099e979191a9d588c64fe4eea89f", "0fb3fec010fb3fec099e73920921580a60c3249a7ac9", "0fb3fec020fb3fec099e094404952563e6fbe4558ac2" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsHeaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsHeaders[1].json deleted file mode 100644 index 1798bb55b8ce3..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsHeaders[1].json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/16a8cf81016a8cf817fa45711f8838461c7c847f4acc?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cf7082ba-84e5-4970-8646-6d60d543a93f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF2200", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "89121a13-401e-002c-4331-4e9a0d000000", - "x-ms-client-request-id" : "cf7082ba-84e5-4970-8646-6d60d543a93f", - "Date" : "Tue, 12 Apr 2022 05:50:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/16a8cf81016a8cf817fa45711f8838461c7c847f4acc/16a8cf81116a8cf817fa4410080394f0b01df4a06a42?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ee7d600f-3ecc-4373-8f00-174112ef65c1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5DA352", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0685d5c4-001f-0009-4b31-4e02be000000", - "x-ms-client-request-id" : "ee7d600f-3ecc-4373-8f00-174112ef65c1", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/16a8cf81016a8cf817fa45711f8838461c7c847f4acc/16a8cf81216a8cf817fa346225cd36e6418ec414c9b9?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2a6b7993-b7fa-44dd-a837-171cffaff961" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B6903C3", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ba67156a-201f-003c-4831-4eaceb000000", - "x-ms-client-request-id" : "2a6b7993-b7fa-44dd-a837-171cffaff961", - "Date" : "Tue, 12 Apr 2022 05:50:59 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/16a8cf81016a8cf817fa45711f8838461c7c847f4acc/16a8cf81216a8cf817fa346225cd36e6418ec414c9b9", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "48574a77-a5b1-4c83-93b9-2d39c911d6bb" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "Content-Encoding" : "encoding", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B6903C3", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "a1744bd5-001e-004d-6731-4eded2000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "type", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "Cache-Control" : "control", - "Content-Disposition" : "disposition", - "Content-Language" : "language", - "x-ms-client-request-id" : "48574a77-a5b1-4c83-93b9-2d39c911d6bb" - }, - "Exception" : null - } ], - "variables" : [ "16a8cf81016a8cf817fa45711f8838461c7c847f4acc", "16a8cf81116a8cf817fa4410080394f0b01df4a06a42", "16a8cf81216a8cf817fa346225cd36e6418ec414c9b9" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMetadata[0].json deleted file mode 100644 index 21d8b9b6397e5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMetadata[0].json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/190198ed0190198edc8236002f63f973caad54536b63?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cca72e00-1811-4aa5-ba43-a3eaf781d0b4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF319D", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "4c31eaf8-401e-0063-0f31-4e5e15000000", - "x-ms-client-request-id" : "cca72e00-1811-4aa5-ba43-a3eaf781d0b4", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/190198ed0190198edc8236002f63f973caad54536b63/190198ed1190198edc8234336149d497c448b419aac9?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "dfc3bcb8-6679-445d-af41-c9d507026fe3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5AD6AE", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0fc744d9-601f-003b-5331-4e5a6e000000", - "x-ms-client-request-id" : "dfc3bcb8-6679-445d-af41-c9d507026fe3", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/190198ed0190198edc8236002f63f973caad54536b63/190198ed2190198edc82427555e19373ad1f64dea956?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ab426dcb-ebbf-4a39-bfd6-f0bbe8ea3a31" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B66FDCD", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "513b3c85-701f-002f-4231-4e990a000000", - "x-ms-client-request-id" : "ab426dcb-ebbf-4a39-bfd6-f0bbe8ea3a31", - "Date" : "Tue, 12 Apr 2022 05:50:59 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/190198ed0190198edc8236002f63f973caad54536b63/190198ed2190198edc82427555e19373ad1f64dea956", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "af0b4c41-45dc-47ba-88f3-5502d3d78b08" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B66FDCD", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "76ac93f3-901e-0048-5431-4e2aad000000", - "x-ms-client-request-id" : "af0b4c41-45dc-47ba-88f3-5502d3d78b08", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "190198ed0190198edc8236002f63f973caad54536b63", "190198ed1190198edc8234336149d497c448b419aac9", "190198ed2190198edc82427555e19373ad1f64dea956" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMetadata[1].json deleted file mode 100644 index 6ec9bbd73e27f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMetadata[1].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/001aa9ac0001aa9ac22026649011aab5f42b64ce1ae5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4a95df2a-a6c0-405e-8a65-8ba87b1fc02c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF1C0C", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6c687ea6-701e-000d-5b31-4ef73c000000", - "x-ms-client-request-id" : "4a95df2a-a6c0-405e-8a65-8ba87b1fc02c", - "Date" : "Tue, 12 Apr 2022 05:50:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/001aa9ac0001aa9ac22026649011aab5f42b64ce1ae5/001aa9ac1001aa9ac22098948a82c25b9c574498d90f?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "df18d774-58ca-4f9a-b24e-ec5cb3898ec8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5B5D3A", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "513b3c7d-701f-002f-3a31-4e990a000000", - "x-ms-client-request-id" : "df18d774-58ca-4f9a-b24e-ec5cb3898ec8", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/001aa9ac0001aa9ac22026649011aab5f42b64ce1ae5/001aa9ac2001aa9ac22087848968f1803af0a4b158e5?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c3afe791-f7cc-4fdc-9f0a-108aa3c83e75" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B678E4C", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "439b0ca3-901f-0048-3731-4e2aad000000", - "x-ms-client-request-id" : "c3afe791-f7cc-4fdc-9f0a-108aa3c83e75", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/001aa9ac0001aa9ac22026649011aab5f42b64ce1ae5/001aa9ac2001aa9ac22087848968f1803af0a4b158e5", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1b2c9fb6-fc3e-4542-955c-50692f37af97" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B678E4C", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "4c31ec1e-401e-0063-0b31-4e5e15000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:59 GMT", - "x-ms-meta-foo" : "bar", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "1b2c9fb6-fc3e-4542-955c-50692f37af97" - }, - "Exception" : null - } ], - "variables" : [ "001aa9ac0001aa9ac22026649011aab5f42b64ce1ae5", "001aa9ac1001aa9ac22098948a82c25b9c574498d90f", "001aa9ac2001aa9ac22087848968f1803af0a4b158e5" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMin.json deleted file mode 100644 index 4dbac667e3737..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsMin.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/b8cba0060b8cba00632e17417b0fed92bd9f344e0867?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "89580a6f-9932-43e6-895d-7d93f3acca65" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF356C", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "76ac9231-901e-0048-5731-4e2aad000000", - "x-ms-client-request-id" : "89580a6f-9932-43e6-895d-7d93f3acca65", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/b8cba0060b8cba00632e17417b0fed92bd9f344e0867/b8cba0061b8cba00632e891828d2771ce04e9421bb35?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fa078a5a-d39d-45f2-8e2f-0fa7448e1c35" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5B0EFA", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a3a1c3be-001f-0002-0231-4e1aca000000", - "x-ms-client-request-id" : "fa078a5a-d39d-45f2-8e2f-0fa7448e1c35", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/b8cba0060b8cba00632e17417b0fed92bd9f344e0867/b8cba0062b8cba00632e59348c87e4336d24149a1af7?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c311b00f-dd01-40b9-8531-346a69fc9691" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B68CBF1", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e48a2e02-c01f-0050-2d31-4e0738000000", - "x-ms-client-request-id" : "c311b00f-dd01-40b9-8531-346a69fc9691", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/b8cba0060b8cba00632e17417b0fed92bd9f344e0867/b8cba0062b8cba00632e59348c87e4336d24149a1af7", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8afcfba0-9c92-4e17-84cc-ffd39194aab7" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B68CBF1", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "89121ccb-401e-002c-4f31-4e9a0d000000", - "x-ms-client-request-id" : "8afcfba0-9c92-4e17-84cc-ffd39194aab7", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "b8cba0060b8cba00632e17417b0fed92bd9f344e0867", "b8cba0061b8cba00632e891828d2771ce04e9421bb35", "b8cba0062b8cba00632e59348c87e4336d24149a1af7" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsOverwrite.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsOverwrite.json deleted file mode 100644 index 05033dab05880..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsOverwrite.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/097465f40097465f4b066620695adc4e5f3b74825a69?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a6c51d0a-7292-483e-aae2-2217f229aa04" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF315B", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8cb03b2f-501e-0011-4d31-4e2f2b000000", - "x-ms-client-request-id" : "a6c51d0a-7292-483e-aae2-2217f229aa04", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/097465f40097465f4b066620695adc4e5f3b74825a69/097465f41097465f4b0680224eaf8244f685e4e1fbdc?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b0738b63-9f65-46f9-9975-dd6922736782" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B59861E", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "9f0dce0a-801f-0031-3431-4e43e7000000", - "x-ms-client-request-id" : "b0738b63-9f65-46f9-9975-dd6922736782", - "Date" : "Tue, 12 Apr 2022 05:50:59 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/097465f40097465f4b066620695adc4e5f3b74825a69/097465f42097465f4b06165302ac6d37a86594dfc94e?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "44a04e86-52c3-4ea4-83d3-5589e599997e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B674B66", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a3a1c3c2-001f-0002-0631-4e1aca000000", - "x-ms-client-request-id" : "44a04e86-52c3-4ea4-83d3-5589e599997e", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/097465f40097465f4b066620695adc4e5f3b74825a69/097465f42097465f4b06165302ac6d37a86594dfc94e?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f5ee02c4-94d7-4c03-a06e-e3610ec1d684" - }, - "Response" : { - "content-length" : "168", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "513b3c8a-701f-002f-4731-4e990a000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:513b3c8a-701f-002f-4731-4e990a000000\\nTime:2022-04-12T05:50:59.2406176Z\"}}", - "x-ms-client-request-id" : "f5ee02c4-94d7-4c03-a06e-e3610ec1d684", - "Date" : "Tue, 12 Apr 2022 05:50:59 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/097465f40097465f4b066620695adc4e5f3b74825a69/097465f42097465f4b06165302ac6d37a86594dfc94e", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f3e64c2a-93c8-493b-a835-8377b23355ad" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:50:59 GMT", - "eTag" : "0x8DA1C486B674B66", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "a1744c38-001e-004d-4131-4eded2000000", - "x-ms-client-request-id" : "f3e64c2a-93c8-493b-a835-8377b23355ad", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "097465f40097465f4b066620695adc4e5f3b74825a69", "097465f41097465f4b0680224eaf8244f685e4e1fbdc", "097465f42097465f4b06165302ac6d37a86594dfc94e" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsPermissionsAndUmask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsPermissionsAndUmask.json deleted file mode 100644 index c0f7245794f1c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestCreateIfNotExistsPermissionsAndUmask.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/55f0f70e055f0f70e7f8517561cb73a9140b94d15952?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fea983ed-8671-413a-a2d2-2d19a630407a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486AEF030F", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:58 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a1744986-001e-004d-7831-4eded2000000", - "x-ms-client-request-id" : "fea983ed-8671-413a-a2d2-2d19a630407a", - "Date" : "Tue, 12 Apr 2022 05:50:57 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/55f0f70e055f0f70e7f8517561cb73a9140b94d15952/55f0f70e155f0f70e7f88132900a17d7872f74518862?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d4d42292-aeac-4396-9196-865f078dc7e3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B5D64A5", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "ba671569-201f-003c-4731-4eaceb000000", - "x-ms-client-request-id" : "d4d42292-aeac-4396-9196-865f078dc7e3", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/55f0f70e055f0f70e7f8517561cb73a9140b94d15952/55f0f70e255f0f70e7f8027730c96f904933e4ee78cf?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "463fc494-f526-4c48-a93c-fa31accfd7ca" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C486B6A54DB", - "Last-Modified" : "Tue, 12 Apr 2022 05:50:59 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0685d5c6-001f-0009-4d31-4e02be000000", - "x-ms-client-request-id" : "463fc494-f526-4c48-a93c-fa31accfd7ca", - "Date" : "Tue, 12 Apr 2022 05:50:58 GMT" - }, - "Exception" : null - } ], - "variables" : [ "55f0f70e055f0f70e7f8517561cb73a9140b94d15952", "55f0f70e155f0f70e7f88132900a17d7872f74518862", "55f0f70e255f0f70e7f8027730c96f904933e4ee78cf" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExists.json deleted file mode 100644 index cf247959f03a8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExists.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/8785d04f08785d04fce2691208fcba242280647a3884?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cae33221-5200-4725-a613-040586ea86f9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A8C30C", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3333d8b2-f01e-0060-5414-51313f000000", - "x-ms-client-request-id" : "cae33221-5200-4725-a613-040586ea86f9", - "Date" : "Fri, 15 Apr 2022 22:05:48 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/8785d04f08785d04fce2691208fcba242280647a3884/8785d04f18785d04fce267524a8e82c104c0343bc91a?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "87683063-9551-46da-a074-74fb3e45838d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1C7FF0", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "11337cbe-201f-002e-7614-511fb7000000", - "x-ms-client-request-id" : "87683063-9551-46da-a074-74fb3e45838d", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/8785d04f08785d04fce2691208fcba242280647a3884/8785d04f18785d04fce267524a8e82c104c0343bc91a?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f7ebae68-e379-491a-ae6d-f00d37183961" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339505924385", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "73dc39a3-d01f-0058-0b14-5195ff000000", - "x-ms-client-request-id" : "f7ebae68-e379-491a-ae6d-f00d37183961", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "8785d04f08785d04fce2691208fcba242280647a3884", "8785d04f18785d04fce267524a8e82c104c0343bc91a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[0].json deleted file mode 100644 index 58ddfdfa412aa..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[0].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/fd8b86cb0fd8b86cb1457366741fa883cd8504593bd4?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "23ca4eeb-3069-4ee1-af00-dad1b6e8e8c2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A8B268", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c56ba459-b01e-005e-4a14-51a640000000", - "x-ms-client-request-id" : "23ca4eeb-3069-4ee1-af00-dad1b6e8e8c2", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/fd8b86cb0fd8b86cb1457366741fa883cd8504593bd4/fd8b86cb1fd8b86cb1459755574a5d493ad354a57bb8?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f7244b50-bba0-486a-97e4-55a8638049a7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1CE187", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3930c151-a01f-0052-4414-513148000000", - "x-ms-client-request-id" : "f7244b50-bba0-486a-97e4-55a8638049a7", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/fd8b86cb0fd8b86cb1457366741fa883cd8504593bd4/fd8b86cb1fd8b86cb1459755574a5d493ad354a57bb8?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a4ede8f7-966e-4c76-84ea-d3dfbf9887b4" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "5df88662-001f-0090-6e14-5177ce000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:5df88662-001f-0090-6e14-5177ce000000\\nTime:2022-04-15T22:05:50.6865249Z\"}}", - "x-ms-client-request-id" : "a4ede8f7-966e-4c76-84ea-d3dfbf9887b4", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "fd8b86cb0fd8b86cb1457366741fa883cd8504593bd4", "fd8b86cb1fd8b86cb1459755574a5d493ad354a57bb8" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[1].json deleted file mode 100644 index 5562d203c6bd7..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/e490b78a0e490b78ab2c372604964851441ca4b8d833?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5e87d550-b426-4997-bd23-f0aef2619d1f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A7CB57", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8306ae04-901e-0059-0214-51ca23000000", - "x-ms-client-request-id" : "5e87d550-b426-4997-bd23-f0aef2619d1f", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/e490b78a0e490b78ab2c372604964851441ca4b8d833/e490b78a1e490b78ab2c67084e1aaff328a044b11a05?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "152e060b-45d1-49b7-933c-f312573ac1c2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1945A1", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "57adf260-901f-003b-3b14-510804000000", - "x-ms-client-request-id" : "152e060b-45d1-49b7-933c-f312573ac1c2", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/e490b78a0e490b78ab2c372604964851441ca4b8d833/e490b78a1e490b78ab2c67084e1aaff328a044b11a05?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6fa2ba2e-bb7f-46e8-af20-e0d6ec83b432" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "0a03a91a-a01f-001f-1014-51fea4000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:0a03a91a-a01f-001f-1014-51fea4000000\\nTime:2022-04-15T22:05:50.7248198Z\"}}", - "x-ms-client-request-id" : "6fa2ba2e-bb7f-46e8-af20-e0d6ec83b432", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "e490b78a0e490b78ab2c372604964851441ca4b8d833", "e490b78a1e490b78ab2c67084e1aaff328a044b11a05" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[2].json deleted file mode 100644 index b774e8051ecdf..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[2].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/cfbde4490cfbde449a4b49636a932fc1d654c4b14923?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "936e3c86-e507-4926-9646-d49273bd1f71" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A9E625", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "fc44d753-f01e-0094-1214-51fac9000000", - "x-ms-client-request-id" : "936e3c86-e507-4926-9646-d49273bd1f71", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/cfbde4490cfbde449a4b49636a932fc1d654c4b14923/cfbde4491cfbde449a4b4227281efea1ea486489bac6?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "546169f7-db13-4d7c-87c8-1b98866e5462" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1935DB", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "28694012-801f-0037-1714-519f0c000000", - "x-ms-client-request-id" : "546169f7-db13-4d7c-87c8-1b98866e5462", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/cfbde4490cfbde449a4b49636a932fc1d654c4b14923/cfbde4491cfbde449a4b4227281efea1ea486489bac6?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7bad34ee-80e7-428c-adb5-71c2cbdb60fe" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "73dc39a2-d01f-0058-0a14-5195ff000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:73dc39a2-d01f-0058-0a14-5195ff000000\\nTime:2022-04-15T22:05:50.4786382Z\"}}", - "x-ms-client-request-id" : "7bad34ee-80e7-428c-adb5-71c2cbdb60fe", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "cfbde4490cfbde449a4b49636a932fc1d654c4b14923", "cfbde4491cfbde449a4b4227281efea1ea486489bac6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[3].json deleted file mode 100644 index 8e5b52771a213..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[3].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/d6a6d5080d6a6d508392183938acfb0246b2f4d098f1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2037c723-2d88-40ea-81c0-eafb340a5a49" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A9D40D", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9d58da7d-001e-005b-0214-51749b000000", - "x-ms-client-request-id" : "2037c723-2d88-40ea-81c0-eafb340a5a49", - "Date" : "Fri, 15 Apr 2022 22:05:48 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/d6a6d5080d6a6d508392183938acfb0246b2f4d098f1/d6a6d5081d6a6d5083921169901ee6ff4faad4abd9a5?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cd638786-1fc9-43e7-afef-a6be7b225084" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1A658B", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5df8865f-001f-0090-6d14-5177ce000000", - "x-ms-client-request-id" : "cd638786-1fc9-43e7-afef-a6be7b225084", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/d6a6d5080d6a6d508392183938acfb0246b2f4d098f1/d6a6d5081d6a6d5083921169901ee6ff4faad4abd9a5", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "81ca3f79-321d-4a57-8a40-4bded8b83339" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-resource-type,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,x-ms-server-encrypted,x-ms-access-tier,x-ms-access-tier-inferred,Accept-Ranges,x-ms-owner,x-ms-group,x-ms-permissions,Content-Length,Date,Transfer-Encoding", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 15 Apr 2022 22:05:50 GMT", - "eTag" : "0x8DA1F2C1A1A658B", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "e45a3534-f01e-004f-7f14-513cf4000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "81ca3f79-321d-4a57-8a40-4bded8b83339" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/d6a6d5080d6a6d508392183938acfb0246b2f4d098f1/d6a6d5081d6a6d5083921169901ee6ff4faad4abd9a5?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b07856a2-646c-4225-88ea-9a86534e9df5" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "3930c155-a01f-0052-4614-513148000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:3930c155-a01f-0052-4614-513148000000\\nTime:2022-04-15T22:05:50.6656210Z\"}}", - "x-ms-client-request-id" : "b07856a2-646c-4225-88ea-9a86534e9df5", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "d6a6d5080d6a6d508392183938acfb0246b2f4d098f1", "d6a6d5081d6a6d5083921169901ee6ff4faad4abd9a5" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[4].json deleted file mode 100644 index faf459bac3b7b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsACFail[4].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/99e743cf099e743cfb8c95827c75e86914af343d2939?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d1eae374-4aa0-456a-97e4-5f336c5cc70e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A6C57E", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c7061cd1-001e-0039-5014-51b6bc000000", - "x-ms-client-request-id" : "d1eae374-4aa0-456a-97e4-5f336c5cc70e", - "Date" : "Fri, 15 Apr 2022 22:05:48 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/99e743cf099e743cfb8c95827c75e86914af343d2939/99e743cf199e743cfb8c481714c32e749cb6f4549b57?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e3596f7f-4287-4cd3-8b4f-08a60866f172" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A69AD4A", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e3d4064d-401f-0065-3714-51e3e4000000", - "x-ms-client-request-id" : "e3596f7f-4287-4cd3-8b4f-08a60866f172", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/99e743cf099e743cfb8c95827c75e86914af343d2939/99e743cf199e743cfb8c481714c32e749cb6f4549b57?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "23b4a1d4-66f9-4b71-8826-ae3b85b2d15b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "702dbb51-05fe-4d71-9cfe-821d790763d3", - "eTag" : "0x8DA1F2C1A69AD4A", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5ace45f5-f01e-003d-3314-513bbb000000", - "x-ms-client-request-id" : "23b4a1d4-66f9-4b71-8826-ae3b85b2d15b", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/99e743cf099e743cfb8c95827c75e86914af343d2939/99e743cf199e743cfb8c481714c32e749cb6f4549b57?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3e7b9159-a6b2-4e18-ae01-294769d671bc" - }, - "Response" : { - "content-length" : "199", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseIdMismatch", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "e3d40655-401f-0065-3b14-51e3e4000000", - "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:e3d40655-401f-0065-3b14-51e3e4000000\\nTime:2022-04-15T22:05:51.5101325Z\"}}", - "x-ms-client-request-id" : "3e7b9159-a6b2-4e18-ae01-294769d671bc", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "99e743cf099e743cfb8c95827c75e86914af343d2939", "99e743cf199e743cfb8c481714c32e749cb6f4549b57" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[0].json deleted file mode 100644 index 6fd90d67e2681..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[0].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/efae0a3a0efae0a3a907581083814c2eadcfb41db97b?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2eb47e05-3354-41ad-8457-ed9c047cd5a4" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A9553C", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "4e218b67-901e-0092-3e14-51c976000000", - "x-ms-client-request-id" : "2eb47e05-3354-41ad-8457-ed9c047cd5a4", - "Date" : "Fri, 15 Apr 2022 22:05:48 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/efae0a3a0efae0a3a907581083814c2eadcfb41db97b/efae0a3a1efae0a3a9072349696d5e955499f4d9f9a1?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "29d11b93-4d85-4347-9742-cb90161cf06d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A19C168", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "20a29322-f01f-0084-4114-513fa1000000", - "x-ms-client-request-id" : "29d11b93-4d85-4347-9742-cb90161cf06d", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/efae0a3a0efae0a3a907581083814c2eadcfb41db97b/efae0a3a1efae0a3a9072349696d5e955499f4d9f9a1?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e7171970-c547-4da7-9037-11628defddfb" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504900451", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "20a29329-f01f-0084-4614-513fa1000000", - "x-ms-client-request-id" : "e7171970-c547-4da7-9037-11628defddfb", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - } ], - "variables" : [ "efae0a3a0efae0a3a907581083814c2eadcfb41db97b", "efae0a3a1efae0a3a9072349696d5e955499f4d9f9a1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[1].json deleted file mode 100644 index e68eca1b8d73f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/f6b53b7b0f6b53b7be4072081abca662850fa491e948?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "08519872-03ee-4e4c-8255-fe5be819dc56" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19AA7148", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "bbe2224b-c01e-0026-2c14-5105b8000000", - "x-ms-client-request-id" : "08519872-03ee-4e4c-8255-fe5be819dc56", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/f6b53b7b0f6b53b7be4072081abca662850fa491e948/f6b53b7b1f6b53b7be407750173342a10b95f4e6b9f3?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "00b7c767-2bd9-4a33-a0ee-20078f186580" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1C5B0D", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4ba67772-301f-007f-0e14-51823b000000", - "x-ms-client-request-id" : "00b7c767-2bd9-4a33-a0ee-20078f186580", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/f6b53b7b0f6b53b7be4072081abca662850fa491e948/f6b53b7b1f6b53b7be407750173342a10b95f4e6b9f3?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a0d4cf70-9c68-4fc2-9825-5ac83f07bbb5" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504927438", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "3930c154-a01f-0052-4514-513148000000", - "x-ms-client-request-id" : "a0d4cf70-9c68-4fc2-9825-5ac83f07bbb5", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "f6b53b7b0f6b53b7be4072081abca662850fa491e948", "f6b53b7b1f6b53b7be407750173342a10b95f4e6b9f3" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[2].json deleted file mode 100644 index f7aa4c981ac78..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[2].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/dd9868b80dd9868b81d68776592f488c5d96546d4bb7?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0f6a017c-2fac-41c8-9199-d2bb98d932c0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A84BB3", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0858467a-e01e-0043-2714-51abfc000000", - "x-ms-client-request-id" : "0f6a017c-2fac-41c8-9199-d2bb98d932c0", - "Date" : "Fri, 15 Apr 2022 22:05:48 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/dd9868b80dd9868b81d68776592f488c5d96546d4bb7/dd9868b81dd9868b81d655665608362de2033469d90d?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "178d992a-b508-4d36-9838-733ddb4707f6" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1D4C63", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0a03a917-a01f-001f-0f14-51fea4000000", - "x-ms-client-request-id" : "178d992a-b508-4d36-9838-733ddb4707f6", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/dd9868b80dd9868b81d68776592f488c5d96546d4bb7/dd9868b81dd9868b81d655665608362de2033469d90d?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9fa78a78-aa24-41f9-9915-d61a8b448f51" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504957278", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "28694015-801f-0037-1814-519f0c000000", - "x-ms-client-request-id" : "9fa78a78-aa24-41f9-9915-d61a8b448f51", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - } ], - "variables" : [ "dd9868b80dd9868b81d68776592f488c5d96546d4bb7", "dd9868b81dd9868b81d655665608362de2033469d90d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[3].json deleted file mode 100644 index de40b9d92d391..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[3].json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/c48359f90c48359f939401567ecefecfb2c3a426b8b5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8830eb6d-2caa-4da0-9e03-cf4bbbe883c9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A8C178", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e45a337e-f01e-004f-6014-513cf4000000", - "x-ms-client-request-id" : "8830eb6d-2caa-4da0-9e03-cf4bbbe883c9", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/c48359f90c48359f939401567ecefecfb2c3a426b8b5/c48359f91c48359f9394537968bdbd39878c84c78971?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7f70f24d-890b-4f3e-b9e0-10ad58d83820" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1B2F88", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5ec5136b-e01f-001e-1114-51a178000000", - "x-ms-client-request-id" : "7f70f24d-890b-4f3e-b9e0-10ad58d83820", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/c48359f90c48359f939401567ecefecfb2c3a426b8b5/c48359f91c48359f9394537968bdbd39878c84c78971", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "52b8172a-1f1a-4bc8-b0a1-dc7d5b36eed8" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-resource-type,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,x-ms-server-encrypted,x-ms-access-tier,x-ms-access-tier-inferred,Accept-Ranges,x-ms-owner,x-ms-group,x-ms-permissions,Content-Length,Date,Transfer-Encoding", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 15 Apr 2022 22:05:50 GMT", - "eTag" : "0x8DA1F2C1A1B2F88", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "9d58dc47-001e-005b-3214-51749b000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "52b8172a-1f1a-4bc8-b0a1-dc7d5b36eed8" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/c48359f90c48359f939401567ecefecfb2c3a426b8b5/c48359f91c48359f9394537968bdbd39878c84c78971?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "63c47dc1-731f-45a9-ad7b-78c3a832c759" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339506413422", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "4ba67776-301f-007f-1014-51823b000000", - "x-ms-client-request-id" : "63c47dc1-731f-45a9-ad7b-78c3a832c759", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "c48359f90c48359f939401567ecefecfb2c3a426b8b5", "c48359f91c48359f9394537968bdbd39878c84c78971" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[4].json deleted file mode 100644 index cad4d20d204a1..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[4].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/8bc2cf3e08bc2cf3e01297966b033d105a64e4b90bd4?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e6a865b7-6128-4a5e-aa4a-628995705e9b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A8D95B", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3d30215e-601e-005d-1114-514724000000", - "x-ms-client-request-id" : "e6a865b7-6128-4a5e-aa4a-628995705e9b", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/8bc2cf3e08bc2cf3e01297966b033d105a64e4b90bd4/8bc2cf3e18bc2cf3e01245628dbbb317a9e674aeb940?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "bb8646bb-cc4e-41de-8ab9-3ae310eb9610" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A196796", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c5a22ed3-701f-0041-7714-511544000000", - "x-ms-client-request-id" : "bb8646bb-cc4e-41de-8ab9-3ae310eb9610", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/8bc2cf3e08bc2cf3e01297966b033d105a64e4b90bd4/8bc2cf3e18bc2cf3e01245628dbbb317a9e674aeb940?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3216e6e8-f4a3-4738-a005-99b16aa2a8b5" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504939885", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "57adf263-901f-003b-3c14-510804000000", - "x-ms-client-request-id" : "3216e6e8-f4a3-4738-a005-99b16aa2a8b5", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - } ], - "variables" : [ "8bc2cf3e08bc2cf3e01297966b033d105a64e4b90bd4", "8bc2cf3e18bc2cf3e01245628dbbb317a9e674aeb940" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[5].json deleted file mode 100644 index ff53da468ddbf..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsAC[5].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/92d9fe7f092d9fe7f39e815539d6ba43210174254901?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ff2cddfc-75e3-4f92-b7a9-c4bf3e31d995" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A830ED", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "328c289f-001e-0090-6f14-5177ce000000", - "x-ms-client-request-id" : "ff2cddfc-75e3-4f92-b7a9-c4bf3e31d995", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/92d9fe7f092d9fe7f39e815539d6ba43210174254901/92d9fe7f192d9fe7f39e23446de0fe3b266784c10bd1?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3fb6afc4-dd36-405e-8d60-d5554d62b2ed" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A190C6C", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b0a0aed1-001f-0074-7c14-517950000000", - "x-ms-client-request-id" : "3fb6afc4-dd36-405e-8d60-d5554d62b2ed", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/92d9fe7f092d9fe7f39e815539d6ba43210174254901/92d9fe7f192d9fe7f39e23446de0fe3b266784c10bd1?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "937f520d-958a-4b2f-81c0-165bde91d018" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "f34ba084-2b02-4707-aa33-8cdc8a22eec7", - "eTag" : "0x8DA1F2C1A190C6C", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9d58dc8d-001e-005b-7414-51749b000000", - "x-ms-client-request-id" : "937f520d-958a-4b2f-81c0-165bde91d018", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/92d9fe7f092d9fe7f39e815539d6ba43210174254901/92d9fe7f192d9fe7f39e23446de0fe3b266784c10bd1?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3a892367-d16b-4289-aabf-bed467f10d21" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339507680186", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "73dc39a4-d01f-0058-0c14-5195ff000000", - "x-ms-client-request-id" : "3a892367-d16b-4289-aabf-bed467f10d21", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "92d9fe7f092d9fe7f39e815539d6ba43210174254901", "92d9fe7f192d9fe7f39e23446de0fe3b266784c10bd1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsFileDoesNotExistAnymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsFileDoesNotExistAnymore.json deleted file mode 100644 index 1077e41624728..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsFileDoesNotExistAnymore.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a10113150a10113156fc584521efec3219e5541d7a8e?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "02539ab6-26ec-409d-989a-affab2ff0cd1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A7D5AE", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "be871440-901e-0014-1a14-5105cf000000", - "x-ms-client-request-id" : "02539ab6-26ec-409d-989a-affab2ff0cd1", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a10113150a10113156fc584521efec3219e5541d7a8e/a10113151a10113156fc87169d177a006ec2b464b907?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e8ef560b-5b7e-4b1f-8b45-2c0d8a27595d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1930FE", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d02446d2-f01f-0012-1414-513670000000", - "x-ms-client-request-id" : "e8ef560b-5b7e-4b1f-8b45-2c0d8a27595d", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a10113150a10113156fc584521efec3219e5541d7a8e/a10113151a10113156fc87169d177a006ec2b464b907?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "36e37ded-1150-4720-8692-0f7c8dce99b5" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504945096", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "4ba67775-301f-007f-0f14-51823b000000", - "x-ms-client-request-id" : "36e37ded-1150-4720-8692-0f7c8dce99b5", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/a10113150a10113156fc584521efec3219e5541d7a8e/a10113151a10113156fc87169d177a006ec2b464b907", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8f74bce8-2e50-41e6-8c09-2d25352b2d9d" - }, - "Response" : { - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "e45a3584-f01e-004f-4d14-513cf4000000", - "x-ms-client-request-id" : "8f74bce8-2e50-41e6-8c09-2d25352b2d9d", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "a10113150a10113156fc584521efec3219e5541d7a8e", "a10113151a10113156fc87169d177a006ec2b464b907" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsFileThatDoesNotExist.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsFileThatDoesNotExist.json deleted file mode 100644 index 81af0d8b43952..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsFileThatDoesNotExist.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/255c7c990255c7c9930e589583943a78a18054549923?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f620a0c4-4c8d-418b-b1a5-3e07226a5cda" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A7B4A2", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5ace4476-f01e-003d-4714-513bbb000000", - "x-ms-client-request-id" : "f620a0c4-4c8d-418b-b1a5-3e07226a5cda", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/255c7c990255c7c9930e589583943a78a18054549923/255c7c991255c7c9930e215854f4802f82367457f9ae?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "52cab120-91fb-4241-aef4-bdbb9b133061" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A18F9A2", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5cf9e7c1-401f-004a-7314-51ee2f000000", - "x-ms-client-request-id" : "52cab120-91fb-4241-aef4-bdbb9b133061", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/255c7c990255c7c9930e589583943a78a18054549923/255c7c991255c7c9930e215854f4802f82367457f9ae?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5654420a-0f96-4ff3-a2bf-b6d8b1fc7e5a" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504959789", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5ec5136f-e01f-001e-1214-51a178000000", - "x-ms-client-request-id" : "5654420a-0f96-4ff3-a2bf-b6d8b1fc7e5a", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/255c7c990255c7c9930e589583943a78a18054549923/255c7c991255c7c9930e215854f4802f82367457f9ae?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "561c2ca6-05a2-46fb-9c24-8dbe38d1ec53" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "11337cc2-201f-002e-7814-511fb7000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:11337cc2-201f-002e-7814-511fb7000000\\nTime:2022-04-15T22:05:50.7790099Z\"}}", - "x-ms-client-request-id" : "561c2ca6-05a2-46fb-9c24-8dbe38d1ec53", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "255c7c990255c7c9930e589583943a78a18054549923", "255c7c991255c7c9930e215854f4802f82367457f9ae" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsMin.json deleted file mode 100644 index ecd28e171ccf8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestDeleteIfExistsMin.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/fe1a23fa0fe1a23fa5e1757869ed65203887a48748fa?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "602b8b4b-4155-470e-8f74-01bb844db229" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C19A8E9B6", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:49 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ec67a00b-e01e-0031-3014-51acb3000000", - "x-ms-client-request-id" : "602b8b4b-4155-470e-8f74-01bb844db229", - "Date" : "Fri, 15 Apr 2022 22:05:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/fe1a23fa0fe1a23fa5e1757869ed65203887a48748fa/fe1a23fa1fe1a23fa5e1124721f337fcb98514bcca34?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ee97633f-f926-4315-baa9-8f0712021ff1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2C1A1D3079", - "Last-Modified" : "Fri, 15 Apr 2022 22:05:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "73dc399f-d01f-0058-0914-5195ff000000", - "x-ms-client-request-id" : "ee97633f-f926-4315-baa9-8f0712021ff1", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/fe1a23fa0fe1a23fa5e1757869ed65203887a48748fa/fe1a23fa1fe1a23fa5e1124721f337fcb98514bcca34?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "800d630a-d2e9-4140-9235-e7a73dbb0caf" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945339504951160", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "11337cc1-201f-002e-7714-511fb7000000", - "x-ms-client-request-id" : "800d630a-d2e9-4140-9235-e7a73dbb0caf", - "Date" : "Fri, 15 Apr 2022 22:05:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "fe1a23fa0fe1a23fa5e1757869ed65203887a48748fa", "fe1a23fa1fe1a23fa5e1124721f337fcb98514bcca34" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestQueryInputCsvOutputArrow.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestQueryInputCsvOutputArrow.json index de361112238d9..ff63a60aa936e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestQueryInputCsvOutputArrow.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestQueryInputCsvOutputArrow.json @@ -1,170 +1,212 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4?restype=container", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.2 azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "e79295e2-7f2a-496a-aa29-5b3742987451" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "eb5e071c-8fdf-492e-9da1-5d46c93f929b" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-06-08", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA33766F56A1F5", - "Last-Modified" : "Wed, 11 May 2022 17:48:19 GMT", + "eTag" : "0x8D90FDE9D39E411", + "Last-Modified" : "Wed, 05 May 2021 15:58:24 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "2b7ac773-801e-002d-205f-65ccc1000000", - "x-ms-client-request-id" : "e79295e2-7f2a-496a-aa29-5b3742987451", - "Date" : "Wed, 11 May 2022 17:48:18 GMT" + "x-ms-request-id" : "775eae28-201e-0011-68c7-41d714000000", + "x-ms-client-request-id" : "eb5e071c-8fdf-492e-9da1-5d46c93f929b", + "Date" : "Wed, 05 May 2021 15:58:24 GMT" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852/2da8c0cb12da8c0cb78151497049e096bbfcf401aa91?resource=file", + "Uri" : "https://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4/2da8c0cb12da8c0cb5ea09964f946301728284671b74?resource=file", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "2bcaf1bc-24eb-462f-97fb-f769a34ee19a" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "9b0a78e7-b9a4-498c-9590-031c314bf3a4" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-06-08", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA33766FAE3B1B", - "Last-Modified" : "Wed, 11 May 2022 17:48:19 GMT", + "eTag" : "0x8D90FDE9D49DDB8", + "Last-Modified" : "Wed, 05 May 2021 15:58:24 GMT", "retry-after" : "0", "StatusCode" : "201", "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0b312437-701f-0064-055f-658e2a000000", - "x-ms-client-request-id" : "2bcaf1bc-24eb-462f-97fb-f769a34ee19a", - "Date" : "Wed, 11 May 2022 17:48:19 GMT" + "x-ms-request-id" : "8371c02a-801f-0027-19c7-415a64000000", + "x-ms-client-request-id" : "9b0a78e7-b9a4-498c-9590-031c314bf3a4", + "Date" : "Wed, 05 May 2021 15:58:24 GMT" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852/2da8c0cb12da8c0cb78151497049e096bbfcf401aa91?resource=file", + "Uri" : "https://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4/2da8c0cb12da8c0cb5ea09964f946301728284671b74?resource=file", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "dadeac4b-33b9-4c3f-b8d9-d19bba123d2e" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "d29cea74-de3e-4b5b-b483-f89d5ecee71e" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-06-08", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA33766FC8197A", - "Last-Modified" : "Wed, 11 May 2022 17:48:20 GMT", + "eTag" : "0x8D90FDE9D592AAA", + "Last-Modified" : "Wed, 05 May 2021 15:58:24 GMT", "retry-after" : "0", "StatusCode" : "201", "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0b31243b-701f-0064-095f-658e2a000000", - "x-ms-client-request-id" : "dadeac4b-33b9-4c3f-b8d9-d19bba123d2e", - "Date" : "Wed, 11 May 2022 17:48:20 GMT" + "x-ms-request-id" : "ca433fd4-801f-006a-5fc7-419588000000", + "x-ms-client-request-id" : "d29cea74-de3e-4b5b-b483-f89d5ecee71e", + "Date" : "Wed, 05 May 2021 15:58:24 GMT" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "http://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852/2da8c0cb12da8c0cb78151497049e096bbfcf401aa91?action=append&position=0", + "Uri" : "https://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4/2da8c0cb12da8c0cb5ea09964f946301728284671b74?action=append&position=0", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "67cd9ed3-ab58-46b3-8283-46a2d7ff9fe0", + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "2c7e0847-8d32-453f-9dc1-6b566a836563", "Content-Type" : "application/octet-stream" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-06-08", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "202", "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0b312442-701f-0064-105f-658e2a000000", - "x-ms-client-request-id" : "67cd9ed3-ab58-46b3-8283-46a2d7ff9fe0", - "Date" : "Wed, 11 May 2022 17:48:20 GMT" + "x-ms-request-id" : "7e43bfe6-f01f-005f-67c7-41f99c000000", + "x-ms-client-request-id" : "2c7e0847-8d32-453f-9dc1-6b566a836563", + "Date" : "Wed, 05 May 2021 15:58:24 GMT" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "http://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852/2da8c0cb12da8c0cb78151497049e096bbfcf401aa91?action=flush&position=1024&retainUncommittedData=false&close=false", + "Uri" : "https://REDACTED.dfs.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4/2da8c0cb12da8c0cb5ea09964f946301728284671b74?action=flush&position=1024&retainUncommittedData=false&close=false", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "ecf46190-a321-4f1a-a9c9-4164a16e33d2" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "89fb8ccc-674c-47f1-a0b7-996d9f8b79a9" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-06-08", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA33766FF763D1", - "Last-Modified" : "Wed, 11 May 2022 17:48:20 GMT", + "eTag" : "0x8D90FDE9D745DD0", + "Last-Modified" : "Wed, 05 May 2021 15:58:24 GMT", "retry-after" : "0", "StatusCode" : "200", "x-ms-request-server-encrypted" : "false", - "x-ms-request-id" : "0b312448-701f-0064-165f-658e2a000000", - "x-ms-client-request-id" : "ecf46190-a321-4f1a-a9c9-4164a16e33d2", - "Date" : "Wed, 11 May 2022 17:48:20 GMT" + "x-ms-request-id" : "b5d6276f-401f-0028-71c7-412c08000000", + "x-ms-client-request-id" : "89fb8ccc-674c-47f1-a0b7-996d9f8b79a9", + "Date" : "Wed, 05 May 2021 15:58:24 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "http://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852/2da8c0cb12da8c0cb78151497049e096bbfcf401aa91?comp=query", + "Uri" : "https://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4/2da8c0cb12da8c0cb5ea09964f946301728284671b74?comp=query", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.2 azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "a21ee58a-aeb5-48ea-b646-28e3d3ad5d16", + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "8a32c391-19a7-4b82-96ca-7beb1be0a531", "Content-Type" : "application/xml" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-06-08", + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Last-Modified" : "Wed, 11 May 2022 17:48:20 GMT", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 05 May 2021 15:58:24 GMT", "retry-after" : "0", "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Wed, 11 May 2022 17:48:19 GMT", + "Date" : "Wed, 05 May 2021 15:58:24 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", - "x-ms-creation-time" : "Wed, 11 May 2022 17:48:20 GMT", - "eTag" : "0x8DA33766FF763D1", - "x-ms-request-id" : "2b7acf01-801e-002d-6c5f-65ccc1000000", - "Body" : "T2JqAQIWYXZyby5zY2hlbWHOHlsKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLnJlc3VsdERhdGEiLAogICAgImRvYyI6ICJIb2xkcyByZXN1bHQgZGF0YSBpbiB0aGUgZm9ybWF0IHNwZWNpZmllZCBmb3IgdGhpcyBxdWVyeSAoQ1NWLCBKU09OLCBldGMuKS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImRhdGEiLAogICAgICAgICJ0eXBlIjogImJ5dGVzIgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVycm9yIiwKICAgICJkb2MiOiAiQW4gZXJyb3IgdGhhdCBvY2N1cnJlZCB3aGlsZSBwcm9jZXNzaW5nIHRoZSBxdWVyeS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImZhdGFsIiwKICAgICAgICAidHlwZSI6ICJib29sZWFuIiwKICAgICAgICAiZG9jIjogIklmIHRydWUsIHRoaXMgZXJyb3IgcHJldmVudHMgZnVydGhlciBxdWVyeSBwcm9jZXNzaW5nLiAgTW9yZSByZXN1bHQgZGF0YSBtYXkgYmUgcmV0dXJuZWQsIGJ1dCB0aGVyZSBpcyBubyBndWFyYW50ZWUgdGhhdCBhbGwgb2YgdGhlIG9yaWdpbmFsIGRhdGEgd2lsbCBiZSBwcm9jZXNzZWQuICBJZiBmYWxzZSwgdGhpcyBlcnJvciBkb2VzIG5vdCBwcmV2ZW50IGZ1cnRoZXIgcXVlcnkgcHJvY2Vzc2luZy4iCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJuYW1lIiwKICAgICAgICAidHlwZSI6ICJzdHJpbmciLAogICAgICAgICJkb2MiOiAiVGhlIG5hbWUgb2YgdGhlIGVycm9yIgogICAgICB9LAogICAgICB7CiAgICAgICAgIm5hbWUiOiAiZGVzY3JpcHRpb24iLAogICAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICAgImRvYyI6ICJBIGRlc2NyaXB0aW9uIG9mIHRoZSBlcnJvciIKICAgICAgfSwKICAgICAgewogICAgICAgICJuYW1lIjogInBvc2l0aW9uIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSByZWNvcmQgb2Zmc2V0IGluIHRoZSBibG9iIGF0IHdoaWNoIHRoZSBlcnJvciBvY2N1cnJlZCIKICAgICAgfQogICAgXQogIH0sCiAgewogICAgInR5cGUiOiAicmVjb3JkIiwKICAgICJuYW1lIjogImNvbS5taWNyb3NvZnQuYXp1cmUuc3RvcmFnZS5xdWVyeUJsb2JDb250ZW50cy5wcm9ncmVzcyIsCiAgICAiZG9jIjogIkluZm9ybWF0aW9uIGFib3V0IHRoZSBwcm9ncmVzcyBvZiB0aGUgcXVlcnkiLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImJ5dGVzU2Nhbm5lZCIsCiAgICAgICAgInR5cGUiOiAibG9uZyIsCiAgICAgICAgImRvYyI6ICJUaGUgbnVtYmVyIG9mIGJ5dGVzIHRoYXQgaGF2ZSBiZWVuIHNjYW5uZWQiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgdG8gYmUgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVuZCIsCiAgICAiZG9jIjogIlNlbnQgYXMgdGhlIGZpbmFsIG1lc3NhZ2Ugb2YgdGhlIHJlc3BvbnNlLCBpbmRpY2F0aW5nIHRoYXQgYWxsIHJlc3VsdHMgaGF2ZSBiZWVuIHNlbnQuIiwKICAgICJmaWVsZHMiOiBbCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfQpdCgB1H2WURWOkTLUVwSCBFbfzApYEAJAE/////4AAAAAQAAAAAAAKAAwABgAFAAgACgAAAAABBAAMAAAACAAIAAAABAAIAAAABAAAAAEAAAAUAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEHEAAAACAAAAAEAAAAAAAAAAQAAABOYW1lAAAAAAgADAAEAAgACAAAAAQAAAACAAAAAAAAAP////9wAAAAEAAAAAAACgAOAAYABQAIAAoAAAAAAwQAEAAAAAAACgAMAAAABAAIAAoAAAAwAAAABAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAdR9llEVjpEy1FcEggRW38wKmCgCgCv////+IAAAAFAAAAAAAAAAMABYABgAFAAgADAAMAAAAAAMEABgAAAAAAgAAAAAAAAAACgAYAAwABAAIAAoAAAA8AAAAEAAAACAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAABAAAAIAAAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAdR9llEVjpEy1FcEggRW38wIKBIAQgBB1H2WURWOkTLUVwSCBFbfzAgYGgBB1H2WURWOkTLUVwSCBFbfz", - "x-ms-client-request-id" : "a21ee58a-aeb5-48ea-b646-28e3d3ad5d16", + "x-ms-creation-time" : "Wed, 05 May 2021 15:58:24 GMT", + "eTag" : "0x8D90FDE9D745DD0", + "x-ms-request-id" : "63f3e335-301e-006f-17c7-414753000000", + "Body" : "T2JqAQIWYXZyby5zY2hlbWHOHlsKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLnJlc3VsdERhdGEiLAogICAgImRvYyI6ICJIb2xkcyByZXN1bHQgZGF0YSBpbiB0aGUgZm9ybWF0IHNwZWNpZmllZCBmb3IgdGhpcyBxdWVyeSAoQ1NWLCBKU09OLCBldGMuKS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImRhdGEiLAogICAgICAgICJ0eXBlIjogImJ5dGVzIgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVycm9yIiwKICAgICJkb2MiOiAiQW4gZXJyb3IgdGhhdCBvY2N1cnJlZCB3aGlsZSBwcm9jZXNzaW5nIHRoZSBxdWVyeS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImZhdGFsIiwKICAgICAgICAidHlwZSI6ICJib29sZWFuIiwKICAgICAgICAiZG9jIjogIklmIHRydWUsIHRoaXMgZXJyb3IgcHJldmVudHMgZnVydGhlciBxdWVyeSBwcm9jZXNzaW5nLiAgTW9yZSByZXN1bHQgZGF0YSBtYXkgYmUgcmV0dXJuZWQsIGJ1dCB0aGVyZSBpcyBubyBndWFyYW50ZWUgdGhhdCBhbGwgb2YgdGhlIG9yaWdpbmFsIGRhdGEgd2lsbCBiZSBwcm9jZXNzZWQuICBJZiBmYWxzZSwgdGhpcyBlcnJvciBkb2VzIG5vdCBwcmV2ZW50IGZ1cnRoZXIgcXVlcnkgcHJvY2Vzc2luZy4iCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJuYW1lIiwKICAgICAgICAidHlwZSI6ICJzdHJpbmciLAogICAgICAgICJkb2MiOiAiVGhlIG5hbWUgb2YgdGhlIGVycm9yIgogICAgICB9LAogICAgICB7CiAgICAgICAgIm5hbWUiOiAiZGVzY3JpcHRpb24iLAogICAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICAgImRvYyI6ICJBIGRlc2NyaXB0aW9uIG9mIHRoZSBlcnJvciIKICAgICAgfSwKICAgICAgewogICAgICAgICJuYW1lIjogInBvc2l0aW9uIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSByZWNvcmQgb2Zmc2V0IGluIHRoZSBibG9iIGF0IHdoaWNoIHRoZSBlcnJvciBvY2N1cnJlZCIKICAgICAgfQogICAgXQogIH0sCiAgewogICAgInR5cGUiOiAicmVjb3JkIiwKICAgICJuYW1lIjogImNvbS5taWNyb3NvZnQuYXp1cmUuc3RvcmFnZS5xdWVyeUJsb2JDb250ZW50cy5wcm9ncmVzcyIsCiAgICAiZG9jIjogIkluZm9ybWF0aW9uIGFib3V0IHRoZSBwcm9ncmVzcyBvZiB0aGUgcXVlcnkiLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImJ5dGVzU2Nhbm5lZCIsCiAgICAgICAgInR5cGUiOiAibG9uZyIsCiAgICAgICAgImRvYyI6ICJUaGUgbnVtYmVyIG9mIGJ5dGVzIHRoYXQgaGF2ZSBiZWVuIHNjYW5uZWQiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgdG8gYmUgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVuZCIsCiAgICAiZG9jIjogIlNlbnQgYXMgdGhlIGZpbmFsIG1lc3NhZ2Ugb2YgdGhlIHJlc3BvbnNlLCBpbmRpY2F0aW5nIHRoYXQgYWxsIHJlc3VsdHMgaGF2ZSBiZWVuIHNlbnQuIiwKICAgICJmaWVsZHMiOiBbCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfQpdCgCRYcHfcbs6Ravy4EItBX/tAoYEAIAE/////4AAAAAQAAAAAAAKAAwABgAFAAgACgAAAAABAwAMAAAACAAIAAAABAAIAAAABAAAAAEAAAAUAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEHJAAAABQAAAAEAAAAAAAAAAgADAAEAAgACAAAAAQAAAACAAAABAAAAE5hbWUAAAAAAAAAAP////9wAAAAEAAAAAAACgAOAAYABQAIAAoAAAAAAwMAEAAAAAAACgAMAAAABAAIAAoAAAAwAAAABAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAJFhwd9xuzpFq/LgQi0Ff+0CpgoAoAr/////iAAAABQAAAAAAAAADAAWAAYABQAIAAwADAAAAAADAwAYAAAAAAIAAAAAAAAAAAoAGAAMAAQACAAKAAAAPAAAABAAAAAgAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAQAAACAAAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJFhwd9xuzpFq/LgQi0Ff+0CCgSAEIAQkWHB33G7OkWr8uBCLQV/7QIGBoAQkWHB33G7OkWr8uBCLQV/7Q==", + "x-ms-client-request-id" : "8a32c391-19a7-4b82-96ca-7beb1be0a531", "Content-Type" : "avro/binary" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "http://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb781045407caafa9700af4413852/2da8c0cb12da8c0cb78151497049e096bbfcf401aa91?comp=query", + "Uri" : "https://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4/2da8c0cb12da8c0cb5ea09964f946301728284671b74?comp=query", "Headers" : { - "x-ms-version" : "2021-06-08", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.2 azsdk-java-azure-storage-file-datalake/12.10.0-beta.2 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "f3f25110-7027-4235-9758-5235f7aaf8f2", + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "defada72-022d-4285-b988-1663c0d9195a", "Content-Type" : "application/xml" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-06-08", + "x-ms-lease-status" : "unlocked", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Last-Modified" : "Wed, 11 May 2022 17:48:20 GMT", + "x-ms-lease-state" : "available", + "Last-Modified" : "Wed, 05 May 2021 15:58:24 GMT", "retry-after" : "0", "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Wed, 11 May 2022 17:48:20 GMT", + "Date" : "Wed, 05 May 2021 15:58:26 GMT", "x-ms-blob-type" : "BlockBlob", "Accept-Ranges" : "bytes", "x-ms-server-encrypted" : "true", - "x-ms-creation-time" : "Wed, 11 May 2022 17:48:20 GMT", - "eTag" : "0x8DA33766FF763D1", - "x-ms-request-id" : "2b7ad1e0-801e-002d-045f-65ccc1000000", - "Body" : "T2JqAQIWYXZyby5zY2hlbWHOHlsKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLnJlc3VsdERhdGEiLAogICAgImRvYyI6ICJIb2xkcyByZXN1bHQgZGF0YSBpbiB0aGUgZm9ybWF0IHNwZWNpZmllZCBmb3IgdGhpcyBxdWVyeSAoQ1NWLCBKU09OLCBldGMuKS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImRhdGEiLAogICAgICAgICJ0eXBlIjogImJ5dGVzIgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVycm9yIiwKICAgICJkb2MiOiAiQW4gZXJyb3IgdGhhdCBvY2N1cnJlZCB3aGlsZSBwcm9jZXNzaW5nIHRoZSBxdWVyeS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImZhdGFsIiwKICAgICAgICAidHlwZSI6ICJib29sZWFuIiwKICAgICAgICAiZG9jIjogIklmIHRydWUsIHRoaXMgZXJyb3IgcHJldmVudHMgZnVydGhlciBxdWVyeSBwcm9jZXNzaW5nLiAgTW9yZSByZXN1bHQgZGF0YSBtYXkgYmUgcmV0dXJuZWQsIGJ1dCB0aGVyZSBpcyBubyBndWFyYW50ZWUgdGhhdCBhbGwgb2YgdGhlIG9yaWdpbmFsIGRhdGEgd2lsbCBiZSBwcm9jZXNzZWQuICBJZiBmYWxzZSwgdGhpcyBlcnJvciBkb2VzIG5vdCBwcmV2ZW50IGZ1cnRoZXIgcXVlcnkgcHJvY2Vzc2luZy4iCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJuYW1lIiwKICAgICAgICAidHlwZSI6ICJzdHJpbmciLAogICAgICAgICJkb2MiOiAiVGhlIG5hbWUgb2YgdGhlIGVycm9yIgogICAgICB9LAogICAgICB7CiAgICAgICAgIm5hbWUiOiAiZGVzY3JpcHRpb24iLAogICAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICAgImRvYyI6ICJBIGRlc2NyaXB0aW9uIG9mIHRoZSBlcnJvciIKICAgICAgfSwKICAgICAgewogICAgICAgICJuYW1lIjogInBvc2l0aW9uIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSByZWNvcmQgb2Zmc2V0IGluIHRoZSBibG9iIGF0IHdoaWNoIHRoZSBlcnJvciBvY2N1cnJlZCIKICAgICAgfQogICAgXQogIH0sCiAgewogICAgInR5cGUiOiAicmVjb3JkIiwKICAgICJuYW1lIjogImNvbS5taWNyb3NvZnQuYXp1cmUuc3RvcmFnZS5xdWVyeUJsb2JDb250ZW50cy5wcm9ncmVzcyIsCiAgICAiZG9jIjogIkluZm9ybWF0aW9uIGFib3V0IHRoZSBwcm9ncmVzcyBvZiB0aGUgcXVlcnkiLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImJ5dGVzU2Nhbm5lZCIsCiAgICAgICAgInR5cGUiOiAibG9uZyIsCiAgICAgICAgImRvYyI6ICJUaGUgbnVtYmVyIG9mIGJ5dGVzIHRoYXQgaGF2ZSBiZWVuIHNjYW5uZWQiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgdG8gYmUgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVuZCIsCiAgICAiZG9jIjogIlNlbnQgYXMgdGhlIGZpbmFsIG1lc3NhZ2Ugb2YgdGhlIHJlc3BvbnNlLCBpbmRpY2F0aW5nIHRoYXQgYWxsIHJlc3VsdHMgaGF2ZSBiZWVuIHNlbnQuIiwKICAgICJmaWVsZHMiOiBbCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfQpdCgB1e2+w8jqySZIZ8tM9KCyZApYEAJAE/////4AAAAAQAAAAAAAKAAwABgAFAAgACgAAAAABBAAMAAAACAAIAAAABAAIAAAABAAAAAEAAAAUAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEHEAAAACAAAAAEAAAAAAAAAAQAAABOYW1lAAAAAAgADAAEAAgACAAAAAQAAAACAAAAAAAAAP////9wAAAAEAAAAAAACgAOAAYABQAIAAoAAAAAAwQAEAAAAAAACgAMAAAABAAIAAoAAAAwAAAABAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAdXtvsPI6skmSGfLTPSgsmQKmCgCgCv////+IAAAAFAAAAAAAAAAMABYABgAFAAgADAAMAAAAAAMEABgAAAAAAgAAAAAAAAAACgAYAAwABAAIAAoAAAA8AAAAEAAAACAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAABAAAAIAAAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAdXtvsPI6skmSGfLTPSgsmQIKBIAQgBB1e2+w8jqySZIZ8tM9KCyZAgYGgBB1e2+w8jqySZIZ8tM9KCyZ", - "x-ms-client-request-id" : "f3f25110-7027-4235-9758-5235f7aaf8f2", + "x-ms-creation-time" : "Wed, 05 May 2021 15:58:24 GMT", + "eTag" : "0x8D90FDE9D745DD0", + "x-ms-request-id" : "371f4623-a01e-0089-54c7-41f775000000", + "Body" : "T2JqAQIWYXZyby5zY2hlbWHOHlsKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLnJlc3VsdERhdGEiLAogICAgImRvYyI6ICJIb2xkcyByZXN1bHQgZGF0YSBpbiB0aGUgZm9ybWF0IHNwZWNpZmllZCBmb3IgdGhpcyBxdWVyeSAoQ1NWLCBKU09OLCBldGMuKS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImRhdGEiLAogICAgICAgICJ0eXBlIjogImJ5dGVzIgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVycm9yIiwKICAgICJkb2MiOiAiQW4gZXJyb3IgdGhhdCBvY2N1cnJlZCB3aGlsZSBwcm9jZXNzaW5nIHRoZSBxdWVyeS4iLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImZhdGFsIiwKICAgICAgICAidHlwZSI6ICJib29sZWFuIiwKICAgICAgICAiZG9jIjogIklmIHRydWUsIHRoaXMgZXJyb3IgcHJldmVudHMgZnVydGhlciBxdWVyeSBwcm9jZXNzaW5nLiAgTW9yZSByZXN1bHQgZGF0YSBtYXkgYmUgcmV0dXJuZWQsIGJ1dCB0aGVyZSBpcyBubyBndWFyYW50ZWUgdGhhdCBhbGwgb2YgdGhlIG9yaWdpbmFsIGRhdGEgd2lsbCBiZSBwcm9jZXNzZWQuICBJZiBmYWxzZSwgdGhpcyBlcnJvciBkb2VzIG5vdCBwcmV2ZW50IGZ1cnRoZXIgcXVlcnkgcHJvY2Vzc2luZy4iCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJuYW1lIiwKICAgICAgICAidHlwZSI6ICJzdHJpbmciLAogICAgICAgICJkb2MiOiAiVGhlIG5hbWUgb2YgdGhlIGVycm9yIgogICAgICB9LAogICAgICB7CiAgICAgICAgIm5hbWUiOiAiZGVzY3JpcHRpb24iLAogICAgICAgICJ0eXBlIjogInN0cmluZyIsCiAgICAgICAgImRvYyI6ICJBIGRlc2NyaXB0aW9uIG9mIHRoZSBlcnJvciIKICAgICAgfSwKICAgICAgewogICAgICAgICJuYW1lIjogInBvc2l0aW9uIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSByZWNvcmQgb2Zmc2V0IGluIHRoZSBibG9iIGF0IHdoaWNoIHRoZSBlcnJvciBvY2N1cnJlZCIKICAgICAgfQogICAgXQogIH0sCiAgewogICAgInR5cGUiOiAicmVjb3JkIiwKICAgICJuYW1lIjogImNvbS5taWNyb3NvZnQuYXp1cmUuc3RvcmFnZS5xdWVyeUJsb2JDb250ZW50cy5wcm9ncmVzcyIsCiAgICAiZG9jIjogIkluZm9ybWF0aW9uIGFib3V0IHRoZSBwcm9ncmVzcyBvZiB0aGUgcXVlcnkiLAogICAgImZpZWxkcyI6IFsKICAgICAgewogICAgICAgICJuYW1lIjogImJ5dGVzU2Nhbm5lZCIsCiAgICAgICAgInR5cGUiOiAibG9uZyIsCiAgICAgICAgImRvYyI6ICJUaGUgbnVtYmVyIG9mIGJ5dGVzIHRoYXQgaGF2ZSBiZWVuIHNjYW5uZWQiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgdG8gYmUgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAidHlwZSI6ICJyZWNvcmQiLAogICAgIm5hbWUiOiAiY29tLm1pY3Jvc29mdC5henVyZS5zdG9yYWdlLnF1ZXJ5QmxvYkNvbnRlbnRzLmVuZCIsCiAgICAiZG9jIjogIlNlbnQgYXMgdGhlIGZpbmFsIG1lc3NhZ2Ugb2YgdGhlIHJlc3BvbnNlLCBpbmRpY2F0aW5nIHRoYXQgYWxsIHJlc3VsdHMgaGF2ZSBiZWVuIHNlbnQuIiwKICAgICJmaWVsZHMiOiBbCiAgICAgIHsKICAgICAgICAibmFtZSI6ICJ0b3RhbEJ5dGVzIiwKICAgICAgICAidHlwZSI6ICJsb25nIiwKICAgICAgICAiZG9jIjogIlRoZSB0b3RhbCBudW1iZXIgb2YgYnl0ZXMgc2Nhbm5lZCBpbiB0aGlzIHF1ZXJ5IgogICAgICB9CiAgICBdCiAgfQpdCgC1htv7ZT85QaDNgqJK+rdqAoYEAIAE/////4AAAAAQAAAAAAAKAAwABgAFAAgACgAAAAABAwAMAAAACAAIAAAABAAIAAAABAAAAAEAAAAUAAAAEAAUAAgABgAHAAwAAAAQABAAAAAAAAEHJAAAABQAAAAEAAAAAAAAAAgADAAEAAgACAAAAAQAAAACAAAABAAAAE5hbWUAAAAAAAAAAP////9wAAAAEAAAAAAACgAOAAYABQAIAAoAAAAAAwMAEAAAAAAACgAMAAAABAAIAAoAAAAwAAAABAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAALWG2/tlPzlBoM2Cokr6t2oCpgoAoAr/////iAAAABQAAAAAAAAADAAWAAYABQAIAAwADAAAAAADAwAYAAAAAAIAAAAAAAAAAAoAGAAMAAQACAAKAAAAPAAAABAAAAAgAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAQAAACAAAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAAJABAAAAAAAAAAAAAAAAAACQAQAAAAAAAAAAAAAAAAAAkAEAAAAAAAAAAAAAAAAAALWG2/tlPzlBoM2Cokr6t2oCCgSAEIAQtYbb+2U/OUGgzYKiSvq3agIGBoAQtYbb+2U/OUGgzYKiSvq3ag==", + "x-ms-client-request-id" : "defada72-022d-4285-b988-1663c0d9195a", "Content-Type" : "avro/binary" }, "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?comp=list&prefix=2da8c0cb", + "Headers" : { + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "c4348b75-41e4-4203-a535-42f1dac95111" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-06-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc769fd8-701e-0023-46c7-41d763000000", + "Body" : "2da8c0cb2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4Wed, 05 May 2021 15:58:24 GMT\"0x8D90FDE9D39E411\"unlockedavailable$account-encryption-keyfalsefalsefalsefalse", + "x-ms-client-request-id" : "c4348b75-41e4-4203-a535-42f1dac95111", + "Date" : "Wed, 05 May 2021 15:58:27 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4?restype=container", + "Headers" : { + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "61213f0e-f7e9-47c0-aeff-0dfb2ded1e0e" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2020-06-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d2a9ba15-801e-0018-72c7-4192c7000000", + "x-ms-client-request-id" : "61213f0e-f7e9-47c0-aeff-0dfb2ded1e0e", + "Date" : "Wed, 05 May 2021 15:58:27 GMT" + }, + "Exception" : null } ], - "variables" : [ "2da8c0cb02da8c0cb781045407caafa9700af4413852", "2da8c0cb12da8c0cb78151497049e096bbfcf401aa91" ] + "variables" : [ "2da8c0cb02da8c0cb5ea86224b38305b7e4d54c0fbf4", "2da8c0cb12da8c0cb5ea09964f946301728284671b74" ] } \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestRenameSasToken.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestRenameSasToken.json index 5e349d642390d..6c719bad1366e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestRenameSasToken.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestRenameSasToken.json @@ -44,7 +44,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/67e337af067e337afab519683cebf6f2a928f4e47ae1/67e337af267e337afab548713154fa62eed7044abbbd?mode=legacy&sv=2021-06-08&se=2022-03-11T22%3A43%3A12Z&sr=c&sp=racwdm&sig=REDACTED", + "Uri" : "http://REDACTED.dfs.core.windows.net/67e337af067e337afab519683cebf6f2a928f4e47ae1/67e337af267e337afab548713154fa62eed7044abbbd?mode=legacy&sv=2021-04-10&se=2022-03-11T22%3A43%3A12Z&sr=c&sp=racwdm&sig=REDACTED", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", @@ -65,7 +65,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/67e337af067e337afab519683cebf6f2a928f4e47ae1/67e337af267e337afab548713154fa62eed7044abbbd?sv=2021-06-08&se=2022-03-11T22%3A43%3A12Z&sr=c&sp=racwdm&sig=REDACTED", + "Uri" : "http://REDACTED.blob.core.windows.net/67e337af067e337afab519683cebf6f2a928f4e47ae1/67e337af267e337afab548713154fa62eed7044abbbd?sv=2021-04-10&se=2022-03-11T22%3A43%3A12Z&sr=c&sp=racwdm&sig=REDACTED", "Headers" : { "x-ms-version" : "2021-04-10", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.13; Windows 10; 10.0)", @@ -99,4 +99,4 @@ "Exception" : null } ], "variables" : [ "67e337af067e337afab519683cebf6f2a928f4e47ae1", "67e337af167e337afab576119121ee56bebc44ae6b2c", "2022-03-10T22:43:12.827319800Z", "67e337af267e337afab548713154fa62eed7044abbbd" ] -} +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsAllNull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsAllNull.json deleted file mode 100644 index 3fc240f526186..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsAllNull.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/ba6546390ba65463990f36706afdf9e94c6bb48b9b2e?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5d0c0b3f-8e46-4be6-9ef9-5fee62a9f14c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D66B3", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6067a606-e01e-006e-5131-4eb119000000", - "x-ms-client-request-id" : "5d0c0b3f-8e46-4be6-9ef9-5fee62a9f14c", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/ba6546391ba65463990f12549fbaf00baa9f44cdbb8c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ea0b471e-ab26-469c-bdb6-81b1133a74f0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26E806A", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "b63d9931-601e-005d-5b31-4ee834000000", - "x-ms-client-request-id" : "ea0b471e-ab26-469c-bdb6-81b1133a74f0", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - } ], - "variables" : [ "ba6546390ba65463990f36706afdf9e94c6bb48b9b2e", "ba6546391ba65463990f12549fbaf00baa9f44cdbb8c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirDefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirDefaults.json deleted file mode 100644 index ebf3f23df4bc5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirDefaults.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/28543b9f028543b9f5cc41967bf90486df8d14ba6bf3?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3d53710e-9d52-47e0-a151-daa9c0431190" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49191626C3", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "85b1b3c8-201e-003c-5731-4eaceb000000", - "x-ms-client-request-id" : "3d53710e-9d52-47e0-a151-daa9c0431190", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/28543b9f028543b9f5cc41967bf90486df8d14ba6bf3/28543b9f128543b9f5cc5863604394e6fbc7f473d8e7?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e2b676c9-1a28-46a8-8d47-136fa9790a6f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196E26A7", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7ea2118c-901f-0007-6f31-4eeeb5000000", - "x-ms-client-request-id" : "e2b676c9-1a28-46a8-8d47-136fa9790a6f", - "Date" : "Tue, 12 Apr 2022 05:55:51 GMT" - }, - "Exception" : null - } ], - "variables" : [ "28543b9f028543b9f5cc41967bf90486df8d14ba6bf3", "28543b9f128543b9f5cc5863604394e6fbc7f473d8e7" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirHeaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirHeaders[0].json deleted file mode 100644 index 324fa610fdb3d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirHeaders[0].json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/f9d99c490f9d99c49b140347241925bce485c4ea4b94?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d2a10f8d-e1a4-4ee5-b2b1-fb18f026174a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49191662F7", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "521caa8d-d01e-000b-5b31-4e0044000000", - "x-ms-client-request-id" : "d2a10f8d-e1a4-4ee5-b2b1-fb18f026174a", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f9d99c490f9d99c49b140347241925bce485c4ea4b94/f9d99c491f9d99c49b14448454e9c6a0dbbe640d5962?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ac6c0f3e-d41f-446b-86a8-2e64cba67127" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196DE503", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0b7de9e3-601f-0019-7631-4e3458000000", - "x-ms-client-request-id" : "ac6c0f3e-d41f-446b-86a8-2e64cba67127", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/f9d99c490f9d99c49b140347241925bce485c4ea4b94/f9d99c491f9d99c49b14448454e9c6a0dbbe640d5962", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d613432e-e602-4d92-9a55-b167c899887d" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:55:51 GMT", - "eTag" : "0x8DA1C49196DE503", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "6e3e9a49-b01e-005f-7c31-4eeace000000", - "x-ms-client-request-id" : "d613432e-e602-4d92-9a55-b167c899887d", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "f9d99c490f9d99c49b140347241925bce485c4ea4b94", "f9d99c491f9d99c49b14448454e9c6a0dbbe640d5962" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirHeaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirHeaders[1].json deleted file mode 100644 index 6906bacb7588f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirHeaders[1].json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/e0c2ad080e0c2ad0835575555928eb112ae094829aa5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c13bfa01-87f4-4734-b43a-c6c5f0cc453d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49191B7829", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c326f039-101e-0052-5a31-4e05c2000000", - "x-ms-client-request-id" : "c13bfa01-87f4-4734-b43a-c6c5f0cc453d", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/e0c2ad080e0c2ad0835575555928eb112ae094829aa5/e0c2ad081e0c2ad0835539173f77178d041f44369948?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "287c726b-f765-4888-a8e4-e2bf410924e7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196C920E", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "278f9a55-c01f-001f-5a31-4ec320000000", - "x-ms-client-request-id" : "287c726b-f765-4888-a8e4-e2bf410924e7", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/e0c2ad080e0c2ad0835575555928eb112ae094829aa5/e0c2ad081e0c2ad0835539173f77178d041f44369948", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e10ce344-053d-4325-bbc8-80305f04d21c" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "Content-Encoding" : "encoding", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:55:51 GMT", - "eTag" : "0x8DA1C49196C920E", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "521cac8d-d01e-000b-2f31-4e0044000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "type", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "Cache-Control" : "control", - "Content-Disposition" : "disposition", - "Content-Language" : "language", - "x-ms-client-request-id" : "e10ce344-053d-4325-bbc8-80305f04d21c" - }, - "Exception" : null - } ], - "variables" : [ "e0c2ad080e0c2ad0835575555928eb112ae094829aa5", "e0c2ad081e0c2ad0835539173f77178d041f44369948" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMetadata[0].json deleted file mode 100644 index ad106dfde473d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMetadata[0].json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/8d93c90b08d93c90bc43891885394534dd99d49c6a9b?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c94b841a-7b9f-4ac3-bc29-17b5394c0861" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C4919164D0A", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e75ae59c-601e-0012-5c31-4e2c2c000000", - "x-ms-client-request-id" : "c94b841a-7b9f-4ac3-bc29-17b5394c0861", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/8d93c90b08d93c90bc43891885394534dd99d49c6a9b/8d93c90b18d93c90bc432015304c87e35c0454582886?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5edd50f4-3e4e-464f-8390-8f3c9f10ce7f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C491968C91C", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "fd42a154-d01f-000b-2c31-4e0044000000", - "x-ms-client-request-id" : "5edd50f4-3e4e-464f-8390-8f3c9f10ce7f", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/8d93c90b08d93c90bc43891885394534dd99d49c6a9b/8d93c90b18d93c90bc432015304c87e35c0454582886", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "dad597a4-e522-48b6-89d9-584a441180d9" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:55:51 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:55:51 GMT", - "eTag" : "0x8DA1C491968C91C", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "e75ae751-601e-0012-5931-4e2c2c000000", - "x-ms-client-request-id" : "dad597a4-e522-48b6-89d9-584a441180d9", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "8d93c90b08d93c90bc43891885394534dd99d49c6a9b", "8d93c90b18d93c90bc432015304c87e35c0454582886" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMetadata[1].json deleted file mode 100644 index e6400d65b9865..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMetadata[1].json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/9488f84a09488f84aa6a30614c3d65714de1647cbad1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6e6a6454-5492-43f3-8a2e-5cfc8d986eb0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C4919166CCD", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8cb356c0-501e-0011-5f31-4e2f2b000000", - "x-ms-client-request-id" : "6e6a6454-5492-43f3-8a2e-5cfc8d986eb0", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/9488f84a09488f84aa6a30614c3d65714de1647cbad1/9488f84a19488f84aa6a1105782635ae941b94944ae8?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f627fc74-2bda-4b37-88e6-d8c4d6aa978b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196E24F9", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "9362af8d-701f-0049-6231-4e2b50000000", - "x-ms-client-request-id" : "f627fc74-2bda-4b37-88e6-d8c4d6aa978b", - "Date" : "Tue, 12 Apr 2022 05:55:51 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/9488f84a09488f84aa6a30614c3d65714de1647cbad1/9488f84a19488f84aa6a1105782635ae941b94944ae8", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "57766fff-a8de-4581-9907-04a24ff032b1" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:55:51 GMT", - "eTag" : "0x8DA1C49196E24F9", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "85b1b5f0-201e-003c-6031-4eaceb000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT", - "x-ms-meta-foo" : "bar", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-client-request-id" : "57766fff-a8de-4581-9907-04a24ff032b1" - }, - "Exception" : null - } ], - "variables" : [ "9488f84a09488f84aa6a30614c3d65714de1647cbad1", "9488f84a19488f84aa6a1105782635ae941b94944ae8" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMin.json deleted file mode 100644 index 6507512fecf59..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirMin.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/98cef0f9098cef0f951d40665952cb37bd499456bbfc?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5a0cf0ea-3055-4efc-acb8-47c8289a95b5" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C4919162A61", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "92ffc4e4-b01e-0054-3d31-4ef2ba000000", - "x-ms-client-request-id" : "5a0cf0ea-3055-4efc-acb8-47c8289a95b5", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/98cef0f9098cef0f951d40665952cb37bd499456bbfc/98cef0f9198cef0f951d090230585f613de0e4e78b0b?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8e1cab57-ff59-4c15-a6ae-245587399c75" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196C32E3", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "7028fa64-501f-0055-5431-4ef347000000", - "x-ms-client-request-id" : "8e1cab57-ff59-4c15-a6ae-245587399c75", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/98cef0f9098cef0f951d40665952cb37bd499456bbfc/98cef0f9198cef0f951d090230585f613de0e4e78b0b", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a6760564-1a4e-4aaf-b3fb-b58fb0791b83" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "directory", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:55:51 GMT", - "eTag" : "0x8DA1C49196C32E3", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "8ee0c997-101e-001d-1231-4ec1da000000", - "x-ms-client-request-id" : "a6760564-1a4e-4aaf-b3fb-b58fb0791b83", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "98cef0f9098cef0f951d40665952cb37bd499456bbfc", "98cef0f9198cef0f951d090230585f613de0e4e78b0b" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirPermissionsAndUmask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirPermissionsAndUmask.json deleted file mode 100644 index db86bb93251d0..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirPermissionsAndUmask.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/e1c50f730e1c50f7348e854211f1417ecc46e492ba16?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ed0efac6-56cb-4772-8d65-722d7703b17a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49191621D0", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6e3e9825-b01e-005f-0731-4eeace000000", - "x-ms-client-request-id" : "ed0efac6-56cb-4772-8d65-722d7703b17a", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/e1c50f730e1c50f7348e854211f1417ecc46e492ba16/e1c50f731e1c50f7348e39657b7f06257985240fd82d?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8ba775c3-fe7f-4f26-90a5-a6a32111ebb2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196B8D3A", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "2dcc5c21-901f-002e-0331-4e98f7000000", - "x-ms-client-request-id" : "8ba775c3-fe7f-4f26-90a5-a6a32111ebb2", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - } ], - "variables" : [ "e1c50f730e1c50f7348e854211f1417ecc46e492ba16", "e1c50f731e1c50f7348e39657b7f06257985240fd82d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirThatAlreadyExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirThatAlreadyExists.json deleted file mode 100644 index 0c115e309f937..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsDirThatAlreadyExists.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/1791ca8401791ca8457362060ac5c9becfe8342018f5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0b2c8dec-1c69-4ad7-925c-242b62009572" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C4919162389", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:50 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8ee0c6d7-101e-001d-1431-4ec1da000000", - "x-ms-client-request-id" : "0b2c8dec-1c69-4ad7-925c-242b62009572", - "Date" : "Tue, 12 Apr 2022 05:55:49 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/1791ca8401791ca8457362060ac5c9becfe8342018f5/1791ca8411791ca8457388277c67bf86e4751486d8d7?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "679a9720-9f8a-4c3e-9b94-406efbb8ddbd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C49196D5375", - "Last-Modified" : "Tue, 12 Apr 2022 05:55:51 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "af7a2164-101f-0034-2331-4eb798000000", - "x-ms-client-request-id" : "679a9720-9f8a-4c3e-9b94-406efbb8ddbd", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/1791ca8401791ca8457362060ac5c9becfe8342018f5/1791ca8411791ca8457388277c67bf86e4751486d8d7?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f2a189cd-fe81-4b40-af65-9f30b5b5f8a3" - }, - "Response" : { - "content-length" : "168", - "x-ms-existing-resource-type" : "directory", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "fd42a155-d01f-000b-2d31-4e0044000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:fd42a155-d01f-000b-2d31-4e0044000000\\nTime:2022-04-12T05:55:51.1720741Z\"}}", - "x-ms-client-request-id" : "f2a189cd-fe81-4b40-af65-9f30b5b5f8a3", - "Date" : "Tue, 12 Apr 2022 05:55:50 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "1791ca8401791ca8457362060ac5c9becfe8342018f5", "1791ca8411791ca8457388277c67bf86e4751486d8d7" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileDefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileDefaults.json deleted file mode 100644 index 05b9f69b54641..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileDefaults.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/c774a9740c774a97447b93542fc701303290f4575a95?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7b17b796-5c95-4d42-8bf0-419fdb005818" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D467D8", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "78eac1f3-901e-0025-1331-4e8083000000", - "x-ms-client-request-id" : "7b17b796-5c95-4d42-8bf0-419fdb005818", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/c774a9740c774a97447b93542fc701303290f4575a95/c774a9741c774a97447b6725266d50d2a45b34d71a11?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9f228537-618f-41d6-b00c-dc927a053457" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E7496E21", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4fc5edad-601f-0012-0b31-4e2c2c000000", - "x-ms-client-request-id" : "9f228537-618f-41d6-b00c-dc927a053457", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - } ], - "variables" : [ "c774a9740c774a97447b93542fc701303290f4575a95", "c774a9741c774a97447b6725266d50d2a45b34d71a11" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileHeaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileHeaders[0].json deleted file mode 100644 index ef87b37d33799..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileHeaders[0].json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/5a52ab2605a52ab26a4691979940dd7a4fcff4e538ce?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "366de79a-45b6-4193-bf2d-80b720359e86" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D54E7B", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e83f0f24-401e-004a-5e31-4e2857000000", - "x-ms-client-request-id" : "366de79a-45b6-4193-bf2d-80b720359e86", - "Date" : "Tue, 12 Apr 2022 05:54:25 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/5a52ab2605a52ab26a4691979940dd7a4fcff4e538ce/5a52ab2615a52ab26a4625204ca70eeb8974e4543ab1?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d0950b56-8721-427c-9056-650382cb8318" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74CE13D", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3ab7f52b-401f-0063-0331-4e5e15000000", - "x-ms-client-request-id" : "d0950b56-8721-427c-9056-650382cb8318", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/5a52ab2605a52ab26a4691979940dd7a4fcff4e538ce/5a52ab2615a52ab26a4625204ca70eeb8974e4543ab1", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4e71f911-70f4-4f6d-99bd-6eee323f4aff" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:54:27 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:54:27 GMT", - "eTag" : "0x8DA1C48E74CE13D", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "78eac466-901e-0025-5f31-4e8083000000", - "x-ms-client-request-id" : "4e71f911-70f4-4f6d-99bd-6eee323f4aff", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "5a52ab2605a52ab26a4691979940dd7a4fcff4e538ce", "5a52ab2615a52ab26a4625204ca70eeb8974e4543ab1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileHeaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileHeaders[1].json deleted file mode 100644 index 4b8c16ccffba5..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileHeaders[1].json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/43499a67043499a679ac158746fdc7a5661cc4740bca?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "47ca758a-8383-47e4-b4ab-a7b2f4891694" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D375B8", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5bddda39-d01e-006d-0231-4eb21e000000", - "x-ms-client-request-id" : "47ca758a-8383-47e4-b4ab-a7b2f4891694", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/43499a67043499a679ac158746fdc7a5661cc4740bca/43499a67143499a679ac45414aa32fb211d254162a41?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "da0fc011-e0e0-4aa0-bb44-8ced6b120ecf" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74C9A6B", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e6ebb9d2-301f-000a-7c31-4e01b9000000", - "x-ms-client-request-id" : "da0fc011-e0e0-4aa0-bb44-8ced6b120ecf", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/43499a67043499a679ac158746fdc7a5661cc4740bca/43499a67143499a679ac45414aa32fb211d254162a41", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8dbad1cc-ff7f-4413-b31a-93e114962b3a" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "Content-Encoding" : "encoding", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:54:27 GMT", - "eTag" : "0x8DA1C48E74C9A6B", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "8e19171a-401e-0068-7b31-4e4661000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "type", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "Cache-Control" : "control", - "Content-Disposition" : "disposition", - "Content-Language" : "language", - "x-ms-client-request-id" : "8dbad1cc-ff7f-4413-b31a-93e114962b3a" - }, - "Exception" : null - } ], - "variables" : [ "43499a67043499a679ac158746fdc7a5661cc4740bca", "43499a67143499a679ac45414aa32fb211d254162a41" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMetadata[0].json deleted file mode 100644 index 332e82800aa7f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMetadata[0].json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/503d3ef50503d3ef5731493497b8279c3b8634a1fa41?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c18c5ecf-a2ab-45c1-9333-ecf08e049cdb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D45499", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c471b4ee-901e-0007-6931-4eeeb5000000", - "x-ms-client-request-id" : "c18c5ecf-a2ab-45c1-9333-ecf08e049cdb", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/503d3ef50503d3ef5731493497b8279c3b8634a1fa41/503d3ef51503d3ef573139669591952abd067409dbd3?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "90064046-5ace-4967-9d6c-5382fb7c0d66" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74C24D7", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "fc1fe95e-f01f-003e-2731-4eae11000000", - "x-ms-client-request-id" : "90064046-5ace-4967-9d6c-5382fb7c0d66", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/503d3ef50503d3ef5731493497b8279c3b8634a1fa41/503d3ef51503d3ef573139669591952abd067409dbd3", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "90c26c2d-03ce-4373-b8e5-e86cf91494cd" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:54:27 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:54:27 GMT", - "eTag" : "0x8DA1C48E74C24D7", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "0c661009-a01e-0004-4231-4eedb2000000", - "x-ms-client-request-id" : "90c26c2d-03ce-4373-b8e5-e86cf91494cd", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "503d3ef50503d3ef5731493497b8279c3b8634a1fa41", "503d3ef51503d3ef573139669591952abd067409dbd3" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMetadata[1].json deleted file mode 100644 index e0f943c13bafd..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMetadata[1].json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/49260fb4049260fb47dc45459c4ba7c7100524f5b920?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "55828a53-e4a2-4969-a6c1-0e30f539a42d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D45E0C", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6940fba8-e01e-002a-2431-4e6d75000000", - "x-ms-client-request-id" : "55828a53-e4a2-4969-a6c1-0e30f539a42d", - "Date" : "Tue, 12 Apr 2022 05:54:25 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/49260fb4049260fb47dc45459c4ba7c7100524f5b920/49260fb4149260fb47dc74909f44e0dc2198245e7876?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9a661ee8-273b-48fd-ba18-a010640b9c9e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74CE7B4", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c0e0fd99-601f-005d-6631-4ee834000000", - "x-ms-client-request-id" : "9a661ee8-273b-48fd-ba18-a010640b9c9e", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/49260fb4049260fb47dc45459c4ba7c7100524f5b920/49260fb4149260fb47dc74909f44e0dc2198245e7876", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "522c3c8c-f329-4029-81b8-605ea38763c4" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:54:27 GMT", - "eTag" : "0x8DA1C48E74CE7B4", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "6940fd3b-e01e-002a-0e31-4e6d75000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT", - "x-ms-meta-foo" : "bar", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "522c3c8c-f329-4029-81b8-605ea38763c4" - }, - "Exception" : null - } ], - "variables" : [ "49260fb4049260fb47dc45459c4ba7c7100524f5b920", "49260fb4149260fb47dc74909f44e0dc2198245e7876" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMin.json deleted file mode 100644 index 5e3503c23bb7c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileMin.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/e13de07a0e13de07a9ca7997670418a3c8faf43caa9d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7c236223-c3fb-44cb-9be4-ba2969a23d3c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D463DB", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0c660d9b-a01e-0004-1831-4eedb2000000", - "x-ms-client-request-id" : "7c236223-c3fb-44cb-9be4-ba2969a23d3c", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/e13de07a0e13de07a9ca7997670418a3c8faf43caa9d/e13de07a1e13de07a9ca92921478d0e17952f43949af?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a2e6341f-58e6-4650-8251-d2749539a005" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74DDF00", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c24f52f6-b01f-0054-0631-4ef2ba000000", - "x-ms-client-request-id" : "a2e6341f-58e6-4650-8251-d2749539a005", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/e13de07a0e13de07a9ca7997670418a3c8faf43caa9d/e13de07a1e13de07a9ca92921478d0e17952f43949af", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cba57d53-7f60-43b8-9ef2-78bf13e7bac6" - }, - "Response" : { - "x-ms-group" : "$superuser", - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-resource-type" : "file", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT", - "x-ms-blob-type" : "BlockBlob", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-access-tier-inferred" : "true", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Tue, 12 Apr 2022 05:54:27 GMT", - "eTag" : "0x8DA1C48E74DDF00", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "ac9a58b8-a01e-004b-0c31-4e29aa000000", - "x-ms-client-request-id" : "cba57d53-7f60-43b8-9ef2-78bf13e7bac6", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream" - }, - "Exception" : null - } ], - "variables" : [ "e13de07a0e13de07a9ca7997670418a3c8faf43caa9d", "e13de07a1e13de07a9ca92921478d0e17952f43949af" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileOverwrite.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileOverwrite.json deleted file mode 100644 index 00e7fffa1cff6..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFileOverwrite.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/ed07ac430ed07ac43e2565103d716b2c90b1e4cc1ae8?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d99c7701-df44-4efe-9644-086353f32762" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D438CB", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8e191509-401e-0068-1231-4e4661000000", - "x-ms-client-request-id" : "d99c7701-df44-4efe-9644-086353f32762", - "Date" : "Tue, 12 Apr 2022 05:54:25 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/ed07ac430ed07ac43e2565103d716b2c90b1e4cc1ae8/ed07ac431ed07ac43e25600909035f5d6898f43c28ce?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "be20a7ae-9584-4218-9178-4bf8ca1ec64d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74D4BD9", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "48100e86-001f-004d-0e31-4eded2000000", - "x-ms-client-request-id" : "be20a7ae-9584-4218-9178-4bf8ca1ec64d", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/ed07ac430ed07ac43e2565103d716b2c90b1e4cc1ae8/ed07ac431ed07ac43e25600909035f5d6898f43c28ce?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "08b01ef3-746c-4121-953a-ab23c240cf7d" - }, - "Response" : { - "content-length" : "168", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "4fc5edb4-601f-0012-1231-4e2c2c000000", - "Body" : "{\"error\":{\"code\":\"PathAlreadyExists\",\"message\":\"The specified path already exists.\\nRequestId:4fc5edb4-601f-0012-1231-4e2c2c000000\\nTime:2022-04-12T05:54:27.0903416Z\"}}", - "x-ms-client-request-id" : "08b01ef3-746c-4121-953a-ab23c240cf7d", - "Date" : "Tue, 12 Apr 2022 05:54:27 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "ed07ac430ed07ac43e2565103d716b2c90b1e4cc1ae8", "ed07ac431ed07ac43e25600909035f5d6898f43c28ce" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFilePermissionsAndUmask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFilePermissionsAndUmask.json deleted file mode 100644 index bb829a86dfd79..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsFilePermissionsAndUmask.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/f88ec62a0f88ec62a07019762cfcf15dd53524c4f959?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f70058b0-cdf4-4f1b-acb8-30d234b791fa" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E6D487D4", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:26 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ac9a5587-a01e-004b-1e31-4e29aa000000", - "x-ms-client-request-id" : "f70058b0-cdf4-4f1b-acb8-30d234b791fa", - "Date" : "Tue, 12 Apr 2022 05:54:25 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/f88ec62a0f88ec62a07019762cfcf15dd53524c4f959/f88ec62a1f88ec62a07065096457fccc9ea6241628a9?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "60136470-da5c-4565-ad03-94277a56a018" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48E74D3C37", - "Last-Modified" : "Tue, 12 Apr 2022 05:54:27 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "53eedb7d-101f-0016-1331-4ed9ae000000", - "x-ms-client-request-id" : "60136470-da5c-4565-ad03-94277a56a018", - "Date" : "Tue, 12 Apr 2022 05:54:26 GMT" - }, - "Exception" : null - } ], - "variables" : [ "f88ec62a0f88ec62a07019762cfcf15dd53524c4f959", "f88ec62a1f88ec62a07065096457fccc9ea6241628a9" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[0].json deleted file mode 100644 index 8ac871ca4005f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[0].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/2e4767c102e4767c18ad96672891754aeb8b74bc48dc?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e75dd0bb-46b6-460b-b236-dd002cccdba1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24E0D45", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "59c38053-601e-0019-7331-4e3458000000", - "x-ms-client-request-id" : "e75dd0bb-46b6-460b-b236-dd002cccdba1", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/2e4767c112e4767c18ad95278da71462b3b0643a6bbb?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "334ddff8-4dac-4dc8-b5ed-d3ce1e0ecd9a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26E593B", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c47078ab-901e-0007-4b31-4eeeb5000000", - "x-ms-client-request-id" : "334ddff8-4dac-4dc8-b5ed-d3ce1e0ecd9a", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/2e4767c112e4767c18ad95278da71462b3b0643a6bbb?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7f83ef37-0527-4110-871e-59e5ee9a9c78" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A26E593B", - "x-ms-request-id" : "2d3bcf2f-e01e-0021-0d31-4e7501000000", - "x-ms-client-request-id" : "7f83ef37-0527-4110-871e-59e5ee9a9c78" - }, - "Exception" : null - } ], - "variables" : [ "2e4767c102e4767c18ad96672891754aeb8b74bc48dc", "2e4767c112e4767c18ad95278da71462b3b0643a6bbb" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[1].json deleted file mode 100644 index ab1e8cbd9499d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[1].json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/375c56800375c5680ab2212202c86beccd5b54c9ab50?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3968e894-6b29-40ef-b4bb-ef5bbcaab76e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D7785", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "2d3bce6c-e01e-0021-5a31-4e7501000000", - "x-ms-client-request-id" : "3968e894-6b29-40ef-b4bb-ef5bbcaab76e", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/375c56801375c5680ab283213bef634c2562e4e27a91?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "22425972-e110-4665-9bec-98ebc5895e18" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26EAFCC", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "661ed3a8-f01e-003e-7831-4eae11000000", - "x-ms-client-request-id" : "22425972-e110-4665-9bec-98ebc5895e18", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/375c56801375c5680ab283213bef634c2562e4e27a91?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "076d8837-33f5-4afd-a6db-1e5132ae7f15" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT", - "x-ms-meta-foo" : "bar", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A26EAFCC", - "x-ms-request-id" : "c47078e6-901e-0007-7a31-4eeeb5000000", - "x-ms-meta-fizz" : "buzz", - "x-ms-client-request-id" : "076d8837-33f5-4afd-a6db-1e5132ae7f15" - }, - "Exception" : null - } ], - "variables" : [ "375c56800375c5680ab2212202c86beccd5b54c9ab50", "375c56801375c5680ab283213bef634c2562e4e27a91" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[2].json deleted file mode 100644 index 8400ef9944a9b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMetadata[2].json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/1c71054301c710543783425578ed1071aa91244d4a3c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "af6d8ee2-da07-4780-9529-a0cf1677115a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D03C8", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "df7c5bf9-901e-0061-3c31-4e5cef000000", - "x-ms-client-request-id" : "af6d8ee2-da07-4780-9529-a0cf1677115a", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/1c71054311c71054378319002e305e277effc489d8e1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "bd3e96f7-1519-4517-a301-38eb68a636f7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26EB637", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "2d3bcf08-e01e-0021-6b31-4e7501000000", - "x-ms-client-request-id" : "bd3e96f7-1519-4517-a301-38eb68a636f7", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/1c71054311c71054378319002e305e277effc489d8e1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e2842f89-a86d-4076-a947-467a041c3330" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-meta-testFoo" : "testBar", - "x-ms-lease-state" : "available", - "x-ms-meta-testFizz" : "testBuzz", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A26EB637", - "x-ms-request-id" : "07bb4c31-301e-000a-2731-4e01b9000000", - "x-ms-client-request-id" : "e2842f89-a86d-4076-a947-467a041c3330" - }, - "Exception" : null - } ], - "variables" : [ "1c71054301c710543783425578ed1071aa91244d4a3c", "1c71054311c71054378319002e305e277effc489d8e1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMin.json deleted file mode 100644 index 3e1c1cf5c74b2..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsMin.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/05cc9c42005cc9c427c168379dae3f7b918334568a03?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "46967d37-1ad6-466f-b0be-eae32089a958" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D6A73", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "07bb4ae9-301e-000a-7031-4e01b9000000", - "x-ms-client-request-id" : "46967d37-1ad6-466f-b0be-eae32089a958", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/05cc9c42105cc9c427c134334e5c5e57813e04305bc9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e9458a9b-e939-4ac4-89c6-6db115bc39fd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A272AFF0", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8e9d0e02-001e-006f-4f31-4eb0e4000000", - "x-ms-client-request-id" : "e9458a9b-e939-4ac4-89c6-6db115bc39fd", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/05cc9c42105cc9c427c134334e5c5e57813e04305bc9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "029b4c77-5a63-4ed3-ad08-fbdaa8f9367a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A272AFF0", - "x-ms-request-id" : "6067a71a-e01e-006e-5b31-4eb119000000", - "x-ms-client-request-id" : "029b4c77-5a63-4ed3-ad08-fbdaa8f9367a" - }, - "Exception" : null - } ], - "variables" : [ "05cc9c42005cc9c427c168379dae3f7b918334568a03", "05cc9c42105cc9c427c134334e5c5e57813e04305bc9" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsOnFileSystemThatAlreadyExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsOnFileSystemThatAlreadyExists.json deleted file mode 100644 index de81fe638d7cf..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsOnFileSystemThatAlreadyExists.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/dfc6d8750dfc6d875620175133a5ed43f2ac14f818a1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c688750e-5bf0-4ec3-adc2-6f773491ffab" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D1A76", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c4707818-901e-0007-3f31-4eeeb5000000", - "x-ms-client-request-id" : "c688750e-5bf0-4ec3-adc2-6f773491ffab", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/dfc6d8751dfc6d87562055818d5e3954189bb46ec9a0?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "80910839-a32d-451c-a214-a9af8bd85385" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26D7F6D", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "df7c5cf6-901e-0061-2a31-4e5cef000000", - "x-ms-client-request-id" : "80910839-a32d-451c-a214-a9af8bd85385", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/dfc6d8751dfc6d87562055818d5e3954189bb46ec9a0?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1b1eee4e-4cdd-4e6c-93c1-285144b27628" - }, - "Response" : { - "content-length" : "230", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ContainerAlreadyExists", - "retry-after" : "0", - "StatusCode" : "409", - "x-ms-request-id" : "df7c5d40-901e-0061-6a31-4e5cef000000", - "Body" : "ContainerAlreadyExistsThe specified container already exists.\nRequestId:df7c5d40-901e-0061-6a31-4e5cef000000\nTime:2022-04-12T05:52:31.5414144Z", - "x-ms-client-request-id" : "1b1eee4e-4cdd-4e6c-93c1-285144b27628", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "dfc6d8750dfc6d875620175133a5ed43f2ac14f818a1", "dfc6d8751dfc6d87562055818d5e3954189bb46ec9a0" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[0].json deleted file mode 100644 index f9b66ef55c017..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[0].json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/1673df4601673df464d20174621d130d27204430d9c1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "805b5ad6-09ba-4c59-adc8-adc9cc68c8bf" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D7A87", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8e9d0d42-001e-006f-2331-4eb0e4000000", - "x-ms-client-request-id" : "805b5ad6-09ba-4c59-adc8-adc9cc68c8bf", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/1673df4611673df464d2526268f443b241f954c68b2c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5e7ad84f-2a83-4fce-9ec1-fb4d38efeccd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26FC148", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "59c380df-601e-0019-7631-4e3458000000", - "x-ms-client-request-id" : "5e7ad84f-2a83-4fce-9ec1-fb4d38efeccd", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/1673df4611673df464d2526268f443b241f954c68b2c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "39b2b5b7-c905-4999-b6cf-32f34eb8f095" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A26FC148", - "x-ms-blob-public-access" : "blob", - "x-ms-request-id" : "661ed3cb-f01e-003e-1731-4eae11000000", - "x-ms-client-request-id" : "39b2b5b7-c905-4999-b6cf-32f34eb8f095" - }, - "Exception" : null - } ], - "variables" : [ "1673df4601673df464d20174621d130d27204430d9c1", "1673df4611673df464d2526268f443b241f954c68b2c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[1].json deleted file mode 100644 index 0e757f82039cb..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[1].json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/0f68ee0700f68ee070e401596eed626514664452c89a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9e0b34be-8870-43e3-8c51-757fccc458fd" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D70FD", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "661ed344-f01e-003e-1d31-4eae11000000", - "x-ms-client-request-id" : "9e0b34be-8870-43e3-8c51-757fccc458fd", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/0f68ee0710f68ee070e437344ccca18b013f243d4b38?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b21f820b-e5fe-4fd4-8ef7-d780bcc92316" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A270C7BF", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6067a6b1-e01e-006e-7531-4eb119000000", - "x-ms-client-request-id" : "b21f820b-e5fe-4fd4-8ef7-d780bcc92316", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/0f68ee0710f68ee070e437344ccca18b013f243d4b38?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ce1d0736-e60a-4293-be32-1bd20846e74c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A270C7BF", - "x-ms-blob-public-access" : "container", - "x-ms-request-id" : "59c3810a-601e-0019-1c31-4e3458000000", - "x-ms-client-request-id" : "ce1d0736-e60a-4293-be32-1bd20846e74c" - }, - "Exception" : null - } ], - "variables" : [ "0f68ee0700f68ee070e401596eed626514664452c89a", "0f68ee0710f68ee070e437344ccca18b013f243d4b38" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[2].json deleted file mode 100644 index 154360441572d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestCreateIfNotExistsPublicAccess[2].json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/2445bdc402445bdc457492188a4a5373a7ed74255a41?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d1488e56-ec53-408e-a936-64b0285aa7f0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A24D41AF", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "b63d98ee-601e-005d-2431-4ee834000000", - "x-ms-client-request-id" : "d1488e56-ec53-408e-a936-64b0285aa7f0", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/2445bdc412445bdc457490575b3bda814408340c78e5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "db350681-5cbd-440e-9562-de46916548ac" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1C48A26E8220", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "07bb4be3-301e-000a-5d31-4e01b9000000", - "x-ms-client-request-id" : "db350681-5cbd-440e-9562-de46916548ac", - "Date" : "Tue, 12 Apr 2022 05:52:30 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/2445bdc412445bdc457490575b3bda814408340c78e5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 azsdk-java-azure-storage-file-datalake/12.9.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3f4d9713-d5c4-4e85-8598-019336c227d1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Tue, 12 Apr 2022 05:52:31 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Tue, 12 Apr 2022 05:52:31 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1C48A26E8220", - "x-ms-request-id" : "b63d9962-601e-005d-0731-4ee834000000", - "x-ms-client-request-id" : "3f4d9713-d5c4-4e85-8598-019336c227d1" - }, - "Exception" : null - } ], - "variables" : [ "2445bdc402445bdc457492188a4a5373a7ed74255a41", "2445bdc412445bdc457490575b3bda814408340c78e5" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExists.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExists.json deleted file mode 100644 index a26d2006fc397..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExists.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/1bac8d7a01bac8d7ac3d32606d11194774d0a4f93ab1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "106c2d5d-80f6-4743-9e33-2555ad02cbc7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A4E632", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "24776aad-801e-0008-3612-5157af000000", - "x-ms-client-request-id" : "106c2d5d-80f6-4743-9e33-2555ad02cbc7", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/1bac8d7a11bac8d7ac3d6322242e7740458a5477d8b5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4e501ee7-e2e9-42d0-9fb0-d3012b67bd1c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980B9CAB5", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "24776af7-801e-0008-7912-5157af000000", - "x-ms-client-request-id" : "4e501ee7-e2e9-42d0-9fb0-d3012b67bd1c", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/1bac8d7a11bac8d7ac3d6322242e7740458a5477d8b5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "49ef63c7-9e05-4480-8a25-729aedd42dfe" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "24776b3a-801e-0008-3712-5157af000000", - "x-ms-client-request-id" : "49ef63c7-9e05-4480-8a25-729aedd42dfe", - "Date" : "Fri, 15 Apr 2022 21:47:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "1bac8d7a01bac8d7ac3d32606d11194774d0a4f93ab1", "1bac8d7a11bac8d7ac3d6322242e7740458a5477d8b5" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[0].json deleted file mode 100644 index c78a6e6e3a84b..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[0].json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/678f4f360678f4f36595397042013333c10f44c7da44?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a44acd44-8f92-4194-acbd-ed364a122327" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F29808BC861", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "d7e7a209-701e-001c-5012-511fc0000000", - "x-ms-client-request-id" : "a44acd44-8f92-4194-acbd-ed364a122327", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/678f4f360678f4f36595397042013333c10f44c7da44?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f1b7a6e5-2265-4f35-baf7-6f3698620567" - }, - "Response" : { - "content-length" : "252", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "d7e7a219-701e-001c-5f12-511fc0000000", - "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:d7e7a219-701e-001c-5f12-511fc0000000\nTime:2022-04-15T21:47:13.9359840Z", - "x-ms-client-request-id" : "f1b7a6e5-2265-4f35-baf7-6f3698620567", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "678f4f360678f4f36595397042013333c10f44c7da44" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[1].json deleted file mode 100644 index 8f1603be2de3d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[1].json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7e947e7707e947e77b2c4920984a6e93f5c1342949cc?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "221e9e61-373b-4388-baf6-173f948f3f9d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F29809C2BE4", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "52b23789-701e-007e-1b12-51dde7000000", - "x-ms-client-request-id" : "221e9e61-373b-4388-baf6-173f948f3f9d", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/7e947e7707e947e77b2c4920984a6e93f5c1342949cc?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "36211380-4842-4143-a0c1-3d63b75f715a" - }, - "Response" : { - "content-length" : "252", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "ecba10d4-a01e-0089-6312-51f775000000", - "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:ecba10d4-a01e-0089-6312-51f775000000\nTime:2022-04-15T21:47:13.9548060Z", - "x-ms-client-request-id" : "36211380-4842-4143-a0c1-3d63b75f715a", - "Date" : "Fri, 15 Apr 2022 21:47:12 GMT", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "7e947e7707e947e77b2c4920984a6e93f5c1342949cc" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[2].json deleted file mode 100644 index 1a6e12f822bae..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACFail[2].json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/55b92db4055b92db4d6e098921a68633781104d13bf5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "21554cf2-3f60-48f4-98ff-242746a05300" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A2ADAB", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a97f76f6-a01e-0042-4112-51f420000000", - "x-ms-client-request-id" : "21554cf2-3f60-48f4-98ff-242746a05300", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/55b92db4055b92db4d6e098921a68633781104d13bf5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "874f432b-b4c1-4335-80f0-8ae5b40ab23f" - }, - "Response" : { - "content-length" : "251", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "ab22ae11-301e-0040-1512-514a98000000", - "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:ab22ae11-301e-0040-1512-514a98000000\nTime:2022-04-15T21:47:13.9859653Z", - "x-ms-client-request-id" : "874f432b-b4c1-4335-80f0-8ae5b40ab23f", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "55b92db4055b92db4d6e098921a68633781104d13bf5" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACIllegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACIllegal[0].json deleted file mode 100644 index fa38bde9a8dec..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACIllegal[0].json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/9c541ec309c541ec34201079042cc7cfff4f24c86bf1?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ec6a50b5-23c5-41f4-8db8-384d91a5a2eb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A3AF78", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "be3e18c3-601e-0010-6412-5188c8000000", - "x-ms-client-request-id" : "ec6a50b5-23c5-41f4-8db8-384d91a5a2eb", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - } ], - "variables" : [ "9c541ec309c541ec34201079042cc7cfff4f24c86bf1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACIllegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACIllegal[1].json deleted file mode 100644 index 3fd5aa7af87e8..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsACIllegal[1].json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/854f2f820854f2f8268988116e614e3e5b2704b8f8ec?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "98e44d9e-9aa9-42b1-a1ef-b92444b1a0d7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A032EE", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3098921d-c01e-0044-3a12-51c79f000000", - "x-ms-client-request-id" : "98e44d9e-9aa9-42b1-a1ef-b92444b1a0d7", - "Date" : "Fri, 15 Apr 2022 21:47:12 GMT" - }, - "Exception" : null - } ], - "variables" : [ "854f2f820854f2f8268988116e614e3e5b2704b8f8ec" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[0].json deleted file mode 100644 index 896b47923f1ed..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[0].json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/556052ca0556052cabb6899440d63f8b6f3194673875?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "602a8f8c-065a-4a1b-91dc-70acf7030881" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F29809E4F0A", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "315f2cc9-901e-003b-4112-510804000000", - "x-ms-client-request-id" : "602a8f8c-065a-4a1b-91dc-70acf7030881", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/556052ca0556052cabb6899440d63f8b6f3194673875?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2cdf0f4a-8af7-45fe-9807-36db7a5c52ee" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "315f2d05-901e-003b-7812-510804000000", - "x-ms-client-request-id" : "2cdf0f4a-8af7-45fe-9807-36db7a5c52ee", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - } ], - "variables" : [ "556052ca0556052cabb6899440d63f8b6f3194673875" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[1].json deleted file mode 100644 index 18d768efbffcb..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[1].json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/4c7b638b04c7b638b7b994673542904ac9bdd4bd29f6?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f1905659-7246-4548-9bf9-83c43584459d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F29809E5CBD", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ecba10b5-a01e-0089-4712-51f775000000", - "x-ms-client-request-id" : "f1905659-7246-4548-9bf9-83c43584459d", - "Date" : "Fri, 15 Apr 2022 21:47:12 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/4c7b638b04c7b638b7b994673542904ac9bdd4bd29f6?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4b91cc1b-6603-4efc-aeec-95cee7f71a7b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "52b237bb-701e-007e-4712-51dde7000000", - "x-ms-client-request-id" : "4b91cc1b-6603-4efc-aeec-95cee7f71a7b", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - } ], - "variables" : [ "4c7b638b04c7b638b7b994673542904ac9bdd4bd29f6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[2].json deleted file mode 100644 index 1f920cd33ed75..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[2].json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/675630480675630489bd8499721d5dc25bc594c5985d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c298b441-f3e3-4981-a7d1-03ffc04f881b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F29809F8E4F", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a9a39245-601e-0096-6512-514471000000", - "x-ms-client-request-id" : "c298b441-f3e3-4981-a7d1-03ffc04f881b", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/675630480675630489bd8499721d5dc25bc594c5985d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "06d7ad01-87bd-4fb5-9b89-1111cf1bd934" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "a9a39282-601e-0096-1d12-514471000000", - "x-ms-client-request-id" : "06d7ad01-87bd-4fb5-9b89-1111cf1bd934", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - } ], - "variables" : [ "675630480675630489bd8499721d5dc25bc594c5985d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[3].json deleted file mode 100644 index 260bd3cc69a09..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsAC[3].json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7e4d010907e4d010968c46316391f67ce4223460a89e?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9099a720-199c-428d-8869-7052107d6b7d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A45C7E", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "8d8dc446-701e-009a-7612-51d379000000", - "x-ms-client-request-id" : "9099a720-199c-428d-8869-7052107d6b7d", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7e4d010907e4d010968c46316391f67ce4223460a89e?comp=lease&restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d746c660-111d-4374-877d-58e83b98be1f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "09b2de1f-dcb3-4c47-9bbe-e8608914537c", - "eTag" : "0x8DA1F2980A45C7E", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "315f2d3a-901e-003b-2712-510804000000", - "x-ms-client-request-id" : "d746c660-111d-4374-877d-58e83b98be1f", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/7e4d010907e4d010968c46316391f67ce4223460a89e?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "bfebb388-d175-410f-8145-8067a8073e3e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "52b23812-701e-007e-1812-51dde7000000", - "x-ms-client-request-id" : "bfebb388-d175-410f-8145-8067a8073e3e", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - } ], - "variables" : [ "7e4d010907e4d010968c46316391f67ce4223460a89e" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[0].json deleted file mode 100644 index 8d27ce0ee64c3..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[0].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/bb43599c0bb43599cc0817044c3b9c0661fe8435382d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "accc24ec-684a-4ee7-bed7-e7e52e95b5b8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0A0FAC", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9bb2689d-a01e-0099-5613-51321d000000", - "x-ms-client-request-id" : "accc24ec-684a-4ee7-bed7-e7e52e95b5b8", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/bb43599c0bb43599cc0817044c3b9c0661fe8435382d/bb43599c1bb43599cc0832840331d054053f14de8bfe?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2703cedc-47bf-4c58-b7f3-e89ef989540c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A780509", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "57adea26-901f-003b-6713-510804000000", - "x-ms-client-request-id" : "2703cedc-47bf-4c58-b7f3-e89ef989540c", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/bb43599c0bb43599cc0817044c3b9c0661fe8435382d/bb43599c1bb43599cc0832840331d054053f14de8bfe?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2e981543-a814-46ba-b1bb-ba397277899a" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "57adea28-901f-003b-6813-510804000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:57adea28-901f-003b-6813-510804000000\\nTime:2022-04-15T21:58:14.8158190Z\"}}", - "x-ms-client-request-id" : "2e981543-a814-46ba-b1bb-ba397277899a", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "bb43599c0bb43599cc0817044c3b9c0661fe8435382d", "bb43599c1bb43599cc0832840331d054053f14de8bfe" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[1].json deleted file mode 100644 index afd635951ae3c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a25868dd0a25868dd6b62163230f00cf4a6fe4aee934?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "22f7253f-82b0-4afe-9a23-b85e0a48ebd9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0DEC9E", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c56878c2-b01e-005e-5013-51a640000000", - "x-ms-client-request-id" : "22f7253f-82b0-4afe-9a23-b85e0a48ebd9", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a25868dd0a25868dd6b62163230f00cf4a6fe4aee934/a25868dd1a25868dd6b665413fc9ba8d3bd504d0981d?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "021f93c0-60c9-4614-964f-6854b7cec310" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0ACD653E", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:15 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "3930b9c6-a01f-0052-1c13-513148000000", - "x-ms-client-request-id" : "021f93c0-60c9-4614-964f-6854b7cec310", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a25868dd0a25868dd6b62163230f00cf4a6fe4aee934/a25868dd1a25868dd6b665413fc9ba8d3bd504d0981d?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1119239a-5545-4492-bab8-e44a8b44b945" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "3930b9ca-a01f-0052-1d13-513148000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:3930b9ca-a01f-0052-1d13-513148000000\\nTime:2022-04-15T21:58:15.3567269Z\"}}", - "x-ms-client-request-id" : "1119239a-5545-4492-bab8-e44a8b44b945", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "a25868dd0a25868dd6b62163230f00cf4a6fe4aee934", "a25868dd1a25868dd6b665413fc9ba8d3bd504d0981d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[2].json deleted file mode 100644 index 14052f5246258..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[2].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/89753b1e089753b1e00039703c5d5b18da41545e5ac0?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e730a21c-3f41-45bc-9e0a-32dd5913d153" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0DAA59", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "4e2029da-901e-0092-5f13-51c976000000", - "x-ms-client-request-id" : "e730a21c-3f41-45bc-9e0a-32dd5913d153", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/89753b1e089753b1e00039703c5d5b18da41545e5ac0/89753b1e189753b1e00065516f0852fc5db7a4f0eaea?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a9510821-4252-431d-a398-dde6880f1f40" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0AD6CEE3", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:15 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "0a039f02-a01f-001f-5e13-51fea4000000", - "x-ms-client-request-id" : "a9510821-4252-431d-a398-dde6880f1f40", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/89753b1e089753b1e00039703c5d5b18da41545e5ac0/89753b1e189753b1e00065516f0852fc5db7a4f0eaea?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "41d0ab15-d545-41b6-bb95-b1d8f5d70168" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "0a039f04-a01f-001f-5f13-51fea4000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:0a039f04-a01f-001f-5f13-51fea4000000\\nTime:2022-04-15T21:58:15.3360516Z\"}}", - "x-ms-client-request-id" : "41d0ab15-d545-41b6-bb95-b1d8f5d70168", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "89753b1e089753b1e00039703c5d5b18da41545e5ac0", "89753b1e189753b1e00065516f0852fc5db7a4f0eaea" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[3].json deleted file mode 100644 index 03605d82d6a93..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[3].json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/906e0a5f0906e0a5fcd999919ab5f013d12494e7b918?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3a647a38-4fdd-47de-8eb2-4d8da14a2b28" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A08F7E5", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9d553d2a-001e-005b-1113-51749b000000", - "x-ms-client-request-id" : "3a647a38-4fdd-47de-8eb2-4d8da14a2b28", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/906e0a5f0906e0a5fcd999919ab5f013d12494e7b918/906e0a5f1906e0a5fcd956977d60ae70aff2e4314bc2?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "91aaac0d-e1ba-4d8c-8d83-f5bfb4035afc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A6EAF7C", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "73dc311d-d01f-0058-6a13-5195ff000000", - "x-ms-client-request-id" : "91aaac0d-e1ba-4d8c-8d83-f5bfb4035afc", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/906e0a5f0906e0a5fcd999919ab5f013d12494e7b918/906e0a5f1906e0a5fcd956977d60ae70aff2e4314bc2", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "bd8180df-2ed4-4f30-bf1f-0f6b2bceee85" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-resource-type,x-ms-meta-hdi_isfolder,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,x-ms-server-encrypted,x-ms-access-tier,x-ms-access-tier-inferred,Accept-Ranges,x-ms-owner,x-ms-group,x-ms-permissions,Content-Length,Date,Transfer-Encoding", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 15 Apr 2022 21:58:14 GMT", - "eTag" : "0x8DA1F2B0A6EAF7C", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "fc416ab3-f01e-0094-4713-51fac9000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-client-request-id" : "bd8180df-2ed4-4f30-bf1f-0f6b2bceee85" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/906e0a5f0906e0a5fcd999919ab5f013d12494e7b918/906e0a5f1906e0a5fcd956977d60ae70aff2e4314bc2?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e1920498-7737-47bb-aaf9-d094352db8c7" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "5df87d67-001f-0090-5a13-5177ce000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:5df87d67-001f-0090-5a13-5177ce000000\\nTime:2022-04-15T21:58:15.3580057Z\"}}", - "x-ms-client-request-id" : "e1920498-7737-47bb-aaf9-d094352db8c7", - "Date" : "Fri, 15 Apr 2022 21:58:15 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "906e0a5f0906e0a5fcd999919ab5f013d12494e7b918", "906e0a5f1906e0a5fcd956977d60ae70aff2e4314bc2" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[4].json deleted file mode 100644 index 4fbecaaeec3f6..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirACFail[4].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/df2f9c980df2f9c9812d0566045663c7b44334a21943?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cfc0dadf-5286-44c4-af1c-78b279941461" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A09B39F", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e4566c14-f01e-004f-7b13-513cf4000000", - "x-ms-client-request-id" : "cfc0dadf-5286-44c4-af1c-78b279941461", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/df2f9c980df2f9c9812d0566045663c7b44334a21943/df2f9c981df2f9c9812d148216d2138f764104755966?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a28c06a3-e0e5-4b67-8213-c6162079d3a8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A764D7A", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5df87d65-001f-0090-5913-5177ce000000", - "x-ms-client-request-id" : "a28c06a3-e0e5-4b67-8213-c6162079d3a8", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/df2f9c980df2f9c9812d0566045663c7b44334a21943/df2f9c981df2f9c9812d148216d2138f764104755966?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c53bc97c-5a3f-42f9-a77f-26f9bc00ed20" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "6b30770a-8d53-42a5-88fa-6ea8e3c20ca0", - "eTag" : "0x8DA1F2B0A764D7A", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3d2c9106-601e-005d-2e13-514724000000", - "x-ms-client-request-id" : "c53bc97c-5a3f-42f9-a77f-26f9bc00ed20", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/df2f9c980df2f9c9812d0566045663c7b44334a21943/df2f9c981df2f9c9812d148216d2138f764104755966?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3d4f1c82-2d92-4851-a273-229e3e743a28" - }, - "Response" : { - "content-length" : "199", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseIdMismatch", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "20a28ab6-f01f-0084-3b13-513fa1000000", - "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:20a28ab6-f01f-0084-3b13-513fa1000000\\nTime:2022-04-15T21:58:15.1708493Z\"}}", - "x-ms-client-request-id" : "3d4f1c82-2d92-4851-a273-229e3e743a28", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "df2f9c980df2f9c9812d0566045663c7b44334a21943", "df2f9c981df2f9c9812d148216d2138f764104755966" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[0].json deleted file mode 100644 index 2cfe0227a8665..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[0].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7bc99b2f07bc99b2fd3c80964a0fffd2aa4004657928?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "09d123df-8cad-4c19-8410-58be4ce34099" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A08AAEA", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "61b1c889-201e-0073-3513-511533000000", - "x-ms-client-request-id" : "09d123df-8cad-4c19-8410-58be4ce34099", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bc99b2f07bc99b2fd3c80964a0fffd2aa4004657928/7bc99b2f17bc99b2fd3c94794d8f87dd25f6e43c2a71?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a02efada-f60c-43ba-ac10-34743a5f960a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A71C795", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "6642b5b1-201f-0087-2a13-51dec5000000", - "x-ms-client-request-id" : "a02efada-f60c-43ba-ac10-34743a5f960a", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bc99b2f07bc99b2fd3c80964a0fffd2aa4004657928/7bc99b2f17bc99b2fd3c94794d8f87dd25f6e43c2a71?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1f36b373-e344-42ab-8406-60dd350c7891" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334947818138", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "4ba66eb6-301f-007f-4313-51823b000000", - "x-ms-client-request-id" : "1f36b373-e344-42ab-8406-60dd350c7891", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "7bc99b2f07bc99b2fd3c80964a0fffd2aa4004657928", "7bc99b2f17bc99b2fd3c94794d8f87dd25f6e43c2a71" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[1].json deleted file mode 100644 index 6a0df8e4d0647..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/62d2aa6e062d2aa6e2fa85062eaf8c985a73c450bac9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4d169bb9-3a1a-4c8d-8787-0b1a5811431e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A09901A", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "83033839-901e-0059-7b13-51ca23000000", - "x-ms-client-request-id" : "4d169bb9-3a1a-4c8d-8787-0b1a5811431e", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/62d2aa6e062d2aa6e2fa85062eaf8c985a73c450bac9/62d2aa6e162d2aa6e2fa72166cbdcf631309447cd9d1?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "423aef2a-07e5-4f39-a6a2-6739324f907b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A6DBCA9", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "20a28ab4-f01f-0084-3a13-513fa1000000", - "x-ms-client-request-id" : "423aef2a-07e5-4f39-a6a2-6739324f907b", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/62d2aa6e062d2aa6e2fa85062eaf8c985a73c450bac9/62d2aa6e162d2aa6e2fa72166cbdcf631309447cd9d1?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a4358c52-71e3-4a05-95ec-758770eedd63" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334947141786", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "c5a227ea-701f-0041-7913-511544000000", - "x-ms-client-request-id" : "a4358c52-71e3-4a05-95ec-758770eedd63", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "62d2aa6e062d2aa6e2fa85062eaf8c985a73c450bac9", "62d2aa6e162d2aa6e2fa72166cbdcf631309447cd9d1" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[2].json deleted file mode 100644 index 38929f9aee61a..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[2].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/49fff9ad049fff9ad2ae50275bff4f4a5d5e64b4d89f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0b4df98b-06b9-42ea-b4a9-8d038654abff" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0A5F63", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5acc0f59-f01e-003d-0f13-513bbb000000", - "x-ms-client-request-id" : "0b4df98b-06b9-42ea-b4a9-8d038654abff", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/49fff9ad049fff9ad2ae50275bff4f4a5d5e64b4d89f/49fff9ad149fff9ad2ae52552c205acb798af4989a82?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c73063e2-e51c-4c51-9bce-95ba80120d3f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A6E705F", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5ec5097d-e01f-001e-0713-51a178000000", - "x-ms-client-request-id" : "c73063e2-e51c-4c51-9bce-95ba80120d3f", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/49fff9ad049fff9ad2ae50275bff4f4a5d5e64b4d89f/49fff9ad149fff9ad2ae52552c205acb798af4989a82?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "31928753-5640-4e0a-8db3-807985a0d22a" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334951137900", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "6642b5b3-201f-0087-2b13-51dec5000000", - "x-ms-client-request-id" : "31928753-5640-4e0a-8db3-807985a0d22a", - "Date" : "Fri, 15 Apr 2022 21:58:15 GMT" - }, - "Exception" : null - } ], - "variables" : [ "49fff9ad049fff9ad2ae50275bff4f4a5d5e64b4d89f", "49fff9ad149fff9ad2ae52552c205acb798af4989a82" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[3].json deleted file mode 100644 index 2096c3a32ce3a..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[3].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/50e4c8ec050e4c8ecfd08273325e619e280b8481eb5d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6588fe1b-2b3d-41db-931b-3c340b0b28b6" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A1135FD", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3330bdec-f01e-0060-1a13-51313f000000", - "x-ms-client-request-id" : "6588fe1b-2b3d-41db-931b-3c340b0b28b6", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/50e4c8ec050e4c8ecfd08273325e619e280b8481eb5d/50e4c8ec150e4c8ecfd03033922529150d57e4e9db6a?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "877e5291-121c-4e9e-bda9-546a57508f86" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A748CA8", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "4ba66eb4-301f-007f-4213-51823b000000", - "x-ms-client-request-id" : "877e5291-121c-4e9e-bda9-546a57508f86", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/50e4c8ec050e4c8ecfd08273325e619e280b8481eb5d/50e4c8ec150e4c8ecfd03033922529150d57e4e9db6a", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "801ba6ff-6cb3-4174-9ee3-b79c1eac4034" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-resource-type,x-ms-meta-hdi_isfolder,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,x-ms-server-encrypted,x-ms-access-tier,x-ms-access-tier-inferred,Accept-Ranges,x-ms-owner,x-ms-group,x-ms-permissions,Content-Length,Date,Transfer-Encoding", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 15 Apr 2022 21:58:14 GMT", - "eTag" : "0x8DA1F2B0A748CA8", - "x-ms-permissions" : "rwxr-x---", - "x-ms-request-id" : "3330bf1f-f01e-0060-3813-51313f000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "directory", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-meta-hdi_isfolder" : "true", - "x-ms-client-request-id" : "801ba6ff-6cb3-4174-9ee3-b79c1eac4034" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/50e4c8ec050e4c8ecfd08273325e619e280b8481eb5d/50e4c8ec150e4c8ecfd03033922529150d57e4e9db6a?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "55d3ab9d-a4a5-4f53-a4c7-491636269de3" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334951145545", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5ec5097f-e01f-001e-0813-51a178000000", - "x-ms-client-request-id" : "55d3ab9d-a4a5-4f53-a4c7-491636269de3", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "50e4c8ec050e4c8ecfd08273325e619e280b8481eb5d", "50e4c8ec150e4c8ecfd03033922529150d57e4e9db6a" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[4].json deleted file mode 100644 index 91b5a10b08a64..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[4].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/1fa55e2b01fa55e2b7b298713a81d55dcd2864b1f9fd?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ab0b6188-c94c-4270-89c2-2d3c1dab342f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0952A5", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "59c346f5-901e-002b-6d13-51cd6c000000", - "x-ms-client-request-id" : "ab0b6188-c94c-4270-89c2-2d3c1dab342f", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/1fa55e2b01fa55e2b7b298713a81d55dcd2864b1f9fd/1fa55e2b11fa55e2b7b242017c065adc85e3841a1964?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3c686ae4-9200-42d1-8db4-8274ae9ccaeb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A6FF2B4", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d0243e49-f01f-0012-0613-513670000000", - "x-ms-client-request-id" : "3c686ae4-9200-42d1-8db4-8274ae9ccaeb", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/1fa55e2b01fa55e2b7b298713a81d55dcd2864b1f9fd/1fa55e2b11fa55e2b7b242017c065adc85e3841a1964?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "5951bd34-42a6-4270-8283-22c5c4255c35" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334947813743", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "28693635-801f-0037-1e13-519f0c000000", - "x-ms-client-request-id" : "5951bd34-42a6-4270-8283-22c5c4255c35", - "Date" : "Fri, 15 Apr 2022 21:58:15 GMT" - }, - "Exception" : null - } ], - "variables" : [ "1fa55e2b01fa55e2b7b298713a81d55dcd2864b1f9fd", "1fa55e2b11fa55e2b7b242017c065adc85e3841a1964" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[5].json deleted file mode 100644 index d05dad5ef50ac..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirAC[5].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/06be6f6a006be6f6ae8107805cf807a1e795b40179bb?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1868432e-652b-459d-8f3c-82c21ec2f4af" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A117AD7", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "fc416901-f01e-0094-3413-51fac9000000", - "x-ms-client-request-id" : "1868432e-652b-459d-8f3c-82c21ec2f4af", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/06be6f6a006be6f6ae8107805cf807a1e795b40179bb/06be6f6a106be6f6ae8182222113373179b9d46e7a79?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f7b09509-3eea-4ace-b07c-0f67be8bf80a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A702EB5", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "28693633-801f-0037-1d13-519f0c000000", - "x-ms-client-request-id" : "f7b09509-3eea-4ace-b07c-0f67be8bf80a", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/06be6f6a006be6f6ae8107805cf807a1e795b40179bb/06be6f6a106be6f6ae8182222113373179b9d46e7a79?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "60b70c65-d086-4409-b6a8-f11cd1914d92" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "4fba297b-bd66-44de-82e6-7742da499478", - "eTag" : "0x8DA1F2B0A702EB5", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c5687a1d-b01e-005e-0f13-51a640000000", - "x-ms-client-request-id" : "60b70c65-d086-4409-b6a8-f11cd1914d92", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/06be6f6a006be6f6ae8107805cf807a1e795b40179bb/06be6f6a106be6f6ae8182222113373179b9d46e7a79?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "897c5d27-1261-4f0d-8e29-f24838a5bc86" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334951142154", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "b0a0a6e0-001f-0074-6e13-517950000000", - "x-ms-client-request-id" : "897c5d27-1261-4f0d-8e29-f24838a5bc86", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "06be6f6a006be6f6ae8107805cf807a1e795b40179bb", "06be6f6a106be6f6ae8182222113373179b9d46e7a79" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirMin.json deleted file mode 100644 index 492c3920d9aba..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirMin.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/e269a6780e269a67818449890157fc362863a4840964?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "30f22e0c-0a70-4c5a-9d4e-7fb28165eee1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0A503F", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "14da6e4d-701e-000c-4213-51daa8000000", - "x-ms-client-request-id" : "30f22e0c-0a70-4c5a-9d4e-7fb28165eee1", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/e269a6780e269a67818449890157fc362863a4840964/e269a6781e269a6781847401107f99e39b6384bc28af?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "820ed119-c288-48bf-95f9-b78907b50d2d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A7C6D8D", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5cf9dc71-401f-004a-0313-51ee2f000000", - "x-ms-client-request-id" : "820ed119-c288-48bf-95f9-b78907b50d2d", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/e269a6780e269a67818449890157fc362863a4840964/e269a6781e269a6781847401107f99e39b6384bc28af?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "48e9bdc8-74cc-4518-9af6-a2c8897506ad" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334951184731", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5cf9dc73-401f-004a-0413-51ee2f000000", - "x-ms-client-request-id" : "48e9bdc8-74cc-4518-9af6-a2c8897506ad", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "e269a6780e269a67818449890157fc362863a4840964", "e269a6781e269a6781847401107f99e39b6384bc28af" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirNullArgs.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirNullArgs.json deleted file mode 100644 index 261bed5f47b46..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirNullArgs.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/e458ef950e458ef95e3811630f7e00c6d055d4be8840?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f97dc346-8f39-429b-9f98-51e86f69ac4e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0CDCA6", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3d2c8fa3-601e-005d-6d13-514724000000", - "x-ms-client-request-id" : "f97dc346-8f39-429b-9f98-51e86f69ac4e", - "Date" : "Fri, 15 Apr 2022 21:58:12 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/e458ef950e458ef95e3811630f7e00c6d055d4be8840/e458ef951e458ef95e3894337917aa34635fc403fa08?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fb26da1a-8eca-4c74-9e2f-bf277bd1a9f0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A70C8DA", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "c5a227e8-701f-0041-7813-511544000000", - "x-ms-client-request-id" : "fb26da1a-8eca-4c74-9e2f-bf277bd1a9f0", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/e458ef950e458ef95e3811630f7e00c6d055d4be8840/e458ef951e458ef95e3894337917aa34635fc403fa08?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9328a9fc-6b2e-4d3c-8c41-52d99ac53e46" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334947148004", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "d0243e4c-f01f-0012-0813-513670000000", - "x-ms-client-request-id" : "9328a9fc-6b2e-4d3c-8c41-52d99ac53e46", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "e458ef950e458ef95e3811630f7e00c6d055d4be8840", "e458ef951e458ef95e3894337917aa34635fc403fa08" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirRecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirRecursive.json deleted file mode 100644 index 0e238ae47a7eb..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirRecursive.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a2519af60a2519af66bb25622201dd60269fb41829b5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "67b31bfd-5639-4819-bc16-774d5307e4e9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0CCFCC", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "0854e518-e01e-0043-2613-51abfc000000", - "x-ms-client-request-id" : "67b31bfd-5639-4819-bc16-774d5307e4e9", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a2519af60a2519af66bb25622201dd60269fb41829b5/a2519af61a2519af66bb52033c4acb4edd2d4477388e?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9519be15-243d-4c0c-956f-6742c43cc7a1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A6D6D92", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b0a0a6de-001f-0074-6d13-517950000000", - "x-ms-client-request-id" : "9519be15-243d-4c0c-956f-6742c43cc7a1", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a2519af60a2519af66bb25622201dd60269fb41829b5/a2519af61a2519af66bb52033c4acb4edd2d4477388e?recursive=true", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6065f88b-572b-4219-9e9d-64fc1a88634f" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334947095465", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "73dc3120-d01f-0058-6c13-5195ff000000", - "x-ms-client-request-id" : "6065f88b-572b-4219-9e9d-64fc1a88634f", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "a2519af60a2519af66bb25622201dd60269fb41829b5", "a2519af61a2519af66bb52033c4acb4edd2d4477388e" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirThatDoesNotExist.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirThatDoesNotExist.json deleted file mode 100644 index d7bb5c1eea118..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirThatDoesNotExist.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/3baf898a03baf898a05f985997639dcda9f9c4564907?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e726968d-ace7-40d7-8ada-423322bcdead" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A083502", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "c701d66f-001e-0039-4613-51b6bc000000", - "x-ms-client-request-id" : "e726968d-ace7-40d7-8ada-423322bcdead", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/3baf898a03baf898a05f985997639dcda9f9c4564907/3baf898a13baf898a05f03868bfd3755c4e7440c4ac6?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d14c14a2-df83-4866-9366-614e67786ec9" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "59b148ef-201f-005c-0813-5118f8000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:59b148ef-201f-005c-0813-5118f8000000\\nTime:2022-04-15T21:58:14.7399889Z\"}}", - "x-ms-client-request-id" : "d14c14a2-df83-4866-9366-614e67786ec9", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/3baf898a03baf898a05f985997639dcda9f9c4564907/3baf898a13baf898a05f03868bfd3755c4e7440c4ac6", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "879271ce-20c8-4529-a3a3-f32c4b8fa2e2" - }, - "Response" : { - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-error-code" : "BlobNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "c5687a6d-b01e-005e-5b13-51a640000000", - "x-ms-client-request-id" : "879271ce-20c8-4529-a3a3-f32c4b8fa2e2", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - } ], - "variables" : [ "3baf898a03baf898a05f985997639dcda9f9c4564907", "3baf898a13baf898a05f03868bfd3755c4e7440c4ac6" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirThatWasAlreadyDeleted.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirThatWasAlreadyDeleted.json deleted file mode 100644 index 7af79f2810258..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsDirThatWasAlreadyDeleted.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a117abff0a117abff58c9844681481e271d0543e9b99?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e14a5c2a-58f3-4e1e-ac6a-d668dbecadc2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A0D3E47", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "061bdc20-d01e-0005-3513-519f7b000000", - "x-ms-client-request-id" : "e14a5c2a-58f3-4e1e-ac6a-d668dbecadc2", - "Date" : "Fri, 15 Apr 2022 21:58:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a117abff0a117abff58c9844681481e271d0543e9b99/a117abff1a117abff58c396103e5097cd13474b5da78?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0325d7c2-0460-49e9-a1b3-d4c78f9248cb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2B0A92CEEB", - "Last-Modified" : "Fri, 15 Apr 2022 21:58:14 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "e3d3f206-401f-0065-5413-51e3e4000000", - "x-ms-client-request-id" : "0325d7c2-0460-49e9-a1b3-d4c78f9248cb", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a117abff0a117abff58c9844681481e271d0543e9b99/a117abff1a117abff58c396103e5097cd13474b5da78?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "335fed09-0256-410a-b2e9-091429715ef6" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945334951098561", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "59b148f1-201f-005c-0913-5118f8000000", - "x-ms-client-request-id" : "335fed09-0256-410a-b2e9-091429715ef6", - "Date" : "Fri, 15 Apr 2022 21:58:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a117abff0a117abff58c9844681481e271d0543e9b99/a117abff1a117abff58c396103e5097cd13474b5da78?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fdb6759e-e1c7-4e07-80fd-f2a87579de3a" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "6642b5b4-201f-0087-2c13-51dec5000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:6642b5b4-201f-0087-2c13-51dec5000000\\nTime:2022-04-15T21:58:15.3178434Z\"}}", - "x-ms-client-request-id" : "fdb6759e-e1c7-4e07-80fd-f2a87579de3a", - "Date" : "Fri, 15 Apr 2022 21:58:15 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "a117abff0a117abff58c9844681481e271d0543e9b99", "a117abff1a117abff58c396103e5097cd13474b5da78" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[0].json deleted file mode 100644 index 4e1068b88741a..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[0].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/55227a00055227a0047215908314c8429831f4fa885f?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "0e272782-236c-43a0-8f65-8cf892324ee8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA4A0FA", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ec61c2d0-e01e-0031-6a12-51acb3000000", - "x-ms-client-request-id" : "0e272782-236c-43a0-8f65-8cf892324ee8", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/55227a00055227a0047215908314c8429831f4fa885f/55227a00155227a004721439245cc082fce9849baac2?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "125335b5-58b5-415c-a999-fca8bb8cb349" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF2A8BF", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "501b448b-901f-0082-2512-510c1e000000", - "x-ms-client-request-id" : "125335b5-58b5-415c-a999-fca8bb8cb349", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/55227a00055227a0047215908314c8429831f4fa885f/55227a00155227a004721439245cc082fce9849baac2?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "38388f28-638c-4d01-874b-379a5ab61632" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "b0a09fb6-001f-0074-7312-517950000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:b0a09fb6-001f-0074-7312-517950000000\\nTime:2022-04-15T21:51:38.2747150Z\"}}", - "x-ms-client-request-id" : "38388f28-638c-4d01-874b-379a5ab61632", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "55227a00055227a0047215908314c8429831f4fa885f", "55227a00155227a004721439245cc082fce9849baac2" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[1].json deleted file mode 100644 index 085832b481e4f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[1].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/4c394b4104c394b4114293811be0d0031938e4a71a24?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f51ee078-76a4-49f8-9a1c-ddb6ba0479d2" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA3E8C3", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a5a45a00-f01e-005f-5912-51f99c000000", - "x-ms-client-request-id" : "f51ee078-76a4-49f8-9a1c-ddb6ba0479d2", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/4c394b4104c394b4114293811be0d0031938e4a71a24/4c394b4114c394b41142502638c9bc2ba76f14922b08?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "93588b9c-2334-495f-a8fa-8604c7dfd75a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DFD240C", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "73dc2a8c-d01f-0058-7c12-5195ff000000", - "x-ms-client-request-id" : "93588b9c-2334-495f-a8fa-8604c7dfd75a", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/4c394b4104c394b4114293811be0d0031938e4a71a24/4c394b4114c394b41142502638c9bc2ba76f14922b08?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d2bd138f-e3d4-4575-9c2f-030102461730" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "73dc2a8d-d01f-0058-7d12-5195ff000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:73dc2a8d-d01f-0058-7d12-5195ff000000\\nTime:2022-04-15T21:51:38.0189490Z\"}}", - "x-ms-client-request-id" : "d2bd138f-e3d4-4575-9c2f-030102461730", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "4c394b4104c394b4114293811be0d0031938e4a71a24", "4c394b4114c394b41142502638c9bc2ba76f14922b08" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[2].json deleted file mode 100644 index d42c6f3b3fbad..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[2].json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/67141882067141882f3e062785fde2642aff046a9bc4?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c236b76a-d6cd-4575-9e6b-faeaf5002e04" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA4F7F5", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "e6e5b93b-a01e-0020-7112-513607000000", - "x-ms-client-request-id" : "c236b76a-d6cd-4575-9e6b-faeaf5002e04", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/67141882067141882f3e062785fde2642aff046a9bc4/67141882167141882f3e21256833eb1233c464a18bcf?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "aaf6a40e-fe57-4f69-ab4f-01085d77bc3e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF003CD", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "bbf920be-801f-0008-6f12-5157af000000", - "x-ms-client-request-id" : "aaf6a40e-fe57-4f69-ab4f-01085d77bc3e", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/67141882067141882f3e062785fde2642aff046a9bc4/67141882167141882f3e21256833eb1233c464a18bcf?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6a3eca0d-9d58-48b9-b83b-a3f5affe4387" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "81298f56-c01f-008f-4112-51c4ca000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:81298f56-c01f-008f-4112-51c4ca000000\\nTime:2022-04-15T21:51:37.9063262Z\"}}", - "x-ms-client-request-id" : "6a3eca0d-9d58-48b9-b83b-a3f5affe4387", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "67141882067141882f3e062785fde2642aff046a9bc4", "67141882167141882f3e21256833eb1233c464a18bcf" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[3].json deleted file mode 100644 index b93440ba70e63..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[3].json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7e0f29c307e0f29c39b05052861781123808e486b8e4?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "81cd8b48-02ef-4f9a-945b-b188fae0303b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA5A330", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "52b3ba40-701e-007e-3012-51dde7000000", - "x-ms-client-request-id" : "81cd8b48-02ef-4f9a-945b-b188fae0303b", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/7e0f29c307e0f29c39b05052861781123808e486b8e4/7e0f29c317e0f29c39b084560f1f73430e8a047a6be3?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "33bf5411-bf4b-497c-9533-51f47513b8f0" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1E30ECD3", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:38 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "11336c3a-201f-002e-7512-511fb7000000", - "x-ms-client-request-id" : "33bf5411-bf4b-497c-9533-51f47513b8f0", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/7e0f29c307e0f29c39b05052861781123808e486b8e4/7e0f29c317e0f29c39b084560f1f73430e8a047a6be3", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a25e9b69-3dd4-489c-a1e5-e7d9682ac805" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:38 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-resource-type,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,x-ms-server-encrypted,x-ms-access-tier,x-ms-access-tier-inferred,Accept-Ranges,x-ms-owner,x-ms-group,x-ms-permissions,Content-Length,Date,Transfer-Encoding", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 15 Apr 2022 21:51:38 GMT", - "eTag" : "0x8DA1F2A1E30ECD3", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "a9a51f8b-601e-0096-6f12-514471000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "a25e9b69-3dd4-489c-a1e5-e7d9682ac805" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/7e0f29c307e0f29c39b05052861781123808e486b8e4/7e0f29c317e0f29c39b084560f1f73430e8a047a6be3?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "29fe0903-2e3f-4042-995f-d56d11cd352f" - }, - "Response" : { - "content-length" : "200", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ConditionNotMet", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "b0a09fb7-001f-0074-7412-517950000000", - "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:b0a09fb7-001f-0074-7412-517950000000\\nTime:2022-04-15T21:51:38.5515556Z\"}}", - "x-ms-client-request-id" : "29fe0903-2e3f-4042-995f-d56d11cd352f", - "Date" : "Fri, 15 Apr 2022 21:51:38 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "7e0f29c307e0f29c39b05052861781123808e486b8e4", "7e0f29c317e0f29c39b084560f1f73430e8a047a6be3" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[4].json deleted file mode 100644 index 5bd0998b87de3..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileACFail[4].json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/314ebf040314ebf0456c846553f254465f2d1434c96d?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "336080ee-188d-4a79-ba72-2dba497883da" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA578A0", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "309a2b10-c01e-0044-5412-51c79f000000", - "x-ms-client-request-id" : "336080ee-188d-4a79-ba72-2dba497883da", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/314ebf040314ebf0456c846553f254465f2d1434c96d/314ebf041314ebf0456c847258d66847714aa400f82c?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d0d793c7-03ea-47ed-92ef-b241d91eb19f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF0ECB3", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "f883ac03-401f-0081-0512-51ed7a000000", - "x-ms-client-request-id" : "d0d793c7-03ea-47ed-92ef-b241d91eb19f", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/314ebf040314ebf0456c846553f254465f2d1434c96d/314ebf041314ebf0456c847258d66847714aa400f82c?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ab95ad05-07b6-49fd-867c-a618942905a9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "488592e7-9761-47e8-8d5e-70cd1cf1afda", - "eTag" : "0x8DA1F2A1DF0ECB3", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "be80ee1c-901e-0014-6612-5105cf000000", - "x-ms-client-request-id" : "ab95ad05-07b6-49fd-867c-a618942905a9", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/314ebf040314ebf0456c846553f254465f2d1434c96d/314ebf041314ebf0456c847258d66847714aa400f82c?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "80ae64a2-039c-4d88-b6df-56b1a67a4b16" - }, - "Response" : { - "content-length" : "199", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "LeaseIdMismatch", - "retry-after" : "0", - "StatusCode" : "412", - "x-ms-request-id" : "2d9e9164-901f-0066-6d12-510280000000", - "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:2d9e9164-901f-0066-6d12-510280000000\\nTime:2022-04-15T21:51:38.2053725Z\"}}", - "x-ms-client-request-id" : "80ae64a2-039c-4d88-b6df-56b1a67a4b16", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "314ebf040314ebf0456c846553f254465f2d1434c96d", "314ebf041314ebf0456c847258d66847714aa400f82c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[0].json deleted file mode 100644 index 8298a5c7fb13d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[0].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/92e4a308092e4a3085d7236246c634b15acda4d2d96b?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "132f5900-96d1-458c-a951-9d8ca497960e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA4867F", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "9f64a78d-a01e-0052-2712-513148000000", - "x-ms-client-request-id" : "132f5900-96d1-458c-a951-9d8ca497960e", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/92e4a308092e4a3085d7236246c634b15acda4d2d96b/92e4a308192e4a3085d75540822f4676d7415405eba0?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ed07825e-ae38-48a6-a294-decc8a2fc8b8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DEFE341", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5a419fd1-a01f-0099-6412-51321d000000", - "x-ms-client-request-id" : "ed07825e-ae38-48a6-a294-decc8a2fc8b8", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/92e4a308092e4a3085d7236246c634b15acda4d2d96b/92e4a308192e4a3085d75540822f4676d7415405eba0?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "a3614fa9-4503-4080-887c-7720a573ff11" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330979339531", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "92f445c7-301f-0050-4c12-518ff0000000", - "x-ms-client-request-id" : "a3614fa9-4503-4080-887c-7720a573ff11", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "92e4a308092e4a3085d7236246c634b15acda4d2d96b", "92e4a308192e4a3085d75540822f4676d7415405eba0" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[1].json deleted file mode 100644 index cb099ef3dcea6..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[1].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/8bff924908bff92495a6232361cc31b00092e4cf28a2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b7261af0-86ee-4c49-971b-fc3d28c1c159" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA4D0F2", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ab2436e4-301e-0040-6412-514a98000000", - "x-ms-client-request-id" : "b7261af0-86ee-4c49-971b-fc3d28c1c159", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/8bff924908bff92495a6232361cc31b00092e4cf28a2/8bff924918bff92495a630469eb92a57e8a804bd78e0?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "cba01dbf-3892-427b-96cd-f2db86354a37" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF0EACF", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "89ffee0d-b01f-004e-5812-516328000000", - "x-ms-client-request-id" : "cba01dbf-3892-427b-96cd-f2db86354a37", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/8bff924908bff92495a6232361cc31b00092e4cf28a2/8bff924918bff92495a630469eb92a57e8a804bd78e0?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "16338ca4-c019-4ff7-af4f-f79c34d623af" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330979358752", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5a419fd3-a01f-0099-6612-51321d000000", - "x-ms-client-request-id" : "16338ca4-c019-4ff7-af4f-f79c34d623af", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "8bff924908bff92495a6232361cc31b00092e4cf28a2", "8bff924918bff92495a630469eb92a57e8a804bd78e0" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[2].json deleted file mode 100644 index d2e173d182b8f..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[2].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a0d2c18a0a0d2c18a29162447a80d8a28e44440659bf?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "4832b2c8-7d61-482d-9bd6-5d32d0ed961a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA61A8F", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "be80ecac-901e-0014-8012-5105cf000000", - "x-ms-client-request-id" : "4832b2c8-7d61-482d-9bd6-5d32d0ed961a", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a0d2c18a0a0d2c18a29162447a80d8a28e44440659bf/a0d2c18a1a0d2c18a2910008114d19257f82c4ad4b8f?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "220019d0-9243-4ecc-a580-21d9fed5b2ae" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF0D14F", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "b0a09fb5-001f-0074-7212-517950000000", - "x-ms-client-request-id" : "220019d0-9243-4ecc-a580-21d9fed5b2ae", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/a0d2c18a0a0d2c18a29162447a80d8a28e44440659bf/a0d2c18a1a0d2c18a2910008114d19257f82c4ad4b8f?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "6d42c139-f133-4e46-b773-5bc489239ebe" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330979885669", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "89ffee0e-b01f-004e-5912-516328000000", - "x-ms-client-request-id" : "6d42c139-f133-4e46-b773-5bc489239ebe", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "a0d2c18a0a0d2c18a29162447a80d8a28e44440659bf", "a0d2c18a1a0d2c18a2910008114d19257f82c4ad4b8f" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[3].json deleted file mode 100644 index 890cab0eecbe4..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[3].json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/b9c9f0cb0b9c9f0cb673655459ab5079f8d5f42298a5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3ac0ca2a-f02e-49ba-a7d3-e6045e679234" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA40E0A", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3ec954d5-f01e-0084-5412-513fa1000000", - "x-ms-client-request-id" : "3ac0ca2a-f02e-49ba-a7d3-e6045e679234", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/b9c9f0cb0b9c9f0cb673655459ab5079f8d5f42298a5/b9c9f0cb1b9c9f0cb67326077544697f846ac4a8ab5d?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "68d4b85b-a037-40f5-bbd7-a2d5c2cfa190" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF2F0BD", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "81298f55-c01f-008f-4012-51c4ca000000", - "x-ms-client-request-id" : "68d4b85b-a037-40f5-bbd7-a2d5c2cfa190", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "HEAD", - "Uri" : "http://REDACTED.blob.core.windows.net/b9c9f0cb0b9c9f0cb673655459ab5079f8d5f42298a5/b9c9f0cb1b9c9f0cb67326077544697f846ac4a8ab5d", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "bd7bae96-98b0-4c42-8233-02890ff962eb" - }, - "Response" : { - "content-length" : "0", - "x-ms-lease-status" : "unlocked", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-blob-type" : "BlockBlob", - "x-ms-access-tier-inferred" : "true", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-resource-type,Content-Type,Last-Modified,ETag,x-ms-creation-time,x-ms-lease-status,x-ms-lease-state,x-ms-blob-type,x-ms-server-encrypted,x-ms-access-tier,x-ms-access-tier-inferred,Accept-Ranges,x-ms-owner,x-ms-group,x-ms-permissions,Content-Length,Date,Transfer-Encoding", - "x-ms-access-tier" : "Hot", - "x-ms-creation-time" : "Fri, 15 Apr 2022 21:51:37 GMT", - "eTag" : "0x8DA1F2A1DF2F0BD", - "x-ms-permissions" : "rw-r-----", - "x-ms-request-id" : "9f64a8b9-a01e-0052-3f12-513148000000", - "x-ms-owner" : "$superuser", - "Content-Type" : "application/octet-stream", - "x-ms-group" : "$superuser", - "x-ms-version" : "2021-04-10", - "x-ms-resource-type" : "file", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Accept-Ranges" : "bytes", - "x-ms-server-encrypted" : "true", - "x-ms-client-request-id" : "bd7bae96-98b0-4c42-8233-02890ff962eb" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/b9c9f0cb0b9c9f0cb673655459ab5079f8d5f42298a5/b9c9f0cb1b9c9f0cb67326077544697f846ac4a8ab5d?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "83a8103f-a514-4e31-88e6-9ce6c3c4f8df" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330981532508", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "89ffee0f-b01f-004e-5a12-516328000000", - "x-ms-client-request-id" : "83a8103f-a514-4e31-88e6-9ce6c3c4f8df", - "Date" : "Fri, 15 Apr 2022 21:51:38 GMT" - }, - "Exception" : null - } ], - "variables" : [ "b9c9f0cb0b9c9f0cb673655459ab5079f8d5f42298a5", "b9c9f0cb1b9c9f0cb67326077544697f846ac4a8ab5d" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[4].json deleted file mode 100644 index 83dc6c3712f84..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[4].json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/f688660c0f688660c67d35787e96088dc90f34efd829?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9f47724a-0899-46ea-82a2-c650ff120b77" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA4BBA1", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3160f78d-901e-003b-2a12-510804000000", - "x-ms-client-request-id" : "9f47724a-0899-46ea-82a2-c650ff120b77", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/f688660c0f688660c67d35787e96088dc90f34efd829/f688660c1f688660c67d763720e155819e5584e779db?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "11527c3b-a79b-40f3-a160-6036ebcd6fd8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF660EE", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "d02437e7-f01f-0012-3b12-513670000000", - "x-ms-client-request-id" : "11527c3b-a79b-40f3-a160-6036ebcd6fd8", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/f688660c0f688660c67d35787e96088dc90f34efd829/f688660c1f688660c67d763720e155819e5584e779db?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "8f078f1c-0d95-410b-ba53-c51b3043e22c" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330980347191", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "d02437e8-f01f-0012-3c12-513670000000", - "x-ms-client-request-id" : "8f078f1c-0d95-410b-ba53-c51b3043e22c", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "f688660c0f688660c67d35787e96088dc90f34efd829", "f688660c1f688660c67d763720e155819e5584e779db" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[5].json deleted file mode 100644 index 52720941f7605..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileAC[5].json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/ef93574d0ef93574d1ea667404b72064d165246ce841?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "75ea0aa1-0244-41ea-8f53-ab4c2bf6af0d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA559DB", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5ca43b5b-301e-000d-1212-518574000000", - "x-ms-client-request-id" : "75ea0aa1-0244-41ea-8f53-ab4c2bf6af0d", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/ef93574d0ef93574d1ea667404b72064d165246ce841/ef93574d1ef93574d1ea438624bd0d6f0668247f3916?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "28ad4d20-492d-4029-bb36-176073dfb56f" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1E08144C", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "20a283d0-f01f-0084-0212-513fa1000000", - "x-ms-client-request-id" : "28ad4d20-492d-4029-bb36-176073dfb56f", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/ef93574d0ef93574d1ea667404b72064d165246ce841/ef93574d1ef93574d1ea438624bd0d6f0668247f3916?comp=lease", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "90d25260-eedb-4d6f-8704-3d2328806c5d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-lease-id" : "2abb363a-2e69-4692-92c3-515c3e499b17", - "eTag" : "0x8DA1F2A1E08144C", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "5ca43c69-301e-000d-0b12-518574000000", - "x-ms-client-request-id" : "90d25260-eedb-4d6f-8704-3d2328806c5d", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/ef93574d0ef93574d1ea667404b72064d165246ce841/ef93574d1ef93574d1ea438624bd0d6f0668247f3916?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "fcf69032-7f82-49a7-84b6-d647e861740e" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330982335144", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "d02437e9-f01f-0012-3d12-513670000000", - "x-ms-client-request-id" : "fcf69032-7f82-49a7-84b6-d647e861740e", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "ef93574d0ef93574d1ea667404b72064d165246ce841", "ef93574d1ef93574d1ea438624bd0d6f0668247f3916" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileMin.json deleted file mode 100644 index 7180b82771df2..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileMin.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/7bf8f49a07bf8f49a84a80650b60230fbf2a84af8beb?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "47daf0ef-c273-45b8-a8c6-c54b85cefb1c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA59DDE", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "371bb533-401e-0091-2e12-512812000000", - "x-ms-client-request-id" : "47daf0ef-c273-45b8-a8c6-c54b85cefb1c", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bf8f49a07bf8f49a84a80650b60230fbf2a84af8beb/7bf8f49a17bf8f49a84a68986de10f910582f400cabd?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d811ab81-622c-4448-9fd3-d1cde91c4e2a" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF5BC44", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "92f445c6-301f-0050-4b12-518ff0000000", - "x-ms-client-request-id" : "d811ab81-622c-4448-9fd3-d1cde91c4e2a", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/7bf8f49a07bf8f49a84a80650b60230fbf2a84af8beb/7bf8f49a17bf8f49a84a68986de10f910582f400cabd?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2d1d2590-fa01-4d2f-8f66-7010733605e7" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330979612316", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "2d9e9163-901f-0066-6c12-510280000000", - "x-ms-client-request-id" : "2d1d2590-fa01-4d2f-8f66-7010733605e7", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "7bf8f49a07bf8f49a84a80650b60230fbf2a84af8beb", "7bf8f49a17bf8f49a84a68986de10f910582f400cabd" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileNullArgs.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileNullArgs.json deleted file mode 100644 index aafb66fa81fdb..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileNullArgs.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/8b1a5f9708b1a5f97707915915eef6f1859e34f8e82e?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "91a8b51c-995d-473e-9f39-88e2157ad428" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA4D7B0", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6aa93017-501e-008d-3712-517a72000000", - "x-ms-client-request-id" : "91a8b51c-995d-473e-9f39-88e2157ad428", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/8b1a5f9708b1a5f97707915915eef6f1859e34f8e82e/8b1a5f9718b1a5f9770704940b78b4d3b54234561be4?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "ffb6f3cd-cf09-4fba-a109-59730a94f176" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF6B2BB", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "5ec5033a-e01f-001e-6612-51a178000000", - "x-ms-client-request-id" : "ffb6f3cd-cf09-4fba-a109-59730a94f176", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/8b1a5f9708b1a5f97707915915eef6f1859e34f8e82e/8b1a5f9718b1a5f9770704940b78b4d3b54234561be4?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f960a335-c9e5-4fbf-b4a9-14c22d242bfd" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330979466188", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "5ec5033b-e01f-001e-6712-51a178000000", - "x-ms-client-request-id" : "f960a335-c9e5-4fbf-b4a9-14c22d242bfd", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - } ], - "variables" : [ "8b1a5f9708b1a5f97707915915eef6f1859e34f8e82e", "8b1a5f9718b1a5f9770704940b78b4d3b54234561be4" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileSystemThatWasAlreadyDeleted.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileSystemThatWasAlreadyDeleted.json deleted file mode 100644 index c6ecc4d06bc35..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileSystemThatWasAlreadyDeleted.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a1e0d65c0a1e0d65c17f1825687fd18773aeb4e13ae9?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "16d1458c-05f1-460b-9423-a5bb38c8d00e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A1225B", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ab22add7-301e-0040-5e12-514a98000000", - "x-ms-client-request-id" : "16d1458c-05f1-460b-9423-a5bb38c8d00e", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a1e0d65c1a1e0d65c17f23848d1bb54abc0bf418ab97?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "28f0c0a3-7d2e-467b-a283-45a7f13596bc" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980B659D8", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a97f7739-a01e-0042-7c12-51f420000000", - "x-ms-client-request-id" : "28f0c0a3-7d2e-467b-a283-45a7f13596bc", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.blob.core.windows.net/a1e0d65c1a1e0d65c17f23848d1bb54abc0bf418ab97?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "15d1fdc4-ec7a-4691-bd06-8132e0267613" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Fri, 15 Apr 2022 21:47:14 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Last-Modified,ETag,x-ms-lease-status,x-ms-lease-state,x-ms-has-immutability-policy,x-ms-has-legal-hold,x-ms-immutable-storage-with-versioning-enabled,x-ms-default-encryption-scope,x-ms-deny-encryption-scope-override,Content-Length,Date,Transfer-Encoding", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1F2980B659D8", - "x-ms-request-id" : "a97f777a-a01e-0042-3b12-51f420000000", - "x-ms-client-request-id" : "15d1fdc4-ec7a-4691-bd06-8132e0267613" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/a1e0d65c1a1e0d65c17f23848d1bb54abc0bf418ab97?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "c13d58a5-0279-44f1-b677-794b1e37d65b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "d7e7a23e-701e-001c-7f12-511fc0000000", - "x-ms-client-request-id" : "c13d58a5-0279-44f1-b677-794b1e37d65b", - "Date" : "Fri, 15 Apr 2022 21:47:14 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/a1e0d65c1a1e0d65c17f23848d1bb54abc0bf418ab97?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d0b0ed54-6738-4c19-9d27-da562ac2a49e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "d7e7a24a-701e-001c-0812-511fc0000000", - "x-ms-client-request-id" : "d0b0ed54-6738-4c19-9d27-da562ac2a49e", - "Date" : "Fri, 15 Apr 2022 21:47:14 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.blob.core.windows.net/a1e0d65c1a1e0d65c17f23848d1bb54abc0bf418ab97?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "761d36e5-57a5-410c-9608-ef77badffb60" - }, - "Response" : { - "content-length" : "225", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "retry-after" : "0", - "StatusCode" : "404", - "Date" : "Fri, 15 Apr 2022 21:47:14 GMT", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-error-code" : "ContainerNotFound", - "x-ms-request-id" : "d7e7a254-701e-001c-1212-511fc0000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d7e7a254-701e-001c-1212-511fc0000000\nTime:2022-04-15T21:47:14.4297001Z", - "x-ms-client-request-id" : "761d36e5-57a5-410c-9608-ef77badffb60", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "a1e0d65c0a1e0d65c17f1825687fd18773aeb4e13ae9", "a1e0d65c1a1e0d65c17f23848d1bb54abc0bf418ab97" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileThatDoesNotExist.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileThatDoesNotExist.json deleted file mode 100644 index d7ef4fc7897d1..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileThatDoesNotExist.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/000d8aac0000d8aac1219325345372ee7322949fbab5?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "34f870a6-f8ba-4e19-a06a-3cb11addfcd1" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA6A7B2", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "ecbb969e-a01e-0089-4b12-51f775000000", - "x-ms-client-request-id" : "34f870a6-f8ba-4e19-a06a-3cb11addfcd1", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/000d8aac0000d8aac1219325345372ee7322949fbab5/000d8aac1000d8aac121458949b23bc8fc6bf465f823?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9e525b6c-97bd-4d9a-b8a1-7103f00ece91" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "59b142f6-201f-005c-3212-5118f8000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:59b142f6-201f-005c-3212-5118f8000000\\nTime:2022-04-15T21:51:37.9863773Z\"}}", - "x-ms-client-request-id" : "9e525b6c-97bd-4d9a-b8a1-7103f00ece91", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "000d8aac0000d8aac1219325345372ee7322949fbab5", "000d8aac1000d8aac121458949b23bc8fc6bf465f823" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileThatWasAlreadyDeleted.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileThatWasAlreadyDeleted.json deleted file mode 100644 index 88712ce78ca52..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsFileThatWasAlreadyDeleted.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/1b6db88301b6db88340d29093ef49ce2aa64f4df3803?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "d3febd9f-91a2-4e31-ad62-28c02ffb89eb" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DA599F6", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "a9a51e0c-601e-0096-0312-514471000000", - "x-ms-client-request-id" : "d3febd9f-91a2-4e31-ad62-28c02ffb89eb", - "Date" : "Fri, 15 Apr 2022 21:51:36 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/1b6db88301b6db88340d29093ef49ce2aa64f4df3803/1b6db88311b6db88340d7197336ae76b08eb0454fa86?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "b3a8bf05-86dd-4fc6-8e3e-815520b8354d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2A1DF094F8", - "Last-Modified" : "Fri, 15 Apr 2022 21:51:37 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "2d9e9162-901f-0066-6b12-510280000000", - "x-ms-client-request-id" : "b3a8bf05-86dd-4fc6-8e3e-815520b8354d", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/1b6db88301b6db88340d29093ef49ce2aa64f4df3803/1b6db88311b6db88340d7197336ae76b08eb0454fa86?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9194ff81-dfb2-4dd9-8e00-1a2d12cd2a6e" - }, - "Response" : { - "content-length" : "0", - "x-ms-deletion-id" : "132945330979063518", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-delete-type-permanent" : "false", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "501b448c-901f-0082-2612-510c1e000000", - "x-ms-client-request-id" : "9194ff81-dfb2-4dd9-8e00-1a2d12cd2a6e", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.dfs.core.windows.net/1b6db88301b6db88340d29093ef49ce2aa64f4df3803/1b6db88311b6db88340d7197336ae76b08eb0454fa86?recursive=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "9b661164-a86a-42a9-9b69-20b3370e2b14" - }, - "Response" : { - "content-length" : "163", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "PathNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "501b448d-901f-0082-2712-510c1e000000", - "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:501b448d-901f-0082-2712-510c1e000000\\nTime:2022-04-15T21:51:38.0746980Z\"}}", - "x-ms-client-request-id" : "9b661164-a86a-42a9-9b69-20b3370e2b14", - "Date" : "Fri, 15 Apr 2022 21:51:37 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "1b6db88301b6db88340d29093ef49ce2aa64f4df3803", "1b6db88311b6db88340d7197336ae76b08eb0454fa86" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsMin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsMin.json deleted file mode 100644 index 6c6f8996fd58e..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsMin.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/911dbf680911dbf68cc10063523594ae067b94f92803?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "55fb4462-2acf-4887-ab6c-8ef0d6e13f4c" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A047F5", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6aa74ef3-501e-008d-2b12-517a72000000", - "x-ms-client-request-id" : "55fb4462-2acf-4887-ab6c-8ef0d6e13f4c", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/911dbf681911dbf68cc14030826cffbd5d66e4f15af2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "3fc5b569-5c40-474f-9337-e87093466e8b" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980B4B759", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "6aa74f2f-501e-008d-6112-517a72000000", - "x-ms-client-request-id" : "3fc5b569-5c40-474f-9337-e87093466e8b", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.blob.core.windows.net/911dbf681911dbf68cc14030826cffbd5d66e4f15af2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "e0aa0fc7-c21a-4fa2-9340-046f600a85f9" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "x-ms-lease-status" : "unlocked", - "x-ms-immutable-storage-with-versioning-enabled" : "false", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "x-ms-lease-state" : "available", - "x-ms-deny-encryption-scope-override" : "false", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-has-legal-hold" : "false", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "x-ms-default-encryption-scope" : "$account-encryption-key", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,Last-Modified,ETag,x-ms-lease-status,x-ms-lease-state,x-ms-has-immutability-policy,x-ms-has-legal-hold,x-ms-immutable-storage-with-versioning-enabled,x-ms-default-encryption-scope,x-ms-deny-encryption-scope-override,Content-Length,Date,Transfer-Encoding", - "x-ms-has-immutability-policy" : "false", - "eTag" : "0x8DA1F2980B4B759", - "x-ms-request-id" : "8d8dc4cb-701e-009a-7112-51d379000000", - "x-ms-client-request-id" : "e0aa0fc7-c21a-4fa2-9340-046f600a85f9" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/911dbf681911dbf68cc14030826cffbd5d66e4f15af2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "2c32f44a-6c37-4489-9eeb-b1d4a75f8a0d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "8d8dc500-701e-009a-2112-51d379000000", - "x-ms-client-request-id" : "2c32f44a-6c37-4489-9eeb-b1d4a75f8a0d", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.blob.core.windows.net/911dbf681911dbf68cc14030826cffbd5d66e4f15af2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "7c9ff0e1-709a-47ed-b150-54efb3bb8341" - }, - "Response" : { - "content-length" : "225", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "retry-after" : "0", - "StatusCode" : "404", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-error-code" : "ContainerNotFound", - "x-ms-request-id" : "ab22aeb0-301e-0040-2c12-514a98000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab22aeb0-301e-0040-2c12-514a98000000\nTime:2022-04-15T21:47:14.3577527Z", - "x-ms-client-request-id" : "7c9ff0e1-709a-47ed-b150-54efb3bb8341", - "Content-Type" : "application/xml" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.blob.core.windows.net/911dbf681911dbf68cc14030826cffbd5d66e4f15af2?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "42d9fa8b-709c-41d2-9016-4a810d309335" - }, - "Response" : { - "content-length" : "225", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "retry-after" : "0", - "StatusCode" : "404", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-error-code" : "ContainerNotFound", - "x-ms-request-id" : "ab22aee2-301e-0040-5b12-514a98000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ab22aee2-301e-0040-5b12-514a98000000\nTime:2022-04-15T21:47:14.4646929Z", - "x-ms-client-request-id" : "42d9fa8b-709c-41d2-9016-4a810d309335", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "911dbf680911dbf68cc10063523594ae067b94f92803", "911dbf681911dbf68cc14030826cffbd5d66e4f15af2" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsOnFileSystemThatDoesNotExist.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsOnFileSystemThatDoesNotExist.json deleted file mode 100644 index 990496ef78571..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestDeleteIfExistsOnFileSystemThatDoesNotExist.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a814327e0a814327eae32952381bab02bfe7c4921a8e?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "96014678-7018-44f9-aa67-0bd5e48b362e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1F2980A3E088", - "Last-Modified" : "Fri, 15 Apr 2022 21:47:13 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "3ec79236-f01e-0084-3012-513fa1000000", - "x-ms-client-request-id" : "96014678-7018-44f9-aa67-0bd5e48b362e", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "http://REDACTED.blob.core.windows.net/a814327e1a814327eae344231a0a40edba0cb473283c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "74b97ad1-6c76-4a4b-b0b9-28136614bf50" - }, - "Response" : { - "content-length" : "225", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "x-ms-error-code" : "ContainerNotFound", - "retry-after" : "0", - "StatusCode" : "404", - "x-ms-request-id" : "8d8dc48a-701e-009a-3312-51d379000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8d8dc48a-701e-009a-3312-51d379000000\nTime:2022-04-15T21:47:14.0041164Z", - "x-ms-client-request-id" : "74b97ad1-6c76-4a4b-b0b9-28136614bf50", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "Content-Type" : "application/xml" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.blob.core.windows.net/a814327e1a814327eae344231a0a40edba0cb473283c?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "496a9b7f-1e80-484a-8ced-05b2ae90aca9" - }, - "Response" : { - "content-length" : "225", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "Access-Control-Allow-Origin" : "*", - "retry-after" : "0", - "StatusCode" : "404", - "Date" : "Fri, 15 Apr 2022 21:47:13 GMT", - "Access-Control-Expose-Headers" : "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,x-ms-error-code,Content-Length,Date,Transfer-Encoding", - "x-ms-error-code" : "ContainerNotFound", - "x-ms-request-id" : "6aa74f8b-501e-008d-3112-517a72000000", - "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:6aa74f8b-501e-008d-3112-517a72000000\nTime:2022-04-15T21:47:14.1482792Z", - "x-ms-client-request-id" : "496a9b7f-1e80-484a-8ced-05b2ae90aca9", - "Content-Type" : "application/xml" - }, - "Exception" : null - } ], - "variables" : [ "a814327e0a814327eae32952381bab02bfe7c4921a8e", "a814327e1a814327eae344231a0a40edba0cb473283c" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPaths.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPaths.json index 50a9e90f69b2b..45a844ca1046b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPaths.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPaths.json @@ -1,111 +1,130 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/4441b57604441b576644581479762c59a3b4249daa47?restype=container", + "Uri" : "https://REDACTED.blob.core.windows.net/4441b57604441b576d0113803edf423c9995c4d13bb0?restype=container", "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "8845d151-da68-4d3b-b9d0-2a043b27d4e6" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "638fb6cf-5e50-428b-9f32-65ba253a6d9b" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-04-10", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA22FFDA4D3D2B", - "Last-Modified" : "Wed, 20 Apr 2022 18:59:10 GMT", + "eTag" : "0x8D90FDE9B499551", + "Last-Modified" : "Wed, 05 May 2021 15:58:21 GMT", "retry-after" : "0", "StatusCode" : "201", - "x-ms-request-id" : "cd192409-101e-0068-03e8-5490b1000000", - "x-ms-client-request-id" : "8845d151-da68-4d3b-b9d0-2a043b27d4e6", - "Date" : "Wed, 20 Apr 2022 18:59:09 GMT" + "x-ms-request-id" : "36ffcadf-801e-0055-68c7-415d2b000000", + "x-ms-client-request-id" : "638fb6cf-5e50-428b-9f32-65ba253a6d9b", + "Date" : "Wed, 05 May 2021 15:58:20 GMT" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/4441b57604441b576644581479762c59a3b4249daa47/4441b57614441b5766442010591b5eca82d164d4d987?resource=directory", + "Uri" : "https://REDACTED.dfs.core.windows.net/4441b57604441b576d0113803edf423c9995c4d13bb0/4441b57614441b576d012772401d5fa0425c640fc9af?resource=directory", "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "d2419297-cd5a-415b-8359-878fb637ec77" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "9fb9e65e-74f7-4fb5-97c6-485e9db616ee" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-04-10", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA22FFDB8C7823", - "Last-Modified" : "Wed, 20 Apr 2022 18:59:12 GMT", + "eTag" : "0x8D90FDE9B58999F", + "Last-Modified" : "Wed, 05 May 2021 15:58:21 GMT", "retry-after" : "0", "StatusCode" : "201", "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "65266da8-801f-00b1-36e8-54e834000000", - "x-ms-client-request-id" : "d2419297-cd5a-415b-8359-878fb637ec77", - "Date" : "Wed, 20 Apr 2022 18:59:11 GMT" + "x-ms-request-id" : "9dedfc7b-401f-004a-2ac7-41ee2f000000", + "x-ms-client-request-id" : "9fb9e65e-74f7-4fb5-97c6-485e9db616ee", + "Date" : "Wed, 05 May 2021 15:58:20 GMT" }, "Exception" : null }, { "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/4441b57604441b576644581479762c59a3b4249daa47/4441b57624441b576644756501b109d0106bc4790aae?resource=file", + "Uri" : "https://REDACTED.dfs.core.windows.net/4441b57604441b576d0113803edf423c9995c4d13bb0/4441b57624441b576d01116354138350f534e4878a07?resource=file", "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "a557961f-9af1-4f7d-aed9-56e697b9c0fe" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "568fc760-0ce2-44e7-b6b0-94a24f396691" }, "Response" : { "content-length" : "0", - "x-ms-version" : "2021-04-10", + "x-ms-version" : "2020-06-12", "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA22FFDBB2CE7C", - "Last-Modified" : "Wed, 20 Apr 2022 18:59:12 GMT", + "eTag" : "0x8D90FDE9B66271C", + "Last-Modified" : "Wed, 05 May 2021 15:58:21 GMT", "retry-after" : "0", "StatusCode" : "201", "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "65266da9-801f-00b1-37e8-54e834000000", - "x-ms-client-request-id" : "a557961f-9af1-4f7d-aed9-56e697b9c0fe", - "Date" : "Wed, 20 Apr 2022 18:59:11 GMT" + "x-ms-request-id" : "ef2a345d-501f-0079-66c7-41b184000000", + "x-ms-client-request-id" : "568fc760-0ce2-44e7-b6b0-94a24f396691", + "Date" : "Wed, 05 May 2021 15:58:21 GMT" }, "Exception" : null }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/4441b57604441b576644581479762c59a3b4249daa47/4441b57624441b576644756501b109d0106bc4790aae?comp=expiry", + "Method" : "GET", + "Uri" : "https://REDACTED.dfs.core.windows.net/4441b57604441b576d0113803edf423c9995c4d13bb0?resource=filesystem&recursive=false&upn=false", "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "a2e3463e-b428-4b87-888b-27d70937fdc9" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "9fda9815-aa12-4a5d-8b74-cfae0bceb1b0" }, "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA22FFDBB2CE7C", - "Last-Modified" : "Wed, 20 Apr 2022 18:59:12 GMT", + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2020-06-12", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "cd1924d1-101e-0068-28e8-5490b1000000", - "x-ms-client-request-id" : "a2e3463e-b428-4b87-888b-27d70937fdc9", - "Date" : "Wed, 20 Apr 2022 18:59:12 GMT" + "x-ms-request-id" : "c1b7ee54-401f-0007-04c7-4121c3000000", + "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"creationTime\":\"132647039013067167\",\"etag\":\"0x8D90FDE9B58999F\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Wed, 05 May 2021 15:58:21 GMT\",\"name\":\"4441b57614441b576d012772401d5fa0425c640fc9af\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"},{\"contentLength\":\"0\",\"creationTime\":\"132647039013955356\",\"etag\":\"0x8D90FDE9B66271C\",\"group\":\"$superuser\",\"lastModified\":\"Wed, 05 May 2021 15:58:21 GMT\",\"name\":\"4441b57624441b576d01116354138350f534e4878a07\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", + "x-ms-client-request-id" : "9fda9815-aa12-4a5d-8b74-cfae0bceb1b0", + "Date" : "Wed, 05 May 2021 15:58:21 GMT", + "Content-Type" : "application/json;charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "http://REDACTED.dfs.core.windows.net/4441b57604441b576644581479762c59a3b4249daa47?resource=filesystem&recursive=false&upn=false", + "Uri" : "https://REDACTED.blob.core.windows.net?comp=list&prefix=4441b576", "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "e8f42abc-d226-47ad-8b19-90fd72603ede" + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "f0ec7a78-bfce-4d9b-869e-829bc42b1d35" }, "Response" : { "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-version" : "2020-06-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", "retry-after" : "0", "StatusCode" : "200", - "x-ms-request-id" : "65266daa-801f-00b1-38e8-54e834000000", - "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"creationTime\":\"132949547521767459\",\"etag\":\"0x8DA22FFDB8C7823\",\"expiryTime\":\"0\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Wed, 20 Apr 2022 18:59:12 GMT\",\"name\":\"4441b57614441b5766442010591b5eca82d164d4d987\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"},{\"contentLength\":\"0\",\"creationTime\":\"132949547524279932\",\"etag\":\"0x8DA22FFDBB2CE7C\",\"expiryTime\":\"132951275500000000\",\"group\":\"$superuser\",\"lastModified\":\"Wed, 20 Apr 2022 18:59:12 GMT\",\"name\":\"4441b57624441b576644756501b109d0106bc4790aae\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", - "x-ms-client-request-id" : "e8f42abc-d226-47ad-8b19-90fd72603ede", - "Date" : "Wed, 20 Apr 2022 18:59:12 GMT", - "Content-Type" : "application/json;charset=utf-8" + "x-ms-request-id" : "de7624f7-e01e-0043-12c7-41abfc000000", + "Body" : "4441b5764441b57604441b576d0113803edf423c9995c4d13bb0Wed, 05 May 2021 15:58:21 GMT\"0x8D90FDE9B499551\"unlockedavailable$account-encryption-keyfalsefalsefalsefalse", + "x-ms-client-request-id" : "f0ec7a78-bfce-4d9b-869e-829bc42b1d35", + "Date" : "Wed, 05 May 2021 15:58:20 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/4441b57604441b576d0113803edf423c9995c4d13bb0?restype=container", + "Headers" : { + "x-ms-version" : "2020-06-12", + "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", + "x-ms-client-request-id" : "e13f2f45-3d26-4ca0-9067-1befdaff7604" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2020-06-12", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "30aa0a57-101e-0078-23c7-41ee58000000", + "x-ms-client-request-id" : "e13f2f45-3d26-4ca0-9067-1befdaff7604", + "Date" : "Wed, 05 May 2021 15:58:21 GMT" }, "Exception" : null } ], - "variables" : [ "4441b57604441b576644581479762c59a3b4249daa47", "4441b57614441b5766442010591b5eca82d164d4d987", "4441b57624441b576644756501b109d0106bc4790aae" ] + "variables" : [ "4441b57604441b576d0113803edf423c9995c4d13bb0", "4441b57614441b576d012772401d5fa0425c640fc9af", "4441b57624441b576d01116354138350f534e4878a07" ] } \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPathsExpiryAndCreation.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPathsExpiryAndCreation.json deleted file mode 100644 index f9bd4f3dd12e1..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestListPathsExpiryAndCreation.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a61a42f60a61a42f662e52331a65f1ad2b7524ef0b12?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.17.0-beta.1 azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "5c30f741-889a-43c4-99bc-6de4a9d27a5d" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA2EDFFE4E60DB", - "Last-Modified" : "Thu, 05 May 2022 21:41:20 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "87d295fa-c01e-0009-4dc8-60b3f2000000", - "x-ms-client-request-id" : "5c30f741-889a-43c4-99bc-6de4a9d27a5d", - "Date" : "Thu, 05 May 2022 21:41:19 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a61a42f60a61a42f662e52331a65f1ad2b7524ef0b12/a61a42f61a61a42f662e87459051b49a9a5c3420780f?resource=directory", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "654fe94b-e87a-4824-9feb-bf5f2b0b60a7" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA2EDFFF85514F", - "Last-Modified" : "Thu, 05 May 2022 21:41:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a393c34c-201f-00da-40c8-606fc0000000", - "x-ms-client-request-id" : "654fe94b-e87a-4824-9feb-bf5f2b0b60a7", - "Date" : "Thu, 05 May 2022 21:41:21 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.dfs.core.windows.net/a61a42f60a61a42f662e52331a65f1ad2b7524ef0b12/a61a42f62a61a42f662e36107dc6d3ad743e04d40851?resource=file", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "f8ad2dac-656f-4bdf-984e-f9864825af64" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA2EDFFFA6EBCC", - "Last-Modified" : "Thu, 05 May 2022 21:41:22 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-server-encrypted" : "true", - "x-ms-request-id" : "a393c34d-201f-00da-41c8-606fc0000000", - "x-ms-client-request-id" : "f8ad2dac-656f-4bdf-984e-f9864825af64", - "Date" : "Thu, 05 May 2022 21:41:22 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "http://REDACTED.blob.core.windows.net/a61a42f60a61a42f662e52331a65f1ad2b7524ef0b12/a61a42f62a61a42f662e36107dc6d3ad743e04d40851?comp=expiry", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "10279391-d850-46ab-b109-02a7b8be5e2e" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA2EDFFFA6EBCC", - "Last-Modified" : "Thu, 05 May 2022 21:41:22 GMT", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "87d2969a-c01e-0009-41c8-60b3f2000000", - "x-ms-client-request-id" : "10279391-d850-46ab-b109-02a7b8be5e2e", - "Date" : "Thu, 05 May 2022 21:41:22 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "http://REDACTED.dfs.core.windows.net/a61a42f60a61a42f662e52331a65f1ad2b7524ef0b12?resource=filesystem&recursive=false&upn=false", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.10.0-beta.1 (11.0.13; Windows 10; 10.0)", - "x-ms-client-request-id" : "8b479716-a1d1-4008-ac18-a2ff78d1bd1f" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "200", - "x-ms-request-id" : "a393c34f-201f-00da-42c8-606fc0000000", - "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"creationTime\":\"132962604825858383\",\"etag\":\"0x8DA2EDFFF85514F\",\"expiryTime\":\"0\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Thu, 05 May 2022 21:41:22 GMT\",\"name\":\"a61a42f61a61a42f662e87459051b49a9a5c3420780f\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"},{\"contentLength\":\"0\",\"creationTime\":\"132962604828060620\",\"etag\":\"0x8DA2EDFFFA6EBCC\",\"expiryTime\":\"132964332820000000\",\"group\":\"$superuser\",\"lastModified\":\"Thu, 05 May 2022 21:41:22 GMT\",\"name\":\"a61a42f62a61a42f662e36107dc6d3ad743e04d40851\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", - "x-ms-client-request-id" : "8b479716-a1d1-4008-ac18-a2ff78d1bd1f", - "Date" : "Thu, 05 May 2022 21:41:22 GMT", - "Content-Type" : "application/json;charset=utf-8" - }, - "Exception" : null - } ], - "variables" : [ "a61a42f60a61a42f662e52331a65f1ad2b7524ef0b12", "a61a42f61a61a42f662e87459051b49a9a5c3420780f", "a61a42f62a61a42f662e36107dc6d3ad743e04d40851" ] -} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystem.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystem.json index 43839412d001b..899f299607b10 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystem.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystem.json @@ -87,7 +87,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/b8dda32b2b8dda32b415081503c482939e8ba4d9498c?restype=container&sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=rc&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/b8dda32b2b8dda32b415081503c482939e8ba4d9498c?restype=container&sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=rc&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystemError.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystemError.json index c251695b71cda..26a78bfd5a70b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystemError.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasCreateFileSystemError.json @@ -87,7 +87,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/dc9eb9582dc9eb9589f9378634585c5759fbf46b2bab?restype=container&sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/dc9eb9582dc9eb9589f9378634585c5759fbf46b2bab?restype=container&sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileDeleteError.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileDeleteError.json index 1004ec579842c..57d844018aadb 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileDeleteError.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileDeleteError.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.dfs.core.windows.net/de5f996f0de5f996fb0f33821e4a0cecf51314842b0b/de5f996f2de5f996fb0f61367818a55517d644c48aab?sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/de5f996f0de5f996fb0f33821e4a0cecf51314842b0b/de5f996f2de5f996fb0f61367818a55517d644c48aab?sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileRead.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileRead.json index 8db3250b1bcc0..4a5ece1c9978f 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileRead.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasFileRead.json @@ -152,7 +152,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/d427b9070d427b907451542233d38aec9f91b4b1887e/d427b9072d427b9074518730214a895b24cd148b6910?sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/d427b9070d427b907451542233d38aec9f91b4b1887e/d427b9072d427b9074518730214a895b24cd148b6910?sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasTokenOnEndpoint.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasTokenOnEndpoint.json index 6ac75dbaaa186..b32e572cee7de 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasTokenOnEndpoint.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestAccountSasTokenOnEndpoint.json @@ -87,7 +87,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/7f8d84b127f8d84b1c0b1580044c5e60b099643d6973?restype=container&sv=2021-06-08&se=2021-05-06T17%3A53%3A43Z&sp=rc&sig=REDACTED&ss=b&srt=sco", + "Uri" : "https://REDACTED.blob.core.windows.net/7f8d84b127f8d84b1c0b1580044c5e60b099643d6973?restype=container&sv=2021-04-10&se=2021-05-06T17%3A53%3A43Z&sp=rc&sig=REDACTED&ss=b&srt=sco", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestCanUseSasToAuthenticate.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestCanUseSasToAuthenticate.json index 11e7daeb70309..f2b15c19070d9 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestCanUseSasToAuthenticate.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestCanUseSasToAuthenticate.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5?restype=container&sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5?restype=container&sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -136,7 +136,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5?restype=container&sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5?restype=container&sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -163,7 +163,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5?restype=container&sv=2021-06-08&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5?restype=container&sv=2021-04-10&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -190,7 +190,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -224,7 +224,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -258,7 +258,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-06-08&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-04-10&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -292,7 +292,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -328,7 +328,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -362,7 +362,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-06-08&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", + "Uri" : "https://REDACTED.blob.core.windows.net/ad761e9d0ad761e9d8557718465bee3f0f79a467fae5/ad761e9d2ad761e9d85554263a316e34d0d364444a91?sv=2021-04-10&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -396,7 +396,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties&sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties&sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -417,7 +417,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties&sv=2021-06-08&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties&sv=2021-04-10&ss=b&srt=sco&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -438,7 +438,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties&sv=2021-06-08&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", + "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties&sv=2021-04-10&se=2021-05-06T17%3A53%3A43Z&sp=r&sig=REDACTED&ss=b&srt=sco", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermission.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermission.json index cb3927682e5d2..acb971cba8379 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermission.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermission.json @@ -131,7 +131,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/e14f20a70e14f20a7fe147121af251d1eae6c4b70aac/e14f20a72e14f20a7fe131662d6fedc03363e4abaa85?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T17%3A53%3A46Z&se=2021-05-06T17%3A53%3A46Z&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/e14f20a70e14f20a7fe147121af251d1eae6c4b70aac/e14f20a72e14f20a7fe131662d6fedc03363e4abaa85?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T17%3A53%3A46Z&se=2021-05-06T17%3A53%3A46Z&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -169,7 +169,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/e14f20a70e14f20a7fe147121af251d1eae6c4b70aac/e14f20a72e14f20a7fe131662d6fedc03363e4abaa85%2Fe14f20a73e14f20a7fe104338bde20c65c3f5415899a?resource=directory&sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T17%3A53%3A46Z&se=2021-05-06T17%3A53%3A46Z&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.dfs.core.windows.net/e14f20a70e14f20a7fe147121af251d1eae6c4b70aac/e14f20a72e14f20a7fe131662d6fedc03363e4abaa85%2Fe14f20a73e14f20a7fe104338bde20c65c3f5415899a?resource=directory&sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T17%3A53%3A46Z&se=2021-05-06T17%3A53%3A46Z&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermissionFail.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermissionFail.json index a37437bd71e77..4588b15d2997a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermissionFail.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectorySasPermissionFail.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/6e08620f06e08620ff23605631c40edf02c254d64856/6e08620f26e08620ff2382993030fde78cb664e419c8?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T17%3A53%3A43Z&se=2021-05-06T17%3A53%3A43Z&sr=d&sp=cwd&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/6e08620f06e08620ff23605631c40edf02c254d64856/6e08620f26e08620ff2382993030fde78cb664e419c8?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T17%3A53%3A43Z&se=2021-05-06T17%3A53%3A43Z&sr=d&sp=cwd&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectoryUserDelegation.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectoryUserDelegation.json index 4f2717691762c..2923659ede04e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectoryUserDelegation.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestDirectoryUserDelegation.json @@ -131,7 +131,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/7fa197f607fa197f6608501609a8f5bead8e548448e9/7fa197f627fa197f66080192262e1ebaa7d8546f5919?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/7fa197f607fa197f6608501609a8f5bead8e548448e9/7fa197f627fa197f66080192262e1ebaa7d8546f5919?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -169,7 +169,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/7fa197f607fa197f6608501609a8f5bead8e548448e9/7fa197f627fa197f66080192262e1ebaa7d8546f5919%2F7fa197f637fa197f6608349744cf05299f4de437a92d?resource=directory&sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.dfs.core.windows.net/7fa197f607fa197f6608501609a8f5bead8e548448e9/7fa197f627fa197f66080192262e1ebaa7d8546f5919%2F7fa197f637fa197f6608349744cf05299f4de437a92d?resource=directory&sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -191,7 +191,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dfs.core.windows.net/7fa197f607fa197f6608501609a8f5bead8e548448e9?resource=filesystem&directory=7fa197f627fa197f66080192262e1ebaa7d8546f5919&recursive=false&upn=false&sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.dfs.core.windows.net/7fa197f607fa197f6608501609a8f5bead8e548448e9?resource=filesystem&directory=7fa197f627fa197f66080192262e1ebaa7d8546f5919&recursive=false&upn=false&sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=d&sp=racwdlmeop&sdd=1&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSasPermission.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSasPermission.json index d2c0105118e09..f5addbce4706c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSasPermission.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSasPermission.json @@ -87,7 +87,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/eb2e24170eb2e241727e679862bc181c895854f7591d/eb2e24171eb2e241727e46158611c3b4ad072434f89b?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T17%3A53%3A43Z&se=2021-05-06T17%3A53%3A43Z&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/eb2e24170eb2e241727e679862bc181c895854f7591d/eb2e24171eb2e241727e46158611c3b4ad072434f89b?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T17%3A53%3A43Z&se=2021-05-06T17%3A53%3A43Z&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -123,7 +123,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/eb2e24170eb2e241727e679862bc181c895854f7591d/eb2e24171eb2e241727e46158611c3b4ad072434f89b?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T17%3A53%3A43Z&se=2021-05-06T17%3A53%3A43Z&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/eb2e24170eb2e241727e679862bc181c895854f7591d/eb2e24171eb2e241727e46158611c3b4ad072434f89b?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T17%3A53%3A43Z&se=2021-05-06T17%3A53%3A43Z&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemSasIdentifier.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemSasIdentifier.json index 938f640915b5b..fe4eaca19cd8b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemSasIdentifier.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemSasIdentifier.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dfs.core.windows.net/ab46431a0ab46431a3b21492081564b8492e14999bd9?resource=filesystem&recursive=false&upn=false&sv=2021-06-08&si=0000&sr=c&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/ab46431a0ab46431a3b21492081564b8492e14999bd9?resource=filesystem&recursive=false&upn=false&sv=2021-04-10&si=0000&sr=c&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -130,7 +130,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dfs.core.windows.net/ab46431a0ab46431a3b21492081564b8492e14999bd9?resource=filesystem&recursive=false&upn=false&sv=2021-06-08&se=2021-05-06T17%3A53%3A43Z&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/ab46431a0ab46431a3b21492081564b8492e14999bd9?resource=filesystem&recursive=false&upn=false&sv=2021-04-10&se=2021-05-06T17%3A53%3A43Z&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegation.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegation.json index 91cd186b35599..f17d5ff6b46ca 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegation.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegation.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dfs.core.windows.net/51c8f405051c8f4054156072994533211a32a4cc384d?resource=filesystem&recursive=false&upn=false&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/51c8f405051c8f4054156072994533211a32a4cc384d?resource=filesystem&recursive=false&upn=false&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationId.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationId.json index 8703ef2ff3de4..5920b77257026 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationId.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationId.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dfs.core.windows.net/e4978ce50e4978ce532025052603b777533e84843a2c?resource=filesystem&recursive=false&upn=false&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&scid=f3ad378d-a574-425b-9035-111d19645618&sr=c&sp=l&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/e4978ce50e4978ce532025052603b777533e84843a2c?resource=filesystem&recursive=false&upn=false&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&scid=f3ad378d-a574-425b-9035-111d19645618&sr=c&sp=l&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationIdError.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationIdError.json index 8ba72c90827de..d34f8851cd7f3 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationIdError.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileSystemUserDelegationCorrelationIdError.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.dfs.core.windows.net/19e94ac4019e94ac45c20649625366eba83504dfe927?resource=filesystem&recursive=false&upn=false&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&scid=invalidcid&sr=c&sp=l&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/19e94ac4019e94ac45c20649625366eba83504dfe927?resource=filesystem&recursive=false&upn=false&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&scid=invalidcid&sr=c&sp=l&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegation.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegation.json index e2be8a8d87f0c..05f91b615f8e4 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegation.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegation.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.blob.core.windows.net/b4ca457e0b4ca457e89223457c1e0edab9d60448daea/b4ca457e1b4ca457e89257857f7e4d073ad594047a04?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/b4ca457e0b4ca457e89223457c1e0edab9d60448daea/b4ca457e1b4ca457e89257857f7e4d073ad594047a04?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -145,7 +145,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/b4ca457e0b4ca457e89223457c1e0edab9d60448daea/b4ca457e1b4ca457e89257857f7e4d073ad594047a04?sv=2021-06-08&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Uri" : "https://REDACTED.blob.core.windows.net/b4ca457e0b4ca457e89223457c1e0edab9d60448daea/b4ca457e1b4ca457e89257857f7e4d073ad594047a04?sv=2021-04-10&spr=https%2Chttp&st=2021-05-04T18%3A00%3A54Z&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-04T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&sr=b&sp=racwdlmeop&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSaoid.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSaoid.json index 7aa5cba47c1bd..592fa5251f865 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSaoid.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSaoid.json @@ -131,7 +131,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/71d9a559071d9a55901996536caf202d3e80d4a7ca32/71d9a559271d9a55901932223b4affbbde4fd4fb0a28?resource=file&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&saoid=a6b7400f-7745-4668-beb1-e89417a9d116&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71d9a559071d9a55901996536caf202d3e80d4a7ca32/71d9a559271d9a55901932223b4affbbde4fd4fb0a28?resource=file&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&saoid=a6b7400f-7745-4668-beb1-e89417a9d116&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -153,7 +153,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71d9a559071d9a55901996536caf202d3e80d4a7ca32/71d9a559271d9a55901932223b4affbbde4fd4fb0a28?action=append&position=0&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&saoid=a6b7400f-7745-4668-beb1-e89417a9d116&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71d9a559071d9a55901996536caf202d3e80d4a7ca32/71d9a559271d9a55901932223b4affbbde4fd4fb0a28?action=append&position=0&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&saoid=a6b7400f-7745-4668-beb1-e89417a9d116&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -174,7 +174,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/71d9a559071d9a55901996536caf202d3e80d4a7ca32/71d9a559271d9a55901932223b4affbbde4fd4fb0a28?action=flush&position=7&retainUncommittedData=false&close=false&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&saoid=a6b7400f-7745-4668-beb1-e89417a9d116&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/71d9a559071d9a55901996536caf202d3e80d4a7ca32/71d9a559271d9a55901932223b4affbbde4fd4fb0a28?action=flush&position=7&retainUncommittedData=false&close=false&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A55Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&saoid=a6b7400f-7745-4668-beb1-e89417a9d116&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSuoid.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSuoid.json index 2892ab292b4cc..4dadf91055cb2 100644 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSuoid.json +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestFileUserDelegationSuoid.json @@ -109,7 +109,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?resource=file&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=b&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?resource=file&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=b&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -153,7 +153,7 @@ "Exception" : null }, { "Method" : "PUT", - "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?resource=file&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?resource=file&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -175,7 +175,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?action=append&position=0&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?action=append&position=0&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -196,7 +196,7 @@ "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?action=flush&position=7&retainUncommittedData=false&close=false&sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.dfs.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?action=flush&position=7&retainUncommittedData=false&close=false&sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=71c20f45-47fb-4d5c-b837-210ee310650f&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", @@ -242,7 +242,7 @@ "Exception" : null }, { "Method" : "HEAD", - "Uri" : "https://REDACTED.blob.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?sv=2021-06-08&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=846aad75-21c9-4676-9ab4-b8cf2d8e1180&sr=c&sp=racwdlmeop&sig=REDACTED", + "Uri" : "https://REDACTED.blob.core.windows.net/aea265910aea26591b156731514cc0fd44be2468d8cd/aea265912aea26591b1509482c9defb254583471898d?sv=2021-04-10&se=2021-05-06T18%3A00%3A54Z&skoid=e339aa3f-fc6a-402b-973a-31cd8d64b280&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2021-05-05T18%3A00%3A54Z&ske=2021-05-06T18%3A00%3A54Z&sks=b&skv=2020-08-04&suoid=846aad75-21c9-4676-9ab4-b8cf2d8e1180&sr=c&sp=racwdlmeop&sig=REDACTED", "Headers" : { "x-ms-version" : "2020-08-04", "User-Agent" : "azsdk-java-azure-storage-blob/12.12.0-beta.1 azsdk-java-azure-storage-file-datalake/12.6.0-beta.1 (11.0.8; Windows 10; 10.0)", diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestDeleteIfExistsBlobServiceThatWasAlreadyDeleted.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestDeleteIfExistsBlobServiceThatWasAlreadyDeleted.json deleted file mode 100644 index 1ca5669b364aa..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestDeleteIfExistsBlobServiceThatWasAlreadyDeleted.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/581d2cf90581d2cf9e6501837e586f382ff0b498ab65?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "bcf7c27e-8833-4ea3-8364-fc5eac5e4b29" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1B95F473401E", - "Last-Modified" : "Mon, 11 Apr 2022 08:33:29 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "dd7731d9-c01e-0037-7f7e-4dc054000000", - "x-ms-client-request-id" : "bcf7c27e-8833-4ea3-8364-fc5eac5e4b29", - "Date" : "Mon, 11 Apr 2022 08:33:28 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "098807d4-ad8b-439d-a2ba-ffac1ca4b2f2", - "Content-Type" : "application/xml" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "dd773219-c01e-0037-377e-4dc054000000", - "x-ms-client-request-id" : "098807d4-ad8b-439d-a2ba-ffac1ca4b2f2", - "Date" : "Mon, 11 Apr 2022 08:33:29 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net/581d2cf91581d2cf9e654710902218e184d75461aa6a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "faafe41b-a2dc-4fb6-8b73-b9be630d8ad8" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "eTag" : "0x8DA1B95F5099D84", - "Last-Modified" : "Mon, 11 Apr 2022 08:33:30 GMT", - "retry-after" : "0", - "StatusCode" : "201", - "x-ms-request-id" : "dd7732b3-c01e-0037-3d7e-4dc054000000", - "x-ms-client-request-id" : "faafe41b-a2dc-4fb6-8b73-b9be630d8ad8", - "Date" : "Mon, 11 Apr 2022 08:33:29 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "https://REDACTED.blob.core.windows.net/581d2cf91581d2cf9e654710902218e184d75461aa6a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "f5189a1e-3c9f-4259-9ac0-88ab5b0003de" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "dd7732c5-c01e-0037-4b7e-4dc054000000", - "x-ms-client-request-id" : "f5189a1e-3c9f-4259-9ac0-88ab5b0003de", - "Date" : "Mon, 11 Apr 2022 08:33:29 GMT" - }, - "Exception" : null - }, { - "Method" : "DELETE", - "Uri" : "https://REDACTED.blob.core.windows.net/581d2cf91581d2cf9e654710902218e184d75461aa6a?restype=container", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "eb29e443-b0bb-4b89-bc00-e9afc809c1d3" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "dd7732d1-c01e-0037-577e-4dc054000000", - "x-ms-client-request-id" : "eb29e443-b0bb-4b89-bc00-e9afc809c1d3", - "Date" : "Mon, 11 Apr 2022 08:33:29 GMT" - }, - "Exception" : null - }, { - "Method" : "PUT", - "Uri" : "https://REDACTED.blob.core.windows.net?restype=service&comp=properties", - "Headers" : { - "x-ms-version" : "2021-04-10", - "User-Agent" : "azsdk-java-azure-storage-blob/12.16.0-beta.1 (11.0.14; Windows 10; 10.0)", - "x-ms-client-request-id" : "1817204f-9dcc-4e91-ac22-446916c09d7e", - "Content-Type" : "application/xml" - }, - "Response" : { - "content-length" : "0", - "x-ms-version" : "2021-04-10", - "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", - "retry-after" : "0", - "StatusCode" : "202", - "x-ms-request-id" : "dd7732e9-c01e-0037-6c7e-4dc054000000", - "x-ms-client-request-id" : "1817204f-9dcc-4e91-ac22-446916c09d7e", - "Date" : "Mon, 11 Apr 2022 08:33:29 GMT" - }, - "Exception" : null - } ], - "variables" : [ "581d2cf90581d2cf9e6501837e586f382ff0b498ab65", "581d2cf96557694b", "581d2cf9758031f0", "581d2cf91581d2cf9e654710902218e184d75461aa6a" ] -} \ 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 7297c109fc302..e04fabf57b15b 100644 --- a/sdk/storage/azure-storage-file-datalake/swagger/README.md +++ b/sdk/storage/azure-storage-file-datalake/swagger/README.md @@ -16,7 +16,7 @@ autorest --java --use:@autorest/java@4.0.x ### Code generation settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2021-06-08/DataLakeStorage.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2020-06-12/DataLakeStorage.json java: true output-folder: ../ namespace: com.azure.storage.file.datalake @@ -30,11 +30,9 @@ context-client-method-parameter: true optional-constant-as-enum: true default-http-exception-type: com.azure.storage.file.datalake.models.DataLakeStorageException models-subpackage: implementation.models -custom-types: FileSystemInfo,FileSystemItem,FileSystemProperties,PathInfo,PathItem,PathProperties,ListFileSystemsOptions,PathHttpHeaders,EncryptionAlgorithmType +custom-types: FileSystemInfo,FileSystemItem,FileSystemProperties,PathInfo,PathItem,PathProperties,ListFileSystemsOptions,PathHttpHeaders custom-types-subpackage: models customization-class: src/main/java/DataLakeStorageCustomization.java -custom-strongly-typed-header-deserialization: true -generic-response-type: true ``` ### Make the body of append octet-stream /{filesystem}/{path}?action=append