diff --git a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml index c203ef4cb5ceb..befdec5ae75c1 100755 --- a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml +++ b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml @@ -208,6 +208,8 @@ + + diff --git a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml index 422ab56cc6d1f..993eb068cadfe 100755 --- a/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml +++ b/eng/code-quality-reports/src/main/resources/spotbugs/spotbugs-exclude.xml @@ -542,7 +542,7 @@ - + ") + .sasToken("") + .buildClient(); +``` + +### Create a `DataLakeFileSystemClient` + +Create a `DataLakeFileSystemClient` using a `DataLakeServiceClient`. + +```java +DataLakeFileSystemClient dataLakeFileSystemClient = dataLakeServiceClient.getFileSystemClient("myfilesystem"); +``` + +or + +Create a `DataLakeFileSystemClient` from the builder [`sasToken`](#get-credentials) generated above. + +```java +DataLakeFileSystemClient dataLakeFileSystemClient = new DataLakeFileSystemClientBuilder() + .endpoint("") + .sasToken("") + .containerName("myfilesystem") + .buildClient(); +``` + +### Create a `DataLakeFileClient` + +Create a `DataLakeFileClient` using a `DataLakeFileSystemClient`. + +```java +DataLakeFileClient fileClient = dataLakeFileSystemClient.getFileClient("myfile"); +``` + +or + +Create a `FileClient` from the builder [`sasToken`](#get-credentials) generated above. + +```java +DataLakeFileClient fileClient = new DataLakePathClientBuilder() + .endpoint("") + .sasToken("") + .fileSystemName("myfilesystem") + .pathName("myfile") + .buildClient(); +``` + +### Create a file system + +Create a file system using a `DataLakeServiceClient`. + +```java +dataLakeServiceClient.createFileSystem("myfilesystem"); +``` + +or + +Create a container using a `DataLakeFileSystemClient`. + +```java +dataLakeFileSystemClient.create(); +``` + +### Upload a file from a stream + +Upload from an `InputStream` to a blob using a `DataLakeFileClient` generated from a `DataLakeFileSystemClient`. + +```java +DataLakeFileClient fileClient = dataLakeFileSystemClient.getFileClient("myfile"); +fileClient.create(); +String dataSample = "samples"; +try (ByteArrayInputStream dataStream = new ByteArrayInputStream(dataSample.getBytes())) { + fileClient.append(dataStream, 0, dataSample.length()); +} +fileClient.flush(dataSample.length()); +``` + +### Download a file to a stream + +Download a file to an `OutputStream` using a `DataLakeFileClient`. + +```java +try(ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) { + fileClient.read(outputStream); +} +``` + +### Enumerate paths + +Enumerating all paths using a `DataLakeFileSystemClient`. + +```java +dataLakeFileSystemClient.listPaths() + .forEach( + pathItem -> System.out.println("This is the path name: " + pathItem.getName()) + ); +``` + +### Authenticate with Azure Identity + +The [Azure Identity library][identity] provides Azure Active Directory support for authenticating with Azure Storage. + +```java +DataLakeServiceClient storageClient = new DataLakeServiceClientBuilder() + .endpoint(endpoint) + .credential(new DefaultAzureCredentialBuilder().build()) + .buildClient(); +``` + ## Troubleshooting +When interacting with data lake using this Java client library, errors returned by the service correspond to the same HTTP +status codes returned for [REST API][error_codes] requests. For example, if you try to retrieve a file system or path that +doesn't exist in your Storage Account, a `404` error is returned, indicating `Not Found`. + ## Next steps +Several Storage datalake Java SDK samples are available to you in the SDK's GitHub repository. + ## Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. + +This project welcomes contributions and suggestions. Most contributions require you to agree to a [Contributor License Agreement (CLA)][cla] declaring that you have the right to, and actually do, grant us the rights to use your contribution. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments. +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. + + +[source]: src +[samples_readme]: src/samples/README.md +[docs]: http://azure.github.io/azure-sdk-for-java/ +[rest_docs]: https://docs.microsoft.com/en-us/rest/api/storageservices/data-lake-storage-gen2 +[product_docs]: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction +[sas_token]: https://docs.microsoft.com/azure/storage/common/storage-dotnet-shared-access-signature-part-1 +[jdk]: https://docs.microsoft.com/java/azure/jdk/ +[azure_subscription]: https://azure.microsoft.com/free/ +[storage_account]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal +[storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli +[storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal +[identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity/README.md +[samples]: src/samples +[cla]: https://cla.microsoft.com +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ +[coc_contact]: mailto:opencode@microsoft.com -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java/sdk/tracing/README.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java/sdk/storage/azure-storage-file-data-lake/README.png) diff --git a/sdk/storage/azure-storage-file-datalake/pom.xml b/sdk/storage/azure-storage-file-datalake/pom.xml index e2760bc865add..85afa34f1143b 100644 --- a/sdk/storage/azure-storage-file-datalake/pom.xml +++ b/sdk/storage/azure-storage-file-datalake/pom.xml @@ -34,8 +34,24 @@ com.azure.storage.file.datalake + src/main/java + src/test/java + + + bintray + Groovy Bintray + https://dl.bintray.com/groovy/maven + + never + + + false + + + + com.azure @@ -85,8 +101,30 @@ spock-core test + + com.azure + azure-storage-blob + 12.0.0 + compile + + + com.azure + azure-identity + 1.0.0 + test + + + src/main/java + src/test/java + + + ${basedir}/src/test/resources + + + + java8 @@ -99,10 +137,23 @@ org.apache.maven.plugins maven-compiler-plugin + ${maven-compiler-plugin.version} 1.8 1.8 + true + true + + -Xlint:all + -Xlint:-serial + -Xlint:-deprecation + -Xlint:-processing + + + module-info.java + + test-compile 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 new file mode 100644 index 0000000000000..e17a4f916d5aa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClient.java @@ -0,0 +1,501 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.util.FluxUtil; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobContainerAsyncClient; +import com.azure.storage.blob.specialized.BlockBlobAsyncClient; +import com.azure.storage.blob.specialized.SpecializedBlobClientBuilder; +import com.azure.storage.common.Utility; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.models.PathResourceType; +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 reactor.core.publisher.Mono; + +import java.util.Map; + +import static com.azure.core.implementation.util.FluxUtil.monoError; +import static com.azure.core.implementation.util.FluxUtil.withContext; + +/** + * This class provides a client that contains directory operations for Azure Storage Data Lake. Operations provided by + * this client include creating a directory, deleting a directory, renaming a directory, setting metadata and + * http headers, setting and retrieving access control, getting properties and creating and deleting files and + * subdirectories. + * + *

+ * This client is instantiated through {@link DataLakePathClientBuilder} or retrieved via + * {@link DataLakeFileSystemAsyncClient#getDirectoryAsyncClient(String) getDirectoryAsyncClient}. + * + *

+ * Please refer to the Azure + * Docs for more information. + */ +public final class DataLakeDirectoryAsyncClient extends DataLakePathAsyncClient { + + private final ClientLogger logger = new ClientLogger(DataLakeDirectoryAsyncClient.class); + + /** + * Package-private constructor for use by {@link DataLakePathClientBuilder}. + * + * @param pipeline The pipeline used to send and receive service requests. + * @param url The endpoint where to send service requests. + * @param serviceVersion The version of the service to receive requests. + * @param accountName The storage account name. + * @param fileSystemName The file system name. + * @param directoryName The directory name. + * @param blockBlobAsyncClient The underlying {@link BlobContainerAsyncClient} + */ + DataLakeDirectoryAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, + String accountName, String fileSystemName, String directoryName, BlockBlobAsyncClient blockBlobAsyncClient) { + super(pipeline, url, serviceVersion, accountName, fileSystemName, directoryName, blockBlobAsyncClient); + } + + DataLakeDirectoryAsyncClient(DataLakePathAsyncClient dataLakePathAsyncClient) { + super(dataLakePathAsyncClient.getHttpPipeline(), dataLakePathAsyncClient.getPathUrl(), + dataLakePathAsyncClient.getServiceVersion(), dataLakePathAsyncClient.getAccountName(), + dataLakePathAsyncClient.getFileSystemName(), dataLakePathAsyncClient.getObjectPath(), + dataLakePathAsyncClient.getBlockBlobAsyncClient()); + } + + /** + * Gets the URL of the directory represented by this client on the Data Lake service. + * + * @return the URL. + */ + public String getDirectoryUrl() { + return getPathUrl(); + } + + /** + * Gets the path of this directory, not including the name of the resource itself. + * + * @return The path of the directory. + */ + public String getDirectoryPath() { + return getObjectPath(); + } + + /** + * Gets the name of this directory, not including its full path. + * + * @return The name of the directory. + */ + public String getDirectoryName() { + return getObjectName(); + } + + /** + * Creates a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.create} + * + *

For more information see the + * Azure + * Docs

+ * + * @return A reactive response containing information about the created directory. + */ + public Mono create() { + try { + return createWithResponse(null, null, null, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String} + * + *

For more information see the + * Azure + * Docs

+ * + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * PathItem}. + */ + public Mono> createWithResponse(PathHttpHeaders headers, Map metadata, + DataLakeRequestConditions accessConditions, String permissions, String umask) { + try { + return withContext(context -> createWithResponse(PathResourceType.DIRECTORY, headers, metadata, + accessConditions, permissions, umask, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.delete} + * + *

For more information see the + * Azure + * Docs

+ * + * @return A reactive response signalling completion. + */ + public Mono delete() { + try { + return deleteWithResponse(false, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteWithResponse#boolean-DataLakeRequestConditions} + * + *

For more information see the + * Azure + * Docs

+ * + * @param recursive Whether or not to delete all paths beneath the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * + * @return A reactive response signalling completion. + */ + public Mono> deleteWithResponse(boolean recursive, DataLakeRequestConditions accessConditions) { + // TODO (rickle-msft): Update for continuation token if we support HNS off + try { + return withContext(context -> deleteWithResponse(recursive, accessConditions, context)); + } 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 + * DataLakeDirectoryAsyncClient. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.getFileAsyncClient#String} + * + * @param fileName A {@code String} representing the name of the file. + * @return A new {@link DataLakeFileAsyncClient} object which references the file with the specified name in this + * file system. + */ + public DataLakeFileAsyncClient getFileAsyncClient(String fileName) { + if (ImplUtils.isNullOrEmpty(fileName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'fileName' can not be set to null")); + } + BlockBlobAsyncClient blockBlobAsyncClient = prepareBuilderAppendPath(fileName).buildBlockBlobAsyncClient(); + + return new DataLakeFileAsyncClient(getHttpPipeline(), + StorageImplUtils.appendToUrlPath(getPathUrl(), Utility.urlEncode(Utility.urlDecode(fileName))).toString(), + getServiceVersion(), getAccountName(), getFileSystemName(), getObjectPath() + "/" + + Utility.urlDecode(fileName), blockBlobAsyncClient); + } + + /** + * Creates a new file within a directory. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFile#String} + * + * @param fileName Name of the file to create. + * @return A {@link Mono} containing a {@link DataLakeFileAsyncClient} used to interact with the file created. + */ + public Mono createFile(String fileName) { + try { + return createFileWithResponse(fileName, null, null, null, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new file within a directory. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String} + * + * @param fileName Name of the file to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the file. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeFileAsyncClient} used to interact with the file created. + */ + public Mono> createFileWithResponse(String fileName, PathHttpHeaders headers, + Map metadata, DataLakeRequestConditions accessConditions, String permissions, String umask) { + try { + DataLakeFileAsyncClient dataLakeFileAsyncClient = getFileAsyncClient(fileName); + + return dataLakeFileAsyncClient.createWithResponse(headers, metadata, accessConditions, permissions, umask) + .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 + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFile#String} + * + * @param fileName Name of the file to delete. + * @return A reactive response signalling completion. + */ + public Mono deleteFile(String fileName) { + try { + return deleteFileWithResponse(fileName, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes the specified file in the directory. If the file doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileWithResponse#String-DataLakeRequestConditions} + * + * @param fileName Name of the file to delete. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A {@link Mono} containing containing status code and HTTP headers + */ + public Mono> deleteFileWithResponse(String fileName, DataLakeRequestConditions accessConditions) { + try { + return getFileAsyncClient(fileName).deleteWithResponse(accessConditions); + } 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 + * as the DataLakeDirectoryAsyncClient. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.getSubDirectoryAsyncClient#String} + * + * @param subDirectoryName A {@code String} representing the name of the sub-directory. + * @return A new {@link DataLakeDirectoryAsyncClient} object which references the directory with the specified name + * in this file system. + */ + public DataLakeDirectoryAsyncClient getSubDirectoryAsyncClient(String subDirectoryName) { + if (ImplUtils.isNullOrEmpty(subDirectoryName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'directoryName' can not be set to null")); + } + BlockBlobAsyncClient blockBlobAsyncClient = prepareBuilderAppendPath(subDirectoryName) + .buildBlockBlobAsyncClient(); + + return new DataLakeDirectoryAsyncClient(getHttpPipeline(), + StorageImplUtils.appendToUrlPath(getPathUrl(), Utility.urlEncode(Utility.urlDecode(subDirectoryName))) + .toString(), getServiceVersion(), getAccountName(), getFileSystemName(), getObjectPath() + "/" + + Utility.urlDecode(subDirectoryName), blockBlobAsyncClient); + } + + /** + * Creates a new sub-directory within a directory. If a sub-directory with the same name already exists, the + * sub-directory will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubDirectory#String} + * + * @param subDirectoryName Name of the sub-directory to create. + * @return A {@link Mono} containing a {@link DataLakeDirectoryAsyncClient} used to interact with the directory + * created. + */ + public Mono createSubDirectory(String subDirectoryName) { + try { + return createSubDirectoryWithResponse(subDirectoryName, null, null, null, null, null) + .flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new sub-directory within a directory. If a sub-directory with the same name already exists, the + * sub-directory will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String} + * + * @param subDirectoryName Name of the sub-directory to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the sub-directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the sub-directory owner, the sub-directory owning group, and + * others. + * @param umask Restricts permissions of the sub-directory to be created. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeDirectoryAsyncClient} used to interact with the sub-directory created. + */ + public Mono> createSubDirectoryWithResponse(String subDirectoryName, + PathHttpHeaders headers, Map metadata, DataLakeRequestConditions accessConditions, + String permissions, String umask) { + try { + DataLakeDirectoryAsyncClient dataLakeDirectoryAsyncClient = getSubDirectoryAsyncClient(subDirectoryName); + + return dataLakeDirectoryAsyncClient.createWithResponse(headers, metadata, accessConditions, permissions, + umask).map(response -> new SimpleResponse<>(response, dataLakeDirectoryAsyncClient)); + } 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. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubDirectory#String} + * + * @param subDirectoryName Name of the sub-directory to delete. + * @return A reactive response signalling completion. + */ + public Mono deleteSubDirectory(String subDirectoryName) { + try { + return deleteSubDirectoryWithResponse(subDirectoryName, false, null).flatMap(FluxUtil::toMono); + } 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. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubDirectoryWithResponse#String-boolean-DataLakeRequestConditions} + * + * @param directoryName Name of the sub-directory to delete. + * @param recursive Whether or not to delete all paths beneath the sub-directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A {@link Mono} containing containing status code and HTTP headers + */ + public Mono> deleteSubDirectoryWithResponse(String directoryName, boolean recursive, + DataLakeRequestConditions accessConditions) { + try { + return getSubDirectoryAsyncClient(directoryName).deleteWithResponse(recursive, accessConditions); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Moves the directory to another location within the file system. + * For more information see the + * Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.rename#String} + * + * @param destinationPath Relative path from the file system to rename the directory to, excludes the file system + * name. For example if you want to move a directory with fileSystem = "myfilesystem", path = "mydir/mysubdir" to + * another path in myfilesystem (ex: newdir) then set the destinationPath = "newdir" + * @return A {@link Mono} containing a {@link DataLakeDirectoryAsyncClient} used to interact with the new directory + * created. + */ + public Mono rename(String destinationPath) { + try { + return renameWithResponse(destinationPath, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Moves the directory to another location within the file system. + * For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions} + * + * @param destinationPath Relative path from the file system to rename the directory to, excludes the file system + * name. For example if you want to move a directory with fileSystem = "myfilesystem", path = "mydir/mysubdir" to + * another path in myfilesystem (ex: newdir) then set the destinationPath = "newdir" + * @param sourceAccessConditions {@link DataLakeRequestConditions} against the source. + * @param destAccessConditions {@link DataLakeRequestConditions} against the destination. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeDirectoryAsyncClient} used to interact with the directory created. + */ + public Mono> renameWithResponse(String destinationPath, + DataLakeRequestConditions sourceAccessConditions, DataLakeRequestConditions destAccessConditions) { + try { + return withContext(context -> renameWithResponse(destinationPath, sourceAccessConditions, + destAccessConditions, context)).map(response -> new SimpleResponse<>(response, + new DataLakeDirectoryAsyncClient(response.getValue()))); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Prepares a SpecializedBlobClientBuilder with the pathname appended to the end of the current BlockBlobClient's + * url + * @param pathName The name of the path to append + * @return {@link SpecializedBlobClientBuilder} + */ + SpecializedBlobClientBuilder prepareBuilderAppendPath(String pathName) { + String blobUrl = Transforms.endpointToDesiredEndpoint(getPathUrl(), "blob", "dfs"); + + return new SpecializedBlobClientBuilder() + .pipeline(getHttpPipeline()) + .endpoint(StorageImplUtils.appendToUrlPath(blobUrl, pathName).toString()); + } +} 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 new file mode 100644 index 0000000000000..ebf563c0a36c6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeDirectoryClient.java @@ -0,0 +1,427 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.specialized.BlockBlobClient; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.models.PathResourceType; +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 reactor.core.publisher.Mono; + +import java.time.Duration; +import java.util.Map; + +/** + * This class provides a client that contains directory operations for Azure Storage Data Lake. Operations provided by + * this client include creating a directory, deleting a directory, renaming a directory, setting metadata and + * http headers, setting and retrieving access control, getting properties and creating and deleting files and + * subdirectories. + * + *

+ * This client is instantiated through {@link DataLakePathClientBuilder} or retrieved via + * {@link DataLakeFileSystemClient#getDirectoryClient(String) getDirectoryClient}. + * + *

+ * Please refer to the Azure + * Docs for more information. + */ +public class DataLakeDirectoryClient extends DataLakePathClient { + private final ClientLogger logger = new ClientLogger(DataLakeDirectoryClient.class); + + private final DataLakeDirectoryAsyncClient dataLakeDirectoryAsyncClient; + + DataLakeDirectoryClient(DataLakeDirectoryAsyncClient pathAsyncClient, BlockBlobClient blockBlobClient) { + super(pathAsyncClient, blockBlobClient); + this.dataLakeDirectoryAsyncClient = pathAsyncClient; + } + + private DataLakeDirectoryClient(DataLakePathClient dataLakePathClient) { + super(dataLakePathClient.dataLakePathAsyncClient, dataLakePathClient.blockBlobClient); + this.dataLakeDirectoryAsyncClient = new DataLakeDirectoryAsyncClient( + dataLakePathClient.dataLakePathAsyncClient); + } + + /** + * Gets the URL of the directory represented by this client on the Data Lake service. + * + * @return the URL. + */ + public String getDirectoryUrl() { + return getPathUrl(); + } + + /** + * Gets the path of this directory, not including the name of the resource itself. + * + * @return The path of the directory. + */ + public String getDirectoryPath() { + return getObjectPath(); + } + + /** + * Gets the name of this directory, not including its full path. + * + * @return The name of the directory. + */ + public String getDirectoryName() { + return getObjectName(); + } + + /** + * Creates a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.create} + * + *

For more information see the + * Azure + * Docs

+ * + * @return Information about the created directory. + */ + public PathInfo create() { + return createWithResponse(null, null, null, null, null, null, Context.NONE).getValue(); + } + + /** + * Creates a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context} + * + *

For more information see the + * Azure + * Docs

+ * + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @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 information about the created directory. + */ + public Response createWithResponse(PathHttpHeaders headers, Map metadata, + DataLakeRequestConditions accessConditions, String permissions, String umask, Duration timeout, + Context context) { + Mono> response = dataLakePathAsyncClient.createWithResponse(PathResourceType.DIRECTORY, + headers, metadata, accessConditions, permissions, umask, context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Deletes a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.delete} + * + *

For more information see the + * Azure + * Docs

+ */ + public void delete() { + deleteWithResponse(false, null, null, null).getValue(); + } + + /** + * Deletes a directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteWithResponse#boolean-DataLakeRequestConditions-Duration-Context} + * + *

For more information see the + * Azure + * Docs

+ * + * @param recursive Whether or not to delete all paths beneath the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @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 response signalling completion. + */ + public Response deleteWithResponse(boolean recursive, DataLakeRequestConditions accessConditions, + Duration timeout, Context context) { + // TODO (rickle-msft): Update for continuation token if we support HNS off + Mono> response = dataLakePathAsyncClient.deleteWithResponse(recursive, accessConditions, + context); + + return StorageImplUtils.blockWithOptionalTimeout(response, 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. + * + * @param fileName A {@code String} representing the name of the file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.getFileClient#String} + * + * @return A new {@link DataLakeFileClient} object which references the file with the specified name in this + * directory. + */ + public DataLakeFileClient getFileClient(String fileName) { + if (ImplUtils.isNullOrEmpty(fileName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'fileName' can not be set to null")); + } + return new DataLakeFileClient(dataLakeDirectoryAsyncClient.getFileAsyncClient(fileName), + dataLakeDirectoryAsyncClient.prepareBuilderAppendPath(fileName).buildBlockBlobClient()); + } + + /** + * Creates a new file within a directory. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.createFile#String} + * + * @param fileName Name of the file to create. + * @return A {@link DataLakeFileClient} used to interact with the file created. + */ + public DataLakeFileClient createFile(String fileName) { + return createFileWithResponse(fileName, null, null, null, null, null, null, null).getValue(); + } + + /** + * Creates a new file within a directory. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context} + * + * @param fileName Name of the file to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the file. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @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. + */ + public Response createFileWithResponse(String fileName, PathHttpHeaders headers, + Map metadata, DataLakeRequestConditions accessConditions, String permissions, String umask, + Duration timeout, Context context) { + DataLakeFileClient dataLakeFileClient = getFileClient(fileName); + Response response = dataLakeFileClient.createWithResponse(headers, metadata, accessConditions, + permissions, umask, timeout, context); + 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 + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFile#String} + * + * @param fileName Name of the file to delete. + */ + public void deleteFile(String fileName) { + deleteFileWithResponse(fileName, null, null, null); + } + + /** + * Deletes the specified file in the directory. If the file doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileWithResponse#String-DataLakeRequestConditions-Duration-Context} + * + * @param fileName Name of the file to delete. + * @param accessConditions {@link DataLakeRequestConditions} + * @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 + */ + public Response deleteFileWithResponse(String fileName, DataLakeRequestConditions accessConditions, + Duration timeout, Context context) { + return getFileClient(fileName).deleteWithResponse(accessConditions, timeout, context); + } + + /** + * 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 + * DataLakeDirectoryClient. + * + * @param subDirectoryName A {@code String} representing the name of the sub-directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.getSubDirectoryClient#String} + * + * @return A new {@link DataLakeDirectoryClient} object which references the sub-directory with the specified name + * in this directory + */ + public DataLakeDirectoryClient getSubDirectoryClient(String subDirectoryName) { + if (ImplUtils.isNullOrEmpty(subDirectoryName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'subDirectoryName' can not be set to null")); + } + return new DataLakeDirectoryClient(dataLakeDirectoryAsyncClient.getSubDirectoryAsyncClient(subDirectoryName), + dataLakeDirectoryAsyncClient.prepareBuilderAppendPath(subDirectoryName).buildBlockBlobClient()); + } + + /** + * Creates a new sub-directory within a directory. If a sub-directory with the same name already exists, the + * sub-directory will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubDirectory#String} + * + * @param subDirectoryName Name of the sub-directory to create. + * @return A {@link DataLakeDirectoryClient} used to interact with the sub-directory created. + */ + public DataLakeDirectoryClient createSubDirectory(String subDirectoryName) { + return createSubDirectoryWithResponse(subDirectoryName, null, null, null, null, null, null, null).getValue(); + } + + /** + * Creates a new sub-directory within a directory. If a sub-directory with the same name already exists, the + * sub-directory will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context} + * + * @param subDirectoryName Name of the sub-directory to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the sub-directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the sub-directory owner, the sub-directory owning group, and + * others. + * @param umask Restricts permissions of the sub-directory to be created. + * @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 a {@link DataLakeDirectoryClient} + * used to interact with the sub-directory created. + */ + public Response createSubDirectoryWithResponse(String subDirectoryName, + PathHttpHeaders headers, Map metadata, DataLakeRequestConditions accessConditions, + String permissions, String umask, Duration timeout, Context context) { + DataLakeDirectoryClient dataLakeDirectoryClient = getSubDirectoryClient(subDirectoryName); + Response response = dataLakeDirectoryClient.createWithResponse(headers, metadata, accessConditions, + permissions, umask, 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. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubDirectory#String} + * + * @param subDirectoryName Name of the sub-directory to delete. + */ + public void deleteSubDirectory(String subDirectoryName) { + deleteSubDirectoryWithResponse(subDirectoryName, false, null, null, null); + } + + /** + * Deletes the specified sub-directory in the directory. If the sub-directory doesn't exist or is not empty the + * operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubDirectoryWithResponse#String-boolean-DataLakeRequestConditions-Duration-Context} + * + * @param subDirectoryName Name of the sub-directory to delete. + * @param recursive Whether or not to delete all paths beneath the sub-directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @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 + */ + public Response deleteSubDirectoryWithResponse(String subDirectoryName, boolean recursive, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + DataLakeDirectoryClient dataLakeDirectoryClient = getSubDirectoryClient(subDirectoryName); + return dataLakeDirectoryClient.deleteWithResponse(recursive, accessConditions, timeout, context); + } + + /** + * Moves the directory to another location within the file system. + * For more information see the + * Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.rename#String} + * + * @param destinationPath Relative path from the file system to rename the directory to, excludes the file system + * name. For example if you want to move a directory with fileSystem = "myfilesystem", path = "mydir/mysubdir" to + * another path in myfilesystem (ex: newdir) then set the destinationPath = "newdir" + * @return A {@link DataLakeDirectoryClient} used to interact with the new directory created. + */ + public DataLakeDirectoryClient rename(String destinationPath) { + return renameWithResponse(destinationPath, null, null, null, null).getValue(); + } + + /** + * Moves the directory to another location within the file system. + * For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions-Duration-Context} + * + * @param destinationPath Relative path from the file system to rename the directory to, excludes the file system + * name. For example if you want to move a directory with fileSystem = "myfilesystem", path = "mydir/mysubdir" to + * another path in myfilesystem (ex: newdir) then set the destinationPath = "newdir" + * @param sourceAccessConditions {@link DataLakeRequestConditions} against the source. + * @param destAccessConditions {@link DataLakeRequestConditions} against the destination. + * @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} that contains a + * {@link DataLakeDirectoryClient} used to interact with the directory created. + */ + public Response renameWithResponse(String destinationPath, + DataLakeRequestConditions sourceAccessConditions, DataLakeRequestConditions destAccessConditions, + Duration timeout, Context context) { + + Mono> response = renameWithResponse(destinationPath, sourceAccessConditions, + destAccessConditions, context); + + Response resp = StorageImplUtils.blockWithOptionalTimeout(response, timeout); + return new SimpleResponse<>(resp, new DataLakeDirectoryClient(resp.getValue())); + } +} 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 new file mode 100644 index 0000000000000..935771e067098 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileAsyncClient.java @@ -0,0 +1,438 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.util.FluxUtil; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobContainerAsyncClient; +import com.azure.storage.blob.specialized.BlockBlobAsyncClient; +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.PathResourceType; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.DownloadRetryOptions; +import com.azure.storage.file.datalake.models.FileReadAsyncResponse; +import com.azure.storage.file.datalake.models.FileRange; +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 reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +import java.nio.ByteBuffer; +import java.util.Map; + +import static com.azure.core.implementation.util.FluxUtil.withContext; +import static com.azure.core.implementation.util.FluxUtil.monoError; +import static com.azure.core.implementation.util.FluxUtil.fluxError; + +/** + * This class provides a client that contains file operations for Azure Storage Data Lake. Operations provided by + * this client include creating a file, deleting a file, renaming a file, setting metadata and + * http headers, setting and retrieving access control, getting properties, reading a file, and appending and flushing + * data to write to a file. + * + *

+ * This client is instantiated through {@link DataLakePathClientBuilder} or retrieved via + * {@link DataLakeFileSystemAsyncClient#getFileAsyncClient(String)}. + * + *

+ * Please refer to the Azure + * Docs for more information. + */ +public class DataLakeFileAsyncClient extends DataLakePathAsyncClient { + + private final ClientLogger logger = new ClientLogger(DataLakeFileAsyncClient.class); + + /** + * Package-private constructor for use by {@link DataLakePathClientBuilder}. + * + * @param pipeline The pipeline used to send and receive service requests. + * @param url The endpoint where to send service requests. + * @param serviceVersion The version of the service to receive requests. + * @param accountName The storage account name. + * @param fileSystemName The file system name. + * @param fileName The file name. + * @param blockBlobAsyncClient The underlying {@link BlobContainerAsyncClient} + */ + DataLakeFileAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, + String accountName, String fileSystemName, String fileName, BlockBlobAsyncClient blockBlobAsyncClient) { + super(pipeline, url, serviceVersion, accountName, fileSystemName, fileName, blockBlobAsyncClient); + } + + DataLakeFileAsyncClient(DataLakePathAsyncClient pathAsyncClient) { + super(pathAsyncClient.getHttpPipeline(), pathAsyncClient.getPathUrl(), pathAsyncClient.getServiceVersion(), + pathAsyncClient.getAccountName(), pathAsyncClient.getFileSystemName(), pathAsyncClient.getObjectPath(), + pathAsyncClient.getBlockBlobAsyncClient()); + } + + /** + * Gets the URL of the file represented by this client on the Data Lake service. + * + * @return the URL. + */ + public String getFileUrl() { + return getPathUrl(); + } + + /** + * Gets the path of this file, not including the name of the resource itself. + * + * @return The path of the file. + */ + public String getFilePath() { + return getObjectPath(); + } + + /** + * Gets the name of this file, not including its full path. + * + * @return The name of the file. + */ + public String getFileName() { + return getObjectName(); + } + + /** + * Creates a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.create} + * + *

For more information see the + * Azure + * Docs

+ * + * @return A reactive response containing information about the created file. + */ + public Mono create() { + try { + return createWithResponse(null, null, null, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String} + * + *

For more information see the + * Azure + * Docs

+ * + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * PathItem}. + */ + public Mono> createWithResponse(PathHttpHeaders headers, Map metadata, + DataLakeRequestConditions accessConditions, String permissions, String umask) { + try { + return withContext(context -> createWithResponse(PathResourceType.FILE, headers, metadata, + accessConditions, permissions, umask, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.delete} + * + *

For more information see the + * Azure + * Docs

+ * + * @return A reactive response signalling completion. + */ + public Mono delete() { + try { + return deleteWithResponse(null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteWithResponse#DataLakeRequestConditions} + * + *

For more information see the + * Azure + * Docs

+ * + * @param accessConditions {@link DataLakeRequestConditions} + * + * @return A reactive response signalling completion. + */ + public Mono> deleteWithResponse(DataLakeRequestConditions accessConditions) { + // TODO (rickle-msft): Update for continuation token if we support HNS off + try { + return withContext(context -> deleteWithResponse(null /* recursive */, accessConditions, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + + } + + /** + * Appends data to the specified resource to later be flushed (written) by a call to flush + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.append#Flux-long-long} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param data The data to write to the file. + * @param fileOffset The position where the data is to be appended. + * @param length The exact length of the data. It is important that this value match precisely the length of the + * data emitted by the {@code Flux}. + * + * @return A reactive response signalling completion. + */ + public Mono append(Flux data, long fileOffset, long length) { + try { + return appendWithResponse(data, fileOffset, length, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Appends data to the specified resource to later be flushed (written) by a call to flush + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.appendWithResponse#Flux-long-long-byte-String} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param data The data to write to the file. + * @param fileOffset The position where the data is to be appended. + * @param length The exact length of the data. It is important that this value match precisely the length of the + * data emitted by the {@code Flux}. + * @param contentMd5 An MD5 hash of the content of the data. If specified, the service will calculate the MD5 of the + * received data and fail the request if it does not match the provided MD5. + * @param leaseId By setting lease id, requests will fail if the provided lease does not match the active lease on + * the file. + * + * @return A reactive response signalling completion. + */ + public Mono> appendWithResponse(Flux data, long fileOffset, long length, + byte[] contentMd5, String leaseId) { + try { + return withContext(context -> appendWithResponse(data, fileOffset, length, contentMd5, + leaseId, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + Mono> appendWithResponse(Flux data, long fileOffset, long length, + byte[] contentMd5, String leaseId, Context context) { + + LeaseAccessConditions leaseAccessConditions = new LeaseAccessConditions().setLeaseId(leaseId); + + PathHttpHeaders headers = new PathHttpHeaders().setTransactionalContentHash(contentMd5); + + return this.dataLakeStorage.paths().appendDataWithRestResponseAsync(data, fileOffset, null, length, null, + headers, leaseAccessConditions, context).map(response -> new SimpleResponse<>(response, null)); + } + + /** + * Flushes (writes) data previously appended to the file through a call to append. + * The previously uploaded data must be contiguous. + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.flush#long} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param position The length of the file after all data has been written. + * + * @return A reactive response containing the information of the created resource. + */ + public Mono flush(long position) { + try { + return flushWithResponse(position, false, false, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Flushes (writes) data previously appended to the file through a call to append. + * The previously uploaded data must be contiguous. + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.flushWithResponse#long-boolean-boolean-PathHttpHeaders-DataLakeRequestConditions} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param position The length of the file after all data has been written. + * @param retainUncommittedData Whether or not uncommitted data is to be retained after the operation. + * @param close Whether or not a file changed event raised indicates completion (true) or modification (false). + * @param httpHeaders {@link PathHttpHeaders httpHeaders} + * @param accessConditions {@link DataLakeRequestConditions accessConditions} + * + * @return A reactive response containing the information of the created resource. + */ + public Mono> flushWithResponse(long position, boolean retainUncommittedData, boolean close, + PathHttpHeaders httpHeaders, DataLakeRequestConditions accessConditions) { + try { + return withContext(context -> flushWithResponse(position, retainUncommittedData, close, httpHeaders, + accessConditions, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + Mono> flushWithResponse(long position, boolean retainUncommittedData, boolean close, + PathHttpHeaders httpHeaders, DataLakeRequestConditions accessConditions, Context context) { + + httpHeaders = httpHeaders == null ? new PathHttpHeaders() : httpHeaders; + accessConditions = accessConditions == null ? new DataLakeRequestConditions() : accessConditions; + + LeaseAccessConditions lac = new LeaseAccessConditions().setLeaseId(accessConditions.getLeaseId()); + ModifiedAccessConditions mac = new ModifiedAccessConditions() + .setIfMatch(accessConditions.getIfMatch()) + .setIfNoneMatch(accessConditions.getIfNoneMatch()) + .setIfModifiedSince(accessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(accessConditions.getIfUnmodifiedSince()); + + return this.dataLakeStorage.paths().flushDataWithRestResponseAsync(null, position, retainUncommittedData, close, + (long) 0, null, httpHeaders, lac, mac, context) + .map(response -> new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), + response.getDeserializedHeaders().getLastModified()))); + } + + /** + * Reads the entire file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.read} + * + *

For more information, see the + * Azure Docs

+ * + * @return A reactive response containing the file data. + */ + public Flux read() { + try { + return readWithResponse(null, null, null, false) + .flatMapMany(FileReadAsyncResponse::getValue); + } catch (RuntimeException ex) { + return fluxError(logger, ex); + } + } + + /** + * Reads a range of bytes from a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.readWithResponse#FileRange-DownloadRetryOptions-DataLakeRequestConditions-boolean} + * + *

For more information, see the + * Azure Docs

+ * + * @param range {@link FileRange} + * @param options {@link DownloadRetryOptions} + * @param accessConditions {@link DataLakeRequestConditions} + * @param rangeGetContentMD5 Whether the contentMD5 for the specified file range should be returned. + * @return A reactive response containing the file data. + */ + public Mono readWithResponse(FileRange range, DownloadRetryOptions options, + DataLakeRequestConditions accessConditions, boolean rangeGetContentMD5) { + try { + return blockBlobAsyncClient.downloadWithResponse(Transforms.toBlobRange(range), + Transforms.toBlobDownloadRetryOptions(options), Transforms.toBlobRequestConditions(accessConditions), + rangeGetContentMD5).map(Transforms::toFileReadAsyncResponse); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Moves the file to another location within the file system. + * For more information see the + * Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.rename#String} + * + * @param destinationPath Relative path from the file system to rename the file to, excludes the file system name. + * For example if you want to move a file with fileSystem = "myfilesystem", path = "mydir/hello.txt" to another path + * in myfilesystem (ex: newdir/hi.txt) then set the destinationPath = "newdir/hi.txt" + * @return A {@link Mono} containing a {@link DataLakeFileAsyncClient} used to interact with the new file created. + */ + public Mono rename(String destinationPath) { + try { + return renameWithResponse(destinationPath, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Moves the file to another location within the file system. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileAsyncClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions} + * + * @param destinationPath Relative path from the file system to rename the file to, excludes the file system name. + * For example if you want to move a file with fileSystem = "myfilesystem", path = "mydir/hello.txt" to another path + * in myfilesystem (ex: newdir/hi.txt) then set the destinationPath = "newdir/hi.txt" + * @param sourceAccessConditions {@link DataLakeRequestConditions} against the source. + * @param destAccessConditions {@link DataLakeRequestConditions} against the destination. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeFileAsyncClient} used to interact with the file created. + */ + public Mono> renameWithResponse(String destinationPath, + DataLakeRequestConditions sourceAccessConditions, DataLakeRequestConditions destAccessConditions) { + try { + return withContext(context -> renameWithResponse(destinationPath, sourceAccessConditions, + destAccessConditions, context)).map(response -> new SimpleResponse<>(response, + new DataLakeFileAsyncClient(response.getValue()))); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + +} 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 new file mode 100644 index 0000000000000..72a94d1af2da5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileClient.java @@ -0,0 +1,382 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobAsyncClient; +import com.azure.storage.blob.models.BlobDownloadResponse; +import com.azure.storage.blob.specialized.BlockBlobClient; +import com.azure.storage.common.Utility; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.models.PathResourceType; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileRange; +import com.azure.storage.file.datalake.models.FileReadResponse; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import com.azure.storage.file.datalake.models.PathInfo; +import com.azure.storage.file.datalake.models.DownloadRetryOptions; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; +import reactor.core.scheduler.Schedulers; + +import java.io.InputStream; +import java.io.OutputStream; +import java.io.UncheckedIOException; +import java.nio.ByteBuffer; +import java.time.Duration; +import java.util.Map; +import java.util.Objects; + +/** + * This class provides a client that contains file operations for Azure Storage Data Lake. Operations provided by + * this client include creating a file, deleting a file, renaming a file, setting metadata and + * http headers, setting and retrieving access control, getting properties, reading a file, and appending and flushing + * data to write to a file. + * + *

+ * This client is instantiated through {@link DataLakePathClientBuilder} or retrieved via + * {@link DataLakeFileSystemClient#getFileClient(String) getFileClient}. + * + *

+ * Please refer to the Azure + * Docs for more information. + */ +public class DataLakeFileClient extends DataLakePathClient { + + private final ClientLogger logger = new ClientLogger(DataLakeFileClient.class); + + private final DataLakeFileAsyncClient dataLakeFileAsyncClient; + + DataLakeFileClient(DataLakeFileAsyncClient pathAsyncClient, BlockBlobClient blockBlobClient) { + super(pathAsyncClient, blockBlobClient); + this.dataLakeFileAsyncClient = pathAsyncClient; + } + + private DataLakeFileClient(DataLakePathClient dataLakePathClient) { + super(dataLakePathClient.dataLakePathAsyncClient, dataLakePathClient.blockBlobClient); + this.dataLakeFileAsyncClient = new DataLakeFileAsyncClient(dataLakePathClient.dataLakePathAsyncClient); + } + + /** + * Gets the URL of the file represented by this client on the Data Lake service. + * + * @return the URL. + */ + public String getFileUrl() { + return getPathUrl(); + } + + /** + * Gets the path of this file, not including the name of the resource itself. + * + * @return The path of the file. + */ + public String getFilePath() { + return getObjectPath(); + } + + /** + * Gets the name of this file, not including its full path. + * + * @return The name of the file. + */ + public String getFileName() { + return getObjectName(); + } + + /** + * Creates a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.create} + * + *

For more information see the + * Azure + * Docs

+ * + * @return Information about the created file. + */ + public PathInfo create() { + return createWithResponse(null, null, null, null, null, null, Context.NONE).getValue(); + } + + /** + * Creates a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context} + * + *

For more information see the + * Azure + * Docs

+ * + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @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 information about the created file + */ + public Response createWithResponse(PathHttpHeaders headers, Map metadata, + DataLakeRequestConditions accessConditions, String permissions, String umask, Duration timeout, + Context context) { + Mono> response = dataLakePathAsyncClient.createWithResponse(PathResourceType.FILE, headers, + metadata, accessConditions, permissions, umask, context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Deletes a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.delete} + * + *

For more information see the + * Azure + * Docs

+ */ + public void delete() { + deleteWithResponse(null, null, Context.NONE).getValue(); + } + + /** + * Deletes a file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.deleteWithResponse#DataLakeRequestConditions-Duration-Context} + * + *

For more information see the + * Azure + * Docs

+ * + * @param accessConditions {@link DataLakeRequestConditions} + * @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. + */ + public Response deleteWithResponse(DataLakeRequestConditions accessConditions, Duration timeout, + Context context) { + // TODO (rickle-msft): Update for continuation token if we support HNS off + Mono> response = dataLakePathAsyncClient.deleteWithResponse(null, accessConditions, context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Appends data to the specified resource to later be flushed (written) by a call to flush + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.append#InputStream-long-long} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param data The data to write to the file. + * @param fileOffset The position where the data is to be appended. + * @param length The exact length of the data. + */ + public void append(InputStream data, long fileOffset, long length) { + appendWithResponse(data, fileOffset, length, null, null, null, Context.NONE); + } + + /** + * Appends data to the specified resource to later be flushed (written) by a call to flush + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.appendWithResponse#InputStream-long-long-byte-String-Duration-Context} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param data The data to write to the file. + * @param fileOffset The position where the data is to be appended. + * @param length The exact length of the data. + * @param contentMd5 An MD5 hash of the content of the data. If specified, the service will calculate the MD5 of the + * received data and fail the request if it does not match the provided MD5. + * @param leaseId By setting lease id, requests will fail if the provided lease does not match the active lease on + * the file. + * @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 signalling completion. + */ + public Response appendWithResponse(InputStream data, long fileOffset, long length, + byte[] contentMd5, String leaseId, Duration timeout, Context context) { + + Objects.requireNonNull(data); + Flux fbb = Utility.convertStreamToByteBuffer(data, length, + BlobAsyncClient.BLOB_DEFAULT_UPLOAD_BLOCK_SIZE); + Mono> response = dataLakeFileAsyncClient.appendWithResponse( + fbb.subscribeOn(Schedulers.elastic()), fileOffset, length, contentMd5, leaseId, context); + + try { + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } catch (UncheckedIOException e) { + throw logger.logExceptionAsError(e); + } + } + + /** + * Flushes (writes) data previously appended to the file through a call to append. + * The previously uploaded data must be contiguous. + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.flush#long} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param position The length of the file after all data has been written. + * + * @return Information about the created resource. + */ + public PathInfo flush(long position) { + return flushWithResponse(position, false, false, null, null, null, Context.NONE).getValue(); + } + + /** + * Flushes (writes) data previously appended to the file through a call to append. + * The previously uploaded data must be contiguous. + * + *

Code Samples>Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.flushWithResponse#long-boolean-boolean-PathHttpHeaders-DataLakeRequestConditions-Duration-Context} + * + *

For more information, see the + * Azure + * Docs

+ * + * @param position The length of the file after all data has been written. + * @param retainUncommittedData Whether or not uncommitted data is to be retained after the operation. + * @param close Whether or not a file changed event raised indicates completion (true) or modification (false). + * @param httpHeaders {@link PathHttpHeaders httpHeaders} + * @param accessConditions {@link DataLakeRequestConditions accessConditions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * + * @return A response containing the information of the created resource. + */ + public Response flushWithResponse(long position, boolean retainUncommittedData, boolean close, + PathHttpHeaders httpHeaders, DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + Mono> response = dataLakeFileAsyncClient.flushWithResponse(position, retainUncommittedData, + close, httpHeaders, accessConditions, context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Reads the entire file into an output stream. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.read#OutputStream} + * + *

For more information, see the + * Azure Docs

+ * + * @param stream A non-null {@link OutputStream} instance where the downloaded data will be written. + * @throws UncheckedIOException If an I/O error occurs. + * @throws NullPointerException if {@code stream} is null + */ + public void read(OutputStream stream) { + readWithResponse(stream, null, null, null, false, null, Context.NONE); + } + + /** + * Reads a range of bytes from a file into an output stream. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.readWithResponse#OutputStream-FileRange-DownloadRetryOptions-DataLakeRequestConditions-boolean-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param stream A non-null {@link OutputStream} instance where the downloaded data will be written. + * @param range {@link FileRange} + * @param options {@link DownloadRetryOptions} + * @param accessConditions {@link DataLakeRequestConditions} + * @param rangeGetContentMD5 Whether the contentMD5 for the specified file range should be returned. + * @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. + * @throws UncheckedIOException If an I/O error occurs. + * @throws NullPointerException if {@code stream} is null + */ + public FileReadResponse readWithResponse(OutputStream stream, FileRange range, DownloadRetryOptions options, + DataLakeRequestConditions accessConditions, boolean rangeGetContentMD5, Duration timeout, Context context) { + BlobDownloadResponse response = blockBlobClient.downloadWithResponse(stream, Transforms.toBlobRange(range), + Transforms.toBlobDownloadRetryOptions(options), Transforms.toBlobRequestConditions(accessConditions), + rangeGetContentMD5, timeout, context); + return Transforms.toFileReadResponse(response); + } + + /** + * Moves the file to another location within the file system. + * For more information see the + * Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.rename#String} + * + * @param destinationPath Relative path from the file system to rename the file to, excludes the file system name. + * For example if you want to move a file with fileSystem = "myfilesystem", path = "mydir/hello.txt" to another path + * in myfilesystem (ex: newdir/hi.txt) then set the destinationPath = "newdir/hi.txt" + * @return A {@link DataLakeFileClient} used to interact with the new file created. + */ + public DataLakeFileClient rename(String destinationPath) { + return renameWithResponse(destinationPath, null, null, null, null).getValue(); + } + + /** + * Moves the file to another location within the file system. + * For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions-Duration-Context} + * + * @param destinationPath Relative path from the file system to rename the file to, excludes the file system name. + * For example if you want to move a file with fileSystem = "myfilesystem", path = "mydir/hello.txt" to another path + * in myfilesystem (ex: newdir/hi.txt) then set the destinationPath = "newdir/hi.txt" + * @param sourceAccessConditions {@link DataLakeRequestConditions} against the source. + * @param destAccessConditions {@link DataLakeRequestConditions} against the destination. + * @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} that contains a {@link DataLakeFileClient} + * used to interact with the file created. + */ + public Response renameWithResponse(String destinationPath, + DataLakeRequestConditions sourceAccessConditions, DataLakeRequestConditions destAccessConditions, + Duration timeout, Context context) { + + Mono> response = renameWithResponse(destinationPath, sourceAccessConditions, + destAccessConditions, context); + + Response resp = StorageImplUtils.blockWithOptionalTimeout(response, timeout); + return new SimpleResponse<>(resp, new DataLakeFileClient(resp.getValue())); + } +} 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 new file mode 100644 index 0000000000000..6ac577fdd0fb3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemAsyncClient.java @@ -0,0 +1,612 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.http.PagedResponseBase; +import com.azure.core.implementation.util.FluxUtil; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobContainerAsyncClient; +import com.azure.storage.blob.specialized.BlockBlobAsyncClient; +import com.azure.storage.common.Utility; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.DataLakeStorageClientBuilder; +import com.azure.storage.file.datalake.implementation.DataLakeStorageClientImpl; +import com.azure.storage.file.datalake.implementation.models.FileSystemsListPathsResponse; +import com.azure.storage.file.datalake.implementation.models.Path; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemProperties; +import com.azure.storage.file.datalake.models.ListPathsOptions; +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 reactor.core.publisher.Mono; + +import java.time.Duration; +import java.util.Map; +import java.util.function.Function; + +import static com.azure.core.implementation.util.FluxUtil.monoError; +import static com.azure.core.implementation.util.FluxUtil.pagedFluxError; + + +/** + * Client to a file system. It may only be instantiated through a {@link DataLakeFileSystemClientBuilder} or via the + * method {@link DataLakeServiceAsyncClient#getFileSystemAsyncClient(String)}. This class does not hold any state about + * a particular blob but is instead a convenient way of sending off appropriate requests to the resource on the service. + * It may also be used to construct clients for files/directories. + * + *

+ * This client contains operations on a file system. Operations on a path are available on + * {@link DataLakeFileAsyncClient} and {@link DataLakeDirectoryAsyncClient} through {@link #getFileAsyncClient(String)} + * and {@link #getDirectoryAsyncClient(String)} respectively, and operations on the service are available on + * {@link DataLakeServiceAsyncClient}. + * + *

+ * Please refer to the + * Azure Docs for more information on file systems. + * + *

+ * Note this client is an async client that returns reactive responses from Spring Reactor Core project + * (https://projectreactor.io/). Calling the methods in this client will NOT start the actual network + * operation, until {@code .subscribe()} is called on the reactive response. You can simply convert one of these + * responses to a {@link java.util.concurrent.CompletableFuture} object through {@link Mono#toFuture()}. + */ +@ServiceClient(builder = DataLakeFileSystemClientBuilder.class, isAsync = true) +public class DataLakeFileSystemAsyncClient { + + public static final String ROOT_FILESYSTEM_NAME = "$root"; + +// public static final String STATIC_WEBSITE_FILESYSTEM_NAME = "$web"; + +// public static final String LOG_FILESYSTEM_NAME = "$logs"; + + private final ClientLogger logger = new ClientLogger(DataLakeFileSystemAsyncClient.class); + private final DataLakeStorageClientImpl azureDataLakeStorage; + private final BlobContainerAsyncClient blobContainerAsyncClient; + + private final String accountName; + private final String fileSystemName; + private final DataLakeServiceVersion serviceVersion; + + /** + * Package-private constructor for use by {@link DataLakeFileSystemClientBuilder}. + * + * @param pipeline The pipeline used to send and receive service requests. + * @param url The endpoint where to send service requests. + * @param serviceVersion The version of the service to receive requests. + * @param accountName The storage account name. + * @param fileSystemName The file system name. + * @param blobContainerAsyncClient The underlying {@link BlobContainerAsyncClient} + */ + DataLakeFileSystemAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, + String accountName, String fileSystemName, BlobContainerAsyncClient blobContainerAsyncClient) { + this.azureDataLakeStorage = new DataLakeStorageClientBuilder() + .pipeline(pipeline) + .url(url) + .version(serviceVersion.getVersion()) + .build(); + this.serviceVersion = serviceVersion; + + this.accountName = accountName; + this.fileSystemName = fileSystemName; + this.blobContainerAsyncClient = blobContainerAsyncClient; + } + + /** + * Creates a new DataLakeFileAsyncClient object by concatenating fileName to the end of + * DataLakeFileSystemAsyncClient's URL. The new DataLakeFileAsyncClient uses the same request policy pipeline as + * the DataLakeFileSystemAsyncClient. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getFileAsyncClient#String} + * + * @param fileName A {@code String} representing the name of the file. + * @return A new {@link DataLakeFileAsyncClient} object which references the file with the specified name in this + * file system. + */ + public DataLakeFileAsyncClient getFileAsyncClient(String fileName) { + if (ImplUtils.isNullOrEmpty(fileName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'fileName' can not be set to null")); + } + BlockBlobAsyncClient blockBlobAsyncClient = blobContainerAsyncClient.getBlobAsyncClient(fileName, + null).getBlockBlobAsyncClient(); + + return new DataLakeFileAsyncClient(getHttpPipeline(), + StorageImplUtils.appendToUrlPath(getFileSystemUrl(), Utility.urlEncode(Utility.urlDecode(fileName))) + .toString(), getServiceVersion(), getAccountName(), getFileSystemName(), fileName, + blockBlobAsyncClient); + } + + /** + * Creates a new DataLakeDirectoryAsyncClient object by concatenating directoryName to the end of + * DataLakeFileSystemAsyncClient's URL. The new DataLakeDirectoryAsyncClient uses the same request policy pipeline + * as the DataLakeFileSystemAsyncClient. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getDirectoryAsyncClient#String} + * + * @param directoryName A {@code String} representing the name of the directory. + * @return A new {@link DataLakeDirectoryAsyncClient} object which references the directory with the specified name + * in this file system. + */ + public DataLakeDirectoryAsyncClient getDirectoryAsyncClient(String directoryName) { + if (ImplUtils.isNullOrEmpty(directoryName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'directoryName' can not be set to null")); + } + BlockBlobAsyncClient blockBlobAsyncClient = blobContainerAsyncClient.getBlobAsyncClient(directoryName, + null).getBlockBlobAsyncClient(); + return new DataLakeDirectoryAsyncClient(getHttpPipeline(), + StorageImplUtils.appendToUrlPath(getFileSystemUrl(), Utility.urlEncode(Utility.urlDecode(directoryName))) + .toString(), getServiceVersion(), getAccountName(), getFileSystemName(), directoryName, + blockBlobAsyncClient); + } + + /** + * Gets the URL of the file system represented by this client. + * + * @return the URL. + */ + public String getFileSystemUrl() { + return azureDataLakeStorage.getUrl(); + } + + /** + * Get the file system name. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getFileSystemName} + * + * @return The name of file system. + */ + public String getFileSystemName() { + return fileSystemName; + } + + /** + * Get associated account name. + * + * @return account name associated with this storage resource. + */ + public String getAccountName() { + return this.accountName; + } + + /** + * Gets the service version the client is using. + * + * @return the service version the client is using. + */ + public DataLakeServiceVersion getServiceVersion() { + return serviceVersion; + } + + /** + * Gets the {@link HttpPipeline} powering this client. + * + * @return The pipeline. + */ + public HttpPipeline getHttpPipeline() { + return azureDataLakeStorage.getHttpPipeline(); + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.create} + * + * @return A reactive response signalling completion. + */ + public Mono create() { + try { + return createWithResponse(null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createWithResponse#Map-PublicAccessType} + * + * @param metadata Metadata to associate with the file system. + * @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 signalling completion. + */ + public Mono> createWithResponse(Map metadata, PublicAccessType accessType) { + try { + return blobContainerAsyncClient.createWithResponse(metadata, Transforms.toBlobPublicAccessType(accessType)); + } 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 + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.delete} + * + * @return A reactive response signalling completion. + */ + public Mono delete() { + try { + return deleteWithResponse(null).flatMap(FluxUtil::toMono); + } 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 + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteWithResponse#DataLakeRequestConditions} + * + * @param accessConditions {@link DataLakeRequestConditions} + * @return A reactive response signalling completion. + * @throws UnsupportedOperationException If either {@link DataLakeRequestConditions#getIfMatch()} or + * {@link DataLakeRequestConditions#getIfNoneMatch()} is set. + */ + public Mono> deleteWithResponse(DataLakeRequestConditions accessConditions) { + try { + return blobContainerAsyncClient.deleteWithResponse( + Transforms.toBlobRequestConditions(accessConditions)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Returns the file system's metadata and system properties. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getProperties} + * + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} containing the + * file system properties. + */ + public Mono getProperties() { + try { + return getPropertiesWithResponse(null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Returns the file system's metadata and system properties. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getPropertiesWithResponse#String} + * + * @param leaseId The lease ID the active lease on the file system must match. + * @return A reactive response containing the file system properties. + */ + public Mono> getPropertiesWithResponse(String leaseId) { + try { + return blobContainerAsyncClient.getPropertiesWithResponse(leaseId) + .map(response -> new SimpleResponse<>(response, + Transforms.toFileSystemProperties(response.getValue()))); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Sets the file system's metadata. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.setMetadata#Map} + * + * @param metadata Metadata to associate with the file system. + * @return A reactive response signalling completion. + */ + public Mono setMetadata(Map metadata) { + try { + return setMetadataWithResponse(metadata, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Sets the file systems's metadata. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.setMetadataWithResponse#Map-DataLakeRequestConditions} + * + * @param metadata Metadata to associate with the file system. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains signalling + * completion. + * @throws UnsupportedOperationException If one of {@link DataLakeRequestConditions#getIfMatch()}, + * {@link DataLakeRequestConditions#getIfNoneMatch()}, or {@link DataLakeRequestConditions#getIfUnmodifiedSince()} + * is set. + */ + public Mono> setMetadataWithResponse(Map metadata, + DataLakeRequestConditions accessConditions) { + try { + return blobContainerAsyncClient.setMetadataWithResponse(metadata, + Transforms.toBlobRequestConditions(accessConditions)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Returns a reactive Publisher emitting all the files/directories in this account lazily as needed. For more + * information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.listPaths} + * + * @return A reactive response emitting the list of files/directories. + */ + public PagedFlux listPaths() { + try { + return this.listPaths(new ListPathsOptions()); + } catch (RuntimeException ex) { + return pagedFluxError(logger, ex); + } + } + + /** + * Returns a reactive Publisher emitting all the files/directories in this account lazily as needed. For more + * information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.listPaths#ListPathsOptions} + * + * @param options A {@link ListPathsOptions} which specifies what data should be returned by the service. + * @return A reactive response emitting the list of files/directories. + */ + public PagedFlux listPaths(ListPathsOptions options) { + return listPathsWithOptionalTimeout(options, null); + } + + PagedFlux listPathsWithOptionalTimeout(ListPathsOptions options, + Duration timeout) { + Function>> func = + marker -> listPathsSegment(marker, options, timeout) + .map(response -> new PagedResponseBase<>( + response.getRequest(), + response.getStatusCode(), + response.getHeaders(), + response.getValue().getPaths(), + response.getDeserializedHeaders().getContinuation(), + response.getDeserializedHeaders())); + + return new PagedFlux<>(() -> func.apply(null), func).mapPage(Transforms::toPathItem); + } + + private Mono listPathsSegment(String marker, + ListPathsOptions options, Duration timeout) { + options = options == null ? new ListPathsOptions() : options; + + return StorageImplUtils.applyOptionalTimeout( + this.azureDataLakeStorage.fileSystems().listPathsWithRestResponseAsync( + options.isRecursive(), marker, options.getPath(), options.getMaxResults(), options.isReturnUpn(), null, + null, Context.NONE), timeout); + } + + /** + * Creates a new file within a file system. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFile#String} + * + * @param fileName Name of the file to create. + * @return A {@link Mono} containing a {@link DataLakeFileAsyncClient} used to interact with the file created. + */ + public Mono createFile(String fileName) { + try { + return createFileWithResponse(fileName, null, null, null, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new file within a file system. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String} + * + * @param fileName Name of the file to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the file. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeFileAsyncClient} used to interact with the file created. + */ + public Mono> createFileWithResponse(String fileName, + PathHttpHeaders headers, Map metadata, DataLakeRequestConditions accessConditions, + String permissions, String umask) { + try { + DataLakeFileAsyncClient dataLakeFileAsyncClient = getFileAsyncClient(fileName); + + return dataLakeFileAsyncClient.createWithResponse(headers, metadata, accessConditions, permissions, umask) + .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 + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFile#String} + * + * @param fileName Name of the file to delete. + * @return A reactive response signalling completion. + */ + public Mono deleteFile(String fileName) { + try { + return deleteFileWithResponse(fileName, null).flatMap(FluxUtil::toMono); + } 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 + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileWithResponse#String-DataLakeRequestConditions} + * + * @param fileName Name of the file to delete. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A {@link Mono} containing containing status code and HTTP headers + */ + public Mono> deleteFileWithResponse(String fileName, DataLakeRequestConditions accessConditions) { + try { + return getFileAsyncClient(fileName).deleteWithResponse(accessConditions); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new directory within a file system. If a directory with the same name already exists, the directory + * will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectory#String} + * + * @param directoryName Name of the directory to create. + * @return A {@link Mono} containing a {@link DataLakeDirectoryAsyncClient} used to interact with the directory + * created. + */ + public Mono createDirectory(String directoryName) { + try { + return createDirectoryWithResponse(directoryName, null, null, null, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new directory within a file system. If a directory with the same name already exists, the directory + * will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String} + * + * @param directoryName Name of the directory to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the directory owner, the directory owning group, and others. + * @param umask Restricts permissions of the directory to be created. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeDirectoryAsyncClient} used to interact with the directory created. + */ + public Mono> createDirectoryWithResponse(String directoryName, + PathHttpHeaders headers, Map metadata, DataLakeRequestConditions accessConditions, + String permissions, String umask) { + try { + DataLakeDirectoryAsyncClient dataLakeDirectoryAsyncClient = getDirectoryAsyncClient(directoryName); + + return dataLakeDirectoryAsyncClient.createWithResponse(headers, metadata, accessConditions, permissions, + umask).map(response -> new SimpleResponse<>(response, dataLakeDirectoryAsyncClient)); + } 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 + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectory#String} + * + * @param directoryName Name of the directory to delete. + * @return A reactive response signalling completion. + */ + public Mono deleteDirectory(String directoryName) { + return deleteDirectoryWithResponse(directoryName, false, null).flatMap(FluxUtil::toMono); + } + + /** + * Deletes the specified directory in the file system. If the directory doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryWithResponse#String-boolean-DataLakeRequestConditions} + * + * @param directoryName Name of the directory to delete. + * @param recursive Whether or not to delete all paths beneath the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A {@link Mono} containing containing status code and HTTP headers + */ + public Mono> deleteDirectoryWithResponse(String directoryName, boolean recursive, + DataLakeRequestConditions accessConditions) { + return getDirectoryAsyncClient(directoryName).deleteWithResponse(recursive, accessConditions); + } + + BlobContainerAsyncClient getBlobContainerAsyncClient() { + return blobContainerAsyncClient; + } +} 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 new file mode 100644 index 0000000000000..3119086b1231d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClient.java @@ -0,0 +1,490 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobContainerClient; +import com.azure.storage.blob.models.BlobContainerProperties; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemProperties; +import com.azure.storage.file.datalake.models.ListPathsOptions; +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 java.time.Duration; +import java.util.Map; + +/** + * Client to a file system. It may only be instantiated through a {@link DataLakeFileSystemClientBuilder} or via the + * method {@link DataLakeServiceClient#getFileSystemClient(String)}. This class does not hold any state about a + * particular file system but is instead a convenient way of sending off appropriate requests to the resource on the + * service. It may also be used to construct URLs to files/directories. + * + *

+ * This client contains operations on a file system. Operations on a path are available on {@link DataLakeFileClient} + * and {@link DataLakeDirectoryClient} through {@link #getFileClient(String)} and {@link #getDirectoryClient(String)} + * respectively, and operations on the service are available on {@link DataLakeServiceClient}. + * + *

+ * Please refer to the + * Azure Docs for more information on file systems. + */ +@ServiceClient(builder = DataLakeFileSystemClientBuilder.class) +public class DataLakeFileSystemClient { + private final ClientLogger logger = new ClientLogger(DataLakeFileSystemClient.class); + + private final DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient; + private final BlobContainerClient blobContainerClient; + + public static final String ROOT_FILESYSTEM_NAME = DataLakeFileSystemAsyncClient.ROOT_FILESYSTEM_NAME; + +// public static final String STATIC_WEBSITE_FILESYSTEM_NAME = +// DataLakeFileSystemAsyncClient.STATIC_WEBSITE_FILESYSTEM_NAME; + +// public static final String LOG_FILESYSTEM_NAME = DataLakeFileSystemAsyncClient.LOG_FILESYSTEM_NAME; + + /** + * Package-private constructor for use by {@link DataLakeFileSystemClientBuilder}. + * + * @param dataLakeFileSystemAsyncClient the async file system client. + * @param blobContainerClient the sync blob container client. + */ + DataLakeFileSystemClient(DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient, + BlobContainerClient blobContainerClient) { + this.dataLakeFileSystemAsyncClient = dataLakeFileSystemAsyncClient; + this.blobContainerClient = blobContainerClient; + } + + /** + * Initializes a new DataLakeFileClient object by concatenating fileName to the end of DataLakeFileSystemClient's + * URL. The new DataLakeFileClient uses the same request policy pipeline as the DataLakeFileSystemClient. + * + * @param fileName A {@code String} representing the name of the file. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.getFileClient#String} + * + * @return A new {@link DataLakeFileClient} object which references the file with the specified name in this file + * system. + */ + public DataLakeFileClient getFileClient(String fileName) { + if (ImplUtils.isNullOrEmpty(fileName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'fileName' can not be set to null")); + } + return new DataLakeFileClient(dataLakeFileSystemAsyncClient.getFileAsyncClient(fileName), + blobContainerClient.getBlobClient(fileName).getBlockBlobClient()); + } + + /** + * Initializes a new DataLakeDirectoryClient object by concatenating directoryName to the end of + * DataLakeFileSystemClient's URL. The new DataLakeDirectoryClient uses the same request policy pipeline as the + * DataLakeFileSystemClient. + * + * @param directoryName A {@code String} representing the name of the directory. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.getDirectoryClient#String} + * + * @return A new {@link DataLakeDirectoryClient} object which references the directory with the specified name in + * this file system. + */ + public DataLakeDirectoryClient getDirectoryClient(String directoryName) { + return new DataLakeDirectoryClient(dataLakeFileSystemAsyncClient.getDirectoryAsyncClient(directoryName), + blobContainerClient.getBlobClient(directoryName).getBlockBlobClient()); + } + + /** + * Get the file system name. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.getFileSystemName} + * + * @return The name of file system. + */ + public String getFileSystemName() { + return dataLakeFileSystemAsyncClient.getFileSystemName(); + } + + /** + * Gets the URL of the file system represented by this client. + * + * @return the URL. + */ + public String getFileSystemUrl() { + return dataLakeFileSystemAsyncClient.getFileSystemUrl(); + } + + /** + * Get associated account name. + * + * @return account name associated with this storage resource. + */ + public String getAccountName() { + return dataLakeFileSystemAsyncClient.getAccountName(); + } + + /** + * Gets the service version the client is using. + * + * @return the service version the client is using. + */ + public DataLakeServiceVersion getServiceVersion() { + return dataLakeFileSystemAsyncClient.getServiceVersion(); + } + + + /** + * Gets the {@link HttpPipeline} powering this client. + * + * @return The pipeline. + */ + public HttpPipeline getHttpPipeline() { + return dataLakeFileSystemAsyncClient.getHttpPipeline(); + } + + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.create} + */ + public void create() { + createWithResponse(null, null, null, Context.NONE); + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.createWithResponse#Map-PublicAccessType-Duration-Context} + * + * @param metadata Metadata to associate with the file system. + * @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 + */ + public Response createWithResponse(Map metadata, PublicAccessType accessType, + Duration timeout, Context context) { + return blobContainerClient.createWithResponse(metadata, Transforms.toBlobPublicAccessType(accessType), timeout, + context); + } + + /** + * 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 + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.delete} + */ + public void delete() { + deleteWithResponse(null, null, Context.NONE); + } + + /** + * 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 + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteWithResponse#DataLakeRequestConditions-Duration-Context} + * + * @param accessConditions {@link DataLakeRequestConditions} + * @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 + */ + public Response deleteWithResponse(DataLakeRequestConditions accessConditions, Duration timeout, + Context context) { + return blobContainerClient.deleteWithResponse(Transforms.toBlobRequestConditions(accessConditions), + timeout, context); + } + + /** + * Returns the file system's metadata and system properties. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.getProperties} + * + * @return The file system properties. + */ + public FileSystemProperties getProperties() { + return getPropertiesWithResponse(null, null, Context.NONE).getValue(); + } + + /** + * Returns the file system's metadata and system properties. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.getPropertiesWithResponse#String-Duration-Context} + * + * @param leaseId The lease ID the active lease on the file system must match. + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the file system properties. + */ + public Response getPropertiesWithResponse(String leaseId, Duration timeout, Context context) { + Response response = blobContainerClient.getPropertiesWithResponse(leaseId, timeout, + context); + return new SimpleResponse<>(response, Transforms.toFileSystemProperties(response.getValue())); + } + + /** + * Sets the file system's metadata. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.setMetadata#Map} + * + * @param metadata Metadata to associate with the file system. + */ + public void setMetadata(Map metadata) { + setMetadataWithResponse(metadata, null, null, Context.NONE); + } + + /** + * Sets the file system's metadata. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.setMetadataWithResponse#Map-DataLakeRequestConditions-Duration-Context} + * @param metadata Metadata to associate with the file system. + * @param accessConditions {@link DataLakeRequestConditions} + * @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 + */ + public Response setMetadataWithResponse(Map metadata, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + return blobContainerClient.setMetadataWithResponse(metadata, + Transforms.toBlobRequestConditions(accessConditions), timeout, context); + } + + /** + * Returns a lazy loaded list of files/directories in this account. The returned {@link PagedIterable} can be + * consumed while new items are automatically retrieved as needed. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.listPaths} + * + * @return The list of files/directories. + */ + public PagedIterable listPaths() { + return this.listPaths(new ListPathsOptions(), null); + } + + /** + * Returns a lazy loaded list of files/directories in this account. The returned {@link PagedIterable} can be + * consumed while new items are automatically retrieved as needed. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.listPaths#ListPathsOptions-Duration} + * + * @param options A {@link ListPathsOptions} which specifies what data should be returned by the service. + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @return The list of files/directories. + */ + public PagedIterable listPaths(ListPathsOptions options, Duration timeout) { + return new PagedIterable<>(dataLakeFileSystemAsyncClient.listPathsWithOptionalTimeout(options, timeout)); + } + + /** + * Creates a new file within a file system. If a file with the same name already exists, the file will be + * overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.createFile#String} + * + * @param fileName Name of the file to create. + * @return A {@link DataLakeFileClient} used to interact with the file created. + */ + public DataLakeFileClient createFile(String fileName) { + return createFileWithResponse(fileName, null, null, null, null, null, null, Context.NONE).getValue(); + } + + /** + * Creates a new file within a file system. If a file with the same name already exists, the file will be + * overwritten. For more information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context} + * + * @param fileName Name of the file to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the file. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the file owner, the file owning group, and others. + * @param umask Restricts permissions of the file to be created. + * @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. + */ + public Response createFileWithResponse(String fileName, + PathHttpHeaders headers, Map metadata, DataLakeRequestConditions accessConditions, + String permissions, String umask, Duration timeout, Context context) { + DataLakeFileClient dataLakeFileClient = getFileClient(fileName); + + return new SimpleResponse<>(dataLakeFileClient.createWithResponse(headers, metadata, accessConditions, + permissions, umask, timeout, context), dataLakeFileClient); + } + + /** + * Deletes the specified file in the file system. If the file doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFile#String} + * + * @param fileName Name of the file to delete. + */ + public void deleteFile(String fileName) { + deleteFileWithResponse(fileName, null, null, Context.NONE).getValue(); + } + + /** + * Deletes the specified file in the file system. If the file doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileWithResponse#String-DataLakeRequestConditions-Duration-Context} + * + * @param fileName Name of the file to delete. + * @param accessConditions {@link DataLakeRequestConditions} + * @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 + */ + public Response deleteFileWithResponse(String fileName, DataLakeRequestConditions accessConditions, + Duration timeout, Context context) { + return getFileClient(fileName).deleteWithResponse(accessConditions, timeout, context); + } + + /** + * Creates a new directory within a file system. If a directory with the same name already exists, the directory + * will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectory#String} + * + * @param directoryName Name of the directory to create. + * @return A {@link DataLakeDirectoryClient} used to interact with the directory created. + */ + public DataLakeDirectoryClient createDirectory(String directoryName) { + return createDirectoryWithResponse(directoryName, null, null, null, null, null, null, null).getValue(); + } + + /** + * Creates a new directory within a file system. If a directory with the same name already exists, the directory + * will be overwritten. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context} + * + * @param directoryName Name of the directory to create. + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the directory owner, the directory owning group, and others. + * @param umask Restricts permissions of the directory to be created. + * @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 a {@link DataLakeDirectoryClient} + * used to interact with the directory created. + */ + public Response createDirectoryWithResponse(String directoryName, + PathHttpHeaders headers, Map metadata, DataLakeRequestConditions accessConditions, + String permissions, String umask, Duration timeout, Context context) { + DataLakeDirectoryClient dataLakeDirectoryClient = getDirectoryClient(directoryName); + + return new SimpleResponse<>(dataLakeDirectoryClient.createWithResponse(headers, metadata, accessConditions, + permissions, umask, timeout, context), dataLakeDirectoryClient); + } + + /** + * Deletes the specified directory in the file system. If the directory doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectory#String} + * + * @param directoryName Name of the directory to delete. + */ + public void deleteDirectory(String directoryName) { + deleteDirectoryWithResponse(directoryName, false, null, null, Context.NONE).getValue(); + } + + /** + * Deletes the specified directory in the file system. If the directory doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryWithResponse#String-boolean-DataLakeRequestConditions-Duration-Context} + * + * @param directoryName Name of the directory to delete. + * @param recursive Whether or not to delete all paths beneath the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @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 + */ + public Response deleteDirectoryWithResponse(String directoryName, boolean recursive, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + return getDirectoryClient(directoryName).deleteWithResponse(recursive, accessConditions, timeout, context); + } + + BlobContainerClient getBlobContainerClient() { + return blobContainerClient; + } + +} 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 new file mode 100644 index 0000000000000..0a06f9a613fd1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeFileSystemClientBuilder.java @@ -0,0 +1,337 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Configuration; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobContainerClientBuilder; +import com.azure.storage.blob.BlobUrlParts; +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.implementation.credentials.SasTokenCredential; +import com.azure.storage.common.implementation.policy.SasTokenCredentialPolicy; +import com.azure.storage.common.policy.RequestRetryOptions; +import com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy; +import com.azure.storage.file.datalake.implementation.util.BuilderHelper; + +import java.net.MalformedURLException; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * This class provides a fluent builder API to help aid the configuration and instantiation of {@link + * DataLakeFileSystemClient FileSystemClients} and {@link DataLakeFileSystemAsyncClient FileSystemAsyncClients}, call + * {@link #buildClient() buildClient} and {@link #buildAsyncClient() buildAsyncClient} respectively to construct an + * instance of the desired client. + * + *

+ * The following information must be provided on this builder: + * + *

    + *
  • the endpoint through {@code .endpoint()}, including the file system name, in the format of {@code + * https://{accountName}.dfs.core.windows.net/{fileSystemName}}. + *
  • the credential through {@code .credential()} or {@code .connectionString()} if the file system is not publicly + * accessible. + *
+ */ +@ServiceClientBuilder(serviceClients = {DataLakeFileSystemClient.class, DataLakeFileSystemAsyncClient.class}) +public class DataLakeFileSystemClientBuilder { + private final ClientLogger logger = new ClientLogger(DataLakeFileSystemClientBuilder.class); + + private final BlobContainerClientBuilder blobContainerClientBuilder; + + private String endpoint; + private String accountName; + private String fileSystemName; + + private StorageSharedKeyCredential storageSharedKeyCredential; + private TokenCredential tokenCredential; + private SasTokenCredential sasTokenCredential; + + private HttpClient httpClient; + private final List additionalPolicies = new ArrayList<>(); + private HttpLogOptions logOptions; + private RequestRetryOptions retryOptions = new RequestRetryOptions(); + private HttpPipeline httpPipeline; + + private Configuration configuration; + private DataLakeServiceVersion version; + + /** + * Creates a builder instance that is able to configure and construct {@link DataLakeFileSystemClient + * FileSystemClients} + * and {@link DataLakeFileSystemAsyncClient FileSystemAsyncClients}. + */ + public DataLakeFileSystemClientBuilder() { + logOptions = getDefaultHttpLogOptions(); + blobContainerClientBuilder = new BlobContainerClientBuilder(); + } + + /** + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClientBuilder.buildClient} + * + * @return a {@link DataLakeFileSystemClient} created from the configurations in this builder. + */ + public DataLakeFileSystemClient buildClient() { + return new DataLakeFileSystemClient(buildAsyncClient(), blobContainerClientBuilder.buildClient()); + } + + /** + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeFileSystemClientBuilder.buildAsyncClient} + * + * @return a {@link DataLakeFileSystemAsyncClient} created from the configurations in this builder. + */ + public DataLakeFileSystemAsyncClient buildAsyncClient() { + /* + Implicit and explicit root file system access are functionally equivalent, but explicit references are easier + to read and debug. + */ + String dataLakeFileSystemName = ImplUtils.isNullOrEmpty(fileSystemName) + ? DataLakeFileSystemAsyncClient.ROOT_FILESYSTEM_NAME + : fileSystemName; + + DataLakeServiceVersion serviceVersion = version != null ? version : DataLakeServiceVersion.getLatest(); + + HttpPipeline pipeline = (httpPipeline != null) ? httpPipeline : BuilderHelper.buildPipeline(() -> { + if (storageSharedKeyCredential != null) { + return new StorageSharedKeyCredentialPolicy(storageSharedKeyCredential); + } else if (tokenCredential != null) { + return new BearerTokenAuthenticationPolicy(tokenCredential, String.format("%s/.default", endpoint)); + } else if (sasTokenCredential != null) { + return new SasTokenCredentialPolicy(sasTokenCredential); + } else { + return null; + } + }, retryOptions, logOptions, httpClient, additionalPolicies, configuration, serviceVersion); + + return new DataLakeFileSystemAsyncClient(pipeline, String.format("%s/%s", endpoint, dataLakeFileSystemName), + serviceVersion, accountName, dataLakeFileSystemName, blobContainerClientBuilder.buildAsyncClient()); + } + + /** + * Sets the service endpoint, additionally parses it for information (SAS token, file system name) + * + * @param endpoint URL of the service + * @return the updated DataLakeFileSystemClientBuilder object + * @throws IllegalArgumentException If {@code endpoint} is {@code null} or is a malformed URL. + */ + public DataLakeFileSystemClientBuilder endpoint(String endpoint) { + blobContainerClientBuilder.endpoint(Transforms.endpointToDesiredEndpoint(endpoint, "blob", "dfs")); + try { + URL url = new URL(endpoint); + BlobUrlParts parts = BlobUrlParts.parse(url); + + this.endpoint = parts.getScheme() + "://" + parts.getHost(); + this.accountName = parts.getAccountName(); + this.fileSystemName = parts.getBlobContainerName(); + + String sasToken = parts.getSasQueryParameters().encode(); + if (!ImplUtils.isNullOrEmpty(sasToken)) { + this.sasToken(sasToken); + } + } catch (MalformedURLException ex) { + throw logger.logExceptionAsError( + new IllegalArgumentException("The Azure Storage Datalake endpoint url is malformed.")); + } + + return this; + } + + /** + * Sets the {@link StorageSharedKeyCredential} used to authorize requests sent to the service. + * + * @param credential The credential to use for authenticating request. + * @return the updated DataLakeFileSystemClientBuilder + * @throws NullPointerException If {@code credential} is {@code null}. + */ + public DataLakeFileSystemClientBuilder credential(StorageSharedKeyCredential credential) { + blobContainerClientBuilder.credential(credential); + this.storageSharedKeyCredential = Objects.requireNonNull(credential, "'credential' cannot be null."); + this.tokenCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the {@link TokenCredential} used to authorize requests sent to the service. + * + * @param credential The credential to use for authenticating request. + * @return the updated DataLakeFileSystemClientBuilder + * @throws NullPointerException If {@code credential} is {@code null}. + */ + public DataLakeFileSystemClientBuilder credential(TokenCredential credential) { + blobContainerClientBuilder.credential(credential); + this.tokenCredential = Objects.requireNonNull(credential, "'credential' cannot be null."); + this.storageSharedKeyCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the SAS token used to authorize requests sent to the service. + * + * @param sasToken The SAS token to use for authenticating requests. + * @return the updated DataLakeFileSystemClientBuilder + * @throws NullPointerException If {@code sasToken} is {@code null}. + */ + public DataLakeFileSystemClientBuilder sasToken(String sasToken) { + blobContainerClientBuilder.sasToken(sasToken); + this.sasTokenCredential = new SasTokenCredential(Objects.requireNonNull(sasToken, + "'sasToken' cannot be null.")); + this.storageSharedKeyCredential = null; + this.tokenCredential = null; + return this; + } + + /** + * Clears the credential used to authorize the request. + * + *

This is for file systems that are publicly accessible.

+ * + * @return the updated DataLakeFileSystemClientBuilder + */ + public DataLakeFileSystemClientBuilder setAnonymousAccess() { + blobContainerClientBuilder.setAnonymousAccess(); + this.storageSharedKeyCredential = null; + this.tokenCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the name of the file system. + * + * @param fileSystemName Name of the file system. If the value {@code null} or empty the root file system, + * {@code $root}, will be used. + * @return the updated DataLakeFileSystemClientBuilder object + */ + public DataLakeFileSystemClientBuilder fileSystemName(String fileSystemName) { + blobContainerClientBuilder.containerName(fileSystemName); + this.fileSystemName = fileSystemName; + return this; + } + + /** + * Sets the {@link HttpClient} to use for sending a receiving requests to and from the service. + * + * @param httpClient HttpClient to use for requests. + * @return the updated DataLakeFileSystemClientBuilder object + */ + public DataLakeFileSystemClientBuilder httpClient(HttpClient httpClient) { + blobContainerClientBuilder.httpClient(httpClient); + if (this.httpClient != null && httpClient == null) { + logger.info("'httpClient' is being set to 'null' when it was previously configured."); + } + + this.httpClient = httpClient; + return this; + } + + /** + * Gets the default Storage whitelist log headers and query parameters. + * + * @return the default http log options. + */ + public static HttpLogOptions getDefaultHttpLogOptions() { + return BuilderHelper.getDefaultHttpLogOptions(); + } + + /** + * Adds a pipeline policy to apply on each request sent. + * + * @param pipelinePolicy a pipeline policy + * @return the updated DataLakeFileSystemClientBuilder object + * @throws NullPointerException If {@code pipelinePolicy} is {@code null}. + */ + public DataLakeFileSystemClientBuilder addPolicy(HttpPipelinePolicy pipelinePolicy) { + blobContainerClientBuilder.addPolicy(pipelinePolicy); + this.additionalPolicies.add(Objects.requireNonNull(pipelinePolicy, "'pipelinePolicy' cannot be null")); + return this; + } + + /** + * Sets the {@link HttpLogOptions} for service requests. + * + * @param logOptions The logging configuration to use when sending and receiving HTTP requests/responses. + * @return the updated DataLakeFileSystemClientBuilder object + * @throws NullPointerException If {@code logOptions} is {@code null}. + */ + public DataLakeFileSystemClientBuilder httpLogOptions(HttpLogOptions logOptions) { + blobContainerClientBuilder.httpLogOptions(logOptions); + this.logOptions = Objects.requireNonNull(logOptions, "'logOptions' cannot be null."); + return this; + } + + /** + * Sets the configuration object used to retrieve environment configuration values during building of the client. + * + * @param configuration Configuration store used to retrieve environment configurations. + * @return the updated DataLakeFileSystemClientBuilder object + */ + public DataLakeFileSystemClientBuilder configuration(Configuration configuration) { + blobContainerClientBuilder.configuration(configuration); + this.configuration = configuration; + return this; + } + + /** + * Sets the request retry options for all the requests made through the client. + * + * @param retryOptions The options used to configure retry behavior. + * @return the updated DataLakeFileSystemClientBuilder object + * @throws NullPointerException If {@code retryOptions} is {@code null}. + */ + public DataLakeFileSystemClientBuilder retryOptions(RequestRetryOptions retryOptions) { + blobContainerClientBuilder.retryOptions(retryOptions); + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + + /** + * Sets the {@link HttpPipeline} to use for the service client. + * + * If {@code pipeline} is set, all other settings are ignored, aside from {@link #endpoint(String) endpoint}. + * + * @param httpPipeline HttpPipeline to use for sending service requests and receiving responses. + * @return the updated DataLakeFileSystemClientBuilder object + */ + public DataLakeFileSystemClientBuilder pipeline(HttpPipeline httpPipeline) { + blobContainerClientBuilder.pipeline(httpPipeline); + if (this.httpPipeline != null && httpPipeline == null) { + logger.info("HttpPipeline is being set to 'null' when it was previously configured."); + } + + this.httpPipeline = httpPipeline; + return this; + } + + // TODO (gapra) : Determine how to set the blob service version here + /** + * Sets the {@link DataLakeServiceVersion} that is used when making API requests. + *

+ * If a service version is not provided, the service version that will be used will be the latest known service + * version based on the version of the client library being used. If no service version is specified, updating to a + * newer version the client library will have the result of potentially moving to a newer service version. + * + * @param version {@link DataLakeServiceVersion} of the service to be used when making requests. + * @return the updated DataLakeFileSystemClientBuilder object + */ + public DataLakeFileSystemClientBuilder serviceVersion(DataLakeServiceVersion version) { + this.version = version; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseAsyncClient.java new file mode 100644 index 0000000000000..d2764f3a1908e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseAsyncClient.java @@ -0,0 +1,247 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.RequestConditions; +import com.azure.core.http.rest.Response; +import com.azure.core.implementation.util.FluxUtil; +import com.azure.storage.blob.specialized.BlobLeaseAsyncClient; +import reactor.core.publisher.Mono; + +import java.net.URL; + + +/** + * This class provides a client that contains all the leasing operations for {@link DataLakeFileSystemAsyncClient + * file systems}, {@link DataLakeFileAsyncClient files} and {@link DataLakeDirectoryAsyncClient directories}. + * This client acts as a supplement to those clients and only handles leasing operations. + * + *

Instantiating a DataLakeLeaseAsyncClient

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFile} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithDirectory} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileSystem} + * + *

View {@link DataLakeLeaseClientBuilder this} for additional ways to construct the client.

+ * + *

For more information about leasing see the + * file system leasing or + * path leasing documentation.

+ * + * @see DataLakeLeaseClientBuilder + */ +@ServiceClient(builder = DataLakeLeaseClientBuilder.class, isAsync = true) +public final class DataLakeLeaseAsyncClient { + + private final BlobLeaseAsyncClient blobLeaseAsyncClient; + + DataLakeLeaseAsyncClient(BlobLeaseAsyncClient blobLeaseAsyncClient) { + this.blobLeaseAsyncClient = blobLeaseAsyncClient; + } + + /** + * Gets the {@link URL} of the lease client. + * + *

The lease will either be a file system or path URL depending on which the lease client is associated.

+ * + * @return URL of the lease client. + */ + public String getResourceUrl() { + return this.blobLeaseAsyncClient.getResourceUrl(); + } + + /** + * Get the lease ID for this lease. + * + * @return the lease ID. + */ + public String getLeaseId() { + return this.blobLeaseAsyncClient.getLeaseId(); + } + + /** + * Acquires a lease for write and delete operations. The lease duration must be between 15 to 60 seconds or + * -1 for an infinite duration. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.acquireLease#int} + * + * @param duration The duration of the lease between 15 to 60 seconds or -1 for an infinite duration. + * @return A reactive response containing the lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono acquireLease(int duration) { + return acquireLeaseWithResponse(duration, null).flatMap(FluxUtil::toMono); + } + + /** + * Acquires a lease for write and delete operations. The lease duration must be between 15 to 60 seconds, or + * -1 for an infinite duration. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.acquireLeaseWithResponse#int-RequestConditions} + * + * @param duration The duration of the lease between 15 to 60 seconds or -1 for an infinite duration. + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @return A reactive response containing the lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> acquireLeaseWithResponse(int duration, + RequestConditions modifiedAccessConditions) { + return this.blobLeaseAsyncClient.acquireLeaseWithResponse(duration, modifiedAccessConditions); + } + + /** + * Renews the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.renewLease} + * + * @return A reactive response containing the renewed lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono renewLease() { + return renewLeaseWithResponse(null).flatMap(FluxUtil::toMono); + } + + /** + * Renews the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.renewLeaseWithResponse#RequestConditions} + * + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @return A reactive response containing the renewed lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> renewLeaseWithResponse(RequestConditions modifiedAccessConditions) { + return blobLeaseAsyncClient.renewLeaseWithResponse(modifiedAccessConditions); + } + + /** + * Releases the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.releaseLease} + * + * @return A reactive response signalling completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono releaseLease() { + return releaseLeaseWithResponse(null).flatMap(FluxUtil::toMono); + } + + /** + * Releases the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.releaseLeaseWithResponse#RequestConditions} + * + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @return A reactive response signalling completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> releaseLeaseWithResponse(RequestConditions modifiedAccessConditions) { + return blobLeaseAsyncClient.releaseLeaseWithResponse(modifiedAccessConditions); + } + + /** + * Breaks the previously acquired lease, if it exists. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.breakLease} + * + * @return A reactive response containing the remaining time in the broken lease in seconds. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono breakLease() { + return breakLeaseWithResponse(null, null).flatMap(FluxUtil::toMono); + } + + /** + * Breaks the previously acquired lease, if it exists. + * + *

If {@code null} is passed for {@code breakPeriodInSeconds} a fixed duration lease will break after the + * remaining lease period elapses and an infinite lease will break immediately.

+ * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.breakLeaseWithResponse#Integer-RequestConditions} + * + * @param breakPeriodInSeconds An optional duration, between 0 and 60 seconds, that the lease should continue before + * it is broken. If the break period is longer than the time remaining on the lease the remaining time on the lease + * is used. A new lease will not be available before the break period has expired, but the lease may be held for + * longer than the break period. + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @return A reactive response containing the remaining time in the broken lease in seconds. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> breakLeaseWithResponse(Integer breakPeriodInSeconds, + RequestConditions modifiedAccessConditions) { + return blobLeaseAsyncClient.breakLeaseWithResponse(breakPeriodInSeconds, modifiedAccessConditions); + } + + /** + * Changes the lease ID. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.changeLease#String} + * + * @param proposedId A new lease ID in a valid GUID format. + * @return A reactive response containing the new lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono changeLease(String proposedId) { + return changeLeaseWithResponse(proposedId, null).flatMap(FluxUtil::toMono); + } + + /** + * Changes the lease ID. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.changeLeaseWithResponse#String-RequestConditions} + * + * @param proposedId A new lease ID in a valid GUID format. + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @return A reactive response containing the new lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> changeLeaseWithResponse(String proposedId, + RequestConditions modifiedAccessConditions) { + return blobLeaseAsyncClient.changeLeaseWithResponse(proposedId, modifiedAccessConditions); + } + + /** + * Get associated account name. + * + * @return account name associated with this storage resource. + */ + public String getAccountName() { + return this.blobLeaseAsyncClient.getAccountName(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseClient.java new file mode 100644 index 0000000000000..440909398bf20 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseClient.java @@ -0,0 +1,256 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.RequestConditions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.storage.blob.specialized.BlobLeaseClient; + +import java.net.URL; +import java.time.Duration; + +/** + * This class provides a client that contains all the leasing operations for {@link DataLakeFileSystemClient + * file systems} and {@link DataLakePathClient files and directories}. This client acts as a supplement to those + * clients and only handles leasing operations. + * + *

Instantiating a DataLakeLeaseClient

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFile} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithDirectory} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileSystem} + * + *

View {@link DataLakeLeaseClientBuilder this} for additional ways to construct the client.

+ * + *

For more information about leasing see the + * file system leasing or + * path leasing documentation.

+ * + * @see DataLakeLeaseClientBuilder + */ +@ServiceClient(builder = DataLakeLeaseClientBuilder.class) +public final class DataLakeLeaseClient { + private final BlobLeaseClient blobLeaseClient; + + DataLakeLeaseClient(BlobLeaseClient blobLeaseClient) { + this.blobLeaseClient = blobLeaseClient; + } + + /** + * Gets the {@link URL} of the lease client. + * + *

The lease will either be a file system or path URL depending on which the lease client is associated.

+ * + * @return URL of the lease client. + */ + public String getResourceUrl() { + return blobLeaseClient.getResourceUrl(); + } + + /** + * Get the lease ID for this lease. + * + * @return the lease ID. + */ + public String getLeaseId() { + return blobLeaseClient.getLeaseId(); + } + + /** + * Acquires a lease for write and delete operations. The lease duration must be between 15 to 60 seconds or + * -1 for an infinite duration. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.acquireLease#int} + * + * @param duration The duration of the lease between 15 to 60 seconds or -1 for an infinite duration. + * @return The lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public String acquireLease(int duration) { + return acquireLeaseWithResponse(duration, null, null, Context.NONE).getValue(); + } + + /** + * Acquires a lease for write and delete operations. The lease duration must be between 15 to 60 seconds or + * -1 for an infinite duration. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.acquireLeaseWithResponse#int-RequestConditions-Duration-Context} + * + * @param duration The duration of the lease between 15 to 60 seconds or -1 for an infinite duration. + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @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 The lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response acquireLeaseWithResponse(int duration, RequestConditions modifiedAccessConditions, + Duration timeout, Context context) { + return blobLeaseClient.acquireLeaseWithResponse(duration, modifiedAccessConditions, timeout, context); + } + + /** + * Renews the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.renewLease} + * + * @return The renewed lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public String renewLease() { + return renewLeaseWithResponse(null, null, Context.NONE).getValue(); + } + + /** + * Renews the previously-acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.renewLeaseWithResponse#RequestConditions-Duration-Context} + * + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @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 The renewed lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response renewLeaseWithResponse(RequestConditions modifiedAccessConditions, Duration timeout, + Context context) { + return blobLeaseClient.renewLeaseWithResponse(modifiedAccessConditions, timeout, context); + } + + /** + * Releases the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.releaseLease} + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void releaseLease() { + releaseLeaseWithResponse(null, null, Context.NONE); + } + + /** + * Releases the previously acquired lease. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.releaseLeaseWithResponse#RequestConditions-Duration-Context} + * + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response releaseLeaseWithResponse(RequestConditions modifiedAccessConditions, Duration timeout, + Context context) { + return blobLeaseClient.releaseLeaseWithResponse(modifiedAccessConditions, timeout, context); + } + + /** + * Breaks the previously acquired lease, if it exists. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.breakLease} + * + * @return The remaining time in the broken lease in seconds. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Integer breakLease() { + return breakLeaseWithResponse(null, null, null, Context.NONE).getValue(); + } + + /** + * Breaks the previously acquired lease, if it exists. + * + *

If {@code null} is passed for {@code breakPeriodInSeconds} a fixed duration lease will break after the + * remaining lease period elapses and an infinite lease will break immediately.

+ * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.breakLeaseWithResponse#Integer-RequestConditions-Duration-Context} + * + * @param breakPeriodInSeconds An optional duration, between 0 and 60 seconds, that the lease should continue before + * it is broken. If the break period is longer than the time remaining on the lease the remaining time on the lease + * is used. A new lease will not be available before the break period has expired, but the lease may be held for + * longer than the break period. + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @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 The remaining time in the broken lease in seconds. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response breakLeaseWithResponse(Integer breakPeriodInSeconds, + RequestConditions modifiedAccessConditions, Duration timeout, Context context) { + return blobLeaseClient.breakLeaseWithResponse(breakPeriodInSeconds, modifiedAccessConditions, timeout, context); + } + + /** + * Changes the lease ID. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.changeLease#String} + * + * @param proposedId A new lease ID in a valid GUID format. + * @return The new lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public String changeLease(String proposedId) { + return changeLeaseWithResponse(proposedId, null, null, Context.NONE).getValue(); + } + + /** + * Changes the lease ID. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClient.changeLeaseWithResponse#String-RequestConditions-Duration-Context} + * + * @param proposedId A new lease ID in a valid GUID format. + * @param modifiedAccessConditions Standard HTTP Access conditions related to the modification of data. ETag and + * LastModifiedTime are used to construct conditions related to when the resource was changed relative to the given + * request. The request will fail if the specified condition is not satisfied. + * @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 The new lease ID. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response changeLeaseWithResponse(String proposedId, + RequestConditions modifiedAccessConditions, Duration timeout, Context context) { + return blobLeaseClient.changeLeaseWithResponse(proposedId, modifiedAccessConditions, timeout, context); + } + + /** + * Get associated account name. + * + * @return account name associated with this storage resource. + */ + public String getAccountName() { + return blobLeaseClient.getAccountName(); + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseClientBuilder.java new file mode 100644 index 0000000000000..864c6facc9959 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeLeaseClientBuilder.java @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.http.HttpPipeline; +import com.azure.storage.blob.specialized.BlobLeaseClientBuilder; + +import java.net.URL; +import java.util.UUID; + +/** + * This class provides a fluent builder API to help aid the configuration and instantiation of Storage Lease + * clients. Lease clients are able to interact with both file system and path clients and act as a supplement client. A + * new instance of {@link DataLakeLeaseClient} and {@link DataLakeLeaseAsyncClient} are constructed every time + * {@link #buildClient() buildClient} and {@link #buildAsyncClient() buildAsyncClient} are called + * respectively. + * + *

When a client is instantiated and a {@link #leaseId(String) leaseId} hasn't been set a {@link UUID} will be used + * as the lease identifier.

+ * + *

Instantiating LeaseClients

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileAndLeaseId} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithDirectoryAndLeaseId} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileSystemAndLeaseId} + * + *

Instantiating LeaseAsyncClients

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileAndLeaseId} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithDirectoryAndLeaseId} + * + * {@codesnippet com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileSystemAndLeaseId} + * + * @see DataLakeLeaseClient + * @see DataLakeLeaseAsyncClient + */ +@ServiceClientBuilder(serviceClients = { DataLakeLeaseClient.class, DataLakeLeaseAsyncClient.class }) +public final class DataLakeLeaseClientBuilder { + + final BlobLeaseClientBuilder blobLeaseClientBuilder; + + public DataLakeLeaseClientBuilder() { + blobLeaseClientBuilder = new BlobLeaseClientBuilder(); + } + + /** + * Creates a {@link DataLakeLeaseClient} based on the configurations set in the builder. + * + * @return a {@link DataLakeLeaseClient} based on the configurations in this builder. + */ + public DataLakeLeaseClient buildClient() { + return new DataLakeLeaseClient(blobLeaseClientBuilder.buildClient()); + } + + /** + * Creates a {@link DataLakeLeaseAsyncClient} based on the configurations set in the builder. + * + * @return a {@link DataLakeLeaseAsyncClient} based on the configurations in this builder. + */ + public DataLakeLeaseAsyncClient buildAsyncClient() { + return new DataLakeLeaseAsyncClient(blobLeaseClientBuilder.buildAsyncClient()); + } + + /** + * Configures the builder based on the passed {@link DataLakePathClient}. This will set the {@link HttpPipeline} and + * {@link URL} that are used to interact with the service. + * + * @param dataLakePathClient Client used to configure the builder. + * @return the updated DataLakeLeaseClientBuilder object + * @throws NullPointerException If {@code dataLakePathClient} is {@code null}. + */ + public DataLakeLeaseClientBuilder pathClient(DataLakePathClient dataLakePathClient) { + blobLeaseClientBuilder.blobClient(dataLakePathClient.getBlockBlobClient()); + return this; + } + + /** + * Configures the builder based on the passed {@link DataLakePathAsyncClient}. This will set the + * {@link HttpPipeline} and {@link URL} that are used to interact with the service. + * + * @param dataLakePathAsyncClient DataLakePathAsyncClient used to configure the builder. + * @return the updated DataLakeLeaseClientBuilder object + * @throws NullPointerException If {@code dataLakePathAsyncClient} is {@code null}. + */ + public DataLakeLeaseClientBuilder pathAsyncClient(DataLakePathAsyncClient dataLakePathAsyncClient) { + blobLeaseClientBuilder.blobAsyncClient(dataLakePathAsyncClient.getBlockBlobAsyncClient()); + return this; + } + + /** + * Configures the builder based on the passed {@link DataLakeFileSystemClient}. This will set the + * {@link HttpPipeline} and {@link URL} that are used to interact with the service. + * + * @param dataLakeFileSystemClient DataLakeFileSystemClient used to configure the builder. + * @return the updated DataLakeLeaseClientBuilder object + * @throws NullPointerException If {@code dataLakeFileSystemClient} is {@code null}. + */ + public DataLakeLeaseClientBuilder fileSystemClient(DataLakeFileSystemClient dataLakeFileSystemClient) { + blobLeaseClientBuilder.containerClient(dataLakeFileSystemClient.getBlobContainerClient()); + return this; + } + + /** + * Configures the builder based on the passed {@link DataLakeFileSystemAsyncClient}. This will set the {@link + * HttpPipeline} and {@link URL} that are used to interact with the service. + * + * @param dataLakeFileSystemAsyncClient DataLakeFileSystemAsyncClient used to configure the builder. + * @return the updated DataLakeLeaseClientBuilder object + * @throws NullPointerException If {@code dataLakeFileSystemAsyncClient} is {@code null}. + */ + public DataLakeLeaseClientBuilder fileSystemAsyncClient( + DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient) { + blobLeaseClientBuilder.containerAsyncClient(dataLakeFileSystemAsyncClient.getBlobContainerAsyncClient()); + return this; + } + + /** + * Sets the identifier for the lease. + * + *

If a lease ID isn't set then a {@link UUID} will be used.

+ * + * @param leaseId Identifier for the lease. + * @return the updated DataLakeLeaseClientBuilder object + */ + public DataLakeLeaseClientBuilder leaseId(String leaseId) { + blobLeaseClientBuilder.leaseId(leaseId); + 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 new file mode 100644 index 0000000000000..5cec3ccfaffd5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java @@ -0,0 +1,581 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.util.FluxUtil; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobContainerAsyncClient; +import com.azure.storage.blob.BlobServiceVersion; +import com.azure.storage.blob.BlobUrlParts; +import com.azure.storage.blob.specialized.BlockBlobAsyncClient; +import com.azure.storage.blob.specialized.SpecializedBlobClientBuilder; +import com.azure.storage.common.Utility; +import com.azure.storage.file.datalake.implementation.DataLakeStorageClientBuilder; +import com.azure.storage.file.datalake.implementation.DataLakeStorageClientImpl; +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.PathGetPropertiesAction; +import com.azure.storage.file.datalake.implementation.models.PathRenameMode; +import com.azure.storage.file.datalake.implementation.models.PathResourceType; +import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.PathAccessControl; +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.PathProperties; +import reactor.core.publisher.Mono; + +import java.nio.charset.StandardCharsets; +import java.util.Base64; +import java.util.Map; +import java.util.Objects; + +import static com.azure.core.implementation.util.FluxUtil.monoError; +import static com.azure.core.implementation.util.FluxUtil.withContext; + +/** + * This class provides a client that contains all operations that apply to any path object. + */ +public class DataLakePathAsyncClient { + + private final ClientLogger logger = new ClientLogger(DataLakePathAsyncClient.class); + + protected final DataLakeStorageClientImpl dataLakeStorage; + private final String accountName; + private final String fileSystemName; + private final String pathName; + protected final BlockBlobAsyncClient blockBlobAsyncClient; + private final DataLakeServiceVersion serviceVersion; + + /** + * Package-private constructor for use by {@link DataLakePathClientBuilder}. + * + * @param pipeline The pipeline used to send and receive service requests. + * @param url The endpoint where to send service requests. + * @param serviceVersion The version of the service to receive requests. + * @param accountName The storage account name. + * @param fileSystemName The file system name. + * @param pathName The path name. + * @param blockBlobAsyncClient The underlying {@link BlobContainerAsyncClient} + */ + DataLakePathAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, + String accountName, String fileSystemName, String pathName, BlockBlobAsyncClient blockBlobAsyncClient) { + this.dataLakeStorage = new DataLakeStorageClientBuilder() + .pipeline(pipeline) + .url(url) + .version(serviceVersion.getVersion()) + .build(); + this.serviceVersion = serviceVersion; + + this.accountName = accountName; + this.fileSystemName = fileSystemName; + this.pathName = pathName; + this.blockBlobAsyncClient = blockBlobAsyncClient; + } + + /** + * Converts the metadata into a string of format "key1=value1, key2=value2" and Base64 encodes the values. + * + * @param metadata The metadata. + * + * @return The metadata represented as a String. + */ + static String buildMetadataString(Map metadata) { + StringBuilder sb = new StringBuilder(); + if (!ImplUtils.isNullOrEmpty(metadata)) { + for (final Map.Entry entry : metadata.entrySet()) { + if (Objects.isNull(entry.getKey()) || entry.getKey().isEmpty()) { + throw new IllegalArgumentException("The key for one of the metadata key-value pairs is null, " + + "empty, or whitespace."); + } else if (Objects.isNull(entry.getValue()) || entry.getValue().isEmpty()) { + throw new IllegalArgumentException("The value for one of the metadata key-value pairs is null, " + + "empty, or whitespace."); + } + + /* + The service has an internal base64 decode when metadata is copied from ADLS to Storage, so getMetadata + will work as normal. Doing this encoding for the customers preserves the existing behavior of + metadata. + */ + sb.append(entry.getKey()).append('=') + .append(new String(Base64.getEncoder().encode(entry.getValue().getBytes(StandardCharsets.UTF_8)), + StandardCharsets.UTF_8)).append(','); + } + sb.deleteCharAt(sb.length() - 1); // Remove the extraneous "," after the last element. + } + return sb.toString(); + } + + /** + * Gets the URL of the object represented by this client on the Data Lake service. + * + * @return the URL. + */ + String getPathUrl() { + return dataLakeStorage.getUrl(); + } + + /** + * Gets the associated account name. + * + * @return Account name associated with this storage resource. + */ + public String getAccountName() { + return accountName; + } + + /** + * Gets the name of the File System in which this object lives. + * + * @return The name of the File System. + */ + public String getFileSystemName() { + return fileSystemName; + } + + /** + * Gets the path of this object, not including the name of the resource itself. + * + * @return The path of the object. + */ + String getObjectPath() { + return (pathName == null) ? null : Utility.urlDecode(pathName); + } + + /** + * Gets the name of this object, not including its full path. + * + * @return The name of the object. + */ + String getObjectName() { + // Split on / in the path + String[] pathParts = getObjectPath().split("/"); + // Return last part of path + return pathParts[pathParts.length - 1]; + } + + /** + * Gets the {@link HttpPipeline} powering this client. + * + * @return The pipeline. + */ + public HttpPipeline getHttpPipeline() { + return dataLakeStorage.getHttpPipeline(); + } + + /** + * Gets the service version the client is using. + * + * @return the service version the client is using. + */ + public DataLakeServiceVersion getServiceVersion() { + return serviceVersion; + } + + + /** + * Package-private create method for use by {@link DataLakeFileAsyncClient} and {@link DataLakeDirectoryAsyncClient} + * + * @param resourceType {@link PathResourceType} + * @param headers {@link PathHttpHeaders} + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @param permissions POSIX access permissions for the directory owner, the directory owning group, and others. + * @param umask Restricts permissions of the directory to be created. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * PathItem}. + */ + Mono> createWithResponse(PathResourceType resourceType, PathHttpHeaders headers, + Map metadata, DataLakeRequestConditions accessConditions, String permissions, String umask, + Context context) { + accessConditions = accessConditions == null ? new DataLakeRequestConditions() : accessConditions; + + LeaseAccessConditions lac = new LeaseAccessConditions().setLeaseId(accessConditions.getLeaseId()); + ModifiedAccessConditions mac = new ModifiedAccessConditions() + .setIfMatch(accessConditions.getIfMatch()) + .setIfNoneMatch(accessConditions.getIfNoneMatch()) + .setIfModifiedSince(accessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(accessConditions.getIfUnmodifiedSince()); + + return this.dataLakeStorage.paths().createWithRestResponseAsync(resourceType, null, null, null, null, + buildMetadataString(metadata), permissions, umask, null, null, headers, lac, mac, null, context) + .map(response -> new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), + response.getDeserializedHeaders().getLastModified()))); + } + + /** + * Package-private delete method for use by {@link DataLakeFileAsyncClient} and {@link DataLakeDirectoryAsyncClient} + * + * @param recursive Whether or not to delete all paths beneath the directory. + * @param accessConditions {@link DataLakeRequestConditions} + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A {@link Mono} containing containing status code and HTTP headers + */ + Mono> deleteWithResponse(Boolean recursive, DataLakeRequestConditions accessConditions, + Context context) { + accessConditions = accessConditions == null ? new DataLakeRequestConditions() : accessConditions; + + LeaseAccessConditions lac = new LeaseAccessConditions().setLeaseId(accessConditions.getLeaseId()); + ModifiedAccessConditions mac = new ModifiedAccessConditions() + .setIfMatch(accessConditions.getIfMatch()) + .setIfNoneMatch(accessConditions.getIfNoneMatch()) + .setIfModifiedSince(accessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(accessConditions.getIfUnmodifiedSince()); + + return this.dataLakeStorage.paths().deleteWithRestResponseAsync(recursive, null, null, null, lac, mac, context) + .map(response -> new SimpleResponse<>(response, null)); + } + + /** + * 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. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setMetadata#Map} + * + *

For more information, see the + * Azure Docs

+ * + * @param metadata Metadata to associate with the resource. + * @return A reactive response signalling completion. + */ + public Mono setMetadata(Map metadata) { + try { + return setMetadataWithResponse(metadata, null).flatMap(FluxUtil::toMono); + } 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. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setMetadata#Map-DataLakeRequestConditions} + * + *

For more information, see the + * Azure Docs

+ * + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A reactive response signalling completion. + */ + public Mono> setMetadataWithResponse(Map metadata, + DataLakeRequestConditions accessConditions) { + try { + return this.blockBlobAsyncClient.setMetadataWithResponse(metadata, + Transforms.toBlobRequestConditions(accessConditions)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Changes a resource's HTTP header properties. If only one HTTP header is updated, the others will all be erased. + * In order to preserve existing values, they must be passed alongside the header being changed. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setHttpHeaders#PathHttpHeaders} + * + *

For more information, see the + * Azure Docs

+ * + * @param headers {@link PathHttpHeaders} + * @return A reactive response signalling completion. + */ + public Mono setHttpHeaders(PathHttpHeaders headers) { + try { + return setHttpHeadersWithResponse(headers, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Changes a resources's HTTP header properties. If only one HTTP header is updated, the others will all be erased. + * In order to preserve existing values, they must be passed alongside the header being changed. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setHttpHeadersWithResponse#PathHttpHeaders-DataLakeRequestConditions} + * + *

For more information, see the + * Azure Docs

+ * + * @param headers {@link PathHttpHeaders} + * @param accessConditions {@link DataLakeRequestConditions} + * @return A reactive response signalling completion. + */ + public Mono> setHttpHeadersWithResponse(PathHttpHeaders headers, + DataLakeRequestConditions accessConditions) { + try { + return this.blockBlobAsyncClient.setHttpHeadersWithResponse(Transforms.toBlobHttpHeaders(headers), + Transforms.toBlobRequestConditions(accessConditions)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Returns the resources's metadata and properties. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.getProperties} + * + *

For more information, see the + * Azure Docs

+ * + * @return A reactive response containing the resource's properties and metadata. + */ + public Mono getProperties() { + try { + return getPropertiesWithResponse(null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Returns the resource's metadata and properties. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.getPropertiesWithResponse#DataLakeRequestConditions} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessConditions {@link DataLakeRequestConditions} + * @return A reactive response containing the resource's properties and metadata. + */ + public Mono> getPropertiesWithResponse(DataLakeRequestConditions accessConditions) { + try { + return blockBlobAsyncClient.getPropertiesWithResponse(Transforms.toBlobRequestConditions(accessConditions)) + .map(response -> new SimpleResponse<>(response, Transforms.toPathProperties(response.getValue()))); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Changes the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControl#PathAccessControl} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControl {@link PathAccessControl} + * @return A reactive response containing the resource info. + */ + public Mono setAccessControl(PathAccessControl accessControl) { + try { + return setAccessControlWithResponse(accessControl, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + + } + + /** + * Changes the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlWithResponse#PathAccessControl-DataLakeRequestConditions} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControl {@link PathAccessControl} + * @param accessConditions {@link DataLakeRequestConditions} + * @return A reactive response containing the resource info. + */ + public Mono> setAccessControlWithResponse(PathAccessControl accessControl, + DataLakeRequestConditions accessConditions) { + try { + return withContext(context -> setAccessControlWithResponse(accessControl, accessConditions, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + Mono> setAccessControlWithResponse(PathAccessControl accessControl, + DataLakeRequestConditions accessConditions, Context context) { + + Objects.requireNonNull(accessControl, "accessControl can not be null"); + accessConditions = accessConditions == null ? new DataLakeRequestConditions() : accessConditions; + + LeaseAccessConditions lac = new LeaseAccessConditions().setLeaseId(accessConditions.getLeaseId()); + ModifiedAccessConditions mac = new ModifiedAccessConditions() + .setIfMatch(accessConditions.getIfMatch()) + .setIfNoneMatch(accessConditions.getIfNoneMatch()) + .setIfModifiedSince(accessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(accessConditions.getIfUnmodifiedSince()); + + return this.dataLakeStorage.paths().setAccessControlWithRestResponseAsync(null, accessControl.getOwner(), + accessControl.getGroup(), accessControl.getPermissions(), accessControl.getAcl(), null, lac, mac, context) + .map(response -> new SimpleResponse<>(response, new PathInfo(response.getDeserializedHeaders().getETag(), + response.getDeserializedHeaders().getLastModified()))); + } + + /** + * Returns the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.getAccessControl} + * + *

For more information, see the + * Azure Docs

+ * + * @return A reactive response containing the resource access control. + */ + public Mono getAccessControl() { + try { + return getAccessControlWithResponse(false, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Returns the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathAsyncClient.getAccessControlWithResponse#boolean-DataLakeRequestConditions} + * + *

For more information, see the + * Azure Docs

+ * + * @param returnUpn When true, user identity values returned as User Principal Names. When false, user identity + * values returned as Azure Active Directory Object IDs. Default value is false. + * @param accessConditions {@link DataLakeRequestConditions} + * @return A reactive response containing the resource access control. + */ + public Mono> getAccessControlWithResponse(boolean returnUpn, + DataLakeRequestConditions accessConditions) { + try { + return withContext(context -> getAccessControlWithResponse(returnUpn, accessConditions, context)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + Mono> getAccessControlWithResponse(boolean returnUpn, + DataLakeRequestConditions accessConditions, Context context) { + accessConditions = accessConditions == null ? new DataLakeRequestConditions() : accessConditions; + + LeaseAccessConditions lac = new LeaseAccessConditions().setLeaseId(accessConditions.getLeaseId()); + ModifiedAccessConditions mac = new ModifiedAccessConditions() + .setIfMatch(accessConditions.getIfMatch()) + .setIfNoneMatch(accessConditions.getIfNoneMatch()) + .setIfModifiedSince(accessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(accessConditions.getIfUnmodifiedSince()); + + return this.dataLakeStorage.paths().getPropertiesWithRestResponseAsync( + PathGetPropertiesAction.GET_ACCESS_CONTROL, returnUpn, null, null, lac, mac, context) + .map(response -> new SimpleResponse<>(response, new PathAccessControl() + .setAcl(response.getDeserializedHeaders().getAcl()) + .setGroup(response.getDeserializedHeaders().getGroup()) + .setOwner(response.getDeserializedHeaders().getOwner()) + .setPermissions(response.getDeserializedHeaders().getPermissions()))); + } + + /** + * Package-private rename method for use by {@link DataLakeFileAsyncClient} and {@link DataLakeDirectoryAsyncClient} + * + * @param destinationPath The path of the destination relative to the file system name + * @param sourceAccessConditions {@link DataLakeRequestConditions} against the source. + * @param destAccessConditions {@link DataLakeRequestConditions} against the destination. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakePathAsyncClient} used to interact with the path created. + */ + Mono> renameWithResponse(String destinationPath, + DataLakeRequestConditions sourceAccessConditions, DataLakeRequestConditions destAccessConditions, + Context context) { + + destAccessConditions = destAccessConditions == null ? new DataLakeRequestConditions() : destAccessConditions; + sourceAccessConditions = sourceAccessConditions == null ? new DataLakeRequestConditions() + : sourceAccessConditions; + + // We want to hide the SourceAccessConditions type from the user for consistency's sake, so we convert here. + SourceModifiedAccessConditions sourceConditions = new SourceModifiedAccessConditions() + .setSourceIfModifiedSince(sourceAccessConditions.getIfModifiedSince()) + .setSourceIfUnmodifiedSince(sourceAccessConditions.getIfUnmodifiedSince()) + .setSourceIfMatch(sourceAccessConditions.getIfMatch()) + .setSourceIfNoneMatch(sourceAccessConditions.getIfNoneMatch()); + + LeaseAccessConditions destLac = new LeaseAccessConditions().setLeaseId(destAccessConditions.getLeaseId()); + ModifiedAccessConditions destMac = new ModifiedAccessConditions() + .setIfMatch(destAccessConditions.getIfMatch()) + .setIfNoneMatch(destAccessConditions.getIfNoneMatch()) + .setIfModifiedSince(destAccessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(destAccessConditions.getIfUnmodifiedSince()); + + DataLakePathAsyncClient dataLakePathAsyncClient = getPathAsyncClient(destinationPath); + + String renameSource = "/" + fileSystemName + "/" + pathName; + + return dataLakePathAsyncClient.dataLakeStorage.paths().createWithRestResponseAsync(null /* pathResourceType */, + null /* continuation */, PathRenameMode.LEGACY, renameSource, sourceAccessConditions.getLeaseId(), + null /* metadata */, null /* permissions */, null /* umask */, null /* request id */, null /* timeout */, + null /* pathHttpHeaders */, destLac, destMac, sourceConditions, context) + .map(response -> new SimpleResponse<>(response, dataLakePathAsyncClient)); + } + + /** + * Takes in a destination path and creates a DataLakePathAsyncClient with a new path name + * @param destinationPath The destination path + * @return A DataLakePathAsyncClient + */ + DataLakePathAsyncClient getPathAsyncClient(String destinationPath) { + if (ImplUtils.isNullOrEmpty(destinationPath)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'destinationPath' can not be set to null")); + } + // Get current Datalake URL and replace current path with user provided path + String newDfsEndpoint = BlobUrlParts.parse(getPathUrl()) + .setBlobName(destinationPath).toUrl().toString(); + + return new DataLakePathAsyncClient(getHttpPipeline(), newDfsEndpoint, serviceVersion, accountName, + fileSystemName, destinationPath, prepareBuilderReplacePath(destinationPath).buildBlockBlobAsyncClient()); + } + + /** + * Takes in a destination path and creates a SpecializedBlobClientBuilder with a new path name + * @param destinationPath The destination path + * @return An updated SpecializedBlobClientBuilder + */ + SpecializedBlobClientBuilder prepareBuilderReplacePath(String destinationPath) { + // Get current Blob URL and replace current path with user provided path + String newBlobEndpoint = BlobUrlParts.parse(Transforms.endpointToDesiredEndpoint(getPathUrl(), "blob", "dfs")) + .setBlobName(destinationPath).toUrl().toString(); + + // TODO (gapra) : Investigate how to convert from datalake service version to blob service version + return new SpecializedBlobClientBuilder() + .pipeline(getHttpPipeline()) + .endpoint(newBlobEndpoint) + .serviceVersion(BlobServiceVersion.getLatest()); + } + + BlockBlobAsyncClient getBlockBlobAsyncClient() { + return this.blockBlobAsyncClient; + } +} 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 new file mode 100644 index 0000000000000..8c8faa293b801 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClient.java @@ -0,0 +1,358 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.models.BlobProperties; +import com.azure.storage.blob.specialized.BlockBlobClient; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.models.LeaseAccessConditions; +import com.azure.storage.file.datalake.implementation.models.ModifiedAccessConditions; +import com.azure.storage.file.datalake.implementation.models.PathRenameMode; +import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.PathAccessControl; +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 reactor.core.publisher.Mono; + +import java.time.Duration; +import java.util.Map; + +/** + * This class provides a client that contains all operations that apply to any path object. + */ +public class DataLakePathClient { + private final ClientLogger logger = new ClientLogger(DataLakePathClient.class); + + protected final DataLakePathAsyncClient dataLakePathAsyncClient; + protected final BlockBlobClient blockBlobClient; + + DataLakePathClient(DataLakePathAsyncClient dataLakePathAsyncClient, BlockBlobClient blockBlobClient) { + this.dataLakePathAsyncClient = dataLakePathAsyncClient; + this.blockBlobClient = blockBlobClient; + } + + /** + * Gets the URL of the object represented by this client on the Data Lake service. + * + * @return the URL. + */ + String getPathUrl() { + return dataLakePathAsyncClient.getPathUrl(); + } + + /** + * Gets the associated account name. + * + * @return Account name associated with this storage resource. + */ + public String getAccountName() { + return dataLakePathAsyncClient.getAccountName(); + } + + /** + * Gets the name of the File System in which this object lives. + * + * @return The name of the File System. + */ + public String getFileSystemName() { + return dataLakePathAsyncClient.getFileSystemName(); + } + + /** + * Gets the path of this object, not including the name of the resource itself. + * + * @return The path of the object. + */ + String getObjectPath() { + return dataLakePathAsyncClient.getObjectPath(); + } + + /** + * Gets the name of this object, not including its full path. + * + * @return The name of the object. + */ + String getObjectName() { + return dataLakePathAsyncClient.getObjectName(); + } + + /** + * Gets the {@link HttpPipeline} powering this client. + * + * @return The pipeline. + */ + public HttpPipeline getHttpPipeline() { + return dataLakePathAsyncClient.getHttpPipeline(); + } + + /** + * Gets the service version the client is using. + * + * @return the service version the client is using. + */ + public DataLakeServiceVersion getServiceVersion() { + return dataLakePathAsyncClient.getServiceVersion(); + } + + /** + * 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. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setMetadata#Map} + * + *

For more information, see the + * Azure Docs

+ * + * @param metadata Metadata to associate with the resource. + */ + public void setMetadata(Map metadata) { + setMetadataWithResponse(metadata, null, null, Context.NONE); + } + + /** + * 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. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setMetadata#Map-DataLakeRequestConditions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param metadata Metadata to associate with the resource. + * @param accessConditions {@link DataLakeRequestConditions} + * @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. + */ + public Response setMetadataWithResponse(Map metadata, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + return blockBlobClient.setMetadataWithResponse(metadata, Transforms.toBlobRequestConditions(accessConditions), + timeout, context); + } + + /** + * Changes a resources's HTTP header properties. If only one HTTP header is updated, the others will all be erased. + * In order to preserve existing values, they must be passed alongside the header being changed. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setHttpHeaders#PathHttpHeaders} + * + *

For more information, see the + * Azure Docs

+ * + * @param headers {@link PathHttpHeaders} + */ + public void setHttpHeaders(PathHttpHeaders headers) { + setHttpHeadersWithResponse(headers, null, null, Context.NONE); + } + + /** + * Changes a resources's HTTP header properties. If only one HTTP header is updated, the others will all be erased. + * In order to preserve existing values, they must be passed alongside the header being changed. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setHttpHeadersWithResponse#PathHttpHeaders-DataLakeRequestConditions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param headers {@link PathHttpHeaders} + * @param accessConditions {@link DataLakeRequestConditions} + * @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. + */ + public Response setHttpHeadersWithResponse(PathHttpHeaders headers, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + return blockBlobClient.setHttpHeadersWithResponse(Transforms.toBlobHttpHeaders(headers), + Transforms.toBlobRequestConditions(accessConditions), timeout, context); + } + + /** + * Changes the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setAccessControl#PathAccessControl} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControl {@link PathAccessControl} + * @return The resource info. + */ + public PathInfo setAccessControl(PathAccessControl accessControl) { + return setAccessControlWithResponse(accessControl, null, null, Context.NONE).getValue(); + } + + /** + * Changes the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.setAccessControlWithResponse#PathAccessControl-DataLakeRequestConditions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param accessControl {@link PathAccessControl} + * @param accessConditions {@link DataLakeRequestConditions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the resource info. + */ + public Response setAccessControlWithResponse(PathAccessControl accessControl, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + Mono> response = dataLakePathAsyncClient.setAccessControlWithResponse(accessControl, + accessConditions, context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Returns the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.getAccessControl} + * + *

For more information, see the + * Azure Docs

+ * + * @return The resource access control. + */ + public PathAccessControl getAccessControl() { + return getAccessControlWithResponse(false, null, null, Context.NONE).getValue(); + } + + /** + * Returns the access control for a resource. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.getAccessControlWithResponse#boolean-DataLakeRequestConditions-Duration-Context} + * + *

For more information, see the + * Azure Docs

+ * + * @param returnUpn When true, user identity values returned as User Principal Names. When false, user identity + * values returned as Azure Active Directory Object IDs. Default value is false. + * @param accessConditions {@link DataLakeRequestConditions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the resource access control. + */ + public Response getAccessControlWithResponse(boolean returnUpn, + DataLakeRequestConditions accessConditions, Duration timeout, Context context) { + Mono> response = dataLakePathAsyncClient.getAccessControlWithResponse(returnUpn, + accessConditions, context); + + return StorageImplUtils.blockWithOptionalTimeout(response, timeout); + } + + /** + * Returns the resources's metadata and properties. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClient.getProperties} + * + *

For more information, see the + * Azure Docs

+ * + * @return The resource properties and metadata. + */ + public PathProperties getProperties() { + return getPropertiesWithResponse(null, null, Context.NONE).getValue(); + } + + /** + * Returns the resource's metadata and properties. + * + *

Code Samples

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

For more information, see the + * Azure Docs

+ * + * @param accessConditions {@link DataLakeRequestConditions} + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing the resource properties and metadata. + */ + public Response getPropertiesWithResponse(DataLakeRequestConditions accessConditions, + Duration timeout, Context context) { + Response response = blockBlobClient.getPropertiesWithResponse( + Transforms.toBlobRequestConditions(accessConditions), timeout, context); + return new SimpleResponse<>(response, Transforms.toPathProperties(response.getValue())); + } + + /** + * Package-private rename method for use by {@link DataLakeFileClient} and {@link DataLakeDirectoryClient} + * + * @param destinationPath The path of the destination relative to the file system name + * @param sourceAccessConditions {@link DataLakeRequestConditions} against the source. + * @param destAccessConditions {@link DataLakeRequestConditions} against the destination. + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakePathClient} used to interact with the path created. + */ + Mono> renameWithResponse(String destinationPath, + DataLakeRequestConditions sourceAccessConditions, DataLakeRequestConditions destAccessConditions, + Context context) { + + destAccessConditions = destAccessConditions == null ? new DataLakeRequestConditions() : destAccessConditions; + sourceAccessConditions = sourceAccessConditions == null ? new DataLakeRequestConditions() + : sourceAccessConditions; + + // We want to hide the SourceAccessConditions type from the user for consistency's sake, so we convert here. + SourceModifiedAccessConditions sourceConditions = new SourceModifiedAccessConditions() + .setSourceIfModifiedSince(sourceAccessConditions.getIfModifiedSince()) + .setSourceIfUnmodifiedSince(sourceAccessConditions.getIfUnmodifiedSince()) + .setSourceIfMatch(sourceAccessConditions.getIfMatch()) + .setSourceIfNoneMatch(sourceAccessConditions.getIfNoneMatch()); + + LeaseAccessConditions destLac = new LeaseAccessConditions().setLeaseId(destAccessConditions.getLeaseId()); + ModifiedAccessConditions destMac = new ModifiedAccessConditions() + .setIfMatch(destAccessConditions.getIfMatch()) + .setIfNoneMatch(destAccessConditions.getIfNoneMatch()) + .setIfModifiedSince(destAccessConditions.getIfModifiedSince()) + .setIfUnmodifiedSince(destAccessConditions.getIfUnmodifiedSince()); + + DataLakePathClient dataLakePathClient = getPathClient(destinationPath); + + String renameSource = "/" + dataLakePathAsyncClient.getFileSystemName() + "/" + + dataLakePathAsyncClient.getObjectPath(); + + return dataLakePathClient.dataLakePathAsyncClient.dataLakeStorage.paths().createWithRestResponseAsync( + null /* pathResourceType */, null /* continuation */, PathRenameMode.LEGACY, renameSource, + sourceAccessConditions.getLeaseId(), null /* properties */, null /* permissions */, null /* umask */, + null /* request id */, null /* timeout */, null /* headers */, destLac, destMac, sourceConditions, context) + .map(response -> new SimpleResponse<>(response, dataLakePathClient)); + } + + private DataLakePathClient getPathClient(String destinationPath) { + return new DataLakePathClient(dataLakePathAsyncClient.getPathAsyncClient(destinationPath), + dataLakePathAsyncClient.prepareBuilderReplacePath(destinationPath).buildBlockBlobClient()); + } + + BlockBlobClient getBlockBlobClient() { + return blockBlobClient; + } + +} 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 new file mode 100644 index 0000000000000..977b3d2614bea --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathClientBuilder.java @@ -0,0 +1,427 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Configuration; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobClientBuilder; +import com.azure.storage.blob.BlobUrlParts; +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.implementation.credentials.SasTokenCredential; +import com.azure.storage.common.implementation.policy.SasTokenCredentialPolicy; +import com.azure.storage.common.policy.RequestRetryOptions; +import com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy; +import com.azure.storage.file.datalake.implementation.util.BuilderHelper; + +import java.net.MalformedURLException; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * This class provides a fluent builder API to help aid the configuration and instantiation of {@link DataLakeFileClient + * FileClients}, {@link DataLakeFileAsyncClient FileAsyncClients}, {@link DataLakeDirectoryClient DirectoryClients} and + * {@link DataLakeDirectoryAsyncClient DirectoryAsyncClients}, call {@link #buildFileClient() buildFileClient}, + * {@link #buildFileAsyncClient() buildFileAsyncClient}, {@link #buildDirectoryClient() buildDirectoryClient} and {@link + * #buildDirectoryAsyncClient() buildDirectoryAsyncClient} respectively to construct an instance of the desired client. + * + *

+ * The following information must be provided on this builder: + * + *

    + *
  • the endpoint through {@code .endpoint()}, including the file system name and file/directory name, in the format + * of {@code https://{accountName}.dfs.core.windows.net/{fileSystemName}/{pathName}}. + *
  • the credential through {@code .credential()} or {@code .connectionString()} if the file system is not publicly + * accessible. + *
+ */ +@ServiceClientBuilder(serviceClients = {DataLakeFileClient.class, DataLakeFileAsyncClient.class, + DataLakeDirectoryClient.class, DataLakeDirectoryAsyncClient.class}) +public final class DataLakePathClientBuilder { + + private final ClientLogger logger = new ClientLogger(DataLakePathClientBuilder.class); + private final BlobClientBuilder blobClientBuilder; + + private String endpoint; + private String accountName; + private String fileSystemName; + private String pathName; + + private StorageSharedKeyCredential storageSharedKeyCredential; + private TokenCredential tokenCredential; + private SasTokenCredential sasTokenCredential; + + private HttpClient httpClient; + private final List additionalPolicies = new ArrayList<>(); + private HttpLogOptions logOptions = new HttpLogOptions(); + private RequestRetryOptions retryOptions = new RequestRetryOptions(); + private HttpPipeline httpPipeline; + + private Configuration configuration; + private DataLakeServiceVersion version; + + /** + * Creates a builder instance that is able to configure and construct {@link DataLakeFileClient FileClients}, {@link + * DataLakeFileAsyncClient FileAsyncClients}, {@link DataLakeDirectoryClient DirectoryClients} and + * {@link DataLakeDirectoryAsyncClient DirectoryAsyncClients}. + */ + public DataLakePathClientBuilder() { + logOptions = getDefaultHttpLogOptions(); + blobClientBuilder = new BlobClientBuilder(); + } + + /** + * Creates a {@link DataLakeFileClient} based on options set in the builder. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClientBuilder.buildFileClient} + * + * @return a {@link DataLakeFileClient} created from the configurations in this builder. + * @throws NullPointerException If {@code endpoint} or {@code pathName} is {@code null}. + */ + public DataLakeFileClient buildFileClient() { + return new DataLakeFileClient(buildFileAsyncClient(), blobClientBuilder.buildClient().getBlockBlobClient()); + } + + /** + * Creates a {@link DataLakeFileAsyncClient} based on options set in the builder. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClientBuilder.buildFileAsyncClient} + * + * @return a {@link DataLakeFileAsyncClient} created from the configurations in this builder. + * @throws NullPointerException If {@code endpoint} or {@code pathName} is {@code null}. + */ + 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. + */ + String dataLakeFileSystemName = ImplUtils.isNullOrEmpty(fileSystemName) + ? DataLakeFileSystemAsyncClient.ROOT_FILESYSTEM_NAME + : fileSystemName; + + DataLakeServiceVersion serviceVersion = version != null ? version : DataLakeServiceVersion.getLatest(); + + HttpPipeline pipeline = (httpPipeline != null) ? httpPipeline : BuilderHelper.buildPipeline(() -> { + if (storageSharedKeyCredential != null) { + return new StorageSharedKeyCredentialPolicy(storageSharedKeyCredential); + } else if (tokenCredential != null) { + return new BearerTokenAuthenticationPolicy(tokenCredential, String.format("%s/.default", endpoint)); + } else if (sasTokenCredential != null) { + return new SasTokenCredentialPolicy(sasTokenCredential); + } else { + return null; + } + }, retryOptions, logOptions, httpClient, additionalPolicies, configuration, serviceVersion); + + return new DataLakeFileAsyncClient(pipeline, String.format("%s/%s/%s", endpoint, dataLakeFileSystemName, + pathName), serviceVersion, accountName, dataLakeFileSystemName, pathName, + blobClientBuilder.buildAsyncClient().getBlockBlobAsyncClient()); + } + + /** + * Creates a {@link DataLakeDirectoryClient} based on options set in the builder. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClientBuilder.buildDirectoryClient} + * + * @return a {@link DataLakeDirectoryClient} created from the configurations in this builder. + * @throws NullPointerException If {@code endpoint} or {@code pathName} is {@code null}. + */ + public DataLakeDirectoryClient buildDirectoryClient() { + return new DataLakeDirectoryClient(buildDirectoryAsyncClient(), + blobClientBuilder.buildClient().getBlockBlobClient()); + } + + /** + * Creates a {@link DataLakeDirectoryAsyncClient} based on options set in the builder. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakePathClientBuilder.buildDirectoryAsyncClient} + * + * @return a {@link DataLakeDirectoryAsyncClient} created from the configurations in this builder. + * @throws NullPointerException If {@code endpoint} or {@code pathName} is {@code null}. + */ + public DataLakeDirectoryAsyncClient buildDirectoryAsyncClient() { + 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. + */ + String dataLakeFileSystemName = ImplUtils.isNullOrEmpty(fileSystemName) + ? DataLakeFileSystemAsyncClient.ROOT_FILESYSTEM_NAME + : fileSystemName; + + DataLakeServiceVersion serviceVersion = version != null ? version : DataLakeServiceVersion.getLatest(); + + HttpPipeline pipeline = (httpPipeline != null) ? httpPipeline : BuilderHelper.buildPipeline(() -> { + if (storageSharedKeyCredential != null) { + return new StorageSharedKeyCredentialPolicy(storageSharedKeyCredential); + } else if (tokenCredential != null) { + return new BearerTokenAuthenticationPolicy(tokenCredential, String.format("%s/.default", endpoint)); + } else if (sasTokenCredential != null) { + return new SasTokenCredentialPolicy(sasTokenCredential); + } else { + return null; + } + }, retryOptions, logOptions, httpClient, additionalPolicies, configuration, serviceVersion); + + return new DataLakeDirectoryAsyncClient(pipeline, String.format("%s/%s/%s", endpoint, dataLakeFileSystemName, + pathName), serviceVersion, accountName, dataLakeFileSystemName, pathName, + blobClientBuilder.buildAsyncClient().getBlockBlobAsyncClient()); + } + + /** + * Sets the {@link StorageSharedKeyCredential} used to authorize requests sent to the service. + * + * @param credential The credential to use for authenticating request. + * @return the updated DataLakePathClientBuilder + * @throws NullPointerException If {@code credential} is {@code null}. + */ + public DataLakePathClientBuilder credential(StorageSharedKeyCredential credential) { + blobClientBuilder.credential(credential); + this.storageSharedKeyCredential = Objects.requireNonNull(credential, "'credential' cannot be null."); + this.tokenCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the {@link TokenCredential} used to authorize requests sent to the service. + * + * @param credential The credential to use for authenticating request. + * @return the updated DataLakePathClientBuilder + * @throws NullPointerException If {@code credential} is {@code null}. + */ + public DataLakePathClientBuilder credential(TokenCredential credential) { + blobClientBuilder.credential(credential); + this.tokenCredential = Objects.requireNonNull(credential, "'credential' cannot be null."); + this.storageSharedKeyCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the SAS token used to authorize requests sent to the service. + * + * @param sasToken The SAS token to use for authenticating requests. + * @return the updated DataLakePathClientBuilder + * @throws NullPointerException If {@code sasToken} is {@code null}. + */ + public DataLakePathClientBuilder sasToken(String sasToken) { + blobClientBuilder.sasToken(sasToken); + this.sasTokenCredential = new SasTokenCredential(Objects.requireNonNull(sasToken, + "'sasToken' cannot be null.")); + this.storageSharedKeyCredential = null; + this.tokenCredential = null; + return this; + } + + /** + * Clears the credential used to authorize the request. + * + *

This is for paths that are publicly accessible.

+ * + * @return the updated DataLakePathClientBuilder + */ + public DataLakePathClientBuilder setAnonymousAccess() { + blobClientBuilder.setAnonymousAccess(); + this.storageSharedKeyCredential = null; + this.tokenCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the service endpoint, additionally parses it for information (SAS token, file system name, path name) + * + *

If the endpoint is to a file/directory in the root container, this method will fail as it will interpret the + * path name as the file system name. With only one path element, it is impossible to distinguish between a file + * system name and a path in the root file system, so it is assumed to be the file system name as this is much more + * common. When working with paths in the root file system, it is best to set the endpoint to the account url and + * specify the path name separately using the {@link DataLakePathClientBuilder#pathName(String) pathName} method. + *

+ * + * @param endpoint URL of the service + * @return the updated DataLakePathClientBuilder object + * @throws IllegalArgumentException If {@code endpoint} is {@code null} or is a malformed URL. + */ + public DataLakePathClientBuilder endpoint(String endpoint) { + blobClientBuilder.endpoint(Transforms.endpointToDesiredEndpoint(endpoint, "blob", "dfs")); + try { + URL url = new URL(endpoint); + BlobUrlParts parts = BlobUrlParts.parse(url); + + this.accountName = parts.getAccountName(); + this.endpoint = parts.getScheme() + "://" + parts.getHost(); + this.fileSystemName = parts.getBlobContainerName(); + this.pathName = parts.getBlobName(); + + String sasToken = parts.getSasQueryParameters().encode(); + if (!ImplUtils.isNullOrEmpty(sasToken)) { + this.sasToken(sasToken); + } + } catch (MalformedURLException ex) { + throw logger.logExceptionAsError( + new IllegalArgumentException("The Azure Storage DataLake endpoint url is malformed.")); + } + return this; + } + + /** + * Sets the name of the file system that contains the path. + * + * @param fileSystemName Name of the file system. If the value {@code null} or empty the root file system, + * {@code $root}, will be used. + * @return the updated DataLakePathClientBuilder object + */ + public DataLakePathClientBuilder fileSystemName(String fileSystemName) { + blobClientBuilder.containerName(fileSystemName); + this.fileSystemName = fileSystemName; + return this; + } + + /** + * Sets the name of the file/directory. + * + * @param pathName Name of the path. + * @return the updated DataLakePathClientBuilder object + * @throws NullPointerException If {@code pathName} is {@code null} + */ + public DataLakePathClientBuilder pathName(String pathName) { + blobClientBuilder.blobName(pathName); + this.pathName = Objects.requireNonNull(pathName, "'pathName' cannot be null."); + return this; + } + + /** + * Sets the {@link HttpClient} to use for sending a receiving requests to and from the service. + * + * @param httpClient HttpClient to use for requests. + * @return the updated DataLakePathClientBuilder object + */ + public DataLakePathClientBuilder httpClient(HttpClient httpClient) { + blobClientBuilder.httpClient(httpClient); + if (this.httpClient != null && httpClient == null) { + logger.info("'httpClient' is being set to 'null' when it was previously configured."); + } + + this.httpClient = httpClient; + return this; + } + + /** + * Adds a pipeline policy to apply on each request sent. + * + * @param pipelinePolicy a pipeline policy + * @return the updated DataLakePathClientBuilder object + * @throws NullPointerException If {@code pipelinePolicy} is {@code null}. + */ + public DataLakePathClientBuilder addPolicy(HttpPipelinePolicy pipelinePolicy) { + blobClientBuilder.addPolicy(pipelinePolicy); + this.additionalPolicies.add(Objects.requireNonNull(pipelinePolicy, "'pipelinePolicy' cannot be null")); + return this; + } + + /** + * Gets the default Storage whitelist log headers and query parameters. + * + * @return the default http log options. + */ + public static HttpLogOptions getDefaultHttpLogOptions() { + return BuilderHelper.getDefaultHttpLogOptions(); + } + + /** + * Sets the {@link HttpLogOptions} for service requests. + * + * @param logOptions The logging configuration to use when sending and receiving HTTP requests/responses. + * @return the updated DataLakePathClientBuilder object + * @throws NullPointerException If {@code logOptions} is {@code null}. + */ + public DataLakePathClientBuilder httpLogOptions(HttpLogOptions logOptions) { + blobClientBuilder.httpLogOptions(logOptions); + this.logOptions = Objects.requireNonNull(logOptions, "'logOptions' cannot be null."); + return this; + } + + /** + * Sets the configuration object used to retrieve environment configuration values during building of the client. + * + * @param configuration Configuration store used to retrieve environment configurations. + * @return the updated DataLakePathClientBuilder object + */ + public DataLakePathClientBuilder configuration(Configuration configuration) { + blobClientBuilder.configuration(configuration); + this.configuration = configuration; + return this; + } + + /** + * Sets the request retry options for all the requests made through the client. + * + * @param retryOptions The options used to configure retry behavior. + * @return the updated DataLakePathClientBuilder object + * @throws NullPointerException If {@code retryOptions} is {@code null}. + */ + public DataLakePathClientBuilder retryOptions(RequestRetryOptions retryOptions) { + blobClientBuilder.retryOptions(retryOptions); + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + + /** + * Sets the {@link HttpPipeline} to use for the service client. + * + * If {@code pipeline} is set, all other settings are ignored, aside from {@link #endpoint(String) endpoint}. + * + * @param httpPipeline HttpPipeline to use for sending service requests and receiving responses. + * @return the updated DataLakePathClientBuilder object + */ + public DataLakePathClientBuilder pipeline(HttpPipeline httpPipeline) { + blobClientBuilder.pipeline(httpPipeline); + if (this.httpPipeline != null && httpPipeline == null) { + logger.info("HttpPipeline is being set to 'null' when it was previously configured."); + } + + this.httpPipeline = httpPipeline; + return this; + } + + // TODO (gapra) : Determine how to set blob version as well + /** + * Sets the {@link DataLakeServiceVersion} that is used when making API requests. + *

+ * If a service version is not provided, the service version that will be used will be the latest known service + * version based on the version of the client library being used. If no service version is specified, updating to a + * newer version the client library will have the result of potentially moving to a newer service version. + * + * @param version {@link DataLakeServiceVersion} of the service to be used when making requests. + * @return the updated DataLakePathClientBuilder object + */ + public DataLakePathClientBuilder serviceVersion(DataLakeServiceVersion version) { + this.version = version; + return this; + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java new file mode 100644 index 0000000000000..4f77e1a4ece9d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClient.java @@ -0,0 +1,321 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.implementation.util.FluxUtil; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobServiceAsyncClient; +import com.azure.storage.common.Utility; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.file.datalake.implementation.DataLakeStorageClientBuilder; +import com.azure.storage.file.datalake.implementation.DataLakeStorageClientImpl; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemItem; +import com.azure.storage.file.datalake.models.ListFileSystemsOptions; +import com.azure.storage.file.datalake.models.PublicAccessType; +import com.azure.storage.file.datalake.models.UserDelegationKey; +import reactor.core.publisher.Mono; + +import java.time.OffsetDateTime; +import java.util.Map; + +import static com.azure.core.implementation.util.FluxUtil.monoError; +import static com.azure.core.implementation.util.FluxUtil.pagedFluxError; + + +/** + * Client to a storage account. It may only be instantiated through a {@link DataLakeServiceClientBuilder}. This class + * does not hold any state about a particular storage account but is instead a convenient way of sending off appropriate + * requests to the resource on the service. It may also be used to construct URLs to file systems, files and + * directories. + * + *

+ * This client contains operations on the main data lake service account. Operations on a file system are available on + * {@link DataLakeFileSystemAsyncClient} through {@link #getFileSystemAsyncClient(String)}, and operations on a file or + * directory are available on {@link DataLakeFileAsyncClient} or {@link DataLakeDirectoryAsyncClient}. + * + *

+ * Note this client is an async client that returns reactive responses from Spring Reactor Core project + * (https://projectreactor.io/). Calling the methods in this client will NOT start the actual network + * operation, until {@code .subscribe()} is called on the reactive response. You can simply convert one of these + * responses to a {@link java.util.concurrent.CompletableFuture} object through {@link Mono#toFuture()}. + */ +@ServiceClient(builder = DataLakeServiceClientBuilder.class, isAsync = true) +public class DataLakeServiceAsyncClient { + private final ClientLogger logger = new ClientLogger(DataLakeServiceAsyncClient.class); + + private final DataLakeStorageClientImpl azureDataLakeStorage; + + private final String accountName; + private final DataLakeServiceVersion serviceVersion; + + private final BlobServiceAsyncClient blobServiceAsyncClient; + + /** + * Package-private constructor for use by {@link DataLakeServiceClientBuilder}. + * + * @param pipeline The pipeline used to send and receive service requests. + * @param url The endpoint where to send service requests. + * @param serviceVersion The version of the service to receive requests. + * @param accountName The storage account name. + * @param blobServiceAsyncClient The underlying {@link BlobServiceAsyncClient} + */ + DataLakeServiceAsyncClient(HttpPipeline pipeline, String url, DataLakeServiceVersion serviceVersion, + String accountName, BlobServiceAsyncClient blobServiceAsyncClient) { + this.azureDataLakeStorage = new DataLakeStorageClientBuilder() + .pipeline(pipeline) + .url(url) + .version(serviceVersion.getVersion()) + .build(); + this.serviceVersion = serviceVersion; + + this.accountName = accountName; + + this.blobServiceAsyncClient = blobServiceAsyncClient; + } + + /** + * Initializes a {@link DataLakeFileSystemAsyncClient} object pointing to the specified file system. This method + * does not create a file system. It simply constructs the URL to the file system and offers access to methods + * relevant to file systems. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getFileSystemAsyncClient#String} + * + * @param fileSystemName The name of the file system to point to. A value of null or empty string will be + * interpreted as pointing to the root file system and will be replaced by "$root". + * @return A {@link DataLakeFileSystemAsyncClient} object pointing to the specified file system + */ + public DataLakeFileSystemAsyncClient getFileSystemAsyncClient(String fileSystemName) { + if (ImplUtils.isNullOrEmpty(fileSystemName)) { + fileSystemName = DataLakeFileSystemAsyncClient.ROOT_FILESYSTEM_NAME; + } + return new DataLakeFileSystemAsyncClient(getHttpPipeline(), + StorageImplUtils.appendToUrlPath(getAccountUrl(), Utility.urlEncode(Utility.urlDecode(fileSystemName))) + .toString(), getServiceVersion(), getAccountName(), fileSystemName, + blobServiceAsyncClient.getBlobContainerAsyncClient(fileSystemName) + ); + } + + /** + * Gets the {@link HttpPipeline} powering this client. + * + * @return The pipeline. + */ + public HttpPipeline getHttpPipeline() { + return azureDataLakeStorage.getHttpPipeline(); + } + + /** + * Gets the service version the client is using. + * + * @return the service version the client is using. + */ + public DataLakeServiceVersion getServiceVersion() { + return serviceVersion; + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.createFileSystem#String} + * + * @param fileSystemName Name of the file system to create + * @return A {@link Mono} containing a {@link DataLakeFileSystemAsyncClient} used to interact with the file system + * created. + */ + public Mono createFileSystem(String fileSystemName) { + try { + return createFileSystemWithResponse(fileSystemName, null, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.createFileSystemWithResponse#String-Map-PublicAccessType} + * + * @param fileSystemName Name of the file system to create + * @param metadata Metadata to associate with the file system + * @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 {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link + * DataLakeFileSystemAsyncClient} used to interact with the file system created. + */ + public Mono> createFileSystemWithResponse(String fileSystemName, + Map metadata, PublicAccessType accessType) { + try { + DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient = getFileSystemAsyncClient(fileSystemName); + + return dataLakeFileSystemAsyncClient.createWithResponse(metadata, accessType). + map(response -> new SimpleResponse<>(response, dataLakeFileSystemAsyncClient)); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes the specified file system in the storage account. If the file system doesn't exist the operation fails. + * For more information see the Azure + * Docs. + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.deleteFileSystem#String} + * + * @param fileSystemName Name of the file system to delete + * @return A reactive response signalling completion. + */ + public Mono deleteFileSystem(String fileSystemName) { + try { + return deleteFileSystemWithResponse(fileSystemName, null).flatMap(FluxUtil::toMono); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Deletes the specified file system in the storage account. If the file system doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.deleteFileSystemWithResponse#String-DataLakeRequestConditions} + * + * @param fileSystemName Name of the file system to delete + * @param accessConditions {@link DataLakeRequestConditions} + * @return A {@link Mono} containing containing status code and HTTP headers + */ + public Mono> deleteFileSystemWithResponse(String fileSystemName, + DataLakeRequestConditions accessConditions) { + try { + return getFileSystemAsyncClient(fileSystemName).deleteWithResponse(accessConditions); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Gets the URL of the storage account represented by this client. + * + * @return the URL. + */ + public String getAccountUrl() { + return azureDataLakeStorage.getUrl(); + } + + /** + * Returns a reactive Publisher emitting all the file systems in this account lazily as needed. For more + * information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.listFileSystems} + * + * @return A reactive response emitting the list of file systems. + */ + public PagedFlux listFileSystems() { + try { + return this.listFileSystems(new ListFileSystemsOptions()); + } catch (RuntimeException ex) { + return pagedFluxError(logger, ex); + } + } + + /** + * Returns a reactive Publisher emitting all the file systems in this account lazily as needed. For more + * information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.listFileSystems#ListFileSystemsOptions} + * + * @param options A {@link ListFileSystemsOptions} which specifies what data should be returned by the service. + * @return A reactive response emitting the list of file systems. + */ + public PagedFlux listFileSystems(ListFileSystemsOptions options) { + try { + return blobServiceAsyncClient.listBlobContainers(Transforms.toListBlobContainersOptions(options)) + .mapPage(Transforms::toFileSystemItem); + } catch (RuntimeException ex) { + return pagedFluxError(logger, ex); + } + } + + /** + * Gets a user delegation key for use with this account's data lake storage. Note: This method call is only valid + * when using {@link TokenCredential} in this object's {@link HttpPipeline}. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getUserDelegationKey#OffsetDateTime-OffsetDateTime} + * + * @param start Start time for the key's validity. Null indicates immediate start. + * @param expiry Expiration of the key's validity. + * @return A {@link Mono} containing the user delegation key. + * @throws IllegalArgumentException If {@code start} isn't null and is after {@code expiry}. + * @throws NullPointerException If {@code expiry} is null. + */ + public Mono getUserDelegationKey(OffsetDateTime start, OffsetDateTime expiry) { + try { + return blobServiceAsyncClient.getUserDelegationKey(start, expiry) + .map(Transforms::toDataLakeUserDelegationKey); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Gets a user delegation key for use with this account's data lake storage. Note: This method call is only valid + * when using {@link TokenCredential} in this object's {@link HttpPipeline}. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getUserDelegationKeyWithResponse#OffsetDateTime-OffsetDateTime} + * + * @param start Start time for the key's validity. Null indicates immediate start. + * @param expiry Expiration of the key's validity. + * @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} containing the user + * delegation key. + * @throws IllegalArgumentException If {@code start} isn't null and is after {@code expiry}. + * @throws NullPointerException If {@code expiry} is null. + */ + public Mono> getUserDelegationKeyWithResponse(OffsetDateTime start, + OffsetDateTime expiry) { + try { + return blobServiceAsyncClient.getUserDelegationKeyWithResponse(start, expiry).map(response -> + new SimpleResponse<>(response, Transforms.toDataLakeUserDelegationKey(response.getValue()))); + } catch (RuntimeException ex) { + return monoError(logger, ex); + } + } + + /** + * Get associated account name. + * + * @return account name associated with this storage resource. + */ + public String getAccountName() { + return this.accountName; + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java new file mode 100644 index 0000000000000..65d7ce9dcace8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClient.java @@ -0,0 +1,249 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClient; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.storage.blob.BlobServiceClient; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemItem; +import com.azure.storage.file.datalake.models.ListFileSystemsOptions; +import com.azure.storage.file.datalake.models.PublicAccessType; +import com.azure.storage.file.datalake.models.UserDelegationKey; + +import java.time.Duration; +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Client to a storage account. It may only be instantiated through a {@link DataLakeServiceClientBuilder}. This class + * does not hold any state about a particular storage account but is instead a convenient way of sending off appropriate + * requests to the resource on the service. It may also be used to construct URLs to file systems, files and + * directories. + * + *

+ * This client contains operations on a data lake service account. Operations on a file system are available on + * {@link DataLakeFileSystemClient} through {@link #getFileSystemClient(String)}, and operations on a file or directory + * are available on {@link DataLakeFileClient} and {@link DataLakeDirectoryClient} respectively. + */ +@ServiceClient(builder = DataLakeServiceClientBuilder.class) +public class DataLakeServiceClient { + + private final DataLakeServiceAsyncClient dataLakeServiceAsyncClient; + private final BlobServiceClient blobServiceClient; + + /** + * Package-private constructor for use by {@link DataLakeServiceClientBuilder}. + * + * @param dataLakeServiceAsyncClient the async data lake service client. + * @param blobServiceClient the sync blob service client. + */ + DataLakeServiceClient(DataLakeServiceAsyncClient dataLakeServiceAsyncClient, BlobServiceClient blobServiceClient) { + this.dataLakeServiceAsyncClient = dataLakeServiceAsyncClient; + this.blobServiceClient = blobServiceClient; + } + + /** + * Initializes a {@link DataLakeFileSystemClient} object pointing to the specified file system. This method does + * not create a file system. It simply constructs the URL to the file system and offers access to methods relevant + * to file systems. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.getFileSystemClient#String} + * + * @param fileSystemName The name of the file system to point to. + * @return A {@link DataLakeFileSystemClient} object pointing to the specified file system + */ + public DataLakeFileSystemClient getFileSystemClient(String fileSystemName) { + return new DataLakeFileSystemClient(dataLakeServiceAsyncClient.getFileSystemAsyncClient(fileSystemName), + blobServiceClient.getBlobContainerClient(fileSystemName)); + } + + /** + * Gets the {@link HttpPipeline} powering this client. + * + * @return The pipeline. + */ + public HttpPipeline getHttpPipeline() { + return dataLakeServiceAsyncClient.getHttpPipeline(); + } + + /** + * Gets the service version the client is using. + * + * @return the service version the client is using. + */ + public DataLakeServiceVersion getServiceVersion() { + return this.dataLakeServiceAsyncClient.getServiceVersion(); + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.createFileSystem#String} + * + * @param fileSystemName Name of the file system to create + * @return The {@link DataLakeFileSystemClient} used to interact with the file system created. + */ + public DataLakeFileSystemClient createFileSystem(String fileSystemName) { + return createFileSystemWithResponse(fileSystemName, null, null, Context.NONE).getValue(); + } + + /** + * Creates a new file system within a storage account. If a file system with the same name already exists, the + * operation fails. For more information, see the + * Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.createFileSystemWithResponse#String-Map-PublicAccessType-Context} + * + * @param fileSystemName Name of the file system to create + * @param metadata Metadata to associate with the file system. + * @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 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 DataLakeFileSystemClient} + * used to interact with the file system created. + */ + public Response createFileSystemWithResponse(String fileSystemName, + Map metadata, PublicAccessType accessType, Context context) { + DataLakeFileSystemClient client = getFileSystemClient(fileSystemName); + + return new SimpleResponse<>(client.createWithResponse(metadata, accessType, null, context), client); + } + + /** + * Deletes the specified file system in the storage account. If the file system doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.deleteFileSystem#String} + * + * @param fileSystemName Name of the file system to delete + */ + public void deleteFileSystem(String fileSystemName) { + deleteFileSystemWithResponse(fileSystemName, null, Context.NONE).getValue(); + } + + /** + * Deletes the specified file system in the storage account. If the file system doesn't exist the operation fails. + * For more information see the Azure + * Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.deleteFileSystemWithResponse#String-DataLakeRequestConditions-Context} + * + * @param fileSystemName Name of the file system to delete + * @param accessConditions {@link DataLakeRequestConditions} + * @param context Additional context that is passed through the Http pipeline during the service call. + * @return A response containing status code and HTTP headers + */ + public Response deleteFileSystemWithResponse(String fileSystemName, + DataLakeRequestConditions accessConditions, Context context) { + return getFileSystemClient(fileSystemName).deleteWithResponse(accessConditions, null, context); + } + + /** + * Gets the URL of the storage account represented by this client. + * + * @return the URL. + */ + public String getAccountUrl() { + return dataLakeServiceAsyncClient.getAccountUrl(); + } + + // TODO (gapra) : Change return type + /** + * Returns a lazy loaded list of file systems in this account. The returned {@link PagedIterable} can be consumed + * while new items are automatically retrieved as needed. For more information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.listFileSystems} + * + * @return The list of file systems. + */ + public PagedIterable listFileSystems() { + return this.listFileSystems(new ListFileSystemsOptions(), null); + } + + /** + * Returns a lazy loaded list of file systems in this account. The returned {@link PagedIterable} can be consumed + * while new items are automatically retrieved as needed. For more information, see the Azure Docs. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.listFileSystems#ListFileSystemsOptions-Duration} + * + * @param options A {@link ListFileSystemsOptions} which specifies what data should be returned by the service. + * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. + * @return The list of file systems. + */ + public PagedIterable listFileSystems(ListFileSystemsOptions options, Duration timeout) { + return blobServiceClient.listBlobContainers(Transforms.toListBlobContainersOptions(options), timeout) + .mapPage(Transforms::toFileSystemItem); + } + + /** + * Gets a user delegation key for use with this account's data lake storage. Note: This method call is only valid + * when using {@link TokenCredential} in this object's {@link HttpPipeline}. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.getUserDelegationKey#OffsetDateTime-OffsetDateTime} + * + * @param start Start time for the key's validity. Null indicates immediate start. + * @param expiry Expiration of the key's validity. + * @return The user delegation key. + */ + public UserDelegationKey getUserDelegationKey(OffsetDateTime start, OffsetDateTime expiry) { + return getUserDelegationKeyWithResponse(start, expiry, null, Context.NONE).getValue(); + } + + /** + * Gets a user delegation key for use with this account's data lake storage. Note: This method call is only valid + * when using {@link TokenCredential} in this object's {@link HttpPipeline}. + * + *

Code Samples

+ * + * {@codesnippet com.azure.storage.file.datalake.DataLakeServiceClient.getUserDelegationKeyWithResponse#OffsetDateTime-OffsetDateTime-Duration-Context} + * + * @param start Start time for the key's validity. Null indicates immediate start. + * @param expiry Expiration of the key's validity. + * @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 user delegation key. + */ + public Response getUserDelegationKeyWithResponse(OffsetDateTime start, OffsetDateTime expiry, + Duration timeout, Context context) { + Response response = blobServiceClient + .getUserDelegationKeyWithResponse(start, expiry, timeout, context); + return new SimpleResponse<>(response, Transforms.toDataLakeUserDelegationKey(response.getValue())); + } + + /** + * Get associated account name. + * + * @return account name associated with this storage resource. + */ + public String getAccountName() { + return this.dataLakeServiceAsyncClient.getAccountName(); + } +} 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 new file mode 100644 index 0000000000000..8fab6f9bb243d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceClientBuilder.java @@ -0,0 +1,288 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.credential.TokenCredential; +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.policy.BearerTokenAuthenticationPolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.Configuration; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.BlobServiceClientBuilder; +import com.azure.storage.blob.BlobUrlParts; +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.implementation.credentials.SasTokenCredential; +import com.azure.storage.common.implementation.policy.SasTokenCredentialPolicy; +import com.azure.storage.common.policy.RequestRetryOptions; +import com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy; +import com.azure.storage.file.datalake.implementation.util.BuilderHelper; + +import java.net.MalformedURLException; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * This class provides a fluent builder API to help aid the configuration and instantiation of + * {@link DataLakeServiceClient DataLakeServiceClients} and {@link DataLakeServiceAsyncClient + * DataLakeServiceAsyncClients}, call {@link #buildClient() buildClient} and {@link #buildAsyncClient() + * buildAsyncClient} respectively to construct an instance of the desired client. + * + *

+ * The following information must be provided on this builder: + * + *

    + *
  • the endpoint through {@code .endpoint()}, in the format of {@code https://{accountName}.dfs.core.windows.net}. + *
  • the credential through {@code .credential()} or {@code .connectionString()}. + *
+ */ +@ServiceClientBuilder(serviceClients = {DataLakeServiceClient.class, DataLakeServiceAsyncClient.class}) +public class DataLakeServiceClientBuilder { + private final ClientLogger logger = new ClientLogger(DataLakeServiceClientBuilder.class); + + private final BlobServiceClientBuilder blobServiceClientBuilder; + + private String endpoint; + private String accountName; + + private StorageSharedKeyCredential storageSharedKeyCredential; + private TokenCredential tokenCredential; + private SasTokenCredential sasTokenCredential; + + private HttpClient httpClient; + private final List additionalPolicies = new ArrayList<>(); + private HttpLogOptions logOptions; + private RequestRetryOptions retryOptions = new RequestRetryOptions(); + private HttpPipeline httpPipeline; + + private Configuration configuration; + private DataLakeServiceVersion version; + + /** + * Creates a builder instance that is able to configure and construct {@link DataLakeServiceClient + * DataLakeServiceClients} and {@link DataLakeServiceAsyncClient DataLakeServiceAsyncClients}. + */ + public DataLakeServiceClientBuilder() { + logOptions = getDefaultHttpLogOptions(); + blobServiceClientBuilder = new BlobServiceClientBuilder(); + } + + /** + * @return a {@link DataLakeServiceClient} created from the configurations in this builder. + */ + public DataLakeServiceClient buildClient() { + return new DataLakeServiceClient(buildAsyncClient(), blobServiceClientBuilder.buildClient()); + } + + /** + * @return a {@link DataLakeServiceAsyncClient} created from the configurations in this builder. + */ + public DataLakeServiceAsyncClient buildAsyncClient() { + DataLakeServiceVersion serviceVersion = version != null ? version : DataLakeServiceVersion.getLatest(); + HttpPipeline pipeline = (httpPipeline != null) ? httpPipeline : BuilderHelper.buildPipeline(() -> { + if (storageSharedKeyCredential != null) { + return new StorageSharedKeyCredentialPolicy(storageSharedKeyCredential); + } else if (tokenCredential != null) { + return new BearerTokenAuthenticationPolicy(tokenCredential, String.format("%s/.default", endpoint)); + } else if (sasTokenCredential != null) { + return new SasTokenCredentialPolicy(sasTokenCredential); + } else { + throw logger.logExceptionAsError( + new IllegalArgumentException("Authorization credentials must be set.")); + } + }, retryOptions, logOptions, httpClient, additionalPolicies, configuration, serviceVersion); + + return new DataLakeServiceAsyncClient(pipeline, endpoint, serviceVersion, accountName, + blobServiceClientBuilder.buildAsyncClient()); + } + + /** + * Sets the data lake service endpoint, additionally parses it for information (SAS token) + * + * @param endpoint URL of the service + * @return the updated DataLakeServiceClientBuilder object + * @throws IllegalArgumentException If {@code endpoint} is {@code null} or is a malformed URL. + */ + public DataLakeServiceClientBuilder endpoint(String endpoint) { + blobServiceClientBuilder.endpoint(Transforms.endpointToDesiredEndpoint(endpoint, "blob", "dfs")); + try { + BlobUrlParts parts = BlobUrlParts.parse(new URL(endpoint)); + + this.accountName = parts.getAccountName(); + this.endpoint = parts.getScheme() + "://" + parts.getHost(); + + String sasToken = parts.getSasQueryParameters().encode(); + if (!ImplUtils.isNullOrEmpty(sasToken)) { + this.sasToken(sasToken); + } + } catch (MalformedURLException ex) { + throw logger.logExceptionAsError( + new IllegalArgumentException("The Azure Storage endpoint url is malformed.")); + } + + return this; + } + + /** + * Sets the {@link StorageSharedKeyCredential} used to authorize requests sent to the service. + * + * @param credential The credential to use for authenticating request. + * @return the updated DataLakeServiceClientBuilder + * @throws NullPointerException If {@code credential} is {@code null}. + */ + public DataLakeServiceClientBuilder credential(StorageSharedKeyCredential credential) { + blobServiceClientBuilder.credential(credential); + this.storageSharedKeyCredential = Objects.requireNonNull(credential, "'credential' cannot be null."); + this.tokenCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the {@link TokenCredential} used to authorize requests sent to the service. + * + * @param credential The credential to use for authenticating request. + * @return the updated DataLakeServiceClientBuilder + * @throws NullPointerException If {@code credential} is {@code null}. + */ + public DataLakeServiceClientBuilder credential(TokenCredential credential) { + blobServiceClientBuilder.credential(credential); + this.tokenCredential = Objects.requireNonNull(credential, "'credential' cannot be null."); + this.storageSharedKeyCredential = null; + this.sasTokenCredential = null; + return this; + } + + /** + * Sets the SAS token used to authorize requests sent to the service. + * + * @param sasToken The SAS token to use for authenticating requests. + * @return the updated DataLakeServiceClientBuilder + * @throws NullPointerException If {@code sasToken} is {@code null}. + */ + public DataLakeServiceClientBuilder sasToken(String sasToken) { + blobServiceClientBuilder.sasToken(sasToken); + this.sasTokenCredential = new SasTokenCredential(Objects.requireNonNull(sasToken, + "'sasToken' cannot be null.")); + this.storageSharedKeyCredential = null; + this.tokenCredential = null; + return this; + } + + /** + * Sets the {@link HttpClient} to use for sending a receiving requests to and from the service. + * + * @param httpClient HttpClient to use for requests. + * @return the updated DataLakeServiceClientBuilder object + */ + public DataLakeServiceClientBuilder httpClient(HttpClient httpClient) { + blobServiceClientBuilder.httpClient(httpClient); + if (this.httpClient != null && httpClient == null) { + logger.info("'httpClient' is being set to 'null' when it was previously configured."); + } + + this.httpClient = httpClient; + return this; + } + + /** + * Adds a pipeline policy to apply on each request sent. + * + * @param pipelinePolicy a pipeline policy + * @return the updated DataLakeServiceClientBuilder object + * @throws NullPointerException If {@code pipelinePolicy} is {@code null}. + */ + public DataLakeServiceClientBuilder addPolicy(HttpPipelinePolicy pipelinePolicy) { + blobServiceClientBuilder.addPolicy(pipelinePolicy); + this.additionalPolicies.add(Objects.requireNonNull(pipelinePolicy, "'pipelinePolicy' cannot be null")); + return this; + } + + /** + * Sets the {@link HttpLogOptions} for service requests. + * + * @param logOptions The logging configuration to use when sending and receiving HTTP requests/responses. + * @return the updated DataLakeServiceClientBuilder object + * @throws NullPointerException If {@code logOptions} is {@code null}. + */ + public DataLakeServiceClientBuilder httpLogOptions(HttpLogOptions logOptions) { + blobServiceClientBuilder.httpLogOptions(logOptions); + this.logOptions = Objects.requireNonNull(logOptions, "'logOptions' cannot be null."); + return this; + } + + /** + * Gets the default Storage whitelist log headers and query parameters. + * + * @return the default http log options. + */ + public static HttpLogOptions getDefaultHttpLogOptions() { + return BuilderHelper.getDefaultHttpLogOptions(); + } + + /** + * Sets the configuration object used to retrieve environment configuration values during building of the client. + * + * @param configuration Configuration store used to retrieve environment configurations. + * @return the updated DataLakeServiceClientBuilder object + */ + public DataLakeServiceClientBuilder configuration(Configuration configuration) { + blobServiceClientBuilder.configuration(configuration); + this.configuration = configuration; + return this; + } + + /** + * Sets the request retry options for all the requests made through the client. + * + * @param retryOptions The options used to configure retry behavior. + * @return the updated DataLakeServiceClientBuilder object + * @throws NullPointerException If {@code retryOptions} is {@code null}. + */ + public DataLakeServiceClientBuilder retryOptions(RequestRetryOptions retryOptions) { + blobServiceClientBuilder.retryOptions(retryOptions); + this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null."); + return this; + } + + /** + * Sets the {@link HttpPipeline} to use for the service client. + * + * If {@code pipeline} is set, all other settings are ignored, aside from {@link #endpoint(String) endpoint}. + * + * @param httpPipeline HttpPipeline to use for sending service requests and receiving responses. + * @return the updated DataLakeServiceClientBuilder object + */ + public DataLakeServiceClientBuilder pipeline(HttpPipeline httpPipeline) { + blobServiceClientBuilder.pipeline(httpPipeline); + if (this.httpPipeline != null && httpPipeline == null) { + logger.info("HttpPipeline is being set to 'null' when it was previously configured."); + } + + this.httpPipeline = httpPipeline; + return this; + } + + // TODO (gapra) : Determine how to set the service version of blobs too + /** + * Sets the {@link DataLakeServiceVersion} that is used when making API requests. + *

+ * If a service version is not provided, the service version that will be used will be the latest known service + * version based on the version of the client library being used. If no service version is specified, updating to a + * newer version the client library will have the result of potentially moving to a newer service version. + * + * @param version {@link DataLakeServiceVersion} of the service to be used when making requests. + * @return the updated DataLakeServiceClientBuilder object + */ + public DataLakeServiceClientBuilder serviceVersion(DataLakeServiceVersion version) { + this.version = version; + 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 new file mode 100644 index 0000000000000..771f8ce5b01da --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.util.ServiceVersion; + +/** + * The versions of Azure Storage Data Lake supported by this client library. + */ +public enum DataLakeServiceVersion implements ServiceVersion { + V2019_02_02("2019-02-02"); + + private final String version; + + DataLakeServiceVersion(String version) { + this.version = version; + } + + /** + * {@inheritDoc} + */ + @Override + public String getVersion() { + return this.version; + } + + /** + * Gets the latest service version supported by this client library + * + * @return the latest {@link DataLakeServiceVersion} + */ + public static DataLakeServiceVersion getLatest() { + return V2019_02_02; + } +} 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 new file mode 100644 index 0000000000000..1a1f034900462 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/Transforms.java @@ -0,0 +1,310 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.blob.models.BlobContainerItem; +import com.azure.storage.blob.models.BlobContainerItemProperties; +import com.azure.storage.blob.models.BlobContainerListDetails; +import com.azure.storage.blob.models.BlobContainerProperties; +import com.azure.storage.blob.models.BlobDownloadAsyncResponse; +import com.azure.storage.blob.models.BlobDownloadHeaders; +import com.azure.storage.blob.models.BlobDownloadResponse; +import com.azure.storage.blob.models.BlobHttpHeaders; +import com.azure.storage.blob.models.BlobProperties; +import com.azure.storage.blob.models.BlobRange; +import com.azure.storage.blob.models.BlobRequestConditions; +import com.azure.storage.blob.models.ListBlobContainersOptions; +import com.azure.storage.file.datalake.implementation.models.Path; +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.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileRange; +import com.azure.storage.file.datalake.models.FileReadAsyncResponse; +import com.azure.storage.file.datalake.models.FileReadHeaders; +import com.azure.storage.file.datalake.models.FileReadResponse; +import com.azure.storage.file.datalake.models.FileSystemItem; +import com.azure.storage.file.datalake.models.FileSystemItemProperties; +import com.azure.storage.file.datalake.models.FileSystemListDetails; +import com.azure.storage.file.datalake.models.FileSystemProperties; +import com.azure.storage.file.datalake.models.LeaseDurationType; +import com.azure.storage.file.datalake.models.LeaseStateType; +import com.azure.storage.file.datalake.models.LeaseStatusType; +import com.azure.storage.file.datalake.models.ListFileSystemsOptions; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import com.azure.storage.file.datalake.models.PathItem; +import com.azure.storage.file.datalake.models.PathProperties; +import com.azure.storage.file.datalake.models.PublicAccessType; +import com.azure.storage.file.datalake.models.DownloadRetryOptions; +import com.azure.storage.file.datalake.models.UserDelegationKey; + +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +class Transforms { + + static com.azure.storage.blob.models.PublicAccessType toBlobPublicAccessType(PublicAccessType + fileSystemPublicAccessType) { + if (fileSystemPublicAccessType == null) { + return null; + } + return com.azure.storage.blob.models.PublicAccessType.fromString(fileSystemPublicAccessType.toString()); + } + + private static LeaseDurationType toDataLakeLeaseDurationType(com.azure.storage.blob.models.LeaseDurationType + blobLeaseDurationType) { + if (blobLeaseDurationType == null) { + return null; + } + return LeaseDurationType.fromString(blobLeaseDurationType.toString()); + } + + private static LeaseStateType toDataLakeLeaseStateType(com.azure.storage.blob.models.LeaseStateType + blobLeaseStateType) { + if (blobLeaseStateType == null) { + return null; + } + return LeaseStateType.fromString(blobLeaseStateType.toString()); + } + + private static LeaseStatusType toDataLakeLeaseStatusType(com.azure.storage.blob.models.LeaseStatusType + blobLeaseStatusType) { + if (blobLeaseStatusType == null) { + return null; + } + return LeaseStatusType.fromString(blobLeaseStatusType.toString()); + } + + private static PublicAccessType toDataLakePublicAccessType(com.azure.storage.blob.models.PublicAccessType + blobPublicAccessType) { + if (blobPublicAccessType == null) { + return null; + } + return PublicAccessType.fromString(blobPublicAccessType.toString()); + } + + private static CopyStatusType toDataLakeCopyStatusType( + com.azure.storage.blob.models.CopyStatusType blobCopyStatus) { + if (blobCopyStatus == null) { + return null; + } + return CopyStatusType.fromString(blobCopyStatus.toString()); + } + + private static ArchiveStatus toDataLakeArchiveStatus( + com.azure.storage.blob.models.ArchiveStatus blobArchiveStatus) { + if (blobArchiveStatus == null) { + return null; + } + return ArchiveStatus.fromString(blobArchiveStatus.toString()); + } + + private static AccessTier toDataLakeAccessTier(com.azure.storage.blob.models.AccessTier blobAccessTier) { + if (blobAccessTier == null) { + return null; + } + return AccessTier.fromString(blobAccessTier.toString()); + } + + static FileSystemProperties toFileSystemProperties(BlobContainerProperties blobContainerProperties) { + if (blobContainerProperties == null) { + return null; + } + return new FileSystemProperties(blobContainerProperties.getMetadata(), blobContainerProperties.getETag(), + blobContainerProperties.getLastModified(), + Transforms.toDataLakeLeaseDurationType(blobContainerProperties.getLeaseDuration()), + Transforms.toDataLakeLeaseStateType(blobContainerProperties.getLeaseState()), + Transforms.toDataLakeLeaseStatusType(blobContainerProperties.getLeaseStatus()), + Transforms.toDataLakePublicAccessType(blobContainerProperties.getBlobPublicAccess()), + blobContainerProperties.hasImmutabilityPolicy(), blobContainerProperties.hasLegalHold()); + } + + private static BlobContainerListDetails toBlobContainerListDetails(FileSystemListDetails fileSystemListDetails) { + return new BlobContainerListDetails() + .setRetrieveMetadata(fileSystemListDetails.getRetrieveMetadata()); + } + + static ListBlobContainersOptions toListBlobContainersOptions(ListFileSystemsOptions listFileSystemsOptions) { + return new ListBlobContainersOptions() + .setDetails(toBlobContainerListDetails(listFileSystemsOptions.getDetails())) + .setMaxResultsPerPage(listFileSystemsOptions.getMaxResultsPerPage()) + .setPrefix(listFileSystemsOptions.getPrefix()); + } + + static UserDelegationKey toDataLakeUserDelegationKey(com.azure.storage.blob.models.UserDelegationKey + blobUserDelegationKey) { + if (blobUserDelegationKey == null) { + return null; + } + return new UserDelegationKey() + .setSignedExpiry(blobUserDelegationKey.getSignedExpiry()) + .setSignedObjectId(blobUserDelegationKey.getSignedObjectId()) + .setSignedTenantId(blobUserDelegationKey.getSignedTenantId()) + .setSignedService(blobUserDelegationKey.getSignedService()) + .setSignedStart(blobUserDelegationKey.getSignedStart()) + .setSignedVersion(blobUserDelegationKey.getSignedVersion()) + .setValue(blobUserDelegationKey.getValue()); + } + + static String endpointToDesiredEndpoint(String endpoint, String desiredEndpoint, String currentEndpoint) { + String desiredRegex = "." + desiredEndpoint + "."; + String currentRegex = "." + currentEndpoint + "."; + if (endpoint.contains(desiredRegex)) { + return endpoint; + } else { + return endpoint.replaceFirst(currentRegex, desiredRegex); + } + } + + static BlobHttpHeaders toBlobHttpHeaders(PathHttpHeaders pathHTTPHeaders) { + if (pathHTTPHeaders == null) { + return null; + } + return new BlobHttpHeaders() + .setCacheControl(pathHTTPHeaders.getCacheControl()) + .setContentDisposition(pathHTTPHeaders.getContentDisposition()) + .setContentEncoding(pathHTTPHeaders.getContentEncoding()) + .setContentLanguage(pathHTTPHeaders.getContentLanguage()) + .setContentType(pathHTTPHeaders.getContentType()) + .setContentMd5(pathHTTPHeaders.getContentMd5()); + } + + static BlobRange toBlobRange(FileRange fileRange) { + if (fileRange == null) { + return null; + } + return new BlobRange(fileRange.getOffset(), fileRange.getCount()); + } + + static com.azure.storage.blob.models.DownloadRetryOptions toBlobDownloadRetryOptions( + DownloadRetryOptions dataLakeOptions) { + if (dataLakeOptions == null) { + return null; + } + return new com.azure.storage.blob.models.DownloadRetryOptions() + .setMaxRetryRequests(dataLakeOptions.getMaxRetryRequests()); + } + + static PathProperties toPathProperties(BlobProperties properties) { + if (properties == null) { + return null; + } else { + return new PathProperties(properties.getCreationTime(), properties.getLastModified(), properties.getETag(), + properties.getBlobSize(), properties.getContentType(), properties.getContentMd5(), + properties.getContentEncoding(), properties.getContentDisposition(), properties.getContentLanguage(), + properties.getCacheControl(), Transforms.toDataLakeLeaseStatusType(properties.getLeaseStatus()), + Transforms.toDataLakeLeaseStateType(properties.getLeaseState()), + Transforms.toDataLakeLeaseDurationType(properties.getLeaseDuration()), properties.getCopyId(), + Transforms.toDataLakeCopyStatusType(properties.getCopyStatus()), properties.getCopySource(), + properties.getCopyProgress(), properties.getCopyCompletionTime(), properties.getCopyStatusDescription(), + properties.isServerEncrypted(), properties.isIncrementalCopy(), + Transforms.toDataLakeAccessTier(properties.getAccessTier()), + Transforms.toDataLakeArchiveStatus(properties.getArchiveStatus()), properties.getEncryptionKeySha256(), + properties.getAccessTierChangeTime(), properties.getMetadata()); + } + } + + + static FileSystemItem toFileSystemItem(BlobContainerItem blobContainerItem) { + if (blobContainerItem == null) { + return null; + } + return new FileSystemItem() + .setName(blobContainerItem.getName()) + .setMetadata(blobContainerItem.getMetadata()) + .setProperties(Transforms.toFileSystemItemProperties(blobContainerItem.getProperties())); + } + + private static FileSystemItemProperties toFileSystemItemProperties( + BlobContainerItemProperties blobContainerItemProperties) { + if (blobContainerItemProperties == null) { + return null; + } + return new FileSystemItemProperties() + .setETag(blobContainerItemProperties.getETag()) + .setLastModified(blobContainerItemProperties.getLastModified()) + .setLeaseStatus(toDataLakeLeaseStatusType(blobContainerItemProperties.getLeaseStatus())) + .setLeaseState(toDataLakeLeaseStateType(blobContainerItemProperties.getLeaseState())) + .setLeaseDuration(toDataLakeLeaseDurationType(blobContainerItemProperties.getLeaseDuration())) + .setPublicAccess(toDataLakePublicAccessType(blobContainerItemProperties.getPublicAccess())) + .setHasLegalHold(blobContainerItemProperties.isHasLegalHold()) + .setHasImmutabilityPolicy(blobContainerItemProperties.isHasImmutabilityPolicy()); + } + + static PathItem toPathItem(Path path) { + if (path == null) { + return null; + } + return new PathItem(path.getETag(), + OffsetDateTime.parse(path.getLastModified(), DateTimeFormatter.RFC_1123_DATE_TIME), + path.getContentLength(), path.getGroup(), path.isDirectory() == null ? false : path.isDirectory(), + path.getName(), path.getOwner(), path.getPermissions()); + } + + static BlobRequestConditions toBlobRequestConditions(DataLakeRequestConditions accessConditions) { + if (accessConditions == null) { + return null; + } + return new BlobRequestConditions() + .setLeaseId(accessConditions.getLeaseId()) + .setIfUnmodifiedSince(accessConditions.getIfUnmodifiedSince()) + .setIfNoneMatch(accessConditions.getIfNoneMatch()) + .setIfMatch(accessConditions.getIfMatch()) + .setIfModifiedSince(accessConditions.getIfModifiedSince()); + + } + + static FileReadResponse toFileReadResponse(BlobDownloadResponse r) { + if (r == null) { + return null; + } + return new FileReadResponse(Transforms.toFileReadAsyncResponse(new BlobDownloadAsyncResponse(r.getRequest(), + r.getStatusCode(), r.getHeaders(), null, r.getDeserializedHeaders()))); + } + + static FileReadAsyncResponse toFileReadAsyncResponse(BlobDownloadAsyncResponse r) { + if (r == null) { + return null; + } + return new FileReadAsyncResponse(r.getRequest(), r.getStatusCode(), r.getHeaders(), r.getValue(), + Transforms.toPathReadHeaders(r.getDeserializedHeaders())); + } + + private static FileReadHeaders toPathReadHeaders(BlobDownloadHeaders h) { + if (h == null) { + return null; + } + return new FileReadHeaders() + .setLastModified(h.getLastModified()) + .setMetadata(h.getMetadata()) + .setContentLength(h.getContentLength()) + .setContentType(h.getContentType()) + .setContentRange(h.getContentRange()) + .setETag(h.getETag()) + .setContentMd5(h.getContentMd5()) + .setContentEncoding(h.getContentEncoding()) + .setCacheControl(h.getCacheControl()) + .setContentDisposition(h.getContentDisposition()) + .setContentLanguage(h.getContentLanguage()) + .setCopyCompletionTime(h.getCopyCompletionTime()) + .setCopyStatusDescription(h.getCopyStatusDescription()) + .setCopyId(h.getCopyId()) + .setCopyProgress(h.getCopyProgress()) + .setCopySource(h.getCopySource()) + .setCopyStatus(Transforms.toDataLakeCopyStatusType(h.getCopyStatus())) + .setLeaseDuration(Transforms.toDataLakeLeaseDurationType(h.getLeaseDuration())) + .setLeaseState(Transforms.toDataLakeLeaseStateType(h.getLeaseState())) + .setLeaseStatus(Transforms.toDataLakeLeaseStatusType(h.getLeaseStatus())) + .setClientRequestId(h.getClientRequestId()) + .setRequestId(h.getRequestId()) + .setVersion(h.getVersion()) + .setAcceptRanges(h.getAcceptRanges()) + .setDateProperty(h.getDateProperty()) + .setIsServerEncrypted(h.isServerEncrypted()) + .setEncryptionKeySha256(h.getEncryptionKeySha256()) + .setFileContentMD5(h.getBlobContentMD5()) + .setContentCrc64(h.getContentCrc64()) + .setErrorCode(h.getErrorCode()); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java index fc32992df5e9d..c4c8eb7ca3462 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java @@ -14,50 +14,82 @@ @ServiceClientBuilder(serviceClients = DataLakeStorageClientImpl.class) public final class DataLakeStorageClientBuilder { /* - * Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * The URL of the service account, container, or blob that is the targe of the desired operation. */ - private String xMsVersion; + private String url; /** - * Sets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * Sets The URL of the service account, container, or blob that is the targe of the desired operation. * - * @param xMsVersion the xMsVersion value. + * @param url the url value. * @return the DataLakeStorageClientBuilder. */ - public DataLakeStorageClientBuilder xMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public DataLakeStorageClientBuilder url(String url) { + this.url = url; return this; } /* - * The Azure Storage account name. + * The value must be "filesystem" for all filesystem operations. */ - private String accountName; + private String resource; /** - * Sets The Azure Storage account name. + * Sets The value must be "filesystem" for all filesystem operations. * - * @param accountName the accountName value. + * @param resource the resource value. * @return the DataLakeStorageClientBuilder. */ - public DataLakeStorageClientBuilder accountName(String accountName) { - this.accountName = accountName; + public DataLakeStorageClientBuilder resource(String resource) { + this.resource = resource; return this; } /* - * The DNS suffix for the Azure Data Lake Storage endpoint. + * Specifies the version of the operation to use for this request. */ - private String dnsSuffix; + private String version; /** - * Sets The DNS suffix for the Azure Data Lake Storage endpoint. + * Sets Specifies the version of the operation to use for this request. * - * @param dnsSuffix the dnsSuffix value. + * @param version the version value. * @return the DataLakeStorageClientBuilder. */ - public DataLakeStorageClientBuilder dnsSuffix(String dnsSuffix) { - this.dnsSuffix = dnsSuffix; + public DataLakeStorageClientBuilder version(String version) { + this.version = version; + return this; + } + + /* + * The filesystem identifier. + */ + private String fileSystem; + + /** + * Sets The filesystem identifier. + * + * @param fileSystem the fileSystem value. + * @return the DataLakeStorageClientBuilder. + */ + public DataLakeStorageClientBuilder fileSystem(String fileSystem) { + this.fileSystem = fileSystem; + return this; + } + + /* + * The file or directory path. + */ + private String path1; + + /** + * Sets The file or directory path. + * + * @param path1 the path1 value. + * @return the DataLakeStorageClientBuilder. + */ + public DataLakeStorageClientBuilder path1(String path1) { + this.path1 = path1; return this; } @@ -87,16 +119,24 @@ public DataLakeStorageClientImpl build() { this.pipeline = RestProxy.createDefaultPipeline(); } DataLakeStorageClientImpl client = new DataLakeStorageClientImpl(pipeline); - if (this.xMsVersion != null) { - client.setXMsVersion(this.xMsVersion); + if (this.url != null) { + client.setUrl(this.url); } - if (this.accountName != null) { - client.setAccountName(this.accountName); + if (this.resource != null) { + client.setResource(this.resource); + } else { + client.setResource("filesystem"); } - if (this.dnsSuffix != null) { - client.setDnsSuffix(this.dnsSuffix); + if (this.version != null) { + client.setVersion(this.version); } else { - client.setDnsSuffix("dfs.core.windows.net"); + client.setVersion("2019-02-02"); + } + if (this.fileSystem != null) { + client.setFileSystem(this.fileSystem); + } + if (this.path1 != null) { + client.setPath1(this.path1); } return client; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java index 928696c461eae..9174ea203063d 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java @@ -12,74 +12,122 @@ */ public final class DataLakeStorageClientImpl { /** - * Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * The URL of the service account, container, or blob that is the targe of the desired operation. */ - private String xMsVersion; + private String url; /** - * Gets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * Gets The URL of the service account, container, or blob that is the targe of the desired operation. * - * @return the xMsVersion value. + * @return the url value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getUrl() { + return this.url; } /** - * Sets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * Sets The URL of the service account, container, or blob that is the targe of the desired operation. * - * @param xMsVersion the xMsVersion value. + * @param url the url value. */ - DataLakeStorageClientImpl setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + DataLakeStorageClientImpl setUrl(String url) { + this.url = url; return this; } /** - * The Azure Storage account name. + * The value must be "filesystem" for all filesystem operations. */ - private String accountName; + private String resource; /** - * Gets The Azure Storage account name. + * Gets The value must be "filesystem" for all filesystem operations. * - * @return the accountName value. + * @return the resource value. */ - public String getAccountName() { - return this.accountName; + public String getResource() { + return this.resource; } /** - * Sets The Azure Storage account name. + * Sets The value must be "filesystem" for all filesystem operations. * - * @param accountName the accountName value. + * @param resource the resource value. */ - DataLakeStorageClientImpl setAccountName(String accountName) { - this.accountName = accountName; + DataLakeStorageClientImpl setResource(String resource) { + this.resource = resource; return this; } /** - * The DNS suffix for the Azure Data Lake Storage endpoint. + * Specifies the version of the operation to use for this request. */ - private String dnsSuffix; + private String version; /** - * Gets The DNS suffix for the Azure Data Lake Storage endpoint. + * Gets Specifies the version of the operation to use for this request. * - * @return the dnsSuffix value. + * @return the version value. */ - public String getDnsSuffix() { - return this.dnsSuffix; + public String getVersion() { + return this.version; } /** - * Sets The DNS suffix for the Azure Data Lake Storage endpoint. + * Sets Specifies the version of the operation to use for this request. * - * @param dnsSuffix the dnsSuffix value. + * @param version the version value. */ - DataLakeStorageClientImpl setDnsSuffix(String dnsSuffix) { - this.dnsSuffix = dnsSuffix; + DataLakeStorageClientImpl setVersion(String version) { + this.version = version; + return this; + } + + /** + * The filesystem identifier. + */ + private String fileSystem; + + /** + * Gets The filesystem identifier. + * + * @return the fileSystem value. + */ + public String getFileSystem() { + return this.fileSystem; + } + + /** + * Sets The filesystem identifier. + * + * @param fileSystem the fileSystem value. + */ + DataLakeStorageClientImpl setFileSystem(String fileSystem) { + this.fileSystem = fileSystem; + return this; + } + + /** + * The file or directory path. + */ + private String path1; + + /** + * Gets The file or directory path. + * + * @return the path1 value. + */ + public String getPath1() { + return this.path1; + } + + /** + * Sets The file or directory path. + * + * @param path1 the path1 value. + */ + DataLakeStorageClientImpl setPath1(String path1) { + this.path1 = path1; return this; } @@ -98,17 +146,31 @@ public HttpPipeline getHttpPipeline() { } /** - * The FilesystemsImpl object to access its operations. + * The ServicesImpl object to access its operations. + */ + private ServicesImpl services; + + /** + * Gets the ServicesImpl object to access its operations. + * + * @return the ServicesImpl object. + */ + public ServicesImpl services() { + return this.services; + } + + /** + * The FileSystemsImpl object to access its operations. */ - private FilesystemsImpl filesystems; + private FileSystemsImpl fileSystems; /** - * Gets the FilesystemsImpl object to access its operations. + * Gets the FileSystemsImpl object to access its operations. * - * @return the FilesystemsImpl object. + * @return the FileSystemsImpl object. */ - public FilesystemsImpl filesystems() { - return this.filesystems; + public FileSystemsImpl fileSystems() { + return this.fileSystems; } /** @@ -139,7 +201,8 @@ public DataLakeStorageClientImpl() { */ public DataLakeStorageClientImpl(HttpPipeline httpPipeline) { this.httpPipeline = httpPipeline; - this.filesystems = new FilesystemsImpl(this); + this.services = new ServicesImpl(this); + this.fileSystems = new FileSystemsImpl(this); this.paths = new PathsImpl(this); } } 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 new file mode 100644 index 0000000000000..6ddedc950fa70 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FileSystemsImpl.java @@ -0,0 +1,283 @@ +// 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; + +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Head; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.implementation.DateTimeRfc1123; +import com.azure.core.implementation.RestProxy; +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.implementation.models.FileSystemsCreateResponse; +import com.azure.storage.file.datalake.implementation.models.FileSystemsDeleteResponse; +import com.azure.storage.file.datalake.implementation.models.FileSystemsGetPropertiesResponse; +import com.azure.storage.file.datalake.implementation.models.FileSystemsListPathsResponse; +import com.azure.storage.file.datalake.implementation.models.FileSystemsSetPropertiesResponse; +import com.azure.storage.file.datalake.implementation.models.ModifiedAccessConditions; +import com.azure.storage.file.datalake.implementation.models.StorageErrorException; +import java.time.OffsetDateTime; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * FileSystems. + */ +public final class FileSystemsImpl { + /** + * The proxy service used to perform REST calls. + */ + private FileSystemsService service; + + /** + * The service client containing this operation class. + */ + private DataLakeStorageClientImpl client; + + /** + * Initializes an instance of FileSystemsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + public FileSystemsImpl(DataLakeStorageClientImpl client) { + this.service = RestProxy.create(FileSystemsService.class, client.getHttpPipeline()); + this.client = client; + } + + /** + * The interface defining all the services for + * DataLakeStorageClientFileSystems to be used by the proxy service to + * perform REST calls. + */ + @Host("{url}") + @ServiceInterface(name = "DataLakeStorageClientFileSystems") + private interface FileSystemsService { + @Put("{filesystem}") + @ExpectedResponses({201}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono create(@HostParam("url") String url, @HeaderParam("x-ms-properties") String properties, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, Context context); + + @Patch("{filesystem}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono setProperties(@HostParam("url") String url, @HeaderParam("x-ms-properties") String properties, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); + + @Head("{filesystem}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono getProperties(@HostParam("url") String url, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, Context context); + + @Delete("{filesystem}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono delete(@HostParam("url") String url, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); + + @Get("{filesystem}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono listPaths(@PathParam("filesystem") String fileSystem, @HostParam("url") String url, @QueryParam("continuation") String continuation, @QueryParam("directory") String path, @QueryParam("recursive") boolean recursive, @QueryParam("maxResults") Integer maxResults, @QueryParam("upn") Boolean upn, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, Context context); + } + + /** + * Create FileSystem + * Create a FileSystem rooted at the specified location. If the FileSystem already exists, the operation fails. This operation does not support conditional HTTP requests. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createWithRestResponseAsync(Context context) { + final String properties = null; + final String requestId = null; + final Integer timeout = null; + return service.create(this.client.getUrl(), properties, this.client.getResource(), requestId, timeout, this.client.getVersion(), context); + } + + /** + * Create FileSystem + * Create a FileSystem rooted at the specified location. If the FileSystem already exists, the operation fails. This operation does not support conditional HTTP requests. + * + * @param properties Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createWithRestResponseAsync(String properties, String requestId, Integer timeout, Context context) { + return service.create(this.client.getUrl(), properties, this.client.getResource(), requestId, timeout, this.client.getVersion(), context); + } + + /** + * Set FileSystem Properties + * Set properties for the FileSystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setPropertiesWithRestResponseAsync(Context context) { + final String properties = null; + final String requestId = null; + final Integer timeout = null; + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.setProperties(this.client.getUrl(), properties, this.client.getResource(), requestId, timeout, this.client.getVersion(), ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Set FileSystem Properties + * Set properties for the FileSystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param properties Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param modifiedAccessConditions Additional parameters for the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setPropertiesWithRestResponseAsync(String properties, String requestId, Integer timeout, ModifiedAccessConditions modifiedAccessConditions, Context context) { + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.setProperties(this.client.getUrl(), properties, this.client.getResource(), requestId, timeout, this.client.getVersion(), ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Get FileSystem Properties. + * All system and user-defined filesystem properties are specified in the response headers. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPropertiesWithRestResponseAsync(Context context) { + final String requestId = null; + final Integer timeout = null; + return service.getProperties(this.client.getUrl(), this.client.getResource(), requestId, timeout, this.client.getVersion(), context); + } + + /** + * Get FileSystem Properties. + * All system and user-defined filesystem properties are specified in the response headers. + * + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPropertiesWithRestResponseAsync(String requestId, Integer timeout, Context context) { + return service.getProperties(this.client.getUrl(), this.client.getResource(), requestId, timeout, this.client.getVersion(), context); + } + + /** + * Delete FileSystem + * Marks the FileSystem for deletion. When a FileSystem is deleted, a FileSystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(Context context) { + final String requestId = null; + final Integer timeout = null; + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.delete(this.client.getUrl(), this.client.getResource(), requestId, timeout, this.client.getVersion(), ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Delete FileSystem + * Marks the FileSystem for deletion. When a FileSystem is deleted, a FileSystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param modifiedAccessConditions Additional parameters for the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(String requestId, Integer timeout, ModifiedAccessConditions modifiedAccessConditions, Context context) { + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.delete(this.client.getUrl(), this.client.getResource(), requestId, timeout, this.client.getVersion(), ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * List Paths + * List FileSystem paths and their properties. + * + * @param recursive Required. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listPathsWithRestResponseAsync(boolean recursive, Context context) { + final String continuation = null; + final String path = null; + final Integer maxResults = null; + final Boolean upn = null; + final String requestId = null; + final Integer timeout = null; + return service.listPaths(this.client.getFileSystem(), this.client.getUrl(), continuation, path, recursive, maxResults, upn, this.client.getResource(), requestId, timeout, this.client.getVersion(), context); + } + + /** + * List Paths + * List FileSystem paths and their properties. + * + * @param recursive Required. + * @param continuation Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory. + * @param path Optional. Filters results to paths within the specified directory. An error occurs if the directory does not exist. + * @param maxResults An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items. + * @param upn Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listPathsWithRestResponseAsync(boolean recursive, String continuation, String path, Integer maxResults, Boolean upn, String requestId, Integer timeout, Context context) { + return service.listPaths(this.client.getFileSystem(), this.client.getUrl(), continuation, path, recursive, maxResults, upn, this.client.getResource(), requestId, timeout, this.client.getVersion(), context); + } +} 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 deleted file mode 100644 index d09a8017e4c16..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java +++ /dev/null @@ -1,286 +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; - -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.Head; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.implementation.RestProxy; -import com.azure.core.util.Context; -import com.azure.storage.file.datalake.models.DataLakeStorageErrorException; -import com.azure.storage.file.datalake.models.FilesystemsCreateResponse; -import com.azure.storage.file.datalake.models.FilesystemsDeleteResponse; -import com.azure.storage.file.datalake.models.FilesystemsGetPropertiesResponse; -import com.azure.storage.file.datalake.models.FilesystemsListResponse; -import com.azure.storage.file.datalake.models.FilesystemsSetPropertiesResponse; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in - * Filesystems. - */ -public final class FilesystemsImpl { - /** - * The proxy service used to perform REST calls. - */ - private FilesystemsService service; - - /** - * The service client containing this operation class. - */ - private DataLakeStorageClientImpl client; - - /** - * Initializes an instance of FilesystemsImpl. - * - * @param client the instance of the service client containing this operation class. - */ - public FilesystemsImpl(DataLakeStorageClientImpl client) { - this.service = RestProxy.create(FilesystemsService.class, client.getHttpPipeline()); - this.client = client; - } - - /** - * The interface defining all the services for - * DataLakeStorageClientFilesystems to be used by the proxy service to - * perform REST calls. - */ - @Host("http://{accountName}.{dnsSuffix}") - @ServiceInterface(name = "DataLakeStorageClientFilesystems") - private interface FilesystemsService { - @Get("") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono list(@HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - - @Put("{filesystem}") - @ExpectedResponses({201}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono create(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("x-ms-properties") String xMsProperties, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - - @Patch("{filesystem}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono setProperties(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - - @Head("{filesystem}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono getProperties(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - - @Delete("{filesystem}") - @ExpectedResponses({202}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono delete(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - } - - /** - * List Filesystems - * List filesystems and their properties in given account. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listWithRestResponseAsync(Context context) { - final String resource = "account"; - final String prefix = null; - final String continuation = null; - final Integer maxResults = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.list(this.client.getAccountName(), this.client.getDnsSuffix(), resource, prefix, continuation, maxResults, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * List Filesystems - * List filesystems and their properties in given account. - * - * @param prefix Filters results to filesystems within the specified prefix. - * @param continuation The number of filesystems returned with each invocation is limited. If the number of filesystems to be returned exceeds this limit, a continuation token is returned in the response header x-ms-continuation. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the filesystems. - * @param maxResults An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listWithRestResponseAsync(String prefix, String continuation, Integer maxResults, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - final String resource = "account"; - return service.list(this.client.getAccountName(), this.client.getDnsSuffix(), resource, prefix, continuation, maxResults, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Create Filesystem - * Create a filesystem rooted at the specified location. If the filesystem already exists, the operation fails. This operation does not support conditional HTTP requests. - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createWithRestResponseAsync(String filesystem, Context context) { - final String xMsProperties = null; - final String resource = "filesystem"; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.create(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Create Filesystem - * Create a filesystem rooted at the specified location. If the filesystem already exists, the operation fails. This operation does not support conditional HTTP requests. - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param xMsProperties User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createWithRestResponseAsync(String filesystem, String xMsProperties, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - final String resource = "filesystem"; - return service.create(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Set Filesystem Properties - * Set properties for the filesystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono setPropertiesWithRestResponseAsync(String filesystem, Context context) { - final String xMsProperties = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String resource = "filesystem"; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.setProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Set Filesystem Properties - * Set properties for the filesystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param xMsProperties Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono setPropertiesWithRestResponseAsync(String filesystem, String xMsProperties, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - final String resource = "filesystem"; - return service.setProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Get Filesystem Properties. - * All system and user-defined filesystem properties are specified in the response headers. - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getPropertiesWithRestResponseAsync(String filesystem, Context context) { - final String resource = "filesystem"; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.getProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Get Filesystem Properties. - * All system and user-defined filesystem properties are specified in the response headers. - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getPropertiesWithRestResponseAsync(String filesystem, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - final String resource = "filesystem"; - return service.getProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Delete Filesystem - * Marks the filesystem for deletion. When a filesystem is deleted, a filesystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteWithRestResponseAsync(String filesystem, Context context) { - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String resource = "filesystem"; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.delete(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } - - /** - * Delete Filesystem - * Marks the filesystem for deletion. When a filesystem is deleted, a filesystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). - * - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteWithRestResponseAsync(String filesystem, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - final String resource = "filesystem"; - return service.delete(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java index 352aabe497f02..094d24bd3b5cd 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 @@ -21,22 +21,31 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.implementation.DateTimeRfc1123; import com.azure.core.implementation.RestProxy; +import com.azure.core.implementation.util.Base64Util; import com.azure.core.util.Context; -import com.azure.storage.file.datalake.models.DataLakeStorageErrorException; -import com.azure.storage.file.datalake.models.PathGetPropertiesAction; -import com.azure.storage.file.datalake.models.PathLeaseAction; -import com.azure.storage.file.datalake.models.PathRenameMode; -import com.azure.storage.file.datalake.models.PathResourceType; -import com.azure.storage.file.datalake.models.PathsCreateResponse; -import com.azure.storage.file.datalake.models.PathsDeleteResponse; -import com.azure.storage.file.datalake.models.PathsGetPropertiesResponse; -import com.azure.storage.file.datalake.models.PathsLeaseResponse; -import com.azure.storage.file.datalake.models.PathsListResponse; -import com.azure.storage.file.datalake.models.PathsReadResponse; -import com.azure.storage.file.datalake.models.PathsUpdateResponse; -import com.azure.storage.file.datalake.models.PathUpdateAction; +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.PathGetPropertiesAction; +import com.azure.storage.file.datalake.implementation.models.PathLeaseAction; +import com.azure.storage.file.datalake.implementation.models.PathRenameMode; +import com.azure.storage.file.datalake.implementation.models.PathResourceType; +import com.azure.storage.file.datalake.implementation.models.PathsAppendDataResponse; +import com.azure.storage.file.datalake.implementation.models.PathsCreateResponse; +import com.azure.storage.file.datalake.implementation.models.PathsDeleteResponse; +import com.azure.storage.file.datalake.implementation.models.PathsFlushDataResponse; +import com.azure.storage.file.datalake.implementation.models.PathsGetPropertiesResponse; +import com.azure.storage.file.datalake.implementation.models.PathsLeaseResponse; +import com.azure.storage.file.datalake.implementation.models.PathsReadResponse; +import com.azure.storage.file.datalake.implementation.models.PathsSetAccessControlResponse; +import com.azure.storage.file.datalake.implementation.models.PathsUpdateResponse; +import com.azure.storage.file.datalake.implementation.models.PathUpdateAction; +import com.azure.storage.file.datalake.implementation.models.SourceModifiedAccessConditions; +import com.azure.storage.file.datalake.implementation.models.StorageErrorException; +import com.azure.storage.file.datalake.models.PathHttpHeaders; import java.nio.ByteBuffer; +import java.time.OffsetDateTime; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -69,177 +78,177 @@ public PathsImpl(DataLakeStorageClientImpl client) { * The interface defining all the services for DataLakeStorageClientPaths * to be used by the proxy service to perform REST calls. */ - @Host("http://{accountName}.{dnsSuffix}") + @Host("{url}") @ServiceInterface(name = "DataLakeStorageClientPaths") private interface PathsService { - @Get("{filesystem}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono list(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("directory") String directory, @QueryParam("recursive") boolean recursive, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @QueryParam("upn") Boolean upn, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - @Put("{filesystem}/{path}") @ExpectedResponses({201}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono create(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("resource") PathResourceType resource, @QueryParam("continuation") String continuation, @QueryParam("mode") PathRenameMode mode, @HeaderParam("Cache-Control") String cacheControl, @HeaderParam("Content-Encoding") String contentEncoding, @HeaderParam("Content-Language") String contentLanguage, @HeaderParam("Content-Disposition") String contentDisposition, @HeaderParam("x-ms-cache-control") String xMsCacheControl, @HeaderParam("x-ms-content-type") String xMsContentType, @HeaderParam("x-ms-content-encoding") String xMsContentEncoding, @HeaderParam("x-ms-content-language") String xMsContentLanguage, @HeaderParam("x-ms-content-disposition") String xMsContentDisposition, @HeaderParam("x-ms-rename-source") String xMsRenameSource, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-source-lease-id") String xMsSourceLeaseId, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("x-ms-permissions") String xMsPermissions, @HeaderParam("x-ms-umask") String xMsUmask, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-source-if-match") String xMsSourceIfMatch, @HeaderParam("x-ms-source-if-none-match") String xMsSourceIfNoneMatch, @HeaderParam("x-ms-source-if-modified-since") String xMsSourceIfModifiedSince, @HeaderParam("x-ms-source-if-unmodified-since") String xMsSourceIfUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono create(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("resource") PathResourceType resource, @QueryParam("continuation") String continuation, @QueryParam("mode") PathRenameMode mode, @HeaderParam("x-ms-rename-source") String renameSource, @HeaderParam("x-ms-source-lease-id") String sourceLeaseId, @HeaderParam("x-ms-properties") String properties, @HeaderParam("x-ms-permissions") String permissions, @HeaderParam("x-ms-umask") String umask, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-cache-control") String cacheControl, @HeaderParam("x-ms-content-encoding") String contentEncoding, @HeaderParam("x-ms-content-language") String contentLanguage, @HeaderParam("x-ms-content-disposition") String contentDisposition, @HeaderParam("x-ms-content-type") String contentType, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("x-ms-source-if-match") String sourceIfMatch, @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, Context context); @Patch("{filesystem}/{path}") @ExpectedResponses({200, 202}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono update(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("action") PathUpdateAction action, @QueryParam("position") Long position, @QueryParam("retainUncommittedData") Boolean retainUncommittedData, @QueryParam("close") Boolean close, @HeaderParam("Content-Length") Long contentLength, @HeaderParam("Content-MD5") String contentMD5, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-cache-control") String xMsCacheControl, @HeaderParam("x-ms-content-type") String xMsContentType, @HeaderParam("x-ms-content-disposition") String xMsContentDisposition, @HeaderParam("x-ms-content-encoding") String xMsContentEncoding, @HeaderParam("x-ms-content-language") String xMsContentLanguage, @HeaderParam("x-ms-content-md5") String xMsContentMd5, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("x-ms-owner") String xMsOwner, @HeaderParam("x-ms-group") String xMsGroup, @HeaderParam("x-ms-permissions") String xMsPermissions, @HeaderParam("x-ms-acl") String xMsAcl, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @BodyParam("application/octet-stream") Flux requestBody, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono update(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("action") PathUpdateAction action, @QueryParam("position") Long position, @QueryParam("retainUncommittedData") Boolean retainUncommittedData, @QueryParam("close") Boolean close, @HeaderParam("Content-Length") Long contentLength, @HeaderParam("x-ms-properties") String properties, @HeaderParam("x-ms-owner") String owner, @HeaderParam("x-ms-group") String group, @HeaderParam("x-ms-permissions") String permissions, @HeaderParam("x-ms-acl") String acl, @BodyParam("application/octet-stream") Flux body, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-content-md5") String contentMd5, @HeaderParam("x-ms-cache-control") String cacheControl, @HeaderParam("x-ms-content-type") String contentType, @HeaderParam("x-ms-content-disposition") String contentDisposition, @HeaderParam("x-ms-content-encoding") String contentEncoding, @HeaderParam("x-ms-content-language") String contentLanguage, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); @Post("{filesystem}/{path}") @ExpectedResponses({200, 201, 202}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono lease(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("x-ms-lease-action") PathLeaseAction xMsLeaseAction, @HeaderParam("x-ms-lease-duration") Integer xMsLeaseDuration, @HeaderParam("x-ms-lease-break-period") Integer xMsLeaseBreakPeriod, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-proposed-lease-id") String xMsProposedLeaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono lease(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @HeaderParam("x-ms-lease-action") PathLeaseAction xMsLeaseAction, @HeaderParam("x-ms-lease-duration") Integer xMsLeaseDuration, @HeaderParam("x-ms-lease-break-period") Integer xMsLeaseBreakPeriod, @HeaderParam("x-ms-proposed-lease-id") String proposedLeaseId, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); @Get("{filesystem}/{path}") @ExpectedResponses({200, 206}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono read(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("Range") String range, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-range-get-content-md5") Boolean xMsRangeGetContentMd5, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono read(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @HeaderParam("Range") String range, @HeaderParam("x-ms-range-get-content-md5") Boolean xMsRangeGetContentMd5, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); @Head("{filesystem}/{path}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono getProperties(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("action") PathGetPropertiesAction action, @QueryParam("upn") Boolean upn, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono getProperties(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("action") PathGetPropertiesAction action, @QueryParam("upn") Boolean upn, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); @Delete("{filesystem}/{path}") @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono delete(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("recursive") Boolean recursive, @QueryParam("continuation") String continuation, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); - } + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono delete(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("recursive") Boolean recursive, @QueryParam("continuation") String continuation, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); - /** - * List Paths - * List filesystem paths and their properties. - * - * @param recursive If "true", all paths are listed; otherwise, only paths at the root of the filesystem are listed. If "directory" is specified, the list will only include paths that share the same root. - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listWithRestResponseAsync(boolean recursive, String filesystem, Context context) { - final String directory = null; - final String continuation = null; - final Integer maxResults = null; - final Boolean upn = null; - final String resource = "filesystem"; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.list(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), directory, recursive, continuation, maxResults, upn, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); - } + @Patch("{filesystem}/{path}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono setAccessControl(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-owner") String owner, @HeaderParam("x-ms-group") String group, @HeaderParam("x-ms-permissions") String permissions, @HeaderParam("x-ms-acl") String acl, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, @QueryParam("action") String action, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); - /** - * List Paths - * List filesystem paths and their properties. - * - * @param recursive If "true", all paths are listed; otherwise, only paths at the root of the filesystem are listed. If "directory" is specified, the list will only include paths that share the same root. - * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. - * @param directory Filters results to paths within the specified directory. An error occurs if the directory does not exist. - * @param continuation The number of paths returned with each invocation is limited. If the number of paths to be returned exceeds this limit, a continuation token is returned in the response header x-ms-continuation. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths. - * @param maxResults An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items. - * @param upn Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned in the owner and group fields of each list entry will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @return a Mono which performs the network request upon subscription. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listWithRestResponseAsync(boolean recursive, String filesystem, String directory, String continuation, Integer maxResults, Boolean upn, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - final String resource = "filesystem"; - return service.list(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), directory, recursive, continuation, maxResults, upn, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + @Patch("{filesystem}/{path}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono flushData(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("timeout") Integer timeout, @QueryParam("position") Long position, @QueryParam("retainUncommittedData") Boolean retainUncommittedData, @QueryParam("close") Boolean close, @HeaderParam("Content-Length") Long contentLength, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, @QueryParam("action") String action, @HeaderParam("x-ms-content-md5") String contentMd5, @HeaderParam("x-ms-cache-control") String cacheControl, @HeaderParam("x-ms-content-type") String contentType, @HeaderParam("x-ms-content-disposition") String contentDisposition, @HeaderParam("x-ms-content-encoding") String contentEncoding, @HeaderParam("x-ms-content-language") String contentLanguage, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, Context context); + + @Patch("{filesystem}/{path}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono appendData(@PathParam("filesystem") String fileSystem, @PathParam("path") String path1, @HostParam("url") String url, @QueryParam("position") Long position, @QueryParam("timeout") Integer timeout, @HeaderParam("Content-Length") Long contentLength, @BodyParam("application/octet-stream") Flux body, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-version") String version, @QueryParam("action") String action, @HeaderParam("Content-MD5") String transactionalContentHash, @HeaderParam("x-ms-lease-id") String leaseId, Context context); } /** * Create File | Create Directory | Rename File | Rename Directory * Create or rename a file or directory. By default, the destination is overwritten and if the destination already exists and has a lease the lease is broken. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). To fail if the destination already exists, use a conditional request with If-None-Match: "*". * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createWithRestResponseAsync(String filesystem, String path, Context context) { + public Mono createWithRestResponseAsync(Context context) { final PathResourceType resource = null; final String continuation = null; final PathRenameMode mode = null; + final String renameSource = null; + final String sourceLeaseId = null; + final String properties = null; + final String permissions = null; + final String umask = null; + final String requestId = null; + final Integer timeout = null; final String cacheControl = null; final String contentEncoding = null; final String contentLanguage = null; final String contentDisposition = null; - final String xMsCacheControl = null; - final String xMsContentType = null; - final String xMsContentEncoding = null; - final String xMsContentLanguage = null; - final String xMsContentDisposition = null; - final String xMsRenameSource = null; - final String xMsLeaseId = null; - final String xMsSourceLeaseId = null; - final String xMsProperties = null; - final String xMsPermissions = null; - final String xMsUmask = null; + final String contentType = null; + final String leaseId = null; final String ifMatch = null; final String ifNoneMatch = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String xMsSourceIfMatch = null; - final String xMsSourceIfNoneMatch = null; - final String xMsSourceIfModifiedSince = null; - final String xMsSourceIfUnmodifiedSince = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.create(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), resource, continuation, mode, cacheControl, contentEncoding, contentLanguage, contentDisposition, xMsCacheControl, xMsContentType, xMsContentEncoding, xMsContentLanguage, xMsContentDisposition, xMsRenameSource, xMsLeaseId, xMsSourceLeaseId, xMsProperties, xMsPermissions, xMsUmask, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsSourceIfMatch, xMsSourceIfNoneMatch, xMsSourceIfModifiedSince, xMsSourceIfUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + final String sourceIfMatch = null; + final String sourceIfNoneMatch = null; + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + DateTimeRfc1123 sourceIfModifiedSinceConverted = null; + DateTimeRfc1123 sourceIfUnmodifiedSinceConverted = null; + return service.create(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), resource, continuation, mode, renameSource, sourceLeaseId, properties, permissions, umask, requestId, timeout, this.client.getVersion(), cacheControl, contentEncoding, contentLanguage, contentDisposition, contentType, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, sourceIfMatch, sourceIfNoneMatch, sourceIfModifiedSinceConverted, sourceIfUnmodifiedSinceConverted, context); } /** * Create File | Create Directory | Rename File | Rename Directory * Create or rename a file or directory. By default, the destination is overwritten and if the destination already exists and has a lease the lease is broken. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). To fail if the destination already exists, use a conditional request with If-None-Match: "*". * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param resource Required only for Create File and Create Directory. The value must be "file" or "directory". Possible values include: 'directory', 'file'. - * @param continuation Optional. When renaming a directory, the number of paths that are renamed with each invocation is limited. If the number of paths to be renamed exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the rename operation to continue renaming the directory. + * @param continuation Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory. * @param mode Optional. Valid only when namespace is enabled. This parameter determines the behavior of the rename operation. The value must be "legacy" or "posix", and the default value will be "posix". Possible values include: 'legacy', 'posix'. - * @param cacheControl Optional. The service stores this value and includes it in the "Cache-Control" response header for "Read File" operations for "Read File" operations. - * @param contentEncoding Optional. Specifies which content encodings have been applied to the file. This value is returned to the client when the "Read File" operation is performed. - * @param contentLanguage Optional. Specifies the natural language used by the intended audience for the file. - * @param contentDisposition Optional. The service stores this value and includes it in the "Content-Disposition" response header for "Read File" operations. - * @param xMsCacheControl Optional. The service stores this value and includes it in the "Cache-Control" response header for "Read File" operations. - * @param xMsContentType Optional. The service stores this value and includes it in the "Content-Type" response header for "Read File" operations. - * @param xMsContentEncoding Optional. The service stores this value and includes it in the "Content-Encoding" response header for "Read File" operations. - * @param xMsContentLanguage Optional. The service stores this value and includes it in the "Content-Language" response header for "Read File" operations. - * @param xMsContentDisposition Optional. The service stores this value and includes it in the "Content-Disposition" response header for "Read File" operations. - * @param xMsRenameSource An optional file or directory to be renamed. The value must have the following format: "/{filesystem}/{path}". If "x-ms-properties" is specified, the properties will overwrite the existing properties; otherwise, the existing properties will be preserved. This value must be a URL percent-encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. - * @param xMsLeaseId Optional. A lease ID for the path specified in the URI. The path to be overwritten must have an active lease and the lease ID must match. - * @param xMsSourceLeaseId Optional for rename operations. A lease ID for the source path. The source path must have an active lease and the lease ID must match. - * @param xMsProperties Optional. User-defined properties to be stored with the file or directory, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. - * @param xMsPermissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. - * @param xMsUmask Optional and only valid if Hierarchical Namespace is enabled for the account. When creating a file or directory and the parent folder does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p & ^u, where p is the permission and u is the umask. For example, if p is 0777 and u is 0057, then the resulting permission is 0720. The default permission is 0777 for a directory and 0666 for a file. The default umask is 0027. The umask must be specified in 4-digit octal notation (e.g. 0766). - * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. - * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsSourceIfMatch Optional. An ETag value. Specify this header to perform the rename operation only if the source's ETag matches the value specified. The ETag must be specified in quotes. - * @param xMsSourceIfNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the rename operation only if the source's ETag does not match the value specified. The ETag must be specified in quotes. - * @param xMsSourceIfModifiedSince Optional. A date and time value. Specify this header to perform the rename operation only if the source has been modified since the specified date and time. - * @param xMsSourceIfUnmodifiedSince Optional. A date and time value. Specify this header to perform the rename operation only if the source has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param renameSource An optional file or directory to be renamed. The value must have the following format: "/{filesystem}/{path}". If "x-ms-properties" is specified, the properties will overwrite the existing properties; otherwise, the existing properties will be preserved. This value must be a URL percent-encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. + * @param sourceLeaseId A lease ID for the source path. If specified, the source path must have an active lease and the leaase ID must match. + * @param properties Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. + * @param permissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + * @param umask Optional and only valid if Hierarchical Namespace is enabled for the account. When creating a file or directory and the parent folder does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p bitwise and not u, where p is the permission and u is the umask. For example, if p is 0777 and u is 0057, then the resulting permission is 0720. The default permission is 0777 for a directory and 0666 for a file. The default umask is 0027. The umask must be specified in 4-digit octal notation (e.g. 0766). + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param pathHttpHeaders Additional parameters for the operation. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. + * @param sourceModifiedAccessConditions Additional parameters for the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createWithRestResponseAsync(String filesystem, String path, PathResourceType resource, String continuation, PathRenameMode mode, String cacheControl, String contentEncoding, String contentLanguage, String contentDisposition, String xMsCacheControl, String xMsContentType, String xMsContentEncoding, String xMsContentLanguage, String xMsContentDisposition, String xMsRenameSource, String xMsLeaseId, String xMsSourceLeaseId, String xMsProperties, String xMsPermissions, String xMsUmask, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsSourceIfMatch, String xMsSourceIfNoneMatch, String xMsSourceIfModifiedSince, String xMsSourceIfUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - return service.create(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), resource, continuation, mode, cacheControl, contentEncoding, contentLanguage, contentDisposition, xMsCacheControl, xMsContentType, xMsContentEncoding, xMsContentLanguage, xMsContentDisposition, xMsRenameSource, xMsLeaseId, xMsSourceLeaseId, xMsProperties, xMsPermissions, xMsUmask, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsSourceIfMatch, xMsSourceIfNoneMatch, xMsSourceIfModifiedSince, xMsSourceIfUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + public Mono createWithRestResponseAsync(PathResourceType resource, String continuation, PathRenameMode mode, String renameSource, String sourceLeaseId, String properties, String permissions, String umask, String requestId, Integer timeout, PathHttpHeaders pathHttpHeaders, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, SourceModifiedAccessConditions sourceModifiedAccessConditions, Context context) { + String cacheControl = null; + if (pathHttpHeaders != null) { + cacheControl = pathHttpHeaders.getCacheControl(); + } + String contentEncoding = null; + if (pathHttpHeaders != null) { + contentEncoding = pathHttpHeaders.getContentEncoding(); + } + String contentLanguage = null; + if (pathHttpHeaders != null) { + contentLanguage = pathHttpHeaders.getContentLanguage(); + } + String contentDisposition = null; + if (pathHttpHeaders != null) { + contentDisposition = pathHttpHeaders.getContentDisposition(); + } + String contentType = null; + if (pathHttpHeaders != null) { + contentType = pathHttpHeaders.getContentType(); + } + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + String sourceIfMatch = null; + if (sourceModifiedAccessConditions != null) { + sourceIfMatch = sourceModifiedAccessConditions.getSourceIfMatch(); + } + String sourceIfNoneMatch = null; + if (sourceModifiedAccessConditions != null) { + sourceIfNoneMatch = sourceModifiedAccessConditions.getSourceIfNoneMatch(); + } + OffsetDateTime sourceIfModifiedSince = null; + if (sourceModifiedAccessConditions != null) { + sourceIfModifiedSince = sourceModifiedAccessConditions.getSourceIfModifiedSince(); + } + OffsetDateTime sourceIfUnmodifiedSince = null; + if (sourceModifiedAccessConditions != null) { + sourceIfUnmodifiedSince = sourceModifiedAccessConditions.getSourceIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + DateTimeRfc1123 sourceIfModifiedSinceConverted = sourceIfModifiedSince == null ? null : new DateTimeRfc1123(sourceIfModifiedSince); + DateTimeRfc1123 sourceIfUnmodifiedSinceConverted = sourceIfUnmodifiedSince == null ? null : new DateTimeRfc1123(sourceIfUnmodifiedSince); + return service.create(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), resource, continuation, mode, renameSource, sourceLeaseId, properties, permissions, umask, requestId, timeout, this.client.getVersion(), cacheControl, contentEncoding, contentLanguage, contentDisposition, contentType, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, sourceIfMatch, sourceIfNoneMatch, sourceIfModifiedSinceConverted, sourceIfUnmodifiedSinceConverted, context); } /** @@ -247,40 +256,36 @@ public Mono createWithRestResponseAsync(String filesystem, * Uploads data to be appended to a file, flushes (writes) previously uploaded data to a file, sets properties for a file or directory, or sets access control for a file or directory. Data can only be appended to a file. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * * @param action The action must be "append" to upload data to be appended to a file, "flush" to flush previously uploaded data to a file, "setProperties" to set the properties of a file or directory, or "setAccessControl" to set the owner, group, permissions, or access control list for a file or directory. Note that Hierarchical Namespace must be enabled for the account in order to use access control. Also note that the Access Control List (ACL) includes permissions for the owner, owning group, and others, so the x-ms-permissions and x-ms-acl request headers are mutually exclusive. Possible values include: 'append', 'flush', 'setProperties', 'setAccessControl'. - * @param filesystem The filesystem identifier. - * @param path The file or directory path. + * @param body Initial data. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateWithRestResponseAsync(PathUpdateAction action, String filesystem, String path, Context context) { + public Mono updateWithRestResponseAsync(PathUpdateAction action, Flux body, Context context) { final Long position = null; final Boolean retainUncommittedData = null; final Boolean close = null; final Long contentLength = null; - final String contentMD5 = null; - final String xMsLeaseId = null; - final String xMsCacheControl = null; - final String xMsContentType = null; - final String xMsContentDisposition = null; - final String xMsContentEncoding = null; - final String xMsContentLanguage = null; - final String xMsContentMd5 = null; - final String xMsProperties = null; - final String xMsOwner = null; - final String xMsGroup = null; - final String xMsPermissions = null; - final String xMsAcl = null; + final String properties = null; + final String owner = null; + final String group = null; + final String permissions = null; + final String acl = null; + final String requestId = null; + final Integer timeout = null; + final String cacheControl = null; + final String contentType = null; + final String contentDisposition = null; + final String contentEncoding = null; + final String contentLanguage = null; + final String leaseId = null; final String ifMatch = null; final String ifNoneMatch = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final Flux requestBody = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.update(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, position, retainUncommittedData, close, contentLength, contentMD5, xMsLeaseId, xMsCacheControl, xMsContentType, xMsContentDisposition, xMsContentEncoding, xMsContentLanguage, xMsContentMd5, xMsProperties, xMsOwner, xMsGroup, xMsPermissions, xMsAcl, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, requestBody, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + String contentMd5Converted = null; + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.update(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), action, position, retainUncommittedData, close, contentLength, properties, owner, group, permissions, acl, body, requestId, timeout, this.client.getVersion(), contentMd5Converted, cacheControl, contentType, contentDisposition, contentEncoding, contentLanguage, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** @@ -288,40 +293,75 @@ public Mono updateWithRestResponseAsync(PathUpdateAction ac * Uploads data to be appended to a file, flushes (writes) previously uploaded data to a file, sets properties for a file or directory, or sets access control for a file or directory. Data can only be appended to a file. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * * @param action The action must be "append" to upload data to be appended to a file, "flush" to flush previously uploaded data to a file, "setProperties" to set the properties of a file or directory, or "setAccessControl" to set the owner, group, permissions, or access control list for a file or directory. Note that Hierarchical Namespace must be enabled for the account in order to use access control. Also note that the Access Control List (ACL) includes permissions for the owner, owning group, and others, so the x-ms-permissions and x-ms-acl request headers are mutually exclusive. Possible values include: 'append', 'flush', 'setProperties', 'setAccessControl'. - * @param filesystem The filesystem identifier. - * @param path The file or directory path. + * @param body Initial data. * @param position This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request. * @param retainUncommittedData Valid only for flush operations. If "true", uncommitted data is retained after the flush operation completes; otherwise, the uncommitted data is deleted after the flush operation. The default is false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional parameter allows data after the flush position to be retained for a future flush operation. * @param close Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close of a file stream. The close query parameter is valid only when the action is "flush" and change notifications are enabled. If the value of close is "true" and the flush operation completes successfully, the service raises a file change notification with a property indicating that this is the final update (the file stream has been closed). If "false" a change notification is raised indicating the file has changed. The default is false. This query parameter is set to true by the Hadoop ABFS driver to indicate that the file stream has been closed.". * @param contentLength Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes for "Append Data". - * @param contentMD5 Optional. An MD5 hash of the request content. This header is valid on "Append" and "Flush" operations. This hash is used to verify the integrity of the request content during transport. When this header is specified, the storage service compares the hash of the content that has arrived with this header value. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). Note that this MD5 hash is not stored with the file. This header is associated with the request content, and not with the stored content of the file itself. - * @param xMsLeaseId The lease ID must be specified if there is an active lease. - * @param xMsCacheControl Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Cache-Control" response header for "Read File" operations. - * @param xMsContentType Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Type" response header for "Read File" operations. - * @param xMsContentDisposition Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Disposition" response header for "Read File" operations. - * @param xMsContentEncoding Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Encoding" response header for "Read File" operations. - * @param xMsContentLanguage Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Language" response header for "Read File" operations. - * @param xMsContentMd5 Optional and only valid for "Flush & Set Properties" operations. The service stores this value and includes it in the "Content-Md5" response header for "Read & Get Properties" operations. If this property is not specified on the request, then the property will be cleared for the file. Subsequent calls to "Read & Get Properties" will not return this property unless it is explicitly set on that file again. - * @param xMsProperties Optional. User-defined properties to be stored with the file or directory, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. Valid only for the setProperties operation. If the file or directory exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. - * @param xMsOwner Optional and valid only for the setAccessControl operation. Sets the owner of the file or directory. - * @param xMsGroup Optional and valid only for the setAccessControl operation. Sets the owning group of the file or directory. - * @param xMsPermissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. Invalid in conjunction with x-ms-acl. - * @param xMsAcl Optional and valid only for the setAccessControl operation. Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries that fully replaces the existing access control list (ACL). Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format "[scope:][type]:[id]:[permissions]". The scope must be "default" to indicate the ACE belongs to the default ACL for a directory; otherwise scope is implicit and the ACE belongs to the access ACL. There are four ACE types: "user" grants rights to the owner or a named user, "group" grants rights to the owning group or a named group, "mask" restricts rights granted to named users and the members of groups, and "other" grants rights to all users not found in any of the other entries. The user or group identifier is omitted for entries of type "mask" and "other". The user or group identifier is also omitted for the owner and owning group. The permission field is a 3-character sequence where the first character is 'r' to grant read access, the second character is 'w' to grant write access, and the third character is 'x' to grant execute permission. If access is not granted, the '-' character is used to denote that the permission is denied. For example, the following ACL grants read, write, and execute rights to the file owner and john.doe@contoso, the read right to the owning group, and nothing to everyone else: "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx". Invalid in conjunction with x-ms-permissions. - * @param ifMatch Optional for Flush Data and Set Properties, but invalid for Append Data. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. - * @param ifNoneMatch Optional for Flush Data and Set Properties, but invalid for Append Data. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. - * @param ifModifiedSince Optional for Flush Data and Set Properties, but invalid for Append Data. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional for Flush Data and Set Properties, but invalid for Append Data. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param requestBody Valid only for append operations. The data to be uploaded and appended to the file. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param properties Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. + * @param owner Optional. The owner of the blob or directory. + * @param group Optional. The owning group of the blob or directory. + * @param permissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + * @param acl Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries. Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format "[scope:][type]:[id]:[permissions]". + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param pathHttpHeaders Additional parameters for the operation. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateWithRestResponseAsync(PathUpdateAction action, String filesystem, String path, Long position, Boolean retainUncommittedData, Boolean close, Long contentLength, String contentMD5, String xMsLeaseId, String xMsCacheControl, String xMsContentType, String xMsContentDisposition, String xMsContentEncoding, String xMsContentLanguage, String xMsContentMd5, String xMsProperties, String xMsOwner, String xMsGroup, String xMsPermissions, String xMsAcl, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, Flux requestBody, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - return service.update(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, position, retainUncommittedData, close, contentLength, contentMD5, xMsLeaseId, xMsCacheControl, xMsContentType, xMsContentDisposition, xMsContentEncoding, xMsContentLanguage, xMsContentMd5, xMsProperties, xMsOwner, xMsGroup, xMsPermissions, xMsAcl, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, requestBody, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + public Mono updateWithRestResponseAsync(PathUpdateAction action, Flux body, Long position, Boolean retainUncommittedData, Boolean close, Long contentLength, String properties, String owner, String group, String permissions, String acl, String requestId, Integer timeout, PathHttpHeaders pathHttpHeaders, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + byte[] contentMd5 = null; + if (pathHttpHeaders != null) { + contentMd5 = pathHttpHeaders.getContentMd5(); + } + String cacheControl = null; + if (pathHttpHeaders != null) { + cacheControl = pathHttpHeaders.getCacheControl(); + } + String contentType = null; + if (pathHttpHeaders != null) { + contentType = pathHttpHeaders.getContentType(); + } + String contentDisposition = null; + if (pathHttpHeaders != null) { + contentDisposition = pathHttpHeaders.getContentDisposition(); + } + String contentEncoding = null; + if (pathHttpHeaders != null) { + contentEncoding = pathHttpHeaders.getContentEncoding(); + } + String contentLanguage = null; + if (pathHttpHeaders != null) { + contentLanguage = pathHttpHeaders.getContentLanguage(); + } + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + String contentMd5Converted = Base64Util.encodeToString(contentMd5); + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.update(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), action, position, retainUncommittedData, close, contentLength, properties, owner, group, permissions, acl, body, requestId, timeout, this.client.getVersion(), contentMd5Converted, cacheControl, contentType, contentDisposition, contentEncoding, contentLanguage, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** @@ -329,26 +369,23 @@ public Mono updateWithRestResponseAsync(PathUpdateAction ac * Create and manage a lease to restrict write and delete access to the path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * * @param xMsLeaseAction There are five lease actions: "acquire", "break", "change", "renew", and "release". Use "acquire" and specify the "x-ms-proposed-lease-id" and "x-ms-lease-duration" to acquire a new lease. Use "break" to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease operation except break and release can be performed on the file. When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. Use "change" and specify the current lease ID in "x-ms-lease-id" and the new lease ID in "x-ms-proposed-lease-id" to change the lease ID of an active lease. Use "renew" and specify the "x-ms-lease-id" to renew an existing lease. Use "release" and specify the "x-ms-lease-id" to release a lease. Possible values include: 'acquire', 'break', 'change', 'renew', 'release'. - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLeaseAction, String filesystem, String path, Context context) { + public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLeaseAction, Context context) { final Integer xMsLeaseDuration = null; final Integer xMsLeaseBreakPeriod = null; - final String xMsLeaseId = null; - final String xMsProposedLeaseId = null; + final String proposedLeaseId = null; + final String requestId = null; + final Integer timeout = null; + final String leaseId = null; final String ifMatch = null; final String ifNoneMatch = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.lease(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), xMsLeaseAction, xMsLeaseDuration, xMsLeaseBreakPeriod, xMsLeaseId, xMsProposedLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.lease(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), xMsLeaseAction, xMsLeaseDuration, xMsLeaseBreakPeriod, proposedLeaseId, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** @@ -356,175 +393,445 @@ public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLe * Create and manage a lease to restrict write and delete access to the path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * * @param xMsLeaseAction There are five lease actions: "acquire", "break", "change", "renew", and "release". Use "acquire" and specify the "x-ms-proposed-lease-id" and "x-ms-lease-duration" to acquire a new lease. Use "break" to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease operation except break and release can be performed on the file. When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. Use "change" and specify the current lease ID in "x-ms-lease-id" and the new lease ID in "x-ms-proposed-lease-id" to change the lease ID of an active lease. Use "renew" and specify the "x-ms-lease-id" to renew an existing lease. Use "release" and specify the "x-ms-lease-id" to release a lease. Possible values include: 'acquire', 'break', 'change', 'renew', 'release'. - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param xMsLeaseDuration The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease. * @param xMsLeaseBreakPeriod The lease break period duration is optional to break a lease, and specifies the break period of the lease in seconds. The lease break duration must be between 0 and 60 seconds. - * @param xMsLeaseId Required when "x-ms-lease-action" is "renew", "change" or "release". For the renew and release actions, this must match the current lease ID. - * @param xMsProposedLeaseId Required when "x-ms-lease-action" is "acquire" or "change". A lease will be acquired with this lease ID if the operation is successful. - * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. - * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param proposedLeaseId Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLeaseAction, String filesystem, String path, Integer xMsLeaseDuration, Integer xMsLeaseBreakPeriod, String xMsLeaseId, String xMsProposedLeaseId, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - return service.lease(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), xMsLeaseAction, xMsLeaseDuration, xMsLeaseBreakPeriod, xMsLeaseId, xMsProposedLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLeaseAction, Integer xMsLeaseDuration, Integer xMsLeaseBreakPeriod, String proposedLeaseId, String requestId, Integer timeout, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.lease(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), xMsLeaseAction, xMsLeaseDuration, xMsLeaseBreakPeriod, proposedLeaseId, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** * Read File * Read the contents of a file. For read operations, range requests are supported. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono readWithRestResponseAsync(String filesystem, String path, Context context) { + public Mono readWithRestResponseAsync(Context context) { final String range = null; - final String xMsLeaseId = null; final Boolean xMsRangeGetContentMd5 = null; + final String requestId = null; + final Integer timeout = null; + final String leaseId = null; final String ifMatch = null; final String ifNoneMatch = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.read(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), range, xMsLeaseId, xMsRangeGetContentMd5, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.read(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), range, xMsRangeGetContentMd5, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** * Read File * Read the contents of a file. For read operations, range requests are supported. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param range The HTTP Range request header specifies one or more byte ranges of the resource to be retrieved. - * @param xMsLeaseId Optional. If this header is specified, the operation will be performed only if both of the following conditions are met: i) the path's lease is currently active and ii) the lease ID specified in the request matches that of the path. * @param xMsRangeGetContentMd5 Optional. When this header is set to "true" and specified together with the Range header, the service returns the MD5 hash for the range, as long as the range is less than or equal to 4MB in size. If this header is specified without the Range header, the service returns status code 400 (Bad Request). If this header is set to true when the range exceeds 4 MB in size, the service returns status code 400 (Bad Request). - * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. - * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono readWithRestResponseAsync(String filesystem, String path, String range, String xMsLeaseId, Boolean xMsRangeGetContentMd5, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - return service.read(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), range, xMsLeaseId, xMsRangeGetContentMd5, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + public Mono readWithRestResponseAsync(String range, Boolean xMsRangeGetContentMd5, String requestId, Integer timeout, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.read(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), range, xMsRangeGetContentMd5, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** * Get Properties | Get Status | Get Access Control List * Get Properties returns all system and user defined properties for a path. Get Status returns all system defined properties for a path. Get Access Control List returns the access control list for a path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getPropertiesWithRestResponseAsync(String filesystem, String path, Context context) { + public Mono getPropertiesWithRestResponseAsync(Context context) { final PathGetPropertiesAction action = null; final Boolean upn = null; - final String xMsLeaseId = null; + final String requestId = null; + final Integer timeout = null; + final String leaseId = null; final String ifMatch = null; final String ifNoneMatch = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.getProperties(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, upn, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.getProperties(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), action, upn, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** * Get Properties | Get Status | Get Access Control List * Get Properties returns all system and user defined properties for a path. Get Status returns all system defined properties for a path. Get Access Control List returns the access control list for a path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param action Optional. If the value is "getStatus" only the system defined properties for the path are returned. If the value is "getAccessControl" the access control list is returned in the response headers (Hierarchical Namespace must be enabled for the account), otherwise the properties are returned. Possible values include: 'getAccessControl', 'getStatus'. * @param upn Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names. - * @param xMsLeaseId Optional. If this header is specified, the operation will be performed only if both of the following conditions are met: i) the path's lease is currently active and ii) the lease ID specified in the request matches that of the path. - * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. - * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getPropertiesWithRestResponseAsync(String filesystem, String path, PathGetPropertiesAction action, Boolean upn, String xMsLeaseId, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - return service.getProperties(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, upn, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + public Mono getPropertiesWithRestResponseAsync(PathGetPropertiesAction action, Boolean upn, String requestId, Integer timeout, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.getProperties(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), action, upn, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** * Delete File | Delete Directory * Delete the file or directory. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteWithRestResponseAsync(String filesystem, String path, Context context) { + public Mono deleteWithRestResponseAsync(Context context) { final Boolean recursive = null; final String continuation = null; - final String xMsLeaseId = null; + final String requestId = null; + final Integer timeout = null; + final String leaseId = null; final String ifMatch = null; final String ifNoneMatch = null; - final String ifModifiedSince = null; - final String ifUnmodifiedSince = null; - final String xMsClientRequestId = null; - final Integer timeout = null; - final String xMsDate = null; - return service.delete(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), recursive, continuation, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.delete(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), recursive, continuation, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); } /** * Delete File | Delete Directory * Delete the file or directory. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). * - * @param filesystem The filesystem identifier. - * @param path The file or directory path. - * @param recursive Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted. If "false" and the directory is non-empty, an error occurs. + * @param recursive Required. * @param continuation Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory. - * @param xMsLeaseId The lease ID must be specified if there is an active lease. - * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. - * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. - * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. - * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. - * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. - * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. - * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(Boolean recursive, String continuation, String requestId, Integer timeout, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.delete(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), recursive, continuation, requestId, timeout, this.client.getVersion(), leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Set the owner, group, permissions, or access control list for a path. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setAccessControlWithRestResponseAsync(Context context) { + final Integer timeout = null; + final String owner = null; + final String group = null; + final String permissions = null; + final String acl = null; + final String requestId = null; + final String action = "setAccessControl"; + final String leaseId = null; + final String ifMatch = null; + final String ifNoneMatch = null; + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.setAccessControl(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), timeout, owner, group, permissions, acl, requestId, this.client.getVersion(), action, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Set the owner, group, permissions, or access control list for a path. + * + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param owner Optional. The owner of the blob or directory. + * @param group Optional. The owning group of the blob or directory. + * @param permissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + * @param acl Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries. Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format "[scope:][type]:[id]:[permissions]". + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setAccessControlWithRestResponseAsync(Integer timeout, String owner, String group, String permissions, String acl, String requestId, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + final String action = "setAccessControl"; + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.setAccessControl(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), timeout, owner, group, permissions, acl, requestId, this.client.getVersion(), action, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Set the owner, group, permissions, or access control list for a path. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono flushDataWithRestResponseAsync(Context context) { + final Integer timeout = null; + final Long position = null; + final Boolean retainUncommittedData = null; + final Boolean close = null; + final Long contentLength = null; + final String requestId = null; + final String action = "flush"; + final String cacheControl = null; + final String contentType = null; + final String contentDisposition = null; + final String contentEncoding = null; + final String contentLanguage = null; + final String leaseId = null; + final String ifMatch = null; + final String ifNoneMatch = null; + String contentMd5Converted = null; + DateTimeRfc1123 ifModifiedSinceConverted = null; + DateTimeRfc1123 ifUnmodifiedSinceConverted = null; + return service.flushData(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), timeout, position, retainUncommittedData, close, contentLength, requestId, this.client.getVersion(), action, contentMd5Converted, cacheControl, contentType, contentDisposition, contentEncoding, contentLanguage, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Set the owner, group, permissions, or access control list for a path. + * + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param position This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request. + * @param retainUncommittedData Valid only for flush operations. If "true", uncommitted data is retained after the flush operation completes; otherwise, the uncommitted data is deleted after the flush operation. The default is false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional parameter allows data after the flush position to be retained for a future flush operation. + * @param close Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close of a file stream. The close query parameter is valid only when the action is "flush" and change notifications are enabled. If the value of close is "true" and the flush operation completes successfully, the service raises a file change notification with a property indicating that this is the final update (the file stream has been closed). If "false" a change notification is raised indicating the file has changed. The default is false. This query parameter is set to true by the Hadoop ABFS driver to indicate that the file stream has been closed.". + * @param contentLength Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes for "Append Data". + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param pathHttpHeaders Additional parameters for the operation. + * @param leaseAccessConditions Additional parameters for the operation. + * @param modifiedAccessConditions Additional parameters for the operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono flushDataWithRestResponseAsync(Integer timeout, Long position, Boolean retainUncommittedData, Boolean close, Long contentLength, String requestId, PathHttpHeaders pathHttpHeaders, LeaseAccessConditions leaseAccessConditions, ModifiedAccessConditions modifiedAccessConditions, Context context) { + final String action = "flush"; + byte[] contentMd5 = null; + if (pathHttpHeaders != null) { + contentMd5 = pathHttpHeaders.getContentMd5(); + } + String cacheControl = null; + if (pathHttpHeaders != null) { + cacheControl = pathHttpHeaders.getCacheControl(); + } + String contentType = null; + if (pathHttpHeaders != null) { + contentType = pathHttpHeaders.getContentType(); + } + String contentDisposition = null; + if (pathHttpHeaders != null) { + contentDisposition = pathHttpHeaders.getContentDisposition(); + } + String contentEncoding = null; + if (pathHttpHeaders != null) { + contentEncoding = pathHttpHeaders.getContentEncoding(); + } + String contentLanguage = null; + if (pathHttpHeaders != null) { + contentLanguage = pathHttpHeaders.getContentLanguage(); + } + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String ifMatch = null; + if (modifiedAccessConditions != null) { + ifMatch = modifiedAccessConditions.getIfMatch(); + } + String ifNoneMatch = null; + if (modifiedAccessConditions != null) { + ifNoneMatch = modifiedAccessConditions.getIfNoneMatch(); + } + OffsetDateTime ifModifiedSince = null; + if (modifiedAccessConditions != null) { + ifModifiedSince = modifiedAccessConditions.getIfModifiedSince(); + } + OffsetDateTime ifUnmodifiedSince = null; + if (modifiedAccessConditions != null) { + ifUnmodifiedSince = modifiedAccessConditions.getIfUnmodifiedSince(); + } + String contentMd5Converted = Base64Util.encodeToString(contentMd5); + DateTimeRfc1123 ifModifiedSinceConverted = ifModifiedSince == null ? null : new DateTimeRfc1123(ifModifiedSince); + DateTimeRfc1123 ifUnmodifiedSinceConverted = ifUnmodifiedSince == null ? null : new DateTimeRfc1123(ifUnmodifiedSince); + return service.flushData(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), timeout, position, retainUncommittedData, close, contentLength, requestId, this.client.getVersion(), action, contentMd5Converted, cacheControl, contentType, contentDisposition, contentEncoding, contentLanguage, leaseId, ifMatch, ifNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, context); + } + + /** + * Append data to the file. + * + * @param body Initial data. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono appendDataWithRestResponseAsync(Flux body, Context context) { + final Long position = null; + final Integer timeout = null; + final Long contentLength = null; + final String requestId = null; + final String action = "append"; + final String leaseId = null; + String transactionalContentHashConverted = null; + return service.appendData(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), position, timeout, contentLength, body, requestId, this.client.getVersion(), action, transactionalContentHashConverted, leaseId, context); + } + + /** + * Append data to the file. + * + * @param body Initial data. + * @param position This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param contentLength Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes for "Append Data". + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param pathHttpHeaders Additional parameters for the operation. + * @param leaseAccessConditions Additional parameters for the operation. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono deleteWithRestResponseAsync(String filesystem, String path, Boolean recursive, String continuation, String xMsLeaseId, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { - return service.delete(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), recursive, continuation, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + public Mono appendDataWithRestResponseAsync(Flux body, Long position, Integer timeout, Long contentLength, String requestId, PathHttpHeaders pathHttpHeaders, LeaseAccessConditions leaseAccessConditions, Context context) { + final String action = "append"; + byte[] transactionalContentHash = null; + if (pathHttpHeaders != null) { + transactionalContentHash = pathHttpHeaders.getTransactionalContentHash(); + } + String leaseId = null; + if (leaseAccessConditions != null) { + leaseId = leaseAccessConditions.getLeaseId(); + } + String transactionalContentHashConverted = Base64Util.encodeToString(transactionalContentHash); + return service.appendData(this.client.getFileSystem(), this.client.getPath1(), this.client.getUrl(), position, timeout, contentLength, body, requestId, this.client.getVersion(), action, transactionalContentHashConverted, leaseId, context); } } 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 new file mode 100644 index 0000000000000..0ef9d205ffe47 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/ServicesImpl.java @@ -0,0 +1,99 @@ +// 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; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.implementation.RestProxy; +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.implementation.models.ServicesListFileSystemsResponse; +import com.azure.storage.file.datalake.implementation.models.StorageErrorException; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * Services. + */ +public final class ServicesImpl { + /** + * The proxy service used to perform REST calls. + */ + private ServicesService service; + + /** + * The service client containing this operation class. + */ + private DataLakeStorageClientImpl client; + + /** + * Initializes an instance of ServicesImpl. + * + * @param client the instance of the service client containing this operation class. + */ + public ServicesImpl(DataLakeStorageClientImpl client) { + this.service = RestProxy.create(ServicesService.class, client.getHttpPipeline()); + this.client = client; + } + + /** + * The interface defining all the services for + * DataLakeStorageClientServices to be used by the proxy service to perform + * REST calls. + */ + @Host("{url}") + @ServiceInterface(name = "DataLakeStorageClientServices") + private interface ServicesService { + @Get("") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(StorageErrorException.class) + Mono listFileSystems(@HostParam("url") String url, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, Context context); + } + + /** + * List FileSystems + * List filesystems and their properties in given account. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listFileSystemsWithRestResponseAsync(Context context) { + final String resource = "account"; + final String prefix = null; + final String continuation = null; + final Integer maxResults = null; + final String requestId = null; + final Integer timeout = null; + return service.listFileSystems(this.client.getUrl(), resource, prefix, continuation, maxResults, requestId, timeout, this.client.getVersion(), context); + } + + /** + * List FileSystems + * List filesystems and their properties in given account. + * + * @param prefix Filters results to filesystems within the specified prefix. + * @param continuation Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory. + * @param maxResults An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items. + * @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled. + * @param timeout The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting Timeouts for Blob Service Operations.</a>. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listFileSystemsWithRestResponseAsync(String prefix, String continuation, Integer maxResults, String requestId, Integer timeout, Context context) { + final String resource = "account"; + return service.listFileSystems(this.client.getUrl(), resource, prefix, continuation, maxResults, requestId, timeout, this.client.getVersion(), context); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystem.java similarity index 80% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystem.java index 8db976f13efe2..9e36d9e9e4f0d 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystem.java @@ -2,16 +2,16 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** - * The Filesystem model. + * The FileSystem model. */ @Fluent -public final class Filesystem { +public final class FileSystem { /* * The name property. */ @@ -43,9 +43,9 @@ public String getName() { * Set the name property: The name property. * * @param name the name value to set. - * @return the Filesystem object itself. + * @return the FileSystem object itself. */ - public Filesystem setName(String name) { + public FileSystem setName(String name) { this.name = name; return this; } @@ -63,9 +63,9 @@ public String getLastModified() { * Set the lastModified property: The lastModified property. * * @param lastModified the lastModified value to set. - * @return the Filesystem object itself. + * @return the FileSystem object itself. */ - public Filesystem setLastModified(String lastModified) { + public FileSystem setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -83,9 +83,9 @@ public String getETag() { * Set the eTag property: The eTag property. * * @param eTag the eTag value to set. - * @return the Filesystem object itself. + * @return the FileSystem object itself. */ - public Filesystem setETag(String eTag) { + public FileSystem setETag(String eTag) { this.eTag = eTag; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemCreateHeaders.java new file mode 100644 index 0000000000000..7dd6ece78bd63 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemCreateHeaders.java @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for Create operation. + */ +@Fluent +public final class FileSystemCreateHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * An HTTP entity tag associated with the FileSystem. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the filesystem was last modified. Operations on files + * and directories do not affect the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private DateTimeRfc1123 lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String clientRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /* + * A bool string indicates whether the namespace feature is enabled. If + * "true", the namespace is enabled for the filesystem. + */ + @JsonProperty(value = "x-ms-namespace-enabled") + private String namespaceEnabled; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the + * FileSystem. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the + * FileSystem. + * + * @param eTag the eTag value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the filesystem was last + * modified. Operations on files and directories do not affect the last + * modified time. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); + } + + /** + * Set the lastModified property: The data and time the filesystem was last + * modified. Operations on files and directories do not affect the last + * modified time. + * + * @param lastModified the lastModified value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } + return this; + } + + /** + * Get the clientRequestId property: A server-generated UUID recorded in + * the analytics logs for troubleshooting and correlation. + * + * @return the clientRequestId value. + */ + public String getClientRequestId() { + return this.clientRequestId; + } + + /** + * Set the clientRequestId property: A server-generated UUID recorded in + * the analytics logs for troubleshooting and correlation. + * + * @param clientRequestId the clientRequestId value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the namespaceEnabled property: A bool string indicates whether the + * namespace feature is enabled. If "true", the namespace is enabled for + * the filesystem. + * + * @return the namespaceEnabled value. + */ + public String getNamespaceEnabled() { + return this.namespaceEnabled; + } + + /** + * Set the namespaceEnabled property: A bool string indicates whether the + * namespace feature is enabled. If "true", the namespace is enabled for + * the filesystem. + * + * @param namespaceEnabled the namespaceEnabled value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setNamespaceEnabled(String namespaceEnabled) { + this.namespaceEnabled = namespaceEnabled; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the FileSystemCreateHeaders object itself. + */ + public FileSystemCreateHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemDeleteHeaders.java new file mode 100644 index 0000000000000..a10bbda1e5cae --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemDeleteHeaders.java @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for Delete operation. + */ +@Fluent +public final class FileSystemDeleteHeaders { + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the FileSystemDeleteHeaders object itself. + */ + public FileSystemDeleteHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the FileSystemDeleteHeaders object itself. + */ + public FileSystemDeleteHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FileSystemDeleteHeaders object itself. + */ + public FileSystemDeleteHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the FileSystemDeleteHeaders object itself. + */ + public FileSystemDeleteHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemGetPropertiesHeaders.java new file mode 100644 index 0000000000000..bfe4d587d8472 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemGetPropertiesHeaders.java @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for GetProperties operation. + */ +@Fluent +public final class FileSystemGetPropertiesHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * An HTTP entity tag associated with the filesystem. Changes to + * filesystem properties affect the entity tag, but operations on files and + * directories do not. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the filesystem was last modified. Changes to + * filesystem properties update the last modified time, but operations on + * files and directories do not. + */ + @JsonProperty(value = "Last-Modified") + private DateTimeRfc1123 lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /* + * The user-defined properties associated with the filesystem. A + * comma-separated list of name and value pairs in the format "n1=v1, + * n2=v2, ...", where each value is a base64 encoded string. Note that the + * string may only contain ASCII characters in the ISO-8859-1 character + * set. + */ + @JsonProperty(value = "x-ms-properties") + private String properties; + + /* + * A bool string indicates whether the namespace feature is enabled. If + * "true", the namespace is enabled for the filesystem. + */ + @JsonProperty(value = "x-ms-namespace-enabled") + private String namespaceEnabled; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @param eTag the eTag value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); + } + + /** + * Set the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @param lastModified the lastModified value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the properties property: The user-defined properties associated with + * the filesystem. A comma-separated list of name and value pairs in the + * format "n1=v1, n2=v2, ...", where each value is a base64 encoded string. + * Note that the string may only contain ASCII characters in the ISO-8859-1 + * character set. + * + * @return the properties value. + */ + public String getProperties() { + return this.properties; + } + + /** + * Set the properties property: The user-defined properties associated with + * the filesystem. A comma-separated list of name and value pairs in the + * format "n1=v1, n2=v2, ...", where each value is a base64 encoded string. + * Note that the string may only contain ASCII characters in the ISO-8859-1 + * character set. + * + * @param properties the properties value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setProperties(String properties) { + this.properties = properties; + return this; + } + + /** + * Get the namespaceEnabled property: A bool string indicates whether the + * namespace feature is enabled. If "true", the namespace is enabled for + * the filesystem. + * + * @return the namespaceEnabled value. + */ + public String getNamespaceEnabled() { + return this.namespaceEnabled; + } + + /** + * Set the namespaceEnabled property: A bool string indicates whether the + * namespace feature is enabled. If "true", the namespace is enabled for + * the filesystem. + * + * @param namespaceEnabled the namespaceEnabled value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setNamespaceEnabled(String namespaceEnabled) { + this.namespaceEnabled = namespaceEnabled; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the FileSystemGetPropertiesHeaders object itself. + */ + public FileSystemGetPropertiesHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemList.java similarity index 69% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemList.java index 0a178366730b6..4a88e9ad6a391 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemList.java @@ -2,29 +2,29 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** - * The FilesystemList model. + * The FileSystemList model. */ @Fluent -public final class FilesystemList { +public final class FileSystemList { /* * The filesystems property. */ @JsonProperty(value = "filesystems") - private List filesystems; + private List filesystems; /** * Get the filesystems property: The filesystems property. * * @return the filesystems value. */ - public List getFilesystems() { + public List getFilesystems() { return this.filesystems; } @@ -32,9 +32,9 @@ public List getFilesystems() { * Set the filesystems property: The filesystems property. * * @param filesystems the filesystems value to set. - * @return the FilesystemList object itself. + * @return the FileSystemList object itself. */ - public FilesystemList setFilesystems(List filesystems) { + public FileSystemList setFilesystems(List filesystems) { this.filesystems = filesystems; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemListPathsHeaders.java similarity index 54% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemListPathsHeaders.java index 6d1608a5c8dce..c823ee269c11a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemListPathsHeaders.java @@ -2,22 +2,24 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** - * Defines headers for List operation. + * Defines headers for ListPaths operation. */ @Fluent -public final class PathListHeaders { +public final class FileSystemListPathsHeaders { /* * A UTC date/time value generated by the service that indicates the time * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the filesystem. Changes to @@ -33,20 +35,20 @@ public final class PathListHeaders { * files and directories do not. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; /* * If the number of paths to be listed exceeds the maxResults limit, a @@ -56,7 +58,13 @@ public final class PathListHeaders { * paths. */ @JsonProperty(value = "x-ms-continuation") - private String xMsContinuation; + private String continuation; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; /** * Get the dateProperty property: A UTC date/time value generated by the @@ -64,8 +72,11 @@ public final class PathListHeaders { * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -73,10 +84,14 @@ public String getDateProperty() { * service that indicates the time at which the response was initiated. * * @param dateProperty the dateProperty value to set. - * @return the PathListHeaders object itself. - */ - public PathListHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + * @return the FileSystemListPathsHeaders object itself. + */ + public FileSystemListPathsHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -97,9 +112,9 @@ public String getETag() { * operations on files and directories do not. * * @param eTag the eTag value to set. - * @return the PathListHeaders object itself. + * @return the FileSystemListPathsHeaders object itself. */ - public PathListHeaders setETag(String eTag) { + public FileSystemListPathsHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -111,8 +126,11 @@ public PathListHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -121,82 +139,106 @@ public String getLastModified() { * time, but operations on files and directories do not. * * @param lastModified the lastModified value to set. - * @return the PathListHeaders object itself. - */ - public PathListHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + * @return the FileSystemListPathsHeaders object itself. + */ + public FileSystemListPathsHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. - * @return the PathListHeaders object itself. + * @param requestId the requestId value to set. + * @return the FileSystemListPathsHeaders object itself. */ - public PathListHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public FileSystemListPathsHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. - * @return the PathListHeaders object itself. + * @param version the version value to set. + * @return the FileSystemListPathsHeaders object itself. */ - public PathListHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public FileSystemListPathsHeaders setVersion(String version) { + this.version = version; return this; } /** - * Get the xMsContinuation property: If the number of paths to be listed + * Get the continuation property: If the number of paths to be listed * exceeds the maxResults limit, a continuation token is returned in this * response header. When a continuation token is returned in the response, * it must be specified in a subsequent invocation of the list operation to * continue listing the paths. * - * @return the xMsContinuation value. + * @return the continuation value. */ - public String getXMsContinuation() { - return this.xMsContinuation; + public String getContinuation() { + return this.continuation; } /** - * Set the xMsContinuation property: If the number of paths to be listed + * Set the continuation property: If the number of paths to be listed * exceeds the maxResults limit, a continuation token is returned in this * response header. When a continuation token is returned in the response, * it must be specified in a subsequent invocation of the list operation to * continue listing the paths. * - * @param xMsContinuation the xMsContinuation value to set. - * @return the PathListHeaders object itself. + * @param continuation the continuation value to set. + * @return the FileSystemListPathsHeaders object itself. + */ + public FileSystemListPathsHeaders setContinuation(String continuation) { + this.continuation = continuation; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the FileSystemListPathsHeaders object itself. */ - public PathListHeaders setXMsContinuation(String xMsContinuation) { - this.xMsContinuation = xMsContinuation; + public FileSystemListPathsHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; return this; } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemSetPropertiesHeaders.java similarity index 52% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemSetPropertiesHeaders.java index 7cefffede86f8..c27052825298c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemSetPropertiesHeaders.java @@ -2,22 +2,24 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Defines headers for SetProperties operation. */ @Fluent -public final class FilesystemSetPropertiesHeaders { +public final class FileSystemSetPropertiesHeaders { /* * A UTC date/time value generated by the service that indicates the time * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the filesystem. Changes to @@ -33,20 +35,26 @@ public final class FilesystemSetPropertiesHeaders { * files and directories do not. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; /** * Get the dateProperty property: A UTC date/time value generated by the @@ -54,8 +62,11 @@ public final class FilesystemSetPropertiesHeaders { * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -63,10 +74,14 @@ public String getDateProperty() { * service that indicates the time at which the response was initiated. * * @param dateProperty the dateProperty value to set. - * @return the FilesystemSetPropertiesHeaders object itself. + * @return the FileSystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + public FileSystemSetPropertiesHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -87,9 +102,9 @@ public String getETag() { * operations on files and directories do not. * * @param eTag the eTag value to set. - * @return the FilesystemSetPropertiesHeaders object itself. + * @return the FileSystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders setETag(String eTag) { + public FileSystemSetPropertiesHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -101,8 +116,11 @@ public FilesystemSetPropertiesHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -111,54 +129,78 @@ public String getLastModified() { * time, but operations on files and directories do not. * * @param lastModified the lastModified value to set. - * @return the FilesystemSetPropertiesHeaders object itself. + * @return the FileSystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + public FileSystemSetPropertiesHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. - * @return the FilesystemSetPropertiesHeaders object itself. + * @param requestId the requestId value to set. + * @return the FileSystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public FileSystemSetPropertiesHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. - * @return the FilesystemSetPropertiesHeaders object itself. + * @param version the version value to set. + * @return the FileSystemSetPropertiesHeaders object itself. + */ + public FileSystemSetPropertiesHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the FileSystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public FileSystemSetPropertiesHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; return this; } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsCreateResponse.java similarity index 64% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsCreateResponse.java index 2bb9ff6a94532..49eb85a1abc77 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsCreateResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; @@ -11,17 +11,17 @@ /** * Contains all response data for the create operation. */ -public final class FilesystemsCreateResponse extends ResponseBase { +public final class FileSystemsCreateResponse extends ResponseBase { /** - * Creates an instance of FilesystemsCreateResponse. + * Creates an instance of FileSystemsCreateResponse. * - * @param request the request which resulted in this FilesystemsCreateResponse. + * @param request the request which resulted in this FileSystemsCreateResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public FilesystemsCreateResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemCreateHeaders headers) { + public FileSystemsCreateResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FileSystemCreateHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsDeleteResponse.java similarity index 64% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsDeleteResponse.java index 09ca6bc474fbd..4b04680c3df7a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsDeleteResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; @@ -11,17 +11,17 @@ /** * Contains all response data for the delete operation. */ -public final class FilesystemsDeleteResponse extends ResponseBase { +public final class FileSystemsDeleteResponse extends ResponseBase { /** - * Creates an instance of FilesystemsDeleteResponse. + * Creates an instance of FileSystemsDeleteResponse. * - * @param request the request which resulted in this FilesystemsDeleteResponse. + * @param request the request which resulted in this FileSystemsDeleteResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public FilesystemsDeleteResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemDeleteHeaders headers) { + public FileSystemsDeleteResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FileSystemDeleteHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsGetPropertiesResponse.java similarity index 64% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsGetPropertiesResponse.java index daee39a896be2..00dab602ec205 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsGetPropertiesResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; @@ -11,17 +11,17 @@ /** * Contains all response data for the getProperties operation. */ -public final class FilesystemsGetPropertiesResponse extends ResponseBase { +public final class FileSystemsGetPropertiesResponse extends ResponseBase { /** - * Creates an instance of FilesystemsGetPropertiesResponse. + * Creates an instance of FileSystemsGetPropertiesResponse. * - * @param request the request which resulted in this FilesystemsGetPropertiesResponse. + * @param request the request which resulted in this FileSystemsGetPropertiesResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public FilesystemsGetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemGetPropertiesHeaders headers) { + public FileSystemsGetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FileSystemGetPropertiesHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsListPathsResponse.java similarity index 59% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsListPathsResponse.java index b61f71e35b5fe..679092e7444fe 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsListPathsResponse.java @@ -2,26 +2,26 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; /** - * Contains all response data for the list operation. + * Contains all response data for the listPaths operation. */ -public final class PathsListResponse extends ResponseBase { +public final class FileSystemsListPathsResponse extends ResponseBase { /** - * Creates an instance of PathsListResponse. + * Creates an instance of FileSystemsListPathsResponse. * - * @param request the request which resulted in this PathsListResponse. + * @param request the request which resulted in this FileSystemsListPathsResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public PathsListResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, PathList value, PathListHeaders headers) { + public FileSystemsListPathsResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, PathList value, FileSystemListPathsHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsSetPropertiesResponse.java similarity index 64% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsSetPropertiesResponse.java index 5d841632e936c..9fe1d097c70c9 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/FileSystemsSetPropertiesResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; @@ -11,17 +11,17 @@ /** * Contains all response data for the setProperties operation. */ -public final class FilesystemsSetPropertiesResponse extends ResponseBase { +public final class FileSystemsSetPropertiesResponse extends ResponseBase { /** - * Creates an instance of FilesystemsSetPropertiesResponse. + * Creates an instance of FileSystemsSetPropertiesResponse. * - * @param request the request which resulted in this FilesystemsSetPropertiesResponse. + * @param request the request which resulted in this FileSystemsSetPropertiesResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public FilesystemsSetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemSetPropertiesHeaders headers) { + public FileSystemsSetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FileSystemSetPropertiesHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/LeaseAccessConditions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/LeaseAccessConditions.java new file mode 100644 index 0000000000000..95a4f57c7e479 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/LeaseAccessConditions.java @@ -0,0 +1,43 @@ +// 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.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for a set of operations. + */ +@Fluent +public final class LeaseAccessConditions { + /* + * If specified, the operation only succeeds if the resource's lease is + * active and matches this ID. + */ + @JsonProperty(value = "") + private String leaseId; + + /** + * Get the leaseId property: If specified, the operation only succeeds if + * the resource's lease is active and matches this ID. + * + * @return the leaseId value. + */ + public String getLeaseId() { + return this.leaseId; + } + + /** + * Set the leaseId property: If specified, the operation only succeeds if + * the resource's lease is active and matches this ID. + * + * @param leaseId the leaseId value to set. + * @return the LeaseAccessConditions object itself. + */ + public LeaseAccessConditions setLeaseId(String leaseId) { + this.leaseId = leaseId; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ModifiedAccessConditions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ModifiedAccessConditions.java new file mode 100644 index 0000000000000..efc06d0dc6409 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ModifiedAccessConditions.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Additional parameters for a set of operations. + */ +@Fluent +public final class ModifiedAccessConditions { + /* + * Specify this header value to operate only on a blob if it has been + * modified since the specified date/time. + */ + @JsonProperty(value = "") + private DateTimeRfc1123 ifModifiedSince; + + /* + * Specify this header value to operate only on a blob if it has not been + * modified since the specified date/time. + */ + @JsonProperty(value = "") + private DateTimeRfc1123 ifUnmodifiedSince; + + /* + * Specify an ETag value to operate only on blobs with a matching value. + */ + @JsonProperty(value = "") + private String ifMatch; + + /* + * Specify an ETag value to operate only on blobs without a matching value. + */ + @JsonProperty(value = "") + private String ifNoneMatch; + + /** + * Get the ifModifiedSince property: Specify this header value to operate + * only on a blob if it has been modified since the specified date/time. + * + * @return the ifModifiedSince value. + */ + public OffsetDateTime getIfModifiedSince() { + if (this.ifModifiedSince == null) { + return null; + } + return this.ifModifiedSince.getDateTime(); + } + + /** + * Set the ifModifiedSince property: Specify this header value to operate + * only on a blob if it has been modified since the specified date/time. + * + * @param ifModifiedSince the ifModifiedSince value to set. + * @return the ModifiedAccessConditions object itself. + */ + public ModifiedAccessConditions setIfModifiedSince(OffsetDateTime ifModifiedSince) { + if (ifModifiedSince == null) { + this.ifModifiedSince = null; + } else { + this.ifModifiedSince = new DateTimeRfc1123(ifModifiedSince); + } + return this; + } + + /** + * Get the ifUnmodifiedSince property: Specify this header value to operate + * only on a blob if it has not been modified since the specified + * date/time. + * + * @return the ifUnmodifiedSince value. + */ + public OffsetDateTime getIfUnmodifiedSince() { + if (this.ifUnmodifiedSince == null) { + return null; + } + return this.ifUnmodifiedSince.getDateTime(); + } + + /** + * Set the ifUnmodifiedSince property: Specify this header value to operate + * only on a blob if it has not been modified since the specified + * date/time. + * + * @param ifUnmodifiedSince the ifUnmodifiedSince value to set. + * @return the ModifiedAccessConditions object itself. + */ + public ModifiedAccessConditions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince) { + if (ifUnmodifiedSince == null) { + this.ifUnmodifiedSince = null; + } else { + this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince); + } + return this; + } + + /** + * Get the ifMatch property: Specify an ETag value to operate only on blobs + * with a matching value. + * + * @return the ifMatch value. + */ + public String getIfMatch() { + return this.ifMatch; + } + + /** + * Set the ifMatch property: Specify an ETag value to operate only on blobs + * with a matching value. + * + * @param ifMatch the ifMatch value to set. + * @return the ModifiedAccessConditions object itself. + */ + public ModifiedAccessConditions setIfMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Get the ifNoneMatch property: Specify an ETag value to operate only on + * blobs without a matching value. + * + * @return the ifNoneMatch value. + */ + public String getIfNoneMatch() { + return this.ifNoneMatch; + } + + /** + * Set the ifNoneMatch property: Specify an ETag value to operate only on + * blobs without a matching value. + * + * @param ifNoneMatch the ifNoneMatch value to set. + * @return the ModifiedAccessConditions object itself. + */ + public ModifiedAccessConditions setIfNoneMatch(String ifNoneMatch) { + this.ifNoneMatch = ifNoneMatch; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java similarity index 98% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java index ab7cd9161da7e..a2701f214818b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/Path.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathAppendDataHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathAppendDataHeaders.java new file mode 100644 index 0000000000000..a63f152c96b1f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathAppendDataHeaders.java @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for AppendData operation. + */ +@Fluent +public final class PathAppendDataHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * If a client request id header is sent in the request, this header will + * be present in the response with the same value. + */ + @JsonProperty(value = "x-ms-client-request-id") + private String clientRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathAppendDataHeaders object itself. + */ + public PathAppendDataHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the PathAppendDataHeaders object itself. + */ + public PathAppendDataHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @return the clientRequestId value. + */ + public String getClientRequestId() { + return this.clientRequestId; + } + + /** + * Set the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @param clientRequestId the clientRequestId value to set. + * @return the PathAppendDataHeaders object itself. + */ + public PathAppendDataHeaders setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the PathAppendDataHeaders object itself. + */ + public PathAppendDataHeaders setVersion(String version) { + this.version = version; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathCreateHeaders.java similarity index 55% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathCreateHeaders.java index 82f0bd4df16ea..c42859bf55b29 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathCreateHeaders.java @@ -2,10 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Defines headers for Create operation. @@ -17,7 +19,7 @@ public final class PathCreateHeaders { * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the file or directory. @@ -30,20 +32,20 @@ public final class PathCreateHeaders { * operations on the file or directory update the last modified time. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; /* * When renaming a directory, the number of paths that are renamed with @@ -54,7 +56,7 @@ public final class PathCreateHeaders { * continue renaming the directory. */ @JsonProperty(value = "x-ms-continuation") - private String xMsContinuation; + private String continuation; /* * The size of the resource in bytes. @@ -62,14 +64,23 @@ public final class PathCreateHeaders { @JsonProperty(value = "Content-Length") private Long contentLength; + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + /** * Get the dateProperty property: A UTC date/time value generated by the * service that indicates the time at which the response was initiated. * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -79,8 +90,12 @@ public String getDateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + public PathCreateHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -113,8 +128,11 @@ public PathCreateHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -125,82 +143,86 @@ public String getLastModified() { * @param lastModified the lastModified value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + public PathCreateHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. + * @param requestId the requestId value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public PathCreateHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. + * @param version the version value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public PathCreateHeaders setVersion(String version) { + this.version = version; return this; } /** - * Get the xMsContinuation property: When renaming a directory, the number - * of paths that are renamed with each invocation is limited. If the - * number of paths to be renamed exceeds this limit, a continuation token - * is returned in this response header. When a continuation token is - * returned in the response, it must be specified in a subsequent - * invocation of the rename operation to continue renaming the directory. + * Get the continuation property: When renaming a directory, the number of + * paths that are renamed with each invocation is limited. If the number + * of paths to be renamed exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned + * in the response, it must be specified in a subsequent invocation of the + * rename operation to continue renaming the directory. * - * @return the xMsContinuation value. + * @return the continuation value. */ - public String getXMsContinuation() { - return this.xMsContinuation; + public String getContinuation() { + return this.continuation; } /** - * Set the xMsContinuation property: When renaming a directory, the number - * of paths that are renamed with each invocation is limited. If the - * number of paths to be renamed exceeds this limit, a continuation token - * is returned in this response header. When a continuation token is - * returned in the response, it must be specified in a subsequent - * invocation of the rename operation to continue renaming the directory. + * Set the continuation property: When renaming a directory, the number of + * paths that are renamed with each invocation is limited. If the number + * of paths to be renamed exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned + * in the response, it must be specified in a subsequent invocation of the + * rename operation to continue renaming the directory. * - * @param xMsContinuation the xMsContinuation value to set. + * @param continuation the continuation value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders setXMsContinuation(String xMsContinuation) { - this.xMsContinuation = xMsContinuation; + public PathCreateHeaders setContinuation(String continuation) { + this.continuation = continuation; return this; } @@ -223,4 +245,24 @@ public PathCreateHeaders setContentLength(Long contentLength) { this.contentLength = contentLength; return this; } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathDeleteHeaders.java new file mode 100644 index 0000000000000..8617684f18c1a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathDeleteHeaders.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for Delete operation. + */ +@Fluent +public final class PathDeleteHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /* + * When deleting a directory, the number of paths that are deleted with + * each invocation is limited. If the number of paths to be deleted + * exceeds this limit, a continuation token is returned in this response + * header. When a continuation token is returned in the response, it must + * be specified in a subsequent invocation of the delete operation to + * continue deleting the directory. + */ + @JsonProperty(value = "x-ms-continuation") + private String continuation; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the continuation property: When deleting a directory, the number of + * paths that are deleted with each invocation is limited. If the number + * of paths to be deleted exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned + * in the response, it must be specified in a subsequent invocation of the + * delete operation to continue deleting the directory. + * + * @return the continuation value. + */ + public String getContinuation() { + return this.continuation; + } + + /** + * Set the continuation property: When deleting a directory, the number of + * paths that are deleted with each invocation is limited. If the number + * of paths to be deleted exceeds this limit, a continuation token is + * returned in this response header. When a continuation token is returned + * in the response, it must be specified in a subsequent invocation of the + * delete operation to continue deleting the directory. + * + * @param continuation the continuation value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders setContinuation(String continuation) { + this.continuation = continuation; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathFlushDataHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathFlushDataHeaders.java new file mode 100644 index 0000000000000..509d4517113aa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathFlushDataHeaders.java @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for FlushData operation. + */ +@Fluent +public final class PathFlushDataHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private DateTimeRfc1123 lastModified; + + /* + * The size of the resource in bytes. + */ + @JsonProperty(value = "Content-Length") + private Long contentLength; + + /* + * If a client request id header is sent in the request, this header will + * be present in the response with the same value. + */ + @JsonProperty(value = "x-ms-client-request-id") + private String clientRequestId; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } + return this; + } + + /** + * Get the contentLength property: The size of the resource in bytes. + * + * @return the contentLength value. + */ + public Long getContentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The size of the resource in bytes. + * + * @param contentLength the contentLength value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setContentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * Get the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @return the clientRequestId value. + */ + public String getClientRequestId() { + return this.clientRequestId; + } + + /** + * Set the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @param clientRequestId the clientRequestId value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the PathFlushDataHeaders object itself. + */ + public PathFlushDataHeaders setVersion(String version) { + this.version = version; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathGetPropertiesAction.java similarity index 95% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathGetPropertiesAction.java index 8e9d28d5e5795..2f5f85cc7a8bd 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathGetPropertiesAction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathGetPropertiesHeaders.java similarity index 69% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathGetPropertiesHeaders.java index 54aa241c4b50b..1f732f9dfc6e0 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathGetPropertiesHeaders.java @@ -2,10 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Defines headers for GetProperties operation. @@ -80,7 +82,7 @@ public final class PathGetPropertiesHeaders { * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the file or directory. @@ -93,27 +95,27 @@ public final class PathGetPropertiesHeaders { * operations on the file or directory update the last modified time. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; /* * The type of the resource. The value may be "file" or "directory". If * not set, the value is "file". */ @JsonProperty(value = "x-ms-resource-type") - private String xMsResourceType; + private String resourceType; /* * The user-defined properties associated with the file or directory, in @@ -123,21 +125,21 @@ public final class PathGetPropertiesHeaders { * set. */ @JsonProperty(value = "x-ms-properties") - private String xMsProperties; + private String properties; /* * The owner of the file or directory. Included in the response if * Hierarchical Namespace is enabled for the account. */ @JsonProperty(value = "x-ms-owner") - private String xMsOwner; + private String owner; /* * The owning group of the file or directory. Included in the response if * Hierarchical Namespace is enabled for the account. */ @JsonProperty(value = "x-ms-group") - private String xMsGroup; + private String group; /* * The POSIX access permissions for the file owner, the file owning group, @@ -145,7 +147,7 @@ public final class PathGetPropertiesHeaders { * enabled for the account. */ @JsonProperty(value = "x-ms-permissions") - private String xMsPermissions; + private String permissions; /* * The POSIX access control list for the file or directory. Included in @@ -153,26 +155,32 @@ public final class PathGetPropertiesHeaders { * Namespace is enabled for the account. */ @JsonProperty(value = "x-ms-acl") - private String xMsAcl; + private String acl; /* * When a resource is leased, specifies whether the lease is of infinite or * fixed duration. */ @JsonProperty(value = "x-ms-lease-duration") - private String xMsLeaseDuration; + private String leaseDuration; /* * Lease state of the resource. */ @JsonProperty(value = "x-ms-lease-state") - private String xMsLeaseState; + private String leaseState; /* * The lease status of the resource. */ @JsonProperty(value = "x-ms-lease-status") - private String xMsLeaseStatus; + private String leaseStatus; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; /** * Get the acceptRanges property: Indicates that the service supports @@ -394,8 +402,11 @@ public PathGetPropertiesHeaders setContentMD5(String contentMD5) { * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -405,8 +416,12 @@ public String getDateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + public PathGetPropertiesHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -439,8 +454,11 @@ public PathGetPropertiesHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -451,260 +469,284 @@ public String getLastModified() { * @param lastModified the lastModified value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + public PathGetPropertiesHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. + * @param requestId the requestId value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public PathGetPropertiesHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. + * @param version the version value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public PathGetPropertiesHeaders setVersion(String version) { + this.version = version; return this; } /** - * Get the xMsResourceType property: The type of the resource. The value - * may be "file" or "directory". If not set, the value is "file". + * Get the resourceType property: The type of the resource. The value may + * be "file" or "directory". If not set, the value is "file". * - * @return the xMsResourceType value. + * @return the resourceType value. */ - public String getXMsResourceType() { - return this.xMsResourceType; + public String getResourceType() { + return this.resourceType; } /** - * Set the xMsResourceType property: The type of the resource. The value - * may be "file" or "directory". If not set, the value is "file". + * Set the resourceType property: The type of the resource. The value may + * be "file" or "directory". If not set, the value is "file". * - * @param xMsResourceType the xMsResourceType value to set. + * @param resourceType the resourceType value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsResourceType(String xMsResourceType) { - this.xMsResourceType = xMsResourceType; + public PathGetPropertiesHeaders setResourceType(String resourceType) { + this.resourceType = resourceType; return this; } /** - * Get the xMsProperties property: The user-defined properties associated - * with the file or directory, in the format of a comma-separated list of - * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * Get the properties property: The user-defined properties associated with + * the file or directory, in the format of a comma-separated list of name + * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 * encoded string. Note that the string may only contain ASCII characters * in the ISO-8859-1 character set. * - * @return the xMsProperties value. + * @return the properties value. */ - public String getXMsProperties() { - return this.xMsProperties; + public String getProperties() { + return this.properties; } /** - * Set the xMsProperties property: The user-defined properties associated - * with the file or directory, in the format of a comma-separated list of - * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * Set the properties property: The user-defined properties associated with + * the file or directory, in the format of a comma-separated list of name + * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 * encoded string. Note that the string may only contain ASCII characters * in the ISO-8859-1 character set. * - * @param xMsProperties the xMsProperties value to set. + * @param properties the properties value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsProperties(String xMsProperties) { - this.xMsProperties = xMsProperties; + public PathGetPropertiesHeaders setProperties(String properties) { + this.properties = properties; return this; } /** - * Get the xMsOwner property: The owner of the file or directory. Included - * in the response if Hierarchical Namespace is enabled for the account. + * Get the owner property: The owner of the file or directory. Included in + * the response if Hierarchical Namespace is enabled for the account. * - * @return the xMsOwner value. + * @return the owner value. */ - public String getXMsOwner() { - return this.xMsOwner; + public String getOwner() { + return this.owner; } /** - * Set the xMsOwner property: The owner of the file or directory. Included - * in the response if Hierarchical Namespace is enabled for the account. + * Set the owner property: The owner of the file or directory. Included in + * the response if Hierarchical Namespace is enabled for the account. * - * @param xMsOwner the xMsOwner value to set. + * @param owner the owner value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsOwner(String xMsOwner) { - this.xMsOwner = xMsOwner; + public PathGetPropertiesHeaders setOwner(String owner) { + this.owner = owner; return this; } /** - * Get the xMsGroup property: The owning group of the file or directory. + * Get the group property: The owning group of the file or directory. * Included in the response if Hierarchical Namespace is enabled for the * account. * - * @return the xMsGroup value. + * @return the group value. */ - public String getXMsGroup() { - return this.xMsGroup; + public String getGroup() { + return this.group; } /** - * Set the xMsGroup property: The owning group of the file or directory. + * Set the group property: The owning group of the file or directory. * Included in the response if Hierarchical Namespace is enabled for the * account. * - * @param xMsGroup the xMsGroup value to set. + * @param group the group value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsGroup(String xMsGroup) { - this.xMsGroup = xMsGroup; + public PathGetPropertiesHeaders setGroup(String group) { + this.group = group; return this; } /** - * Get the xMsPermissions property: The POSIX access permissions for the - * file owner, the file owning group, and others. Included in the response - * if Hierarchical Namespace is enabled for the account. + * Get the permissions property: The POSIX access permissions for the file + * owner, the file owning group, and others. Included in the response if + * Hierarchical Namespace is enabled for the account. * - * @return the xMsPermissions value. + * @return the permissions value. */ - public String getXMsPermissions() { - return this.xMsPermissions; + public String getPermissions() { + return this.permissions; } /** - * Set the xMsPermissions property: The POSIX access permissions for the - * file owner, the file owning group, and others. Included in the response - * if Hierarchical Namespace is enabled for the account. + * Set the permissions property: The POSIX access permissions for the file + * owner, the file owning group, and others. Included in the response if + * Hierarchical Namespace is enabled for the account. * - * @param xMsPermissions the xMsPermissions value to set. + * @param permissions the permissions value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsPermissions(String xMsPermissions) { - this.xMsPermissions = xMsPermissions; + public PathGetPropertiesHeaders setPermissions(String permissions) { + this.permissions = permissions; return this; } /** - * Get the xMsAcl property: The POSIX access control list for the file or + * Get the acl property: The POSIX access control list for the file or * directory. Included in the response only if the action is * "getAccessControl" and Hierarchical Namespace is enabled for the * account. * - * @return the xMsAcl value. + * @return the acl value. */ - public String getXMsAcl() { - return this.xMsAcl; + public String getAcl() { + return this.acl; } /** - * Set the xMsAcl property: The POSIX access control list for the file or + * Set the acl property: The POSIX access control list for the file or * directory. Included in the response only if the action is * "getAccessControl" and Hierarchical Namespace is enabled for the * account. * - * @param xMsAcl the xMsAcl value to set. + * @param acl the acl value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsAcl(String xMsAcl) { - this.xMsAcl = xMsAcl; + public PathGetPropertiesHeaders setAcl(String acl) { + this.acl = acl; return this; } /** - * Get the xMsLeaseDuration property: When a resource is leased, specifies + * Get the leaseDuration property: When a resource is leased, specifies * whether the lease is of infinite or fixed duration. * - * @return the xMsLeaseDuration value. + * @return the leaseDuration value. */ - public String getXMsLeaseDuration() { - return this.xMsLeaseDuration; + public String getLeaseDuration() { + return this.leaseDuration; } /** - * Set the xMsLeaseDuration property: When a resource is leased, specifies + * Set the leaseDuration property: When a resource is leased, specifies * whether the lease is of infinite or fixed duration. * - * @param xMsLeaseDuration the xMsLeaseDuration value to set. + * @param leaseDuration the leaseDuration value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders setLeaseDuration(String leaseDuration) { + this.leaseDuration = leaseDuration; + return this; + } + + /** + * Get the leaseState property: Lease state of the resource. + * + * @return the leaseState value. + */ + public String getLeaseState() { + return this.leaseState; + } + + /** + * Set the leaseState property: Lease state of the resource. + * + * @param leaseState the leaseState value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsLeaseDuration(String xMsLeaseDuration) { - this.xMsLeaseDuration = xMsLeaseDuration; + public PathGetPropertiesHeaders setLeaseState(String leaseState) { + this.leaseState = leaseState; return this; } /** - * Get the xMsLeaseState property: Lease state of the resource. + * Get the leaseStatus property: The lease status of the resource. * - * @return the xMsLeaseState value. + * @return the leaseStatus value. */ - public String getXMsLeaseState() { - return this.xMsLeaseState; + public String getLeaseStatus() { + return this.leaseStatus; } /** - * Set the xMsLeaseState property: Lease state of the resource. + * Set the leaseStatus property: The lease status of the resource. * - * @param xMsLeaseState the xMsLeaseState value to set. + * @param leaseStatus the leaseStatus value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsLeaseState(String xMsLeaseState) { - this.xMsLeaseState = xMsLeaseState; + public PathGetPropertiesHeaders setLeaseStatus(String leaseStatus) { + this.leaseStatus = leaseStatus; return this; } /** - * Get the xMsLeaseStatus property: The lease status of the resource. + * Get the errorCode property: The errorCode property. * - * @return the xMsLeaseStatus value. + * @return the errorCode value. */ - public String getXMsLeaseStatus() { - return this.xMsLeaseStatus; + public String getErrorCode() { + return this.errorCode; } /** - * Set the xMsLeaseStatus property: The lease status of the resource. + * Set the errorCode property: The errorCode property. * - * @param xMsLeaseStatus the xMsLeaseStatus value to set. + * @param errorCode the errorCode value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders setXMsLeaseStatus(String xMsLeaseStatus) { - this.xMsLeaseStatus = xMsLeaseStatus; + public PathGetPropertiesHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; return this; } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathLeaseAction.java similarity index 95% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathLeaseAction.java index 7a1262fd2ca19..04687edbb7b1c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathLeaseAction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathLeaseHeaders.java similarity index 53% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathLeaseHeaders.java index 49fd0548b4655..00550be81316a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathLeaseHeaders.java @@ -2,10 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Defines headers for Lease operation. @@ -17,7 +19,7 @@ public final class PathLeaseHeaders { * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the file or directory. @@ -30,32 +32,38 @@ public final class PathLeaseHeaders { * operations on the file or directory update the last modified time. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; /* * A successful "acquire" action returns the lease ID. */ @JsonProperty(value = "x-ms-lease-id") - private String xMsLeaseId; + private String leaseId; /* * The time remaining in the lease period in seconds. */ @JsonProperty(value = "x-ms-lease-time") - private String xMsLeaseTime; + private String leaseTime; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; /** * Get the dateProperty property: A UTC date/time value generated by the @@ -63,8 +71,11 @@ public final class PathLeaseHeaders { * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -74,8 +85,12 @@ public String getDateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + public PathLeaseHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -108,8 +123,11 @@ public PathLeaseHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -120,96 +138,120 @@ public String getLastModified() { * @param lastModified the lastModified value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + public PathLeaseHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. + * @param requestId the requestId value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public PathLeaseHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. + * @param version the version value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public PathLeaseHeaders setVersion(String version) { + this.version = version; return this; } /** - * Get the xMsLeaseId property: A successful "acquire" action returns the + * Get the leaseId property: A successful "acquire" action returns the * lease ID. * - * @return the xMsLeaseId value. + * @return the leaseId value. */ - public String getXMsLeaseId() { - return this.xMsLeaseId; + public String getLeaseId() { + return this.leaseId; } /** - * Set the xMsLeaseId property: A successful "acquire" action returns the + * Set the leaseId property: A successful "acquire" action returns the * lease ID. * - * @param xMsLeaseId the xMsLeaseId value to set. + * @param leaseId the leaseId value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders setXMsLeaseId(String xMsLeaseId) { - this.xMsLeaseId = xMsLeaseId; + public PathLeaseHeaders setLeaseId(String leaseId) { + this.leaseId = leaseId; return this; } /** - * Get the xMsLeaseTime property: The time remaining in the lease period in + * Get the leaseTime property: The time remaining in the lease period in * seconds. * - * @return the xMsLeaseTime value. + * @return the leaseTime value. */ - public String getXMsLeaseTime() { - return this.xMsLeaseTime; + public String getLeaseTime() { + return this.leaseTime; } /** - * Set the xMsLeaseTime property: The time remaining in the lease period in + * Set the leaseTime property: The time remaining in the lease period in * seconds. * - * @param xMsLeaseTime the xMsLeaseTime value to set. + * @param leaseTime the leaseTime value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders setLeaseTime(String leaseTime) { + this.leaseTime = leaseTime; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders setXMsLeaseTime(String xMsLeaseTime) { - this.xMsLeaseTime = xMsLeaseTime; + public PathLeaseHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; return this; } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathList.java similarity index 93% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathList.java index 95a36be86f602..c73641a0f49c8 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathList.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathReadHeaders.java similarity index 75% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathReadHeaders.java index 9f8c50c350808..9081383dcdfbc 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathReadHeaders.java @@ -2,10 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Defines headers for Read operation. @@ -80,7 +82,7 @@ public final class PathReadHeaders { * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the file or directory. @@ -93,27 +95,27 @@ public final class PathReadHeaders { * operations on the file or directory update the last modified time. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; /* * The type of the resource. The value may be "file" or "directory". If * not set, the value is "file". */ @JsonProperty(value = "x-ms-resource-type") - private String xMsResourceType; + private String resourceType; /* * The user-defined properties associated with the file or directory, in @@ -123,26 +125,26 @@ public final class PathReadHeaders { * set. */ @JsonProperty(value = "x-ms-properties") - private String xMsProperties; + private String properties; /* * When a resource is leased, specifies whether the lease is of infinite or * fixed duration. */ @JsonProperty(value = "x-ms-lease-duration") - private String xMsLeaseDuration; + private String leaseDuration; /* * Lease state of the resource. */ @JsonProperty(value = "x-ms-lease-state") - private String xMsLeaseState; + private String leaseState; /* * The lease status of the resource. */ @JsonProperty(value = "x-ms-lease-status") - private String xMsLeaseStatus; + private String leaseStatus; /* * The MD5 hash of complete file stored in storage. If the file has a MD5 @@ -154,6 +156,12 @@ public final class PathReadHeaders { @JsonProperty(value = "x-ms-content-md5") private String xMsContentMd5; + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + /** * Get the acceptRanges property: Indicates that the service supports * requests for partial file content. @@ -372,8 +380,11 @@ public PathReadHeaders setContentMD5(String contentMD5) { * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -383,8 +394,12 @@ public String getDateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + public PathReadHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -417,8 +432,11 @@ public PathReadHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -429,164 +447,168 @@ public String getLastModified() { * @param lastModified the lastModified value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + public PathReadHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. + * @param requestId the requestId value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public PathReadHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. + * @param version the version value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public PathReadHeaders setVersion(String version) { + this.version = version; return this; } /** - * Get the xMsResourceType property: The type of the resource. The value - * may be "file" or "directory". If not set, the value is "file". + * Get the resourceType property: The type of the resource. The value may + * be "file" or "directory". If not set, the value is "file". * - * @return the xMsResourceType value. + * @return the resourceType value. */ - public String getXMsResourceType() { - return this.xMsResourceType; + public String getResourceType() { + return this.resourceType; } /** - * Set the xMsResourceType property: The type of the resource. The value - * may be "file" or "directory". If not set, the value is "file". + * Set the resourceType property: The type of the resource. The value may + * be "file" or "directory". If not set, the value is "file". * - * @param xMsResourceType the xMsResourceType value to set. + * @param resourceType the resourceType value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsResourceType(String xMsResourceType) { - this.xMsResourceType = xMsResourceType; + public PathReadHeaders setResourceType(String resourceType) { + this.resourceType = resourceType; return this; } /** - * Get the xMsProperties property: The user-defined properties associated - * with the file or directory, in the format of a comma-separated list of - * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * Get the properties property: The user-defined properties associated with + * the file or directory, in the format of a comma-separated list of name + * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 * encoded string. Note that the string may only contain ASCII characters * in the ISO-8859-1 character set. * - * @return the xMsProperties value. + * @return the properties value. */ - public String getXMsProperties() { - return this.xMsProperties; + public String getProperties() { + return this.properties; } /** - * Set the xMsProperties property: The user-defined properties associated - * with the file or directory, in the format of a comma-separated list of - * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * Set the properties property: The user-defined properties associated with + * the file or directory, in the format of a comma-separated list of name + * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 * encoded string. Note that the string may only contain ASCII characters * in the ISO-8859-1 character set. * - * @param xMsProperties the xMsProperties value to set. + * @param properties the properties value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsProperties(String xMsProperties) { - this.xMsProperties = xMsProperties; + public PathReadHeaders setProperties(String properties) { + this.properties = properties; return this; } /** - * Get the xMsLeaseDuration property: When a resource is leased, specifies + * Get the leaseDuration property: When a resource is leased, specifies * whether the lease is of infinite or fixed duration. * - * @return the xMsLeaseDuration value. + * @return the leaseDuration value. */ - public String getXMsLeaseDuration() { - return this.xMsLeaseDuration; + public String getLeaseDuration() { + return this.leaseDuration; } /** - * Set the xMsLeaseDuration property: When a resource is leased, specifies + * Set the leaseDuration property: When a resource is leased, specifies * whether the lease is of infinite or fixed duration. * - * @param xMsLeaseDuration the xMsLeaseDuration value to set. + * @param leaseDuration the leaseDuration value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsLeaseDuration(String xMsLeaseDuration) { - this.xMsLeaseDuration = xMsLeaseDuration; + public PathReadHeaders setLeaseDuration(String leaseDuration) { + this.leaseDuration = leaseDuration; return this; } /** - * Get the xMsLeaseState property: Lease state of the resource. + * Get the leaseState property: Lease state of the resource. * - * @return the xMsLeaseState value. + * @return the leaseState value. */ - public String getXMsLeaseState() { - return this.xMsLeaseState; + public String getLeaseState() { + return this.leaseState; } /** - * Set the xMsLeaseState property: Lease state of the resource. + * Set the leaseState property: Lease state of the resource. * - * @param xMsLeaseState the xMsLeaseState value to set. + * @param leaseState the leaseState value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsLeaseState(String xMsLeaseState) { - this.xMsLeaseState = xMsLeaseState; + public PathReadHeaders setLeaseState(String leaseState) { + this.leaseState = leaseState; return this; } /** - * Get the xMsLeaseStatus property: The lease status of the resource. + * Get the leaseStatus property: The lease status of the resource. * - * @return the xMsLeaseStatus value. + * @return the leaseStatus value. */ - public String getXMsLeaseStatus() { - return this.xMsLeaseStatus; + public String getLeaseStatus() { + return this.leaseStatus; } /** - * Set the xMsLeaseStatus property: The lease status of the resource. + * Set the leaseStatus property: The lease status of the resource. * - * @param xMsLeaseStatus the xMsLeaseStatus value to set. + * @param leaseStatus the leaseStatus value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders setXMsLeaseStatus(String xMsLeaseStatus) { - this.xMsLeaseStatus = xMsLeaseStatus; + public PathReadHeaders setLeaseStatus(String leaseStatus) { + this.leaseStatus = leaseStatus; return this; } @@ -619,4 +641,24 @@ public PathReadHeaders setXMsContentMd5(String xMsContentMd5) { this.xMsContentMd5 = xMsContentMd5; return this; } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathRenameMode.java similarity index 95% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathRenameMode.java index 58991934d2dcf..896522490ef0a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathRenameMode.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathResourceType.java similarity index 95% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathResourceType.java index e9bd61206101e..942e237adf9b2 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathResourceType.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathSetAccessControlHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathSetAccessControlHeaders.java new file mode 100644 index 0000000000000..04507bed61a6c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathSetAccessControlHeaders.java @@ -0,0 +1,206 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for SetAccessControl operation. + */ +@Fluent +public final class PathSetAccessControlHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private DateTimeRfc1123 lastModified; + + /* + * If a client request id header is sent in the request, this header will + * be present in the response with the same value. + */ + @JsonProperty(value = "x-ms-client-request-id") + private String clientRequestId; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathSetAccessControlHeaders object itself. + */ + public PathSetAccessControlHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathSetAccessControlHeaders object itself. + */ + public PathSetAccessControlHeaders setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathSetAccessControlHeaders object itself. + */ + public PathSetAccessControlHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } + return this; + } + + /** + * Get the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @return the clientRequestId value. + */ + public String getClientRequestId() { + return this.clientRequestId; + } + + /** + * Set the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @param clientRequestId the clientRequestId value to set. + * @return the PathSetAccessControlHeaders object itself. + */ + public PathSetAccessControlHeaders setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the PathSetAccessControlHeaders object itself. + */ + public PathSetAccessControlHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the PathSetAccessControlHeaders object itself. + */ + public PathSetAccessControlHeaders setVersion(String version) { + this.version = version; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathUpdateAction.java similarity index 95% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathUpdateAction.java index c87af882dcf77..3ef22390b12db 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathUpdateAction.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathUpdateHeaders.java similarity index 78% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathUpdateHeaders.java index b07ffdada5295..2f41c898ca451 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathUpdateHeaders.java @@ -2,10 +2,12 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; /** * Defines headers for Update operation. @@ -17,7 +19,7 @@ public final class PathUpdateHeaders { * at which the response was initiated. */ @JsonProperty(value = "Date") - private String dateProperty; + private DateTimeRfc1123 dateProperty; /* * An HTTP entity tag associated with the file or directory. @@ -30,7 +32,7 @@ public final class PathUpdateHeaders { * operations on the file or directory update the last modified time. */ @JsonProperty(value = "Last-Modified") - private String lastModified; + private DateTimeRfc1123 lastModified; /* * Indicates that the service supports requests for partial file content. @@ -103,20 +105,26 @@ public final class PathUpdateHeaders { * may only contain ASCII characters in the ISO-8859-1 character set. */ @JsonProperty(value = "x-ms-properties") - private String xMsProperties; + private String properties; /* * A server-generated UUID recorded in the analytics logs for * troubleshooting and correlation. */ @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; + private String requestId; /* * The version of the REST protocol used to process the request. */ @JsonProperty(value = "x-ms-version") - private String xMsVersion; + private String version; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; /** * Get the dateProperty property: A UTC date/time value generated by the @@ -124,8 +132,11 @@ public final class PathUpdateHeaders { * * @return the dateProperty value. */ - public String getDateProperty() { - return this.dateProperty; + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); } /** @@ -135,8 +146,12 @@ public String getDateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; + public PathUpdateHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } return this; } @@ -169,8 +184,11 @@ public PathUpdateHeaders setETag(String eTag) { * * @return the lastModified value. */ - public String getLastModified() { - return this.lastModified; + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); } /** @@ -181,8 +199,12 @@ public String getLastModified() { * @param lastModified the lastModified value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; + public PathUpdateHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } return this; } @@ -401,74 +423,94 @@ public PathUpdateHeaders setContentMD5(String contentMD5) { } /** - * Get the xMsProperties property: User-defined properties associated with - * the file or directory, in the format of a comma-separated list of name - * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 - * encoded string. Note that the string may only contain ASCII characters - * in the ISO-8859-1 character set. + * Get the properties property: User-defined properties associated with the + * file or directory, in the format of a comma-separated list of name and + * value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded + * string. Note that the string may only contain ASCII characters in the + * ISO-8859-1 character set. * - * @return the xMsProperties value. + * @return the properties value. */ - public String getXMsProperties() { - return this.xMsProperties; + public String getProperties() { + return this.properties; } /** - * Set the xMsProperties property: User-defined properties associated with - * the file or directory, in the format of a comma-separated list of name - * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 - * encoded string. Note that the string may only contain ASCII characters - * in the ISO-8859-1 character set. + * Set the properties property: User-defined properties associated with the + * file or directory, in the format of a comma-separated list of name and + * value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded + * string. Note that the string may only contain ASCII characters in the + * ISO-8859-1 character set. * - * @param xMsProperties the xMsProperties value to set. + * @param properties the properties value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders setXMsProperties(String xMsProperties) { - this.xMsProperties = xMsProperties; + public PathUpdateHeaders setProperties(String properties) { + this.properties = properties; return this; } /** - * Get the xMsRequestId property: A server-generated UUID recorded in the + * Get the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @return the xMsRequestId value. + * @return the requestId value. */ - public String getXMsRequestId() { - return this.xMsRequestId; + public String getRequestId() { + return this.requestId; } /** - * Set the xMsRequestId property: A server-generated UUID recorded in the + * Set the requestId property: A server-generated UUID recorded in the * analytics logs for troubleshooting and correlation. * - * @param xMsRequestId the xMsRequestId value to set. + * @param requestId the requestId value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; + public PathUpdateHeaders setRequestId(String requestId) { + this.requestId = requestId; return this; } /** - * Get the xMsVersion property: The version of the REST protocol used to + * Get the version property: The version of the REST protocol used to * process the request. * - * @return the xMsVersion value. + * @return the version value. */ - public String getXMsVersion() { - return this.xMsVersion; + public String getVersion() { + return this.version; } /** - * Set the xMsVersion property: The version of the REST protocol used to + * Set the version property: The version of the REST protocol used to * process the request. * - * @param xMsVersion the xMsVersion value to set. + * @param version the version value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; + public PathUpdateHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; return this; } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataResponse.java new file mode 100644 index 0000000000000..102e094a6bf04 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsAppendDataResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the appendData operation. + */ +public final class PathsAppendDataResponse extends ResponseBase { + /** + * Creates an instance of PathsAppendDataResponse. + * + * @param request the request which resulted in this PathsAppendDataResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsAppendDataResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathAppendDataHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateResponse.java similarity index 94% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateResponse.java index eacff86e98df9..2c7f335e86af1 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsCreateResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsDeleteResponse.java similarity index 94% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsDeleteResponse.java index 79e8b5be04f4a..70831e0b28474 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsDeleteResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataResponse.java new file mode 100644 index 0000000000000..52f97f7bbbe6d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsFlushDataResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the flushData operation. + */ +public final class PathsFlushDataResponse extends ResponseBase { + /** + * Creates an instance of PathsFlushDataResponse. + * + * @param request the request which resulted in this PathsFlushDataResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsFlushDataResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathFlushDataHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsGetPropertiesResponse.java similarity index 94% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsGetPropertiesResponse.java index b297bd3e9fd68..0bd80e69f7aaf 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsGetPropertiesResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsLeaseResponse.java similarity index 94% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsLeaseResponse.java index 9869bcba9f6d7..bacc9926d261a 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsLeaseResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadResponse.java similarity index 95% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadResponse.java index ef1d1e6532bfb..484b9455d31c6 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsReadResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsSetAccessControlResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsSetAccessControlResponse.java new file mode 100644 index 0000000000000..11906d48eba63 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsSetAccessControlResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the setAccessControl operation. + */ +public final class PathsSetAccessControlResponse extends ResponseBase { + /** + * Creates an instance of PathsSetAccessControlResponse. + * + * @param request the request which resulted in this PathsSetAccessControlResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsSetAccessControlResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathSetAccessControlHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsUpdateResponse.java similarity index 94% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsUpdateResponse.java index 65b0500199dc3..c384fac9a7b22 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsUpdateResponse.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ServiceListFileSystemsHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ServiceListFileSystemsHeaders.java new file mode 100644 index 0000000000000..b22602c4c0b39 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ServiceListFileSystemsHeaders.java @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Defines headers for ListFileSystems operation. + */ +@Fluent +public final class ServiceListFileSystemsHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private DateTimeRfc1123 dateProperty; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String requestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String version; + + /* + * If the number of filesystems to be listed exceeds the maxResults limit, + * a continuation token is returned in this response header. When a + * continuation token is returned in the response, it must be specified in + * a subsequent invocation of the list operation to continue listing the + * filesystems. + */ + @JsonProperty(value = "x-ms-continuation") + private String continuation; + + /* + * The content type of list filesystem response. The default content type + * is application/json. + */ + @JsonProperty(value = "Content-Type") + private String contentType; + + /* + * The errorCode property. + */ + @JsonProperty(value = "x-ms-error-code") + private String errorCode; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the ServiceListFileSystemsHeaders object itself. + */ + public ServiceListFileSystemsHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param requestId the requestId value to set. + * @return the ServiceListFileSystemsHeaders object itself. + */ + public ServiceListFileSystemsHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: The version of the REST protocol used to + * process the request. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: The version of the REST protocol used to + * process the request. + * + * @param version the version value to set. + * @return the ServiceListFileSystemsHeaders object itself. + */ + public ServiceListFileSystemsHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the continuation property: If the number of filesystems to be listed + * exceeds the maxResults limit, a continuation token is returned in this + * response header. When a continuation token is returned in the response, + * it must be specified in a subsequent invocation of the list operation to + * continue listing the filesystems. + * + * @return the continuation value. + */ + public String getContinuation() { + return this.continuation; + } + + /** + * Set the continuation property: If the number of filesystems to be listed + * exceeds the maxResults limit, a continuation token is returned in this + * response header. When a continuation token is returned in the response, + * it must be specified in a subsequent invocation of the list operation to + * continue listing the filesystems. + * + * @param continuation the continuation value to set. + * @return the ServiceListFileSystemsHeaders object itself. + */ + public ServiceListFileSystemsHeaders setContinuation(String continuation) { + this.continuation = continuation; + return this; + } + + /** + * Get the contentType property: The content type of list filesystem + * response. The default content type is application/json. + * + * @return the contentType value. + */ + public String getContentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type of list filesystem + * response. The default content type is application/json. + * + * @param contentType the contentType value to set. + * @return the ServiceListFileSystemsHeaders object itself. + */ + public ServiceListFileSystemsHeaders setContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the ServiceListFileSystemsHeaders object itself. + */ + public ServiceListFileSystemsHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ServicesListFileSystemsResponse.java similarity index 55% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ServicesListFileSystemsResponse.java index 2361ba0e0cb6d..e755d10dfece6 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/ServicesListFileSystemsResponse.java @@ -2,26 +2,26 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; /** - * Contains all response data for the list operation. + * Contains all response data for the listFileSystems operation. */ -public final class FilesystemsListResponse extends ResponseBase { +public final class ServicesListFileSystemsResponse extends ResponseBase { /** - * Creates an instance of FilesystemsListResponse. + * Creates an instance of ServicesListFileSystemsResponse. * - * @param request the request which resulted in this FilesystemsListResponse. + * @param request the request which resulted in this ServicesListFileSystemsResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public FilesystemsListResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, FilesystemList value, FilesystemListHeaders headers) { + public ServicesListFileSystemsResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, FileSystemList value, ServiceListFileSystemsHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } @@ -29,7 +29,7 @@ public FilesystemsListResponse(HttpRequest request, int statusCode, HttpHeaders * @return the deserialized response body. */ @Override - public FilesystemList getValue() { + public FileSystemList getValue() { return super.getValue(); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/SourceModifiedAccessConditions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/SourceModifiedAccessConditions.java new file mode 100644 index 0000000000000..60a440bb0de5d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/SourceModifiedAccessConditions.java @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.implementation.DateTimeRfc1123; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * Additional parameters for create operation. + */ +@Fluent +public final class SourceModifiedAccessConditions { + /* + * Specify an ETag value to operate only on blobs with a matching value. + */ + @JsonProperty(value = "") + private String sourceIfMatch; + + /* + * Specify an ETag value to operate only on blobs without a matching value. + */ + @JsonProperty(value = "") + private String sourceIfNoneMatch; + + /* + * Specify this header value to operate only on a blob if it has been + * modified since the specified date/time. + */ + @JsonProperty(value = "") + private DateTimeRfc1123 sourceIfModifiedSince; + + /* + * Specify this header value to operate only on a blob if it has not been + * modified since the specified date/time. + */ + @JsonProperty(value = "") + private DateTimeRfc1123 sourceIfUnmodifiedSince; + + /** + * Get the sourceIfMatch property: Specify an ETag value to operate only on + * blobs with a matching value. + * + * @return the sourceIfMatch value. + */ + public String getSourceIfMatch() { + return this.sourceIfMatch; + } + + /** + * Set the sourceIfMatch property: Specify an ETag value to operate only on + * blobs with a matching value. + * + * @param sourceIfMatch the sourceIfMatch value to set. + * @return the SourceModifiedAccessConditions object itself. + */ + public SourceModifiedAccessConditions setSourceIfMatch(String sourceIfMatch) { + this.sourceIfMatch = sourceIfMatch; + return this; + } + + /** + * Get the sourceIfNoneMatch property: Specify an ETag value to operate + * only on blobs without a matching value. + * + * @return the sourceIfNoneMatch value. + */ + public String getSourceIfNoneMatch() { + return this.sourceIfNoneMatch; + } + + /** + * Set the sourceIfNoneMatch property: Specify an ETag value to operate + * only on blobs without a matching value. + * + * @param sourceIfNoneMatch the sourceIfNoneMatch value to set. + * @return the SourceModifiedAccessConditions object itself. + */ + public SourceModifiedAccessConditions setSourceIfNoneMatch(String sourceIfNoneMatch) { + this.sourceIfNoneMatch = sourceIfNoneMatch; + return this; + } + + /** + * Get the sourceIfModifiedSince property: Specify this header value to + * operate only on a blob if it has been modified since the specified + * date/time. + * + * @return the sourceIfModifiedSince value. + */ + public OffsetDateTime getSourceIfModifiedSince() { + if (this.sourceIfModifiedSince == null) { + return null; + } + return this.sourceIfModifiedSince.getDateTime(); + } + + /** + * Set the sourceIfModifiedSince property: Specify this header value to + * operate only on a blob if it has been modified since the specified + * date/time. + * + * @param sourceIfModifiedSince the sourceIfModifiedSince value to set. + * @return the SourceModifiedAccessConditions object itself. + */ + public SourceModifiedAccessConditions setSourceIfModifiedSince(OffsetDateTime sourceIfModifiedSince) { + if (sourceIfModifiedSince == null) { + this.sourceIfModifiedSince = null; + } else { + this.sourceIfModifiedSince = new DateTimeRfc1123(sourceIfModifiedSince); + } + return this; + } + + /** + * Get the sourceIfUnmodifiedSince property: Specify this header value to + * operate only on a blob if it has not been modified since the specified + * date/time. + * + * @return the sourceIfUnmodifiedSince value. + */ + public OffsetDateTime getSourceIfUnmodifiedSince() { + if (this.sourceIfUnmodifiedSince == null) { + return null; + } + return this.sourceIfUnmodifiedSince.getDateTime(); + } + + /** + * Set the sourceIfUnmodifiedSince property: Specify this header value to + * operate only on a blob if it has not been modified since the specified + * date/time. + * + * @param sourceIfUnmodifiedSince the sourceIfUnmodifiedSince value to set. + * @return the SourceModifiedAccessConditions object itself. + */ + public SourceModifiedAccessConditions setSourceIfUnmodifiedSince(OffsetDateTime sourceIfUnmodifiedSince) { + if (sourceIfUnmodifiedSince == null) { + this.sourceIfUnmodifiedSince = null; + } else { + this.sourceIfUnmodifiedSince = new DateTimeRfc1123(sourceIfUnmodifiedSince); + } + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageError.java similarity index 66% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageError.java index 648b4fd635918..638d429c36f14 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageError.java @@ -2,28 +2,28 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** - * The DataLakeStorageError model. + * The StorageError model. */ @Fluent -public final class DataLakeStorageError { +public final class StorageError { /* * The service error response object. */ @JsonProperty(value = "error") - private DataLakeStorageErrorError error; + private StorageErrorError error; /** * Get the error property: The service error response object. * * @return the error value. */ - public DataLakeStorageErrorError getError() { + public StorageErrorError getError() { return this.error; } @@ -31,9 +31,9 @@ public DataLakeStorageErrorError getError() { * Set the error property: The service error response object. * * @param error the error value to set. - * @return the DataLakeStorageError object itself. + * @return the StorageError object itself. */ - public DataLakeStorageError setError(DataLakeStorageErrorError error) { + public StorageError setError(StorageErrorError error) { this.error = error; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageErrorError.java similarity index 74% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageErrorError.java index 5f302241e6610..e032617c28f73 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageErrorError.java @@ -2,7 +2,7 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; @@ -11,17 +11,17 @@ * The service error response object. */ @Fluent -public final class DataLakeStorageErrorError { +public final class StorageErrorError { /* * The service error code. */ - @JsonProperty(value = "code") + @JsonProperty(value = "Code") private String code; /* * The service error message. */ - @JsonProperty(value = "message") + @JsonProperty(value = "Message") private String message; /** @@ -37,9 +37,9 @@ public String getCode() { * Set the code property: The service error code. * * @param code the code value to set. - * @return the DataLakeStorageErrorError object itself. + * @return the StorageErrorError object itself. */ - public DataLakeStorageErrorError setCode(String code) { + public StorageErrorError setCode(String code) { this.code = code; return this; } @@ -57,9 +57,9 @@ public String getMessage() { * Set the message property: The service error message. * * @param message the message value to set. - * @return the DataLakeStorageErrorError object itself. + * @return the StorageErrorError object itself. */ - public DataLakeStorageErrorError setMessage(String message) { + public StorageErrorError setMessage(String message) { this.message = message; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageErrorException.java similarity index 53% rename from sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java rename to sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageErrorException.java index 6045cbc2e2fab..442fb0ec1498c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/StorageErrorException.java @@ -2,38 +2,38 @@ // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. -package com.azure.storage.file.datalake.models; +package com.azure.storage.file.datalake.implementation.models; import com.azure.core.exception.HttpResponseException; import com.azure.core.http.HttpResponse; /** - * Exception thrown for an invalid response with DataLakeStorageError information. + * Exception thrown for an invalid response with StorageError information. */ -public final class DataLakeStorageErrorException extends HttpResponseException { +public final class StorageErrorException extends HttpResponseException { /** - * Initializes a new instance of the DataLakeStorageErrorException class. + * Initializes a new instance of the StorageErrorException class. * * @param message the exception message or the response content if a message is not available. * @param response the HTTP response. */ - public DataLakeStorageErrorException(String message, HttpResponse response) { + public StorageErrorException(String message, HttpResponse response) { super(message, response); } /** - * Initializes a new instance of the DataLakeStorageErrorException class. + * Initializes a new instance of the StorageErrorException class. * * @param message the exception message or the response content if a message is not available. * @param response the HTTP response. * @param value the deserialized response value. */ - public DataLakeStorageErrorException(String message, HttpResponse response, DataLakeStorageError value) { + public StorageErrorException(String message, HttpResponse response, StorageError value) { super(message, response, value); } @Override - public DataLakeStorageError getValue() { - return (DataLakeStorageError) super.getValue(); + public StorageError getValue() { + return (StorageError) super.getValue(); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/package-info.java new file mode 100644 index 0000000000000..a3cc9c38e5230 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** + * Package containing the data models for DataLakeStorageClient. + * Azure Data Lake Storage provides storage for Hadoop and other big data + * workloads. + */ +package com.azure.storage.file.datalake.implementation.models; 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 new file mode 100644 index 0000000000000..4b27e2c48d988 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/BuilderHelper.java @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.implementation.util; + +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.HttpLogOptions; +import com.azure.core.http.policy.HttpLoggingPolicy; +import com.azure.core.http.policy.HttpPipelinePolicy; +import com.azure.core.http.policy.HttpPolicyProviders; +import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.core.http.policy.UserAgentPolicy; +import com.azure.core.util.Configuration; +import com.azure.storage.common.implementation.Constants; +import com.azure.storage.common.policy.RequestRetryOptions; +import com.azure.storage.common.policy.RequestRetryPolicy; +import com.azure.storage.common.policy.ResponseValidationPolicyBuilder; +import com.azure.storage.common.policy.ScrubEtagPolicy; +import com.azure.storage.file.datalake.DataLakeServiceVersion; + +import java.util.ArrayList; +import java.util.List; +import java.util.function.Supplier; + +/** + * This class provides helper methods for common builder patterns. + * + * RESERVED FOR INTERNAL USE. + */ +public final class BuilderHelper { + private static final String DEFAULT_USER_AGENT_NAME = "azure-storage-file-datalake"; + private static final String DEFAULT_USER_AGENT_VERSION = "12.0.0-preview.5"; + + /** + * Constructs a {@link HttpPipeline} from values passed from a builder. + * + * @param credentialPolicySupplier Supplier for credentials in the pipeline. + * @param retryOptions Retry options to set in the retry policy. + * @param logOptions Logging options to set in the logging policy. + * @param httpClient HttpClient to use in the builder. + * @param additionalPolicies Additional {@link HttpPipelinePolicy policies} to set in the pipeline. + * @param configuration Configuration store contain environment settings. + * @param serviceVersion {@link DataLakeServiceVersion} of the service to be used when making requests. + * @return A new {@link HttpPipeline} from the passed values. + */ + public static HttpPipeline buildPipeline(Supplier credentialPolicySupplier, + RequestRetryOptions retryOptions, HttpLogOptions logOptions, HttpClient httpClient, + List additionalPolicies, Configuration configuration, + DataLakeServiceVersion serviceVersion) { + // Closest to API goes first, closest to wire goes last. + List policies = new ArrayList<>(); + + policies.add(getUserAgentPolicy(configuration, serviceVersion)); + policies.add(new RequestIdPolicy()); + policies.add(new AddDatePolicy()); + + HttpPipelinePolicy credentialPolicy = credentialPolicySupplier.get(); + if (credentialPolicy != null) { + policies.add(credentialPolicy); + } + + HttpPolicyProviders.addBeforeRetryPolicies(policies); + policies.add(new RequestRetryPolicy(retryOptions)); + + policies.addAll(additionalPolicies); + + HttpPolicyProviders.addAfterRetryPolicies(policies); + + policies.add(getResponseValidationPolicy()); + + policies.add(new HttpLoggingPolicy(logOptions)); + + policies.add(new ScrubEtagPolicy()); + + return new HttpPipelineBuilder() + .policies(policies.toArray(new HttpPipelinePolicy[0])) + .httpClient(httpClient) + .build(); + } + + /** + * Gets the default http log option for Storage Blob. + * + * @return the default http log options. + */ + public static HttpLogOptions getDefaultHttpLogOptions() { + HttpLogOptions defaultOptions = new HttpLogOptions(); + DataLakeHeadersAndQueryParameters.getDataLakeHeaders().forEach(defaultOptions::addAllowedHeaderName); + DataLakeHeadersAndQueryParameters.getDataLakeQueryParameters().forEach( + defaultOptions::addAllowedQueryParamName); + return defaultOptions; + } + + /* + * Creates a {@link UserAgentPolicy} using the default blob module name and version. + * + * @param configuration Configuration store used to determine whether telemetry information should be included. + * @param version {@link DataLakeServiceVersion} of the service to be used when making requests. + * @return The default {@link UserAgentPolicy} for the module. + */ + private static UserAgentPolicy getUserAgentPolicy(Configuration configuration, + DataLakeServiceVersion serviceVersion) { + configuration = (configuration == null) ? Configuration.NONE : configuration; + + return new UserAgentPolicy(DEFAULT_USER_AGENT_NAME, DEFAULT_USER_AGENT_VERSION, configuration, serviceVersion); + } + + /* + * Creates a {@link ResponseValidationPolicyBuilder.ResponseValidationPolicy} used to validate response data from + * the service. + * + * @return The {@link ResponseValidationPolicyBuilder.ResponseValidationPolicy} for the module. + */ + private static HttpPipelinePolicy getResponseValidationPolicy() { + return new ResponseValidationPolicyBuilder() + .addOptionalEcho(Constants.HeaderConstants.CLIENT_REQUEST_ID) + .addOptionalEcho(Constants.HeaderConstants.ENCRYPTION_KEY_SHA256) + .build(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeHeadersAndQueryParameters.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeHeadersAndQueryParameters.java new file mode 100644 index 0000000000000..19aacc1959283 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/DataLakeHeadersAndQueryParameters.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.implementation.util; + +import java.util.HashSet; +import java.util.Set; +import java.util.stream.Collectors; +import java.util.stream.Stream; + +/** + * Storage Data Lake whitelist headers and parameters for log options. + */ +public class DataLakeHeadersAndQueryParameters { + private static final Set DATALAKE_HEADERS = Stream.of( + "Access-Control-Allow-Origin", "Cache-Control", "Content-Length", "Content-Type", "Date", "Request-Id", + "traceparent", "Transfer-Encoding", "User-Agent", "x-ms-client-request-id", "x-ms-date", "x-ms-error-code", + "x-ms-request-id", "x-ms-return-client-request-id", "x-ms-version", "Accept-Ranges", "Content-Disposition", + "Content-Encoding", "Content-Language", "Content-MD5", "Content-Range", "ETag", "Last-Modified", "Server", + "Vary", "x-ms-content-crc64", "x-ms-copy-action", "x-ms-copy-completion-time", "x-ms-copy-id", + "x-ms-copy-progress", "x-ms-copy-status", "x-ms-has-immutability-policy", "x-ms-has-legal-hold", + "x-ms-lease-state", "x-ms-lease-status", "x-ms-range", "x-ms-request-server-encrypted", + "x-ms-server-encrypted", "x-ms-snapshot", "x-ms-source-range", "If-Match", "If-Modified-Since", + "If-None-Match", "If-Unmodified-Since", "x-ms-access-tier", "x-ms-access-tier-change-time", + "x-ms-access-tier-inferred", "x-ms-account-kind", "x-ms-archive-status", "x-ms-blob-append-offset", + "x-ms-blob-cache-control", "x-ms-blob-committed-block-count", "x-ms-blob-condition-appendpos", + "x-ms-blob-condition-maxsize", "x-ms-blob-content-disposition", "x-ms-blob-content-encoding", + "x-ms-blob-content-language", "x-ms-blob-content-length", "x-ms-blob-content-md5", "x-ms-blob-content-type", + "x-ms-blob-public-access", "x-ms-blob-sequence-number", "x-ms-blob-type", "x-ms-copy-destination-snapshot", + "x-ms-creation-time", "x-ms-default-encryption-scope", "x-ms-delete-snapshots", + "x-ms-delete-type-permanent", "x-ms-deny-encryption-scope-override", "x-ms-encryption-algorithm", + "x-ms-if-sequence-number-eq", "x-ms-if-sequence-number-le", "x-ms-if-sequence-number-lt", + "x-ms-incremental-copy", "x-ms-lease-action", "x-ms-lease-break-period", "x-ms-lease-duration", + "x-ms-lease-id", "x-ms-lease-time", "x-ms-page-write", "x-ms-proposed-lease-id", + "x-ms-range-get-content-md5", "x-ms-rehydrate-priority", "x-ms-sequence-number-action", "x-ms-sku-name", + "x-ms-source-content-md5", "x-ms-source-if-match", "x-ms-source-if-modified-since", + "x-ms-source-if-none-match", "x-ms-source-if-unmodified-since", "x-ms-tag-count", + "x-ms-encryption-key-sha256") + .collect(Collectors.toCollection(HashSet::new)); + + /** + * Gets the Storage Data Lake whitelist headers for log. + * + * @return the list of Storage Data Lake whitelist headers. + */ + public static Set getDataLakeHeaders() { + return DATALAKE_HEADERS; + } + + private static final Set DATALAKE_QUERY_PARAMETERS = Stream.of( + "comp", "maxresults", "rscc", "rscd", "rsce", "rscl", "rsct", "se", "si", "sip", "sp", "spr", "sr", "srt", + "ss", "st", "sv", "include", "marker", "prefix", "copyid", "restype", "blockid", "blocklisttype", + "delimiter", "prevsnapshot", "ske", "skoid", "sks", "skt", "sktid", "skv", "snapshot") + .collect(Collectors.toCollection(HashSet::new)); + + /** + * Gets the Storage Data Lake whitelist query parameters for log. + * + * @return the list of Storage Data Lake whitelist query parameters. + */ + public static Set getDataLakeQueryParameters() { + return DATALAKE_QUERY_PARAMETERS; + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/package-info.java new file mode 100644 index 0000000000000..15226c8f76686 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/package-info.java @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing implementation specific utilities for Azure Storage File Data Lake. + */ +package com.azure.storage.file.datalake.implementation.util; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessTier.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessTier.java new file mode 100644 index 0000000000000..d45a91441efa2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessTier.java @@ -0,0 +1,103 @@ +// 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.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; + +import java.util.Collection; + +/** + * Defines values for AccessTier. + */ +public final class AccessTier extends ExpandableStringEnum { + /** + * Static value P4 for AccessTier. + */ + public static final AccessTier P4 = fromString("P4"); + + /** + * Static value P6 for AccessTier. + */ + public static final AccessTier P6 = fromString("P6"); + + /** + * Static value P10 for AccessTier. + */ + public static final AccessTier P10 = fromString("P10"); + + /** + * Static value P15 for AccessTier. + */ + public static final AccessTier P15 = fromString("P15"); + + /** + * Static value P20 for AccessTier. + */ + public static final AccessTier P20 = fromString("P20"); + + /** + * Static value P30 for AccessTier. + */ + public static final AccessTier P30 = fromString("P30"); + + /** + * Static value P40 for AccessTier. + */ + public static final AccessTier P40 = fromString("P40"); + + /** + * Static value P50 for AccessTier. + */ + public static final AccessTier P50 = fromString("P50"); + + /** + * Static value P60 for AccessTier. + */ + public static final AccessTier P60 = fromString("P60"); + + /** + * Static value P70 for AccessTier. + */ + public static final AccessTier P70 = fromString("P70"); + + /** + * Static value P80 for AccessTier. + */ + public static final AccessTier P80 = fromString("P80"); + + /** + * Static value Hot for AccessTier. + */ + public static final AccessTier HOT = fromString("Hot"); + + /** + * Static value Cool for AccessTier. + */ + public static final AccessTier COOL = fromString("Cool"); + + /** + * Static value Archive for AccessTier. + */ + public static final AccessTier ARCHIVE = fromString("Archive"); + + /** + * Creates or finds a AccessTier from its string representation. + * + * @param name a name to look for. + * @return the corresponding AccessTier. + */ + @JsonCreator + public static AccessTier fromString(String name) { + return fromString(name, AccessTier.class); + } + + /** + * @return known AccessTier values. + */ + public static Collection values() { + return values(AccessTier.class); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ArchiveStatus.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ArchiveStatus.java new file mode 100644 index 0000000000000..eca032bf6bbf4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ArchiveStatus.java @@ -0,0 +1,43 @@ +// 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.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; + +import java.util.Collection; + +/** + * Defines values for ArchiveStatus. + */ +public final class ArchiveStatus extends ExpandableStringEnum { + /** + * Static value rehydrate-pending-to-hot for ArchiveStatus. + */ + public static final ArchiveStatus REHYDRATE_PENDING_TO_HOT = fromString("rehydrate-pending-to-hot"); + + /** + * Static value rehydrate-pending-to-cool for ArchiveStatus. + */ + public static final ArchiveStatus REHYDRATE_PENDING_TO_COOL = fromString("rehydrate-pending-to-cool"); + + /** + * Creates or finds a ArchiveStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding ArchiveStatus. + */ + @JsonCreator + public static ArchiveStatus fromString(String name) { + return fromString(name, ArchiveStatus.class); + } + + /** + * @return known ArchiveStatus values. + */ + public static Collection values() { + return values(ArchiveStatus.class); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/CopyStatusType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/CopyStatusType.java new file mode 100644 index 0000000000000..ed93452fa81a9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/CopyStatusType.java @@ -0,0 +1,59 @@ +// 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; +/** + * Defines values for CopyStatusType. + */ +public enum CopyStatusType { + /** + * Enum value pending. + */ + PENDING("pending"), + + /** + * Enum value success. + */ + SUCCESS("success"), + + /** + * Enum value aborted. + */ + ABORTED("aborted"), + + /** + * Enum value failed. + */ + FAILED("failed"); + + /** + * The actual serialized value for a CopyStatusType instance. + */ + private final String value; + + CopyStatusType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a CopyStatusType instance. + * + * @param value the serialized value to parse. + * @return the parsed CopyStatusType object, or null if unable to parse. + */ + public static CopyStatusType fromString(String value) { + CopyStatusType[] items = CopyStatusType.values(); + for (CopyStatusType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @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/DataLakeRequestConditions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeRequestConditions.java new file mode 100644 index 0000000000000..8ea7da5a43d4c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeRequestConditions.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.http.RequestConditions; + +import java.time.OffsetDateTime; + +/** + * This class contains values which will restrict the successful operation of a variety of requests to the conditions + * present. These conditions are entirely optional. The entire object or any of its properties may be set to null when + * passed to a method to indicate that those conditions are not desired. Please refer to the type of each field for more + * information on those particular access conditions. + */ +@Fluent +public class DataLakeRequestConditions extends RequestConditions { + private String leaseId; + + /** + * Optionally limit requests to resources that match the passed ETag. + * + * @param ifMatch ETag that resources must match. + * @return The updated DataLakeRequestConditions object. + */ + @Override + public DataLakeRequestConditions setIfMatch(String ifMatch) { + super.setIfMatch(ifMatch); + return this; + } + + /** + * Optionally limit requests to resources that do not match the passed ETag. + * + * @param ifNoneMatch ETag that resources must not match. + * @return The updated DataLakeRequestConditions object. + */ + @Override + public DataLakeRequestConditions setIfNoneMatch(String ifNoneMatch) { + super.setIfNoneMatch(ifNoneMatch); + return this; + } + + /** + * Optionally limit requests to resources that have only been modified since the passed + * {@link OffsetDateTime datetime}. + * + * @param ifModifiedSince The datetime that resources must have been modified since. + * @return The updated DataLakeRequestConditions object. + */ + @Override + public DataLakeRequestConditions setIfModifiedSince(OffsetDateTime ifModifiedSince) { + super.setIfModifiedSince(ifModifiedSince); + return this; + } + + /** + * Optionally limit requests to resources that have remained unmodified since the passed + * {@link OffsetDateTime datetime}. + * + * @param ifUnmodifiedSince The datetime that resources must have remained unmodified since. + * @return The updated DataLakeRequestConditions object. + */ + @Override + public DataLakeRequestConditions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince) { + super.setIfUnmodifiedSince(ifUnmodifiedSince); + return this; + } + + /** + * Gets the lease ID that blobs and containers must match. + * + * @return The lease ID that blobs and containers must match. + */ + public String getLeaseId() { + return leaseId; + } + + /** + * Optionally limits requests to blobs and containers that match the lease ID. + * + * @param leaseId Lease ID that blobs and containers must match. + * @return The updated DataLakeRequestConditions object. + */ + public DataLakeRequestConditions setLeaseId(String leaseId) { + this.leaseId = leaseId; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DownloadRetryOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DownloadRetryOptions.java new file mode 100644 index 0000000000000..a9b9d0719533c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DownloadRetryOptions.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.util.logging.ClientLogger; + +import java.util.Locale; + +/** + * This class contains the configuration options used to download from the blob service using smart retries, starting + * from a checkpoint, rather than starting over from the beginning. + */ +public final class DownloadRetryOptions { + private static final String PARAMETER_NOT_IN_RANGE = "The value of the parameter '%s' should be between %s and %s."; + + private final ClientLogger logger = new ClientLogger(DownloadRetryOptions.class); + + /* + We use "retry" here because by the time the user passes this type, the initial request, or try, has already been + issued and returned. This is in contrast to the retry policy options, which includes the initial try in its count, + thus the difference in verbiage. + */ + private int maxRetryRequests = 0; + + /** + * Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a + * response body. + * + * @return the maximum number of retries to attempt before the request finally fails + */ + public int getMaxRetryRequests() { + return maxRetryRequests; + } + + /** + * Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a + * response body. + * + * @param maxRetryRequests The number of retries to attempt before the request finally fails + * @return the updated DownloadRetryOptions object + * @throws IllegalArgumentException If {@code setMaxRetryRequests} is less than 0 + */ + public DownloadRetryOptions setMaxRetryRequests(int maxRetryRequests) { + if (maxRetryRequests < 0) { + throw logger.logExceptionAsError( + new IllegalArgumentException(String.format(Locale.ROOT, PARAMETER_NOT_IN_RANGE, + "options.setMaxRetryRequests", 0, Integer.MAX_VALUE))); + } + + this.maxRetryRequests = maxRetryRequests; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileRange.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileRange.java new file mode 100644 index 0000000000000..5b9fd23ba60cb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileRange.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import java.util.Locale; + +/** + * This is a representation of a range of bytes on a file, typically used during a download operation. This type is + * immutable to ensure thread-safety of requests, so changing the values for a different operation requires construction + * of a new object. Passing null as a FileRange value will default to the entire range of the file. + */ +public final class FileRange { + private static final String RANGE_HEADER_FORMAT = "bytes=%d-%d"; + private static final String BEGIN_RANGE_HEADER_FORMAT = "bytes=%d-"; + + private final long offset; + private final Long count; + + /** + * Specifies the download operation to start from the offset position (zero-based) and download the rest of the + * entire file to the end. + * + * @param offset the zero-based position to start downloading + * @throws IllegalArgumentException If {@code offset} is less than {@code 0}. + */ + public FileRange(long offset) { + this(offset, null); + } + + /** + * Specifies the download operation to start from the offset position (zero-based) and download the count number of + * bytes. + * + * @param offset the zero-based position to start downloading + * @param count the number of bytes to download + * @throws IllegalArgumentException If {@code offset} or {@code count} is less than {@code 0}. + */ + public FileRange(long offset, Long count) { + if (offset < 0) { + throw new IllegalArgumentException("FileRange offset must be greater than or equal to 0."); + } + this.offset = offset; + + if (count != null && count < 0) { + throw new IllegalArgumentException("FileRange count must be greater than or equal to 0 if specified."); + } + this.count = count; + } + + /** + * The start of the range. Must be greater than or equal to 0. + * + * @return the offset for the range + */ + public long getOffset() { + return offset; + } + + /** + * How many bytes to include in the range. Must be greater than or equal to 0 if specified. + * + * @return the number bytes to include in the range + */ + public Long getCount() { + return count; + } + + /** + * @return A {@code String} compliant with the format of the Azure Storage x-ms-range and Range headers. + */ + @Override + public String toString() { + if (this.count != null) { + long rangeEnd = this.offset + this.count - 1; + return String.format(Locale.ROOT, RANGE_HEADER_FORMAT, this.offset, rangeEnd); + } + + return String.format(Locale.ROOT, BEGIN_RANGE_HEADER_FORMAT, this.offset); + } + + /** + * @return {@link FileRange#toString()} if {@code count} isn't {@code null} or {@code offset} isn't 0, otherwise + * null. + */ + public String toHeaderValue() { + // The default values of a FileRange + if (this.offset == 0 && this.count == null) { + return null; + } + return this.toString(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadAsyncResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadAsyncResponse.java new file mode 100644 index 0000000000000..2d29b9fa91305 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadAsyncResponse.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; +import reactor.core.publisher.Flux; + +import java.nio.ByteBuffer; + +/** + * This class contains the response information returned from the server when reading a file. + */ +public final class FileReadAsyncResponse extends ResponseBase> { + /** + * Constructs a {@link FileReadAsyncResponse}. + * + * @param request Request sent to the service. + * @param statusCode Response status code returned by the service. + * @param headers Raw headers returned in the response. + * @param value Stream of download data being returned by the service. + * @param deserializedHeaders Headers deserialized into an object. + */ + public FileReadAsyncResponse(HttpRequest request, int statusCode, HttpHeaders headers, Flux value, + FileReadHeaders deserializedHeaders) { + super(request, statusCode, headers, value, deserializedHeaders); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadHeaders.java new file mode 100644 index 0000000000000..0663fb36d8bca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadHeaders.java @@ -0,0 +1,814 @@ +// 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.azure.core.implementation.DateTimeRfc1123; +import com.azure.core.implementation.util.ImplUtils; +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Defines headers for Read operation. + */ +public final class FileReadHeaders { + + private DateTimeRfc1123 lastModified; + private Map metadata; + private Long contentLength; + private String contentType; + private String contentRange; + private String eTag; + private byte[] contentMd5; + private String contentEncoding; + private String cacheControl; + private String contentDisposition; + private String contentLanguage; + private DateTimeRfc1123 copyCompletionTime; + private String copyStatusDescription; + private String copyId; + private String copyProgress; + private String copySource; + private CopyStatusType copyStatus; + private LeaseDurationType leaseDuration; + private LeaseStateType leaseState; + private LeaseStatusType leaseStatus; + private String clientRequestId; + private String requestId; + private String version; + private String acceptRanges; + private DateTimeRfc1123 dateProperty; + private Boolean isServerEncrypted; + private String encryptionKeySha256; + private byte[] fileContentMD5; + private byte[] contentCrc64; + private String errorCode; + + /** + * Get the lastModified property: Returns the date and time the container + * was last modified. Any operation that modifies the file, including an + * update of the file's metadata or properties, changes the last-modified + * time of the file. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); + } + + /** + * Set the lastModified property: Returns the date and time the container + * was last modified. Any operation that modifies the file, including an + * update of the file's metadata or properties, changes the last-modified + * time of the file. + * + * @param lastModified the lastModified value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } + return this; + } + + /** + * Get the metadata property: The metadata property. + * + * @return the metadata value. + */ + public Map getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata property. + * + * @param metadata the metadata value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get the contentLength property: The number of bytes present in the + * response body. + * + * @return the contentLength value. + */ + public Long getContentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The number of bytes present in the + * response body. + * + * @param contentLength the contentLength value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * Get the contentType property: The media type of the body of the + * response. For Download Blob this is 'application/octet-stream'. + * + * @return the contentType value. + */ + public String getContentType() { + return this.contentType; + } + + /** + * Set the contentType property: The media type of the body of the + * response. For Download Blob this is 'application/octet-stream'. + * + * @param contentType the contentType value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * 'Range' request header. + * + * @return the contentRange value. + */ + public String getContentRange() { + return this.contentRange; + } + + /** + * Set the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * 'Range' request header. + * + * @param contentRange the contentRange value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentRange(String contentRange) { + this.contentRange = contentRange; + return this; + } + + /** + * Get the eTag property: The ETag contains a value that you can use to + * perform operations conditionally. If the request version is 2011-08-18 + * or newer, the ETag value will be in quotes. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag contains a value that you can use to + * perform operations conditionally. If the request version is 2011-08-18 + * or newer, the ETag value will be in quotes. + * + * @param eTag the eTag value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the contentMd5 property: If the file has an MD5 hash and this + * operation is to read the full file, this response header is returned so + * that the client can check for message content integrity. + * + * @return the contentMd5 value. + */ + public byte[] getContentMd5() { + return ImplUtils.clone(this.contentMd5); + } + + /** + * Set the contentMd5 property: If the file has an MD5 hash and this + * operation is to read the full file, this response header is returned so + * that the client can check for message content integrity. + * + * @param contentMd5 the contentMd5 value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentMd5(byte[] contentMd5) { + this.contentMd5 = ImplUtils.clone(contentMd5); + return this; + } + + /** + * Get the contentEncoding property: This header returns the value that was + * specified for the Content-Encoding request header. + * + * @return the contentEncoding value. + */ + public String getContentEncoding() { + return this.contentEncoding; + } + + /** + * Set the contentEncoding property: This header returns the value that was + * specified for the Content-Encoding request header. + * + * @param contentEncoding the contentEncoding value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Get the cacheControl property: This header is returned if it was + * previously specified for the file. + * + * @return the cacheControl value. + */ + public String getCacheControl() { + return this.cacheControl; + } + + /** + * Set the cacheControl property: This header is returned if it was + * previously specified for the file. + * + * @param cacheControl the cacheControl value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * Get the contentDisposition property: This header returns the value that + * was specified for the 'x-ms-blob-content-disposition' header. The + * Content-Disposition response header field conveys additional information + * about how to process the response payload, and also can be used to + * attach additional metadata. For example, if set to attachment, it + * indicates that the user-agent should not display the response, but + * instead show a Save As dialog with a filename other than the file name + * specified. + * + * @return the contentDisposition value. + */ + public String getContentDisposition() { + return this.contentDisposition; + } + + /** + * Set the contentDisposition property: This header returns the value that + * was specified for the 'x-ms-blob-content-disposition' header. The + * Content-Disposition response header field conveys additional information + * about how to process the response payload, and also can be used to + * attach additional metadata. For example, if set to attachment, it + * indicates that the user-agent should not display the response, but + * instead show a Save As dialog with a filename other than the file name + * specified. + * + * @param contentDisposition the contentDisposition value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * Get the contentLanguage property: This header returns the value that was + * specified for the Content-Language request header. + * + * @return the contentLanguage value. + */ + public String getContentLanguage() { + return this.contentLanguage; + } + + /** + * Set the contentLanguage property: This header returns the value that was + * specified for the Content-Language request header. + * + * @param contentLanguage the contentLanguage value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Get the copyCompletionTime property: Conclusion time of the last + * attempted Copy Blob operation where this file was the destination file. + * This value can specify the time of a completed, aborted, or failed copy + * attempt. This header does not appear if a copy is pending, if this file + * has never been the destination in a Copy Blob operation, or if this file + * has been modified after a concluded Copy Blob operation using Set Blob + * Properties, Put Blob, or Put Block List. + * + * @return the copyCompletionTime value. + */ + public OffsetDateTime getCopyCompletionTime() { + if (this.copyCompletionTime == null) { + return null; + } + return this.copyCompletionTime.getDateTime(); + } + + /** + * Set the copyCompletionTime property: Conclusion time of the last + * attempted Copy Blob operation where this file was the destination file. + * This value can specify the time of a completed, aborted, or failed copy + * attempt. This header does not appear if a copy is pending, if this file + * has never been the destination in a Copy Blob operation, or if this file + * has been modified after a concluded Copy Blob operation using Set Blob + * Properties, Put Blob, or Put Block List. + * + * @param copyCompletionTime the copyCompletionTime value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCopyCompletionTime(OffsetDateTime copyCompletionTime) { + if (copyCompletionTime == null) { + this.copyCompletionTime = null; + } else { + this.copyCompletionTime = new DateTimeRfc1123(copyCompletionTime); + } + return this; + } + + /** + * Get the copyStatusDescription property: Only appears when + * x-ms-copy-status is failed or pending. Describes the cause of the last + * fatal or non-fatal copy operation failure. This header does not appear + * if this file has never been the destination in a Copy Blob operation, or + * if this file has been modified after a concluded Copy Blob operation + * using Set Blob Properties, Put Blob, or Put Block List. + * + * @return the copyStatusDescription value. + */ + public String getCopyStatusDescription() { + return this.copyStatusDescription; + } + + /** + * Set the copyStatusDescription property: Only appears when + * x-ms-copy-status is failed or pending. Describes the cause of the last + * fatal or non-fatal copy operation failure. This header does not appear + * if this file has never been the destination in a Copy Blob operation, or + * if this file has been modified after a concluded Copy Blob operation + * using Set Blob Properties, Put Blob, or Put Block List. + * + * @param copyStatusDescription the copyStatusDescription value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCopyStatusDescription(String copyStatusDescription) { + this.copyStatusDescription = copyStatusDescription; + return this; + } + + /** + * Get the copyId property: String identifier for this copy operation. Use + * with Get Blob Properties to check the status of this copy operation, or + * pass to Abort Copy Blob to abort a pending copy. + * + * @return the copyId value. + */ + public String getCopyId() { + return this.copyId; + } + + /** + * Set the copyId property: String identifier for this copy operation. Use + * with Get Blob Properties to check the status of this copy operation, or + * pass to Abort Copy Blob to abort a pending copy. + * + * @param copyId the copyId value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCopyId(String copyId) { + this.copyId = copyId; + return this; + } + + /** + * Get the copyProgress property: Contains the number of bytes copied and + * the total bytes in the source in the last attempted Copy Blob operation + * where this file was the destination file. Can show between 0 and + * Content-Length bytes copied. This header does not appear if this file + * has never been the destination in a Copy Blob operation, or if this file + * has been modified after a concluded Copy Blob operation using Set Blob + * Properties, Put Blob, or Put Block List. + * + * @return the copyProgress value. + */ + public String getCopyProgress() { + return this.copyProgress; + } + + /** + * Set the copyProgress property: Contains the number of bytes copied and + * the total bytes in the source in the last attempted Copy Blob operation + * where this file was the destination file. Can show between 0 and + * Content-Length bytes copied. This header does not appear if this file + * has never been the destination in a Copy Blob operation, or if this file + * has been modified after a concluded Copy Blob operation using Set Blob + * Properties, Put Blob, or Put Block List. + * + * @param copyProgress the copyProgress value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCopyProgress(String copyProgress) { + this.copyProgress = copyProgress; + return this; + } + + /** + * Get the copySource property: URL up to 2 KB in length that specifies the + * source file or file used in the last attempted Copy Blob operation where + * this file was the destination file. This header does not appear if this + * file has never been the destination in a Copy Blob operation, or if this + * file has been modified after a concluded Copy Blob operation using Set + * Blob Properties, Put Blob, or Put Block List. + * + * @return the copySource value. + */ + public String getCopySource() { + return this.copySource; + } + + /** + * Set the copySource property: URL up to 2 KB in length that specifies the + * source file or file used in the last attempted Copy Blob operation where + * this file was the destination file. This header does not appear if this + * file has never been the destination in a Copy Blob operation, or if this + * file has been modified after a concluded Copy Blob operation using Set + * Blob Properties, Put Blob, or Put Block List. + * + * @param copySource the copySource value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCopySource(String copySource) { + this.copySource = copySource; + return this; + } + + /** + * Get the copyStatus property: State of the copy operation identified by + * x-ms-copy-id. Possible values include: 'pending', 'success', 'aborted', + * 'failed'. + * + * @return the copyStatus value. + */ + public CopyStatusType getCopyStatus() { + return this.copyStatus; + } + + /** + * Set the copyStatus property: State of the copy operation identified by + * x-ms-copy-id. Possible values include: 'pending', 'success', 'aborted', + * 'failed'. + * + * @param copyStatus the copyStatus value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setCopyStatus(CopyStatusType copyStatus) { + this.copyStatus = copyStatus; + return this; + } + + /** + * Get the leaseDuration property: When a file is leased, specifies whether + * the lease is of infinite or fixed duration. Possible values include: + * 'infinite', 'fixed'. + * + * @return the leaseDuration value. + */ + public LeaseDurationType getLeaseDuration() { + return this.leaseDuration; + } + + /** + * Set the leaseDuration property: When a file is leased, specifies whether + * the lease is of infinite or fixed duration. Possible values include: + * 'infinite', 'fixed'. + * + * @param leaseDuration the leaseDuration value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setLeaseDuration(LeaseDurationType leaseDuration) { + this.leaseDuration = leaseDuration; + return this; + } + + /** + * Get the leaseState property: Lease state of the file. Possible values + * include: 'available', 'leased', 'expired', 'breaking', 'broken'. + * + * @return the leaseState value. + */ + public LeaseStateType getLeaseState() { + return this.leaseState; + } + + /** + * Set the leaseState property: Lease state of the file. Possible values + * include: 'available', 'leased', 'expired', 'breaking', 'broken'. + * + * @param leaseState the leaseState value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setLeaseState(LeaseStateType leaseState) { + this.leaseState = leaseState; + return this; + } + + /** + * Get the leaseStatus property: The current lease status of the file. + * Possible values include: 'locked', 'unlocked'. + * + * @return the leaseStatus value. + */ + public LeaseStatusType getLeaseStatus() { + return this.leaseStatus; + } + + /** + * Set the leaseStatus property: The current lease status of the file. + * Possible values include: 'locked', 'unlocked'. + * + * @param leaseStatus the leaseStatus value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setLeaseStatus(LeaseStatusType leaseStatus) { + this.leaseStatus = leaseStatus; + return this; + } + + /** + * Get the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @return the clientRequestId value. + */ + public String getClientRequestId() { + return this.clientRequestId; + } + + /** + * Set the clientRequestId property: If a client request id header is sent + * in the request, this header will be present in the response with the + * same value. + * + * @param clientRequestId the clientRequestId value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setClientRequestId(String clientRequestId) { + this.clientRequestId = clientRequestId; + return this; + } + + /** + * Get the requestId property: This header uniquely identifies the request + * that was made and can be used for troubleshooting the request. + * + * @return the requestId value. + */ + public String getRequestId() { + return this.requestId; + } + + /** + * Set the requestId property: This header uniquely identifies the request + * that was made and can be used for troubleshooting the request. + * + * @param requestId the requestId value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setRequestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Get the version property: Indicates the version of the Blob service used + * to execute the request. This header is returned for requests made + * against version 2009-09-19 and above. + * + * @return the version value. + */ + public String getVersion() { + return this.version; + } + + /** + * Set the version property: Indicates the version of the Blob service used + * to execute the request. This header is returned for requests made + * against version 2009-09-19 and above. + * + * @param version the version value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setVersion(String version) { + this.version = version; + return this; + } + + /** + * Get the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @return the acceptRanges value. + */ + public String getAcceptRanges() { + return this.acceptRanges; + } + + /** + * Set the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @param acceptRanges the acceptRanges value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setAcceptRanges(String acceptRanges) { + this.acceptRanges = acceptRanges; + return this; + } + + /** + * Get the dateProperty property: UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public OffsetDateTime getDateProperty() { + if (this.dateProperty == null) { + return null; + } + return this.dateProperty.getDateTime(); + } + + /** + * Set the dateProperty property: UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setDateProperty(OffsetDateTime dateProperty) { + if (dateProperty == null) { + this.dateProperty = null; + } else { + this.dateProperty = new DateTimeRfc1123(dateProperty); + } + return this; + } + + /** + * Get the isServerEncrypted property: The value of this header is set to + * true if the file data and application metadata are completely encrypted + * using the specified algorithm. Otherwise, the value is set to false + * (when the file is unencrypted, or if only parts of the file/application + * metadata are encrypted). + * + * @return the isServerEncrypted value. + */ + public Boolean isServerEncrypted() { + return this.isServerEncrypted; + } + + /** + * Set the isServerEncrypted property: The value of this header is set to + * true if the file data and application metadata are completely encrypted + * using the specified algorithm. Otherwise, the value is set to false + * (when the file is unencrypted, or if only parts of the file/application + * metadata are encrypted). + * + * @param isServerEncrypted the isServerEncrypted value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setIsServerEncrypted(Boolean isServerEncrypted) { + this.isServerEncrypted = isServerEncrypted; + return this; + } + + /** + * Get the encryptionKeySha256 property: The SHA-256 hash of the encryption + * key used to encrypt the file. This header is only returned when the file + * was encrypted with a customer-provided key. + * + * @return the encryptionKeySha256 value. + */ + public String getEncryptionKeySha256() { + return this.encryptionKeySha256; + } + + /** + * Set the encryptionKeySha256 property: The SHA-256 hash of the encryption + * key used to encrypt the file. This header is only returned when the file + * was encrypted with a customer-provided key. + * + * @param encryptionKeySha256 the encryptionKeySha256 value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setEncryptionKeySha256(String encryptionKeySha256) { + this.encryptionKeySha256 = encryptionKeySha256; + return this; + } + + /** + * Get the fileContentMD5 property: If the file has a MD5 hash, and if + * request contains range header (Range or x-ms-range), this response + * header is returned with the value of the whole file's MD5 value. This + * value may or may not be equal to the value returned in Content-MD5 + * header, with the latter calculated from the requested range. + * + * @return the fileContentMD5 value. + */ + public byte[] getFileContentMD5() { + return ImplUtils.clone(this.fileContentMD5); + } + + /** + * Set the fileContentMD5 property: If the file has a MD5 hash, and if + * request contains range header (Range or x-ms-range), this response + * header is returned with the value of the whole file's MD5 value. This + * value may or may not be equal to the value returned in Content-MD5 + * header, with the latter calculated from the requested range. + * + * @param fileContentMD5 the fileContentMD5 value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setFileContentMD5(byte[] fileContentMD5) { + this.fileContentMD5 = ImplUtils.clone(fileContentMD5); + return this; + } + + /** + * Get the contentCrc64 property: If the request is to read a specified + * range and the x-ms-range-get-content-crc64 is set to true, then the + * request returns a crc64 for the range, as long as the range size is less + * than or equal to 4 MB. If both x-ms-range-get-content-crc64 & + * x-ms-range-get-content-md5 is specified in the same request, it will + * fail with 400(Bad Request). + * + * @return the contentCrc64 value. + */ + public byte[] getContentCrc64() { + return ImplUtils.clone(this.contentCrc64); + } + + /** + * Set the contentCrc64 property: If the request is to read a specified + * range and the x-ms-range-get-content-crc64 is set to true, then the + * request returns a crc64 for the range, as long as the range size is less + * than or equal to 4 MB. If both x-ms-range-get-content-crc64 & + * x-ms-range-get-content-md5 is specified in the same request, it will + * fail with 400(Bad Request). + * + * @param contentCrc64 the contentCrc64 value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setContentCrc64(byte[] contentCrc64) { + this.contentCrc64 = ImplUtils.clone(contentCrc64); + return this; + } + + /** + * Get the errorCode property: The errorCode property. + * + * @return the errorCode value. + */ + public String getErrorCode() { + return this.errorCode; + } + + /** + * Set the errorCode property: The errorCode property. + * + * @param errorCode the errorCode value to set. + * @return the FileReadHeaders object itself. + */ + public FileReadHeaders setErrorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadResponse.java new file mode 100644 index 0000000000000..7252c515c8c6d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileReadResponse.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.rest.ResponseBase; + +/** + * This class contains the response information return from the server when reading a file. + */ +public final class FileReadResponse extends ResponseBase { + /** + * Constructs a {@link FileReadResponse}. + * + * @param response Response returned from the service. + */ + public FileReadResponse(FileReadAsyncResponse response) { + super(response.getRequest(), response.getStatusCode(), response.getHeaders(), null, + response.getDeserializedHeaders()); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemItem.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemItem.java new file mode 100644 index 0000000000000..4088b64050980 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemItem.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import java.util.Map; + +/** + * An Azure Storage file system. + */ +public class FileSystemItem { + private String name; + private FileSystemItemProperties properties; + private Map metadata; + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the FileSystemItem object itself. + */ + public FileSystemItem setName(String name) { + this.name = name; + return this; + } + + /** + * Get the properties property: The properties property. + * + * @return the properties value. + */ + public FileSystemItemProperties getProperties() { + return this.properties; + } + + /** + * Set the properties property: The properties property. + * + * @param properties the properties value to set. + * @return the FileSystemItem object itself. + */ + public FileSystemItem setProperties(FileSystemItemProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the metadata property: The metadata property. + * + * @return the metadata value. + */ + public Map getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: The metadata property. + * + * @param metadata the metadata value to set. + * @return the FileSystemItem object itself. + */ + public FileSystemItem setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemItemProperties.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemItemProperties.java new file mode 100644 index 0000000000000..174c8683465e6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemItemProperties.java @@ -0,0 +1,201 @@ +// 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.azure.core.implementation.DateTimeRfc1123; + +import java.time.OffsetDateTime; + +/** + * Properties of a file system. + */ +public final class FileSystemItemProperties { + + private DateTimeRfc1123 lastModified; + private String eTag; + private LeaseStatusType leaseStatus; + private LeaseStateType leaseState; + private LeaseDurationType leaseDuration; + private PublicAccessType publicAccess; + private Boolean hasImmutabilityPolicy; + private Boolean hasLegalHold; + + /** + * Get the lastModified property: The lastModified property. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + if (this.lastModified == null) { + return null; + } + return this.lastModified.getDateTime(); + } + + /** + * Set the lastModified property: The lastModified property. + * + * @param lastModified the lastModified value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setLastModified(OffsetDateTime lastModified) { + if (lastModified == null) { + this.lastModified = null; + } else { + this.lastModified = new DateTimeRfc1123(lastModified); + } + return this; + } + + /** + * Get the eTag property: The eTag property. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The eTag property. + * + * @param eTag the eTag value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the leaseStatus property: Possible values include: 'locked', + * 'unlocked'. + * + * @return the leaseStatus value. + */ + public LeaseStatusType getLeaseStatus() { + return this.leaseStatus; + } + + /** + * Set the leaseStatus property: Possible values include: 'locked', + * 'unlocked'. + * + * @param leaseStatus the leaseStatus value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setLeaseStatus(LeaseStatusType leaseStatus) { + this.leaseStatus = leaseStatus; + return this; + } + + /** + * Get the leaseState property: Possible values include: 'available', + * 'leased', 'expired', 'breaking', 'broken'. + * + * @return the leaseState value. + */ + public LeaseStateType getLeaseState() { + return this.leaseState; + } + + /** + * Set the leaseState property: Possible values include: 'available', + * 'leased', 'expired', 'breaking', 'broken'. + * + * @param leaseState the leaseState value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setLeaseState(LeaseStateType leaseState) { + this.leaseState = leaseState; + return this; + } + + /** + * Get the leaseDuration property: Possible values include: 'infinite', + * 'fixed'. + * + * @return the leaseDuration value. + */ + public LeaseDurationType getLeaseDuration() { + return this.leaseDuration; + } + + /** + * Set the leaseDuration property: Possible values include: 'infinite', + * 'fixed'. + * + * @param leaseDuration the leaseDuration value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setLeaseDuration(LeaseDurationType leaseDuration) { + this.leaseDuration = leaseDuration; + return this; + } + + /** + * Get the publicAccess property: Possible values include: 'container', + * 'blob'. + * + * @return the publicAccess value. + */ + public PublicAccessType getPublicAccess() { + return this.publicAccess; + } + + /** + * Set the publicAccess property: Possible values include: 'container', + * 'blob'. + * + * @param publicAccess the publicAccess value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setPublicAccess(PublicAccessType publicAccess) { + this.publicAccess = publicAccess; + return this; + } + + /** + * Get the hasImmutabilityPolicy property: The hasImmutabilityPolicy + * property. + * + * @return the hasImmutabilityPolicy value. + */ + public Boolean isHasImmutabilityPolicy() { + return this.hasImmutabilityPolicy; + } + + /** + * Set the hasImmutabilityPolicy property: The hasImmutabilityPolicy + * property. + * + * @param hasImmutabilityPolicy the hasImmutabilityPolicy value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setHasImmutabilityPolicy(Boolean hasImmutabilityPolicy) { + this.hasImmutabilityPolicy = hasImmutabilityPolicy; + return this; + } + + /** + * Get the hasLegalHold property: The hasLegalHold property. + * + * @return the hasLegalHold value. + */ + public Boolean isHasLegalHold() { + return this.hasLegalHold; + } + + /** + * Set the hasLegalHold property: The hasLegalHold property. + * + * @param hasLegalHold the hasLegalHold value to set. + * @return the FileSystemItemProperties object itself. + */ + public FileSystemItemProperties setHasLegalHold(Boolean hasLegalHold) { + this.hasLegalHold = hasLegalHold; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemListDetails.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemListDetails.java new file mode 100644 index 0000000000000..9327f83103a7f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemListDetails.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.storage.file.datalake.DataLakeServiceAsyncClient; + +/** + * This type allows users to specify additional information the service should return with each file system when listing + * file systems in an account (via a {@link DataLakeServiceAsyncClient} object). This type is immutable to ensure + * thread-safety of requests, so changing the details for a different listing operation requires construction of a + * new object. Null may be passed if none of the options are desirable. + */ +public final class FileSystemListDetails { + + private boolean retrieveMetadata; + + public FileSystemListDetails() { + + } + + /** + * Whether metadata should be returned. + * + * @return a flag indicating whether metadata should be returned in the listing + */ + public boolean getRetrieveMetadata() { + return this.retrieveMetadata; + } + + /** + * Whether metadata should be returned. + * + * @param retrieveMetadata Flag indicating whether metadata should be returned + * @return the updated FileSystemListDetails object + */ + public FileSystemListDetails setRetrieveMetadata(boolean retrieveMetadata) { + this.retrieveMetadata = retrieveMetadata; + return this; + } + + /** + * @return the listing flags + */ + public ListFileSystemsIncludeType toIncludeType() { + if (this.retrieveMetadata) { + return ListFileSystemsIncludeType.METADATA; + } + return null; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemProperties.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemProperties.java new file mode 100644 index 0000000000000..4bf5ec1c98bce --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FileSystemProperties.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Properties of a file system. + */ +public final class FileSystemProperties { + private final Map metadata; + private final String eTag; + private final OffsetDateTime lastModified; + private final LeaseDurationType leaseDuration; + private final LeaseStateType leaseState; + private final LeaseStatusType leaseStatus; + private final PublicAccessType dataLakePublicAccess; + private final boolean hasImmutabilityPolicy; + private final boolean hasLegalHold; + + /** + * Constructs a {@link FileSystemProperties}. + * + * @param metadata Metadata associated with the file system. + * @param eTag ETag of the file system. + * @param lastModified Datetime when the file system was last modified. + * @param leaseDuration Type of the lease on the file system. + * @param leaseState State of the lease on the file system. + * @param leaseStatus Status of the lease on the file system. + * @param dataLakePublicAccess Public access status for the file system. + * @param hasImmutabilityPolicy Flag indicating if the file system has an immutability policy set on it. + * @param hasLegalHold Flag indicating if the file system has a legal hold. + */ + public FileSystemProperties(final Map metadata, final String eTag, + final OffsetDateTime lastModified, final LeaseDurationType leaseDuration, final LeaseStateType leaseState, + final LeaseStatusType leaseStatus, final PublicAccessType dataLakePublicAccess, + final boolean hasImmutabilityPolicy, final boolean hasLegalHold) { + this.metadata = metadata; + this.eTag = eTag; + this.lastModified = lastModified; + this.leaseDuration = leaseDuration; + this.leaseState = leaseState; + this.leaseStatus = leaseStatus; + this.dataLakePublicAccess = dataLakePublicAccess; + this.hasImmutabilityPolicy = hasImmutabilityPolicy; + this.hasLegalHold = hasLegalHold; + } + + /** + * @return the metadata associated with the file system + */ + public Map getMetadata() { + return metadata; + } + + /** + * @return the eTag of the file system + */ + public String getETag() { + return eTag; + } + + /** + * @return the time the file system was last modified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + /** + * @return the type of lease on the file system + */ + public LeaseDurationType getLeaseDuration() { + return leaseDuration; + } + + /** + * @return the lease state of the file system + */ + public LeaseStateType getLeaseState() { + return leaseState; + } + + /** + * @return the lease status of the file system + */ + public LeaseStatusType getLeaseStatus() { + return leaseStatus; + } + + /** + * @return the access type for the file system + */ + public PublicAccessType getPublicAccess() { + return dataLakePublicAccess; + } + + /** + * @return the immutability status for the file system + */ + public boolean hasImmutabilityPolicy() { + return hasImmutabilityPolicy; + } + + /** + * @return the legal hold status for the file system + */ + public boolean hasLegalHold() { + return hasLegalHold; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java deleted file mode 100644 index 6a7674ad590c4..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java +++ /dev/null @@ -1,190 +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.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Defines headers for Create operation. - */ -@Fluent -public final class FilesystemCreateHeaders { - /* - * A UTC date/time value generated by the service that indicates the time - * at which the response was initiated. - */ - @JsonProperty(value = "Date") - private String dateProperty; - - /* - * An HTTP entity tag associated with the filesystem. - */ - @JsonProperty(value = "ETag") - private String eTag; - - /* - * The data and time the filesystem was last modified. Operations on files - * and directories do not affect the last modified time. - */ - @JsonProperty(value = "Last-Modified") - private String lastModified; - - /* - * A server-generated UUID recorded in the analytics logs for - * troubleshooting and correlation. - */ - @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; - - /* - * The version of the REST protocol used to process the request. - */ - @JsonProperty(value = "x-ms-version") - private String xMsVersion; - - /* - * A bool string indicates whether the namespace feature is enabled. If - * "true", the namespace is enabled for the filesystem. - */ - @JsonProperty(value = "x-ms-namespace-enabled") - private String xMsNamespaceEnabled; - - /** - * Get the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @return the dateProperty value. - */ - public String getDateProperty() { - return this.dateProperty; - } - - /** - * Set the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @param dateProperty the dateProperty value to set. - * @return the FilesystemCreateHeaders object itself. - */ - public FilesystemCreateHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; - return this; - } - - /** - * Get the eTag property: An HTTP entity tag associated with the - * filesystem. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: An HTTP entity tag associated with the - * filesystem. - * - * @param eTag the eTag value to set. - * @return the FilesystemCreateHeaders object itself. - */ - public FilesystemCreateHeaders setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the lastModified property: The data and time the filesystem was last - * modified. Operations on files and directories do not affect the last - * modified time. - * - * @return the lastModified value. - */ - public String getLastModified() { - return this.lastModified; - } - - /** - * Set the lastModified property: The data and time the filesystem was last - * modified. Operations on files and directories do not affect the last - * modified time. - * - * @param lastModified the lastModified value to set. - * @return the FilesystemCreateHeaders object itself. - */ - public FilesystemCreateHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; - return this; - } - - /** - * Get the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @return the xMsRequestId value. - */ - public String getXMsRequestId() { - return this.xMsRequestId; - } - - /** - * Set the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @param xMsRequestId the xMsRequestId value to set. - * @return the FilesystemCreateHeaders object itself. - */ - public FilesystemCreateHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; - return this; - } - - /** - * Get the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @return the xMsVersion value. - */ - public String getXMsVersion() { - return this.xMsVersion; - } - - /** - * Set the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @param xMsVersion the xMsVersion value to set. - * @return the FilesystemCreateHeaders object itself. - */ - public FilesystemCreateHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; - return this; - } - - /** - * Get the xMsNamespaceEnabled property: A bool string indicates whether - * the namespace feature is enabled. If "true", the namespace is enabled - * for the filesystem. - * - * @return the xMsNamespaceEnabled value. - */ - public String getXMsNamespaceEnabled() { - return this.xMsNamespaceEnabled; - } - - /** - * Set the xMsNamespaceEnabled property: A bool string indicates whether - * the namespace feature is enabled. If "true", the namespace is enabled - * for the filesystem. - * - * @param xMsNamespaceEnabled the xMsNamespaceEnabled value to set. - * @return the FilesystemCreateHeaders object itself. - */ - public FilesystemCreateHeaders setXMsNamespaceEnabled(String xMsNamespaceEnabled) { - this.xMsNamespaceEnabled = xMsNamespaceEnabled; - return this; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java deleted file mode 100644 index 8950c157c142c..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java +++ /dev/null @@ -1,100 +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.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Defines headers for Delete operation. - */ -@Fluent -public final class FilesystemDeleteHeaders { - /* - * A server-generated UUID recorded in the analytics logs for - * troubleshooting and correlation. - */ - @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; - - /* - * The version of the REST protocol used to process the request. - */ - @JsonProperty(value = "x-ms-version") - private String xMsVersion; - - /* - * A UTC date/time value generated by the service that indicates the time - * at which the response was initiated. - */ - @JsonProperty(value = "Date") - private String dateProperty; - - /** - * Get the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @return the xMsRequestId value. - */ - public String getXMsRequestId() { - return this.xMsRequestId; - } - - /** - * Set the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @param xMsRequestId the xMsRequestId value to set. - * @return the FilesystemDeleteHeaders object itself. - */ - public FilesystemDeleteHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; - return this; - } - - /** - * Get the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @return the xMsVersion value. - */ - public String getXMsVersion() { - return this.xMsVersion; - } - - /** - * Set the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @param xMsVersion the xMsVersion value to set. - * @return the FilesystemDeleteHeaders object itself. - */ - public FilesystemDeleteHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; - return this; - } - - /** - * Get the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @return the dateProperty value. - */ - public String getDateProperty() { - return this.dateProperty; - } - - /** - * Set the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @param dateProperty the dateProperty value to set. - * @return the FilesystemDeleteHeaders object itself. - */ - public FilesystemDeleteHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; - return this; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java deleted file mode 100644 index 646e3ee26b391..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java +++ /dev/null @@ -1,233 +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.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Defines headers for GetProperties operation. - */ -@Fluent -public final class FilesystemGetPropertiesHeaders { - /* - * A UTC date/time value generated by the service that indicates the time - * at which the response was initiated. - */ - @JsonProperty(value = "Date") - private String dateProperty; - - /* - * An HTTP entity tag associated with the filesystem. Changes to - * filesystem properties affect the entity tag, but operations on files and - * directories do not. - */ - @JsonProperty(value = "ETag") - private String eTag; - - /* - * The data and time the filesystem was last modified. Changes to - * filesystem properties update the last modified time, but operations on - * files and directories do not. - */ - @JsonProperty(value = "Last-Modified") - private String lastModified; - - /* - * A server-generated UUID recorded in the analytics logs for - * troubleshooting and correlation. - */ - @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; - - /* - * The version of the REST protocol used to process the request. - */ - @JsonProperty(value = "x-ms-version") - private String xMsVersion; - - /* - * The user-defined properties associated with the filesystem. A - * comma-separated list of name and value pairs in the format "n1=v1, - * n2=v2, ...", where each value is a base64 encoded string. Note that the - * string may only contain ASCII characters in the ISO-8859-1 character - * set. - */ - @JsonProperty(value = "x-ms-properties") - private String xMsProperties; - - /* - * A bool string indicates whether the namespace feature is enabled. If - * "true", the namespace is enabled for the filesystem. - */ - @JsonProperty(value = "x-ms-namespace-enabled") - private String xMsNamespaceEnabled; - - /** - * Get the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @return the dateProperty value. - */ - public String getDateProperty() { - return this.dateProperty; - } - - /** - * Set the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @param dateProperty the dateProperty value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; - return this; - } - - /** - * Get the eTag property: An HTTP entity tag associated with the - * filesystem. Changes to filesystem properties affect the entity tag, but - * operations on files and directories do not. - * - * @return the eTag value. - */ - public String getETag() { - return this.eTag; - } - - /** - * Set the eTag property: An HTTP entity tag associated with the - * filesystem. Changes to filesystem properties affect the entity tag, but - * operations on files and directories do not. - * - * @param eTag the eTag value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setETag(String eTag) { - this.eTag = eTag; - return this; - } - - /** - * Get the lastModified property: The data and time the filesystem was last - * modified. Changes to filesystem properties update the last modified - * time, but operations on files and directories do not. - * - * @return the lastModified value. - */ - public String getLastModified() { - return this.lastModified; - } - - /** - * Set the lastModified property: The data and time the filesystem was last - * modified. Changes to filesystem properties update the last modified - * time, but operations on files and directories do not. - * - * @param lastModified the lastModified value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setLastModified(String lastModified) { - this.lastModified = lastModified; - return this; - } - - /** - * Get the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @return the xMsRequestId value. - */ - public String getXMsRequestId() { - return this.xMsRequestId; - } - - /** - * Set the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @param xMsRequestId the xMsRequestId value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; - return this; - } - - /** - * Get the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @return the xMsVersion value. - */ - public String getXMsVersion() { - return this.xMsVersion; - } - - /** - * Set the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @param xMsVersion the xMsVersion value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; - return this; - } - - /** - * Get the xMsProperties property: The user-defined properties associated - * with the filesystem. A comma-separated list of name and value pairs in - * the format "n1=v1, n2=v2, ...", where each value is a base64 encoded - * string. Note that the string may only contain ASCII characters in the - * ISO-8859-1 character set. - * - * @return the xMsProperties value. - */ - public String getXMsProperties() { - return this.xMsProperties; - } - - /** - * Set the xMsProperties property: The user-defined properties associated - * with the filesystem. A comma-separated list of name and value pairs in - * the format "n1=v1, n2=v2, ...", where each value is a base64 encoded - * string. Note that the string may only contain ASCII characters in the - * ISO-8859-1 character set. - * - * @param xMsProperties the xMsProperties value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setXMsProperties(String xMsProperties) { - this.xMsProperties = xMsProperties; - return this; - } - - /** - * Get the xMsNamespaceEnabled property: A bool string indicates whether - * the namespace feature is enabled. If "true", the namespace is enabled - * for the filesystem. - * - * @return the xMsNamespaceEnabled value. - */ - public String getXMsNamespaceEnabled() { - return this.xMsNamespaceEnabled; - } - - /** - * Set the xMsNamespaceEnabled property: A bool string indicates whether - * the namespace feature is enabled. If "true", the namespace is enabled - * for the filesystem. - * - * @param xMsNamespaceEnabled the xMsNamespaceEnabled value to set. - * @return the FilesystemGetPropertiesHeaders object itself. - */ - public FilesystemGetPropertiesHeaders setXMsNamespaceEnabled(String xMsNamespaceEnabled) { - this.xMsNamespaceEnabled = xMsNamespaceEnabled; - return this; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java deleted file mode 100644 index 193aeea5f3af3..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java +++ /dev/null @@ -1,167 +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.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Defines headers for List operation. - */ -@Fluent -public final class FilesystemListHeaders { - /* - * A UTC date/time value generated by the service that indicates the time - * at which the response was initiated. - */ - @JsonProperty(value = "Date") - private String dateProperty; - - /* - * A server-generated UUID recorded in the analytics logs for - * troubleshooting and correlation. - */ - @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; - - /* - * The version of the REST protocol used to process the request. - */ - @JsonProperty(value = "x-ms-version") - private String xMsVersion; - - /* - * If the number of filesystems to be listed exceeds the maxResults limit, - * a continuation token is returned in this response header. When a - * continuation token is returned in the response, it must be specified in - * a subsequent invocation of the list operation to continue listing the - * filesystems. - */ - @JsonProperty(value = "x-ms-continuation") - private String xMsContinuation; - - /* - * The content type of list filesystem response. The default content type - * is application/json. - */ - @JsonProperty(value = "Content-Type") - private String contentType; - - /** - * Get the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @return the dateProperty value. - */ - public String getDateProperty() { - return this.dateProperty; - } - - /** - * Set the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @param dateProperty the dateProperty value to set. - * @return the FilesystemListHeaders object itself. - */ - public FilesystemListHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; - return this; - } - - /** - * Get the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @return the xMsRequestId value. - */ - public String getXMsRequestId() { - return this.xMsRequestId; - } - - /** - * Set the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @param xMsRequestId the xMsRequestId value to set. - * @return the FilesystemListHeaders object itself. - */ - public FilesystemListHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; - return this; - } - - /** - * Get the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @return the xMsVersion value. - */ - public String getXMsVersion() { - return this.xMsVersion; - } - - /** - * Set the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @param xMsVersion the xMsVersion value to set. - * @return the FilesystemListHeaders object itself. - */ - public FilesystemListHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; - return this; - } - - /** - * Get the xMsContinuation property: If the number of filesystems to be - * listed exceeds the maxResults limit, a continuation token is returned in - * this response header. When a continuation token is returned in the - * response, it must be specified in a subsequent invocation of the list - * operation to continue listing the filesystems. - * - * @return the xMsContinuation value. - */ - public String getXMsContinuation() { - return this.xMsContinuation; - } - - /** - * Set the xMsContinuation property: If the number of filesystems to be - * listed exceeds the maxResults limit, a continuation token is returned in - * this response header. When a continuation token is returned in the - * response, it must be specified in a subsequent invocation of the list - * operation to continue listing the filesystems. - * - * @param xMsContinuation the xMsContinuation value to set. - * @return the FilesystemListHeaders object itself. - */ - public FilesystemListHeaders setXMsContinuation(String xMsContinuation) { - this.xMsContinuation = xMsContinuation; - return this; - } - - /** - * Get the contentType property: The content type of list filesystem - * response. The default content type is application/json. - * - * @return the contentType value. - */ - public String getContentType() { - return this.contentType; - } - - /** - * Set the contentType property: The content type of list filesystem - * response. The default content type is application/json. - * - * @param contentType the contentType value to set. - * @return the FilesystemListHeaders object itself. - */ - public FilesystemListHeaders setContentType(String contentType) { - this.contentType = contentType; - return this; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseDurationType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseDurationType.java new file mode 100644 index 0000000000000..66c283a3376d9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseDurationType.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * Defines values for LeaseDurationType. + */ +public enum LeaseDurationType { + /** + * Enum value infinite. + */ + INFINITE("infinite"), + + /** + * Enum value fixed. + */ + FIXED("fixed"); + + /** + * The actual serialized value for a LeaseDurationType instance. + */ + private final String value; + + LeaseDurationType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a LeaseDurationType instance. + * + * @param value the serialized value to parse. + * @return the parsed LeaseDurationType object, or null if unable to parse. + */ + public static LeaseDurationType fromString(String value) { + LeaseDurationType[] items = LeaseDurationType.values(); + for (LeaseDurationType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @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/LeaseStateType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseStateType.java new file mode 100644 index 0000000000000..85d713bab3b01 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseStateType.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * Defines values for LeaseStateType. + */ +public enum LeaseStateType { + /** + * Enum value available. + */ + AVAILABLE("available"), + + /** + * Enum value leased. + */ + LEASED("leased"), + + /** + * Enum value expired. + */ + EXPIRED("expired"), + + /** + * Enum value breaking. + */ + BREAKING("breaking"), + + /** + * Enum value broken. + */ + BROKEN("broken"); + + /** + * The actual serialized value for a LeaseStateType instance. + */ + private final String value; + + LeaseStateType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a LeaseStateType instance. + * + * @param value the serialized value to parse. + * @return the parsed LeaseStateType object, or null if unable to parse. + */ + public static LeaseStateType fromString(String value) { + LeaseStateType[] items = LeaseStateType.values(); + for (LeaseStateType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @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/LeaseStatusType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseStatusType.java new file mode 100644 index 0000000000000..ca4254a93650f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/LeaseStatusType.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * Defines values for LeaseStatusType. + */ +public enum LeaseStatusType { + /** + * Enum value locked. + */ + LOCKED("locked"), + + /** + * Enum value unlocked. + */ + UNLOCKED("unlocked"); + + /** + * The actual serialized value for a LeaseStatusType instance. + */ + private final String value; + + LeaseStatusType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a LeaseStatusType instance. + * + * @param value the serialized value to parse. + * @return the parsed LeaseStatusType object, or null if unable to parse. + */ + public static LeaseStatusType fromString(String value) { + LeaseStatusType[] items = LeaseStatusType.values(); + for (LeaseStatusType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @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/ListFileSystemsIncludeType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListFileSystemsIncludeType.java new file mode 100644 index 0000000000000..ccb170b207942 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListFileSystemsIncludeType.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * Defines values for ListFileSystemsIncludeType. + */ +public enum ListFileSystemsIncludeType { + /** + * Enum value metadata. + */ + METADATA("metadata"); + + /** + * The actual serialized value for a ListFileSystemsIncludeType instance. + */ + private final String value; + + ListFileSystemsIncludeType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a ListFileSystemsIncludeType instance. + * + * @param value the serialized value to parse. + * @return the parsed ListFileSystemsIncludeType object, or null if unable to parse. + */ + public static ListFileSystemsIncludeType fromString(String value) { + ListFileSystemsIncludeType[] items = ListFileSystemsIncludeType.values(); + for (ListFileSystemsIncludeType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @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/ListFileSystemsOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListFileSystemsOptions.java new file mode 100644 index 0000000000000..bda2cba93af89 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListFileSystemsOptions.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.file.datalake.DataLakeServiceAsyncClient; + +/** + * Defines options available to configure the behavior of a call to listFileSystemsSegment on a + * {@link DataLakeServiceAsyncClient} object. See the constructor for details on each of the options. Null may be + * passed in place of an object of this type if no options are desirable. + */ +public final class ListFileSystemsOptions { + private final ClientLogger logger = new ClientLogger(ListFileSystemsOptions.class); + + private FileSystemListDetails details; + + private String prefix; + + private Integer maxResultsPerPage; + + public ListFileSystemsOptions() { + this.details = new FileSystemListDetails(); + } + + /** + * @return the details for listing specific file systems + */ + public FileSystemListDetails getDetails() { + return details; + } + + /** + * @param details The details for listing specific file systems + * @return the updated FileSystemListDetails object + */ + public ListFileSystemsOptions setDetails(FileSystemListDetails details) { + this.details = details; + return this; + } + + /** + * Filters the results to return only paths whose names begin with the specified prefix. + * + * @return the prefix a file system must start with to be returned + */ + public String getPrefix() { + return prefix; + } + + /** + * Filters the results to return only paths whose names begin with the specified prefix. + * + * @param prefix The prefix that a file system must match to be returned + * @return the updated ListFileSystemsOptions object + */ + public ListFileSystemsOptions setPrefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * Specifies the maximum number of paths to return, including all PathPrefix elements. If the request does not + * specify maxResultsPerPage or specifies a value greater than 5,000, the server will return up to 5,000 items. + * + * @return the number of file systems to be returned in a single response + */ + public Integer getMaxResultsPerPage() { + return maxResultsPerPage; + } + + /** + * Specifies the maximum number of paths to return, including all PathPrefix elements. If the request does not + * specify maxResultsPerPage or specifies a value greater than 5,000, the server will return up to 5,000 items. + * + * @param maxResultsPerPage The number of file systems to return in a single response + * @return the updated ListFileSystemsOptions object + * @throws IllegalArgumentException If {@code maxResultsPerPage} is less than or equal to {@code 0}. + */ + public ListFileSystemsOptions setMaxResultsPerPage(Integer maxResultsPerPage) { + if (maxResultsPerPage != null && maxResultsPerPage <= 0) { + throw logger.logExceptionAsError(new IllegalArgumentException("MaxResults must be greater than 0.")); + } + this.maxResultsPerPage = maxResultsPerPage; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListPathsOptions.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListPathsOptions.java new file mode 100644 index 0000000000000..9215f046402d0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/ListPathsOptions.java @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient; +import com.azure.storage.file.datalake.DataLakeFileSystemClient; + +/** + * Defines options available to configure the behavior of a call to listContainersSegment on a {@link DataLakeFileSystemClient} + * or a {@link DataLakeFileSystemAsyncClient} object. See the constructor for details on each of the options. Null may be + * passed in place of an object of this type if no options are desirable. + */ +public class ListPathsOptions { + private final ClientLogger logger = new ClientLogger(ListPathsOptions.class); + + private String path; + private boolean recursive; + private boolean returnUpn; + private Integer maxResults; + + public ListPathsOptions() { + } + + /** + * Specifies the path to filter the results to. + * An error occurs if the path does not exist. + * + * @return the path value. + */ + public String getPath() { + return path; + } + + public boolean isRecursive() { + return recursive; + } + + /** + * Valid only when Hierarchical Namespace is enabled for the account. + * If "true", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will + * be transformed from Azure Active Directory Object IDs to User Principal Names. + * If "false", the values will be returned as Azure Active Directory Object IDs. + * The default value is false. Note that group and application Object IDs are not translated because they do not + * have unique friendly names. + * + * @return the returnUpn value. + */ + public boolean isReturnUpn() { + return returnUpn; + } + + /** + * Specifies the path to filter the results to. + * An error occurs if the path does not exist. + * + * @param path The path value + * @return the updated ListPathsOptions object + */ + public ListPathsOptions setPath(String path) { + this.path = path; + return this; + } + + public ListPathsOptions setRecursive(boolean recursive) { + this.recursive = recursive; + return this; + } + /** + * Valid only when Hierarchical Namespace is enabled for the account. + * If "true", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will + * be transformed from Azure Active Directory Object IDs to User Principal Names. + * If "false", the values will be returned as Azure Active Directory Object IDs. + * The default value is false. Note that group and application Object IDs are not translated because they do not + * have unique friendly names. + * + * @param returnUpn The returnUpn value + * @return the updated ListPathsOptions object + */ + public ListPathsOptions setReturnUpn(boolean returnUpn) { + this.returnUpn = returnUpn; + return this; + } + + /** + * Specifies the maximum number of blobs to return, including all BlobPrefix elements. If the request does not + * specify maxResults or specifies a value greater than 5,000, the server will return up to 5,000 items. + * + * @return the number of containers to be returned in a single response + */ + public Integer getMaxResults() { + return maxResults; + } + + /** + * Specifies the maximum number of blobs to return, including all BlobPrefix elements. If the request does not + * specify maxResults or specifies a value greater than 5,000, the server will return up to 5,000 items. + * + * @param maxResults The number of containers to return in a single response + * @return the updated ListBlobContainersOptions object + * @throws IllegalArgumentException If {@code maxResults} is less than or equal to {@code 0}. + */ + public ListPathsOptions setMaxResults(Integer maxResults) { + if (maxResults != null && maxResults <= 0) { + throw logger.logExceptionAsError(new IllegalArgumentException("MaxResults must be greater than 0.")); + } + this.maxResults = maxResults; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControl.java new file mode 100644 index 0000000000000..5c94fc9083e57 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathAccessControl.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +/** + * This class contains properties that are gettable and settable for path access control. + */ +public class PathAccessControl { + + private String acl; + private String group; + private String owner; + private String permissions; + + /** + * Constructs a new {@link PathAccessControl}. + */ + public PathAccessControl() { + + } + + /** + * Get the acl property: The acl property. + * + * @return the acl value. + */ + public String getAcl() { + return acl; + } + + /** + * Set the acl property: The acl property. + * + * @param acl the acl value to set. + * @return the PathAccessControl object itself. + */ + public PathAccessControl setAcl(String acl) { + this.acl = acl; + return this; + } + + /** + * Get the group property: The group property. + * + * @return the group value. + */ + public String getGroup() { + return group; + } + + /** + * Set the group property: The group property. + * + * @param group the group value to set. + * @return the PathAccessControl object itself. + */ + public PathAccessControl setGroup(String group) { + this.group = group; + return this; + } + + /** + * Get the owner property: The owner property. + * + * @return the owner value. + */ + public String getOwner() { + return owner; + } + + /** + * Set the owner property: The owner property. + * + * @param owner the owner value to set. + * @return the PathAccessControl object itself. + */ + public PathAccessControl setOwner(String owner) { + this.owner = owner; + return this; + } + + /** + * Get the permissions property: The permissions property. + * + * @return the permissions value. + */ + public String getPermissions() { + return permissions; + } + + /** + * Set the permission property: The permission property. + * + * @param permissions the permissions value to set. + * @return the PathAccessControl object itself. + */ + public PathAccessControl setPermissions(String permissions) { + this.permissions = permissions; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java deleted file mode 100644 index d9934fc71361d..0000000000000 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java +++ /dev/null @@ -1,141 +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.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * Defines headers for Delete operation. - */ -@Fluent -public final class PathDeleteHeaders { - /* - * A UTC date/time value generated by the service that indicates the time - * at which the response was initiated. - */ - @JsonProperty(value = "Date") - private String dateProperty; - - /* - * A server-generated UUID recorded in the analytics logs for - * troubleshooting and correlation. - */ - @JsonProperty(value = "x-ms-request-id") - private String xMsRequestId; - - /* - * The version of the REST protocol used to process the request. - */ - @JsonProperty(value = "x-ms-version") - private String xMsVersion; - - /* - * When deleting a directory, the number of paths that are deleted with - * each invocation is limited. If the number of paths to be deleted - * exceeds this limit, a continuation token is returned in this response - * header. When a continuation token is returned in the response, it must - * be specified in a subsequent invocation of the delete operation to - * continue deleting the directory. - */ - @JsonProperty(value = "x-ms-continuation") - private String xMsContinuation; - - /** - * Get the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @return the dateProperty value. - */ - public String getDateProperty() { - return this.dateProperty; - } - - /** - * Set the dateProperty property: A UTC date/time value generated by the - * service that indicates the time at which the response was initiated. - * - * @param dateProperty the dateProperty value to set. - * @return the PathDeleteHeaders object itself. - */ - public PathDeleteHeaders setDateProperty(String dateProperty) { - this.dateProperty = dateProperty; - return this; - } - - /** - * Get the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @return the xMsRequestId value. - */ - public String getXMsRequestId() { - return this.xMsRequestId; - } - - /** - * Set the xMsRequestId property: A server-generated UUID recorded in the - * analytics logs for troubleshooting and correlation. - * - * @param xMsRequestId the xMsRequestId value to set. - * @return the PathDeleteHeaders object itself. - */ - public PathDeleteHeaders setXMsRequestId(String xMsRequestId) { - this.xMsRequestId = xMsRequestId; - return this; - } - - /** - * Get the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @return the xMsVersion value. - */ - public String getXMsVersion() { - return this.xMsVersion; - } - - /** - * Set the xMsVersion property: The version of the REST protocol used to - * process the request. - * - * @param xMsVersion the xMsVersion value to set. - * @return the PathDeleteHeaders object itself. - */ - public PathDeleteHeaders setXMsVersion(String xMsVersion) { - this.xMsVersion = xMsVersion; - return this; - } - - /** - * Get the xMsContinuation property: When deleting a directory, the number - * of paths that are deleted with each invocation is limited. If the - * number of paths to be deleted exceeds this limit, a continuation token - * is returned in this response header. When a continuation token is - * returned in the response, it must be specified in a subsequent - * invocation of the delete operation to continue deleting the directory. - * - * @return the xMsContinuation value. - */ - public String getXMsContinuation() { - return this.xMsContinuation; - } - - /** - * Set the xMsContinuation property: When deleting a directory, the number - * of paths that are deleted with each invocation is limited. If the - * number of paths to be deleted exceeds this limit, a continuation token - * is returned in this response header. When a continuation token is - * returned in the response, it must be specified in a subsequent - * invocation of the delete operation to continue deleting the directory. - * - * @param xMsContinuation the xMsContinuation value to set. - * @return the PathDeleteHeaders object itself. - */ - public PathDeleteHeaders setXMsContinuation(String xMsContinuation) { - this.xMsContinuation = xMsContinuation; - return this; - } -} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathHttpHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathHttpHeaders.java new file mode 100644 index 0000000000000..bd3ce009c9e22 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathHttpHeaders.java @@ -0,0 +1,227 @@ +// 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.azure.core.annotation.Fluent; +import com.azure.core.implementation.util.ImplUtils; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for a set of operations, such as: Paths_create, + * Paths_update, Paths_flushData, Paths_appendData. + */ +@Fluent +public final class PathHttpHeaders { + /* + * Optional. Sets the blob's cache control. If specified, this property is + * stored with the blob and returned with a read request. + */ + @JsonProperty(value = "") + private String cacheControl; + + /* + * Optional. Sets the blob's content encoding. If specified, this property + * is stored with the blob and returned with a read request. + */ + @JsonProperty(value = "") + private String contentEncoding; + + /* + * Optional. Set the blob's content language. If specified, this property + * is stored with the blob and returned with a read request. + */ + @JsonProperty(value = "") + private String contentLanguage; + + /* + * Optional. Sets the blob's Content-Disposition header. + */ + @JsonProperty(value = "") + private String contentDisposition; + + /* + * Optional. Sets the blob's content type. If specified, this property is + * stored with the blob and returned with a read request. + */ + @JsonProperty(value = "") + private String contentType; + + /* + * Specify the transactional md5 for the body, to be validated by the + * service. + */ + @JsonProperty(value = "") + private byte[] contentMd5; + + /* + * Specify the transactional md5 for the body, to be validated by the + * service. + */ + @JsonProperty(value = "") + private byte[] transactionalContentHash; + + /** + * Get the cacheControl property: Optional. Sets the blob's cache control. + * If specified, this property is stored with the blob and returned with a + * read request. + * + * @return the cacheControl value. + */ + public String getCacheControl() { + return this.cacheControl; + } + + /** + * Set the cacheControl property: Optional. Sets the blob's cache control. + * If specified, this property is stored with the blob and returned with a + * read request. + * + * @param cacheControl the cacheControl value to set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setCacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * Get the contentEncoding property: Optional. Sets the blob's content + * encoding. If specified, this property is stored with the blob and + * returned with a read request. + * + * @return the contentEncoding value. + */ + public String getContentEncoding() { + return this.contentEncoding; + } + + /** + * Set the contentEncoding property: Optional. Sets the blob's content + * encoding. If specified, this property is stored with the blob and + * returned with a read request. + * + * @param contentEncoding the contentEncoding value to set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Get the contentLanguage property: Optional. Set the blob's content + * language. If specified, this property is stored with the blob and + * returned with a read request. + * + * @return the contentLanguage value. + */ + public String getContentLanguage() { + return this.contentLanguage; + } + + /** + * Set the contentLanguage property: Optional. Set the blob's content + * language. If specified, this property is stored with the blob and + * returned with a read request. + * + * @param contentLanguage the contentLanguage value to set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setContentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Get the contentDisposition property: Optional. Sets the blob's + * Content-Disposition header. + * + * @return the contentDisposition value. + */ + public String getContentDisposition() { + return this.contentDisposition; + } + + /** + * Set the contentDisposition property: Optional. Sets the blob's + * Content-Disposition header. + * + * @param contentDisposition the contentDisposition value to set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setContentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * Get the contentType property: Optional. Sets the blob's content type. If + * specified, this property is stored with the blob and returned with a + * read request. + * + * @return the contentType value. + */ + public String getContentType() { + return this.contentType; + } + + /** + * Set the contentType property: Optional. Sets the blob's content type. If + * specified, this property is stored with the blob and returned with a + * read request. + * + * @param contentType the contentType value to set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentMd5 property: Specify the transactional md5 for the body, + * to be validated by the service. + * + * @return the contentMd5 value. + */ + public byte[] getContentMd5() { + return ImplUtils.clone(this.contentMd5); + } + + /** + * Set the contentMd5 property: Specify the transactional md5 for the body, + * to be validated by the service. + * + * @param contentMd5 the contentMd5 value to set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setContentMd5(byte[] contentMd5) { + this.contentMd5 = ImplUtils.clone(contentMd5); + return this; + } + + /** + * Get the transactionalContentHash property: Specify the transactional md5 + * for the body, to be validated by the service. + * + * @return the transactionalContentHash value. + */ + public byte[] getTransactionalContentHash() { + return ImplUtils.clone(this.transactionalContentHash); + } + + /** + * Set the transactionalContentHash property: Specify the transactional md5 + * for the body, to be validated by the service. + * + * @param transactionalContentHash the transactionalContentHash value to + * set. + * @return the PathHttpHeaders object itself. + */ + public PathHttpHeaders setTransactionalContentHash(byte[] transactionalContentHash) { + this.transactionalContentHash = ImplUtils.clone(transactionalContentHash); + return this; + } +} 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 new file mode 100644 index 0000000000000..391559f33c538 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathInfo.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import java.time.OffsetDateTime; + +/** + * {@code PathInfo} contains basic information about a path that is returned by the service after certain + * operations. + */ +public class PathInfo { + + private final String eTag; + private final OffsetDateTime lastModified; + + /** + * Constructs a {@link PathInfo} + * @param eTag ETag of the path. + * @param lastModified Datetime when the path was last modified. + */ + public PathInfo(String eTag, OffsetDateTime lastModified) { + this.eTag = eTag; + this.lastModified = lastModified; + } + + /** + * Get the eTag property: The eTag property. + * + * @return the eTag value. + */ + public String getETag() { + return eTag; + } + + /** + * Get the last modified property: The last modified property. + * + * @return the time when the file was last modified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } +} 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 new file mode 100644 index 0000000000000..d3e221564d24a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathItem.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import java.time.OffsetDateTime; + +/** + * {@code PathItem} contains basic information about a path item that is returned by the service after certain + * operations. + */ +public class PathItem { + private final String eTag; + private final OffsetDateTime lastModified; + private final long contentLength; + private final String group; + private final boolean isDirectory; + private final String name; + private final String owner; + private final String permissions; + + /** + * 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. + */ + public PathItem(String eTag, OffsetDateTime lastModified, long contentLength, String group, boolean isDirectory, + String name, String owner, String permissions) { + this.eTag = eTag; + this.lastModified = lastModified; + this.contentLength = contentLength; + this.group = group; + this.isDirectory = isDirectory; + this.name = name; + this.owner = owner; + this.permissions = permissions; + } + + /** + * Get the eTag property: The eTag property. + * + * @return the eTag value. + */ + public String getETag() { + return eTag; + } + + /** + * Get the lastModified property: The lastModified property. + * + * @return the lastModified value. + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + /** + * Get the contentLength property: The contentLength property. + * + * @return the contentLength value. + */ + public long getContentLength() { + return contentLength; + } + + /** + * Get the group property: The group property. + * + * @return the group value. + */ + public String getGroup() { + return group; + } + + /** + * Get the isDirectory property: The isDirectory property. + * + * @return the isDirectory value. + */ + public boolean isDirectory() { + return isDirectory; + } + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String getName() { + return name; + } + + /** + * Get the owner property: The owner property. + * + * @return the owner value. + */ + public String getOwner() { + return owner; + } + + /** + * Get the permissions property: The permissions property. + * + * @return the permissions value. + */ + public String getPermissions() { + return permissions; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathProperties.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathProperties.java new file mode 100644 index 0000000000000..cede579c82223 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathProperties.java @@ -0,0 +1,299 @@ +// 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.implementation.util.ImplUtils; + +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * This class contains the response information returned from the service when getting path properties. + */ +@Immutable +public class PathProperties { + private final OffsetDateTime creationTime; + private final OffsetDateTime lastModified; + private final String eTag; + private final long fileSize; + private final String contentType; + private final byte[] contentMd5; + private final String contentEncoding; + private final String contentDisposition; + private final String contentLanguage; + private final String cacheControl; + private final LeaseStatusType leaseStatus; + private final LeaseStateType leaseState; + private final LeaseDurationType leaseDuration; + private final String copyId; + private final CopyStatusType copyStatus; + private final String copySource; + private final String copyProgress; + private final OffsetDateTime copyCompletionTime; + private final String copyStatusDescription; + private final Boolean isServerEncrypted; + private final Boolean isIncrementalCopy; + private final AccessTier accessTier; + private final ArchiveStatus archiveStatus; + private final String encryptionKeySha256; + private final OffsetDateTime accessTierChangeTime; + private final Map metadata; + + /** + * Constructs a {@link PathProperties}. + * + * @param creationTime Creation time of the file. + * @param lastModified Datetime when the file was last modified. + * @param eTag ETag of the file. + * @param fileSize Size of the file. + * @param contentType Content type specified for the file. + * @param contentMd5 Content MD5 specified for the file. + * @param contentEncoding Content encoding specified for the file. + * @param contentDisposition Content disposition specified for the file. + * @param contentLanguage Content language specified for the file. + * @param cacheControl Cache control specified for the file. + * @param leaseStatus Status of the lease on the file. + * @param leaseState State of the lease on the file. + * @param leaseDuration Type of lease on the file. + * @param copyId Identifier of the last copy operation performed on the file. + * @param copyStatus Status of the last copy operation performed on the file. + * @param copySource Source of the last copy operation performed on the file. + * @param copyProgress Progress of the last copy operation performed on the file. + * @param copyCompletionTime Datetime when the last copy operation on the file completed. + * @param copyStatusDescription Description of the last copy operation on the file. + * @param isServerEncrypted Flag indicating if the file's content is encrypted on the server. + * @param isIncrementalCopy Flag indicating if the file was incrementally copied. + * @param accessTier Access tier of the file. + * @param archiveStatus Archive status of the file. + * @param encryptionKeySha256 SHA256 of the customer provided encryption key used to encrypt the file on the server. + * @param accessTierChangeTime Datetime when the access tier of the file last changed. + * @param metadata Metadata associated with the file. + * pass {@code null}. + */ + public PathProperties(final OffsetDateTime creationTime, final OffsetDateTime lastModified, final String eTag, + final long fileSize, final String contentType, final byte[] contentMd5, final String contentEncoding, + final String contentDisposition, final String contentLanguage, final String cacheControl, + final LeaseStatusType leaseStatus, final LeaseStateType leaseState, final LeaseDurationType leaseDuration, + final String copyId, final CopyStatusType copyStatus, final String copySource, final String copyProgress, + final OffsetDateTime copyCompletionTime, final String copyStatusDescription, final Boolean isServerEncrypted, + final Boolean isIncrementalCopy, final AccessTier accessTier, final ArchiveStatus archiveStatus, + final String encryptionKeySha256, final OffsetDateTime accessTierChangeTime, + final Map metadata) { + this.creationTime = creationTime; + this.lastModified = lastModified; + this.eTag = eTag; + this.fileSize = fileSize; + this.contentType = contentType; + this.contentMd5 = ImplUtils.clone(contentMd5); + this.contentEncoding = contentEncoding; + this.contentDisposition = contentDisposition; + this.contentLanguage = contentLanguage; + this.cacheControl = cacheControl; + this.leaseStatus = leaseStatus; + this.leaseState = leaseState; + this.leaseDuration = leaseDuration; + this.copyId = copyId; + this.copyStatus = copyStatus; + this.copySource = copySource; + this.copyProgress = copyProgress; + this.copyCompletionTime = copyCompletionTime; + this.copyStatusDescription = copyStatusDescription; + this.isServerEncrypted = isServerEncrypted; + this.isIncrementalCopy = isIncrementalCopy; + this.accessTier = accessTier; + this.archiveStatus = archiveStatus; + this.encryptionKeySha256 = encryptionKeySha256; + this.accessTierChangeTime = accessTierChangeTime; + this.metadata = metadata; + } + /** + * @return the time when the file was created + */ + public OffsetDateTime getCreationTime() { + return creationTime; + } + + /** + * @return the time when the file was last modified + */ + public OffsetDateTime getLastModified() { + return lastModified; + } + + /** + * @return the eTag of the file + */ + public String getETag() { + return eTag; + } + + /** + * @return the size of the file in bytes + */ + public long getFileSize() { + return fileSize; + } + + /** + * @return the content type of the file + */ + public String getContentType() { + return contentType; + } + + /** + * @return the MD5 of the file's content + */ + public byte[] getContentMd5() { + return ImplUtils.clone(contentMd5); + } + + /** + * @return the content encoding of the file + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * @return the content disposition of the file + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * @return the content language of the file + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * @return the cache control of the file + */ + public String getCacheControl() { + return cacheControl; + } + + /** + * @return the lease status of the file + */ + public LeaseStatusType getLeaseStatus() { + return leaseStatus; + } + + /** + * @return the lease state of the file + */ + public LeaseStateType getLeaseState() { + return leaseState; + } + + /** + * @return the lease duration if the file is leased + */ + public LeaseDurationType getLeaseDuration() { + return leaseDuration; + } + + /** + * @return the identifier of the last copy operation. If this file hasn't been the target of a copy operation or has + * been modified since this won't be set. + */ + public String getCopyId() { + return copyId; + } + + /** + * @return the status of the last copy operation. If this file hasn't been the target of a copy operation or has + * been modified since this won't be set. + */ + public CopyStatusType getCopyStatus() { + return copyStatus; + } + + /** + * @return the source file URL from the last copy operation. If this file hasn't been the target of a copy operation + * or has been modified since this won't be set. + */ + public String getCopySource() { + return copySource; + } + + /** + * @return the number of bytes copied and total bytes in the source from the last copy operation (bytes copied/total + * bytes). If this file hasn't been the target of a copy operation or has been modified since this won't be set. + */ + public String getCopyProgress() { + return copyProgress; + } + + /** + * @return the completion time of the last copy operation. If this file hasn't been the target of a copy operation + * or has been modified since this won't be set. + */ + public OffsetDateTime getCopyCompletionTime() { + return copyCompletionTime; + } + + /** + * @return the description of the last copy failure, this is set when the {@link #getCopyStatus() getCopyStatus} is + * {@link CopyStatusType#FAILED failed} or {@link CopyStatusType#ABORTED aborted}. If this file hasn't been the + * target of a copy operation or has been modified since this won't be set. + */ + public String getCopyStatusDescription() { + return copyStatusDescription; + } + + /** + * @return the status of the file being encrypted on the server + */ + public Boolean isServerEncrypted() { + return isServerEncrypted; + } + + /** + * @return the status of the file being an incremental copy file + */ + public Boolean isIncrementalCopy() { + return isIncrementalCopy; + } + + /** + * @return the tier of the file. + */ + public AccessTier getAccessTier() { + return accessTier; + } + + /** + * @return the archive status of the file. + */ + public ArchiveStatus getArchiveStatus() { + return archiveStatus; + } + + /** + * @return the key used to encrypt the file + */ + public String getEncryptionKeySha256() { + return encryptionKeySha256; + } + + /** + * @return the time when the access tier for the file was last changed + */ + public OffsetDateTime getAccessTierChangeTime() { + return accessTierChangeTime; + } + + /** + * @return the metadata associated to this file + */ + public Map getMetadata() { + return metadata; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PublicAccessType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PublicAccessType.java new file mode 100644 index 0000000000000..d9425cc1cfe37 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PublicAccessType.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; + +import java.util.Collection; + +/** + * Defines values for PublicAccessType. + */ +public final class PublicAccessType extends ExpandableStringEnum { + /** + * Static value container for PublicAccessType. + */ + public static final PublicAccessType CONTAINER = fromString("container"); + + /** + * Static value blob for PublicAccessType. + */ + public static final PublicAccessType BLOB = fromString("blob"); + + /** + * Creates or finds a PublicAccessType from its string representation. + * + * @param name a name to look for. + * @return the corresponding PublicAccessType. + */ + @JsonCreator + public static PublicAccessType fromString(String name) { + return fromString(name, PublicAccessType.class); + } + + /** + * @return known PublicAccessType values. + */ + public static Collection values() { + return values(PublicAccessType.class); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/UserDelegationKey.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/UserDelegationKey.java new file mode 100644 index 0000000000000..20a182b08e65d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/UserDelegationKey.java @@ -0,0 +1,195 @@ +// 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 java.time.OffsetDateTime; + +/** + * A user delegation key. + */ +public final class UserDelegationKey { + /* + * The Azure Active Directory object ID in GUID format. + */ + private String signedObjectId; + + /* + * The Azure Active Directory tenant ID in GUID format + */ + private String signedTenantId; + + /* + * The date-time the key is active + */ + private OffsetDateTime signedStart; + + /* + * The date-time the key expires + */ + private OffsetDateTime signedExpiry; + + /* + * Abbreviation of the Azure Storage service that accepts the key + */ + private String signedService; + + /* + * The service version that created the key + */ + private String signedVersion; + + /* + * The key as a base64 string + */ + private String value; + + /** + * Get the signedObjectId property: The Azure Active Directory object ID in + * GUID format. + * + * @return the signedObjectId value. + */ + public String getSignedObjectId() { + return this.signedObjectId; + } + + /** + * Set the signedObjectId property: The Azure Active Directory object ID in + * GUID format. + * + * @param signedObjectId the signedObjectId value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setSignedObjectId(String signedObjectId) { + this.signedObjectId = signedObjectId; + return this; + } + + /** + * Get the signedTenantId property: The Azure Active Directory tenant ID in + * GUID format. + * + * @return the signedTenantId value. + */ + public String getSignedTenantId() { + return this.signedTenantId; + } + + /** + * Set the signedTenantId property: The Azure Active Directory tenant ID in + * GUID format. + * + * @param signedTenantId the signedTenantId value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setSignedTenantId(String signedTenantId) { + this.signedTenantId = signedTenantId; + return this; + } + + /** + * Get the signedStart property: The date-time the key is active. + * + * @return the signedStart value. + */ + public OffsetDateTime getSignedStart() { + return this.signedStart; + } + + /** + * Set the signedStart property: The date-time the key is active. + * + * @param signedStart the signedStart value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setSignedStart(OffsetDateTime signedStart) { + this.signedStart = signedStart; + return this; + } + + /** + * Get the signedExpiry property: The date-time the key expires. + * + * @return the signedExpiry value. + */ + public OffsetDateTime getSignedExpiry() { + return this.signedExpiry; + } + + /** + * Set the signedExpiry property: The date-time the key expires. + * + * @param signedExpiry the signedExpiry value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setSignedExpiry(OffsetDateTime signedExpiry) { + this.signedExpiry = signedExpiry; + return this; + } + + /** + * Get the signedService property: Abbreviation of the Azure Storage + * service that accepts the key. + * + * @return the signedService value. + */ + public String getSignedService() { + return this.signedService; + } + + /** + * Set the signedService property: Abbreviation of the Azure Storage + * service that accepts the key. + * + * @param signedService the signedService value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setSignedService(String signedService) { + this.signedService = signedService; + return this; + } + + /** + * Get the signedVersion property: The service version that created the + * key. + * + * @return the signedVersion value. + */ + public String getSignedVersion() { + return this.signedVersion; + } + + /** + * Set the signedVersion property: The service version that created the + * key. + * + * @param signedVersion the signedVersion value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setSignedVersion(String signedVersion) { + this.signedVersion = signedVersion; + return this; + } + + /** + * Get the value property: The key as a base64 string. + * + * @return the value value. + */ + public String getValue() { + return this.value; + } + + /** + * Set the value property: The key as a base64 string. + * + * @param value the value value to set. + * @return the UserDelegationKey object itself. + */ + public UserDelegationKey setValue(String value) { + this.value = value; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java index 23286f8025c6d..3f34db8854af1 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for DataLakeStorageClient. + * Package containing classes for DataLakeStorageClient. * Azure Data Lake Storage provides storage for Hadoop and other big data * workloads. */ diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/DataLakeServiceSasQueryParameters.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/DataLakeServiceSasQueryParameters.java new file mode 100644 index 0000000000000..89488c62f6bb7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/DataLakeServiceSasQueryParameters.java @@ -0,0 +1,276 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.sas; + +import com.azure.storage.common.Utility; +import com.azure.storage.common.implementation.Constants; +import com.azure.storage.common.sas.BaseSasQueryParameters; +import com.azure.storage.common.sas.SasIpRange; +import com.azure.storage.common.sas.SasProtocol; +import com.azure.storage.file.datalake.DataLakePathClientBuilder; +import com.azure.storage.file.datalake.models.UserDelegationKey; + +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Represents the components that make up an Azure Storage SAS' query parameters. This type is not constructed directly + * by the user; it is only generated by the {@link DataLakeServiceSasSignatureValues} type. Once generated, it can be + * encoded to a {@code String} and set on a {@link DataLakePathClientBuilder} object to be constructed as part of a URL + * or appended to a URL directly (though caution should be taken here in case there are existing query parameters, + * which might affect the appropriate means of appending these query parameters). NOTE: Instances of this class are + * immutable to ensure thread safety. + */ +public final class DataLakeServiceSasQueryParameters extends BaseSasQueryParameters { + + private final String identifier; + + private final String keyObjectId; + + private final String keyTenantId; + + private final OffsetDateTime keyStart; + + private final OffsetDateTime keyExpiry; + + private final String keyService; + + private final String keyVersion; + + private final String resource; + + private final String cacheControl; + + private final String contentDisposition; + + private final String contentEncoding; + + private final String contentLanguage; + + private final String contentType; + + /** + * Creates a new {@link DataLakeServiceSasQueryParameters} object. + * + * @param queryParamsMap All query parameters for the request as key-value pairs + * @param removeSASParametersFromMap When {@code true}, the SAS query parameters will be removed from + * queryParamsMap + */ + public DataLakeServiceSasQueryParameters(Map queryParamsMap, boolean removeSASParametersFromMap) { + super(queryParamsMap, removeSASParametersFromMap); + this.identifier = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_IDENTIFIER, + removeSASParametersFromMap); + this.keyObjectId = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_OBJECT_ID, + removeSASParametersFromMap); + this.keyTenantId = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_TENANT_ID, + removeSASParametersFromMap); + this.keyStart = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_KEY_START, + removeSASParametersFromMap, Utility::parseDate); + this.keyExpiry = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_KEY_EXPIRY, + removeSASParametersFromMap, Utility::parseDate); + this.keyService = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_KEY_SERVICE, + removeSASParametersFromMap); + this.keyVersion = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_KEY_VERSION, + removeSASParametersFromMap); + this.resource = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_SIGNED_RESOURCE, + removeSASParametersFromMap); + this.cacheControl = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_CACHE_CONTROL, + removeSASParametersFromMap); + this.contentDisposition = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_CONTENT_DISPOSITION, + removeSASParametersFromMap); + this.contentEncoding = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_CONTENT_ENCODING, + removeSASParametersFromMap); + this.contentLanguage = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_CONTENT_LANGUAGE, + removeSASParametersFromMap); + this.contentType = getQueryParameter(queryParamsMap, Constants.UrlConstants.SAS_CONTENT_TYPE, + removeSASParametersFromMap); + } + + /** + * Creates a new {@link DataLakeServiceSasQueryParameters} object. These objects are only created internally by + * SASSignatureValues classes. + * + * @param version A {@code String} representing the storage version. + * @param protocol A {@code String} representing the allowed HTTP protocol(s) or {@code null}. + * @param startTime A {@code java.util.Date} representing the start time for this SAS token or {@code null}. + * @param expiryTime A {@code java.util.Date} representing the expiry time for this SAS token. + * @param sasIpRange A {@link SasIpRange} representing the range of valid IP addresses for this SAS token or + * {@code null}. + * @param identifier A {@code String} representing the signed identifier (only for Service SAS) or {@code null}. + * @param resource A {@code String} representing the storage file system or path (only for Service SAS). + * @param permissions A {@code String} representing the storage permissions or {@code null}. + * @param signature A {@code String} representing the signature for the SAS token. + */ + DataLakeServiceSasQueryParameters(String version, SasProtocol protocol, OffsetDateTime startTime, + OffsetDateTime expiryTime, SasIpRange sasIpRange, String identifier, String resource, String permissions, + String signature, String cacheControl, String contentDisposition, String contentEncoding, + String contentLanguage, String contentType, UserDelegationKey key) { + super(version, protocol, startTime, expiryTime, sasIpRange, permissions, signature); + + this.identifier = identifier; + this.resource = resource; + this.cacheControl = cacheControl; + this.contentDisposition = contentDisposition; + this.contentEncoding = contentEncoding; + this.contentLanguage = contentLanguage; + this.contentType = contentType; + + if (key != null) { + this.keyObjectId = key.getSignedObjectId(); + this.keyTenantId = key.getSignedTenantId(); + this.keyStart = key.getSignedStart(); + this.keyExpiry = key.getSignedExpiry(); + this.keyService = key.getSignedService(); + this.keyVersion = key.getSignedVersion(); + } else { + this.keyObjectId = null; + this.keyTenantId = null; + this.keyStart = null; + this.keyExpiry = null; + this.keyService = null; + this.keyVersion = null; + } + } + + /** + * @return The signed identifier (only for {@link DataLakeServiceSasSignatureValues}) or {@code null}. Please see + * here + * for more information. + */ + public String getIdentifier() { + return identifier; + } + + /** + * @return The storage file system or path (only for {@link DataLakeServiceSasSignatureValues}). + */ + public String getResource() { + return resource; + } + + /** + * @return The Cache-Control header value when a client accesses the resource with this sas token. + */ + public String getCacheControl() { + return cacheControl; + } + + /** + * @return The Content-Disposition header value when a client accesses the resource with this sas token. + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * @return The Content-Encoding header value when a client accesses the resource with this sas token. + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * @return The Content-Language header value when a client accesses the resource with this sas token. + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * @return The Content-Type header value when a client accesses the resource with this sas token. + */ + public String getContentType() { + return contentType; + } + + /** + * @return the object ID of the key. + */ + public String getKeyObjectId() { + return keyObjectId; + } + + /** + * @return the tenant ID of the key. + */ + public String getKeyTenantId() { + return keyTenantId; + } + + /** + * @return the datetime when the key becomes active. + */ + public OffsetDateTime getKeyStart() { + return keyStart; + } + + /** + * @return the datetime when the key expires. + */ + public OffsetDateTime getKeyExpiry() { + return keyExpiry; + } + + /** + * @return the services that are permitted by the key. + */ + public String getKeyService() { + return keyService; + } + + /** + * @return the service version that created the key. + */ + public String getKeyVersion() { + return keyVersion; + } + + UserDelegationKey userDelegationKey() { + return new UserDelegationKey() + .setSignedExpiry(this.keyExpiry) + .setSignedObjectId(this.keyObjectId) + .setSignedService(this.keyService) + .setSignedStart(this.keyStart) + .setSignedTenantId(this.keyTenantId) + .setSignedVersion(this.keyVersion); + } + + /** + * Encodes all SAS query parameters into a string that can be appended to a URL. + * + * @return A {@code String} representing all SAS query parameters. + */ + public String encode() { + /* + We should be url-encoding each key and each value, but because we know all the keys and values will encode to + themselves, we cheat except for the signature value. + */ + StringBuilder sb = new StringBuilder(); + + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SERVICE_VERSION, this.version); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_PROTOCOL, this.protocol); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_START_TIME, formatQueryParameterDate(this.startTime)); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_EXPIRY_TIME, formatQueryParameterDate(this.expiryTime)); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_IP_RANGE, this.sasIpRange); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_IDENTIFIER, this.identifier); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_OBJECT_ID, this.keyObjectId); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_TENANT_ID, this.keyTenantId); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_KEY_START, + formatQueryParameterDate(this.keyStart)); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_KEY_EXPIRY, + formatQueryParameterDate(this.keyExpiry)); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_KEY_SERVICE, this.keyService); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_KEY_VERSION, this.keyVersion); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_RESOURCE, this.resource); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNED_PERMISSIONS, this.permissions); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SIGNATURE, this.signature); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_CACHE_CONTROL, this.cacheControl); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_CONTENT_DISPOSITION, this.contentDisposition); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_CONTENT_ENCODING, this.contentEncoding); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_CONTENT_LANGUAGE, this.contentLanguage); + tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_CONTENT_TYPE, this.contentType); + + return sb.toString(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/DataLakeServiceSasSignatureValues.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/DataLakeServiceSasSignatureValues.java new file mode 100644 index 0000000000000..ccc2e64a08c07 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/DataLakeServiceSasSignatureValues.java @@ -0,0 +1,605 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.sas; + +import com.azure.core.implementation.util.ImplUtils; +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.Utility; +import com.azure.storage.common.implementation.Constants; +import com.azure.storage.common.implementation.StorageImplUtils; +import com.azure.storage.common.sas.SasIpRange; +import com.azure.storage.common.sas.SasProtocol; +import com.azure.storage.file.datalake.DataLakeServiceVersion; +import com.azure.storage.file.datalake.models.UserDelegationKey; + +import java.time.OffsetDateTime; + +/** + * Used to generate a Shared Access Signature (SAS) for an Azure Data Lake Storage service. Once all the values here + * are set, call {@link + * #generateSasQueryParameters(StorageSharedKeyCredential) generateSasQueryParameters(StorageSharedKeyCredential)} or + * {@link #generateSasQueryParameters(UserDelegationKey, String) generateSasQueryParameters(UserDelegationKey, String)} + * to obtain a representation of the SAS which can be applied to dfs urls. + * + *

Generating SAS query parameters with {@link StorageSharedKeyCredential}

+ * The following code generates SAS query parameters for an Azure storage path. + *

+ * {@codesnippet com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues.generateSasQueryParameters#StorageSharedKeyCredential} + * + *

Generating SAS query parameters with {@link UserDelegationKey}

+ * The following sample generates SAS query parameters for an Azure storage file system. + *

+ * {@codesnippet com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues.generateSasQueryParameters#UserDelegationKey-String} + * + * @see DataLakeServiceSasQueryParameters + * @see Storage SAS overview + * @see Constructing a Service + * SAS + */ +public final class DataLakeServiceSasSignatureValues { + + /** + * The SAS blob constant. + */ + private static final String SAS_BLOB_CONSTANT = "b"; + + /** + * The SAS blob container constant. + */ + private static final String SAS_CONTAINER_CONSTANT = "c"; + + private final ClientLogger logger = new ClientLogger(DataLakeServiceSasSignatureValues.class); + + private String version; + + private SasProtocol protocol; + + private OffsetDateTime startTime; + + private OffsetDateTime expiryTime; + + private String permissions; + + private SasIpRange sasIpRange; + + private String fileSystemName; + + private String pathName; + + private String resource; + + private String snapshotId; + + private String identifier; + + private String cacheControl; + + private String contentDisposition; + + private String contentEncoding; + + private String contentLanguage; + + private String contentType; + + /** + * Creates an object with empty values for all fields. + */ + public DataLakeServiceSasSignatureValues() { + } + + /** + * Creates an object with the specified expiry time and permissions + * + * @param expiryTime Time the SAS becomes valid + * @param permissions Permissions granted by the SAS + */ + DataLakeServiceSasSignatureValues(OffsetDateTime expiryTime, String permissions) { + this.expiryTime = expiryTime; + this.permissions = permissions; + } + + /** + * Creates an object with the specified identifier + * + * @param identifier Identifier for the SAS + */ + DataLakeServiceSasSignatureValues(String identifier) { + this.identifier = identifier; + } + + public DataLakeServiceSasSignatureValues(String version, SasProtocol sasProtocol, OffsetDateTime startTime, + OffsetDateTime expiryTime, String permission, SasIpRange sasIpRange, String identifier, String cacheControl, + String contentDisposition, String contentEncoding, String contentLanguage, String contentType) { + if (version != null) { + this.version = version; + } + this.protocol = sasProtocol; + this.startTime = startTime; + this.expiryTime = expiryTime; + this.permissions = permission; + this.sasIpRange = sasIpRange; + this.identifier = identifier; + this.cacheControl = cacheControl; + this.contentDisposition = contentDisposition; + this.contentEncoding = contentEncoding; + this.contentLanguage = contentLanguage; + this.contentType = contentType; + } + + /** + * @return the version of the service this SAS will target. If not specified, it will default to the version + * targeted by the library. + */ + public String getVersion() { + return version; + } + + /** + * Sets the version of the service this SAS will target. If not specified, it will default to the version targeted + * by the library. + * + * @param version Version to target + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setVersion(String version) { + this.version = version; + return this; + } + + /** + * @return the {@link SasProtocol} which determines the protocols allowed by the SAS. + */ + public SasProtocol getProtocol() { + return protocol; + } + + /** + * Sets the {@link SasProtocol} which determines the protocols allowed by the SAS. + * + * @param protocol Protocol for the SAS + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setProtocol(SasProtocol protocol) { + this.protocol = protocol; + return this; + } + + /** + * @return when the SAS will take effect. + */ + public OffsetDateTime getStartTime() { + return startTime; + } + + /** + * Sets when the SAS will take effect. + * + * @param startTime When the SAS takes effect + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return this; + } + + /** + * @return the time after which the SAS will no longer work. + */ + public OffsetDateTime getExpiryTime() { + return expiryTime; + } + + /** + * Sets the time after which the SAS will no longer work. + * + * @param expiryTime When the SAS will no longer work + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setExpiryTime(OffsetDateTime expiryTime) { + this.expiryTime = expiryTime; + return this; + } + + /** + * @return the permissions string allowed by the SAS. Please refer to either {@link FileSystemSasPermission} or + * {@link PathSasPermission} depending on the resource being accessed for help determining the permissions allowed. + */ + public String getPermissions() { + return permissions; + } + + /** + * Sets the Path permissions allowed by the SAS. + * + * @param permissions {@link PathSasPermission} + * @return the updated DataLakeServiceSasSignatureValues object + * @throws NullPointerException if {@code permissions} is null. + */ + public DataLakeServiceSasSignatureValues setPermissions(PathSasPermission permissions) { + StorageImplUtils.assertNotNull("permissions", permissions); + this.permissions = permissions.toString(); + return this; + } + + /** + * Sets the File System permissions allowed by the SAS. + * + * @param permissions {@link FileSystemSasPermission} + * @return the updated DataLakeServiceSasSignatureValues object + * @throws NullPointerException if {@code permissions} is null. + */ + public DataLakeServiceSasSignatureValues setPermissions(FileSystemSasPermission permissions) { + StorageImplUtils.assertNotNull("permissions", permissions); + this.permissions = permissions.toString(); + return this; + } + + /** + * @return the {@link SasIpRange} which determines the IP ranges that are allowed to use the SAS. + */ + public SasIpRange getSasIpRange() { + return sasIpRange; + } + + /** + * Sets the {@link SasIpRange} which determines the IP ranges that are allowed to use the SAS. + * + * @param sasIpRange Allowed IP range to set + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setSasIpRange(SasIpRange sasIpRange) { + this.sasIpRange = sasIpRange; + return this; + } + + /** + * Gets the name of the file system the SAS user may access. + * + * @return The name of the file system the SAS user may access. + */ + public String getFileSystemName() { + return fileSystemName; + } + + /** + * Sets the container the SAS user may access. + * + * @param fileSystemName The name of the file system. + * @return The updated DataLakeServiceSasSignatureValues object. + */ + public DataLakeServiceSasSignatureValues setFileSystemName(String fileSystemName) { + this.fileSystemName = fileSystemName; + return this; + } + + /** + * Decodes and gets the name of the path the SAS user may access. {@code null} or an empty string is returned when a + * creating a file system SAS. + * + * @return The decoded name of the path the SAS user may access. {@code null} or an empty string is returned when a + * creating a file system SAS. + */ + public String getPathName() { + return pathName; + } + + /** + * Sets the path the SAS user may access. Use {@code null} or an empty string to create a file system SAS. + * + * @param pathName The name of the path. Use {@code null} or an empty string to create a file system SAS. + * @return The updated DataLakeServiceSasSignatureValues object. + */ + public DataLakeServiceSasSignatureValues setPathName(String pathName) { + this.pathName = (pathName == null) ? null : Utility.urlDecode(pathName); + return this; + } + + /** + * @return the name of the access policy on the file system this SAS references if any. Please see + * here + * for more information. + */ + public String getIdentifier() { + return identifier; + } + + /** + * Sets the name of the access policy on the file system this SAS references if any. Please see + * here + * for more information. + * + * @param identifier Name of the access policy + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * @return the cache-control header for the SAS. + */ + public String getCacheControl() { + return cacheControl; + } + + /** + * Sets the cache-control header for the SAS. + * + * @param cacheControl Cache-Control header value + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setCacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * @return the content-disposition header for the SAS. + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * Sets the content-disposition header for the SAS. + * + * @param contentDisposition Content-Disposition header value + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setContentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * @return the content-encoding header for the SAS. + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * Sets the content-encoding header for the SAS. + * + * @param contentEncoding Content-Encoding header value + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setContentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * @return the content-language header for the SAS. + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * Sets the content-language header for the SAS. + * + * @param contentLanguage Content-Language header value + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setContentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * @return the content-type header for the SAS. + */ + public String getContentType() { + return contentType; + } + + /** + * Sets the content-type header for the SAS. + * + * @param contentType Content-Type header value + * @return the updated DataLakeServiceSasSignatureValues object + */ + public DataLakeServiceSasSignatureValues setContentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Uses an account's shared key credential to sign these signature values to produce the proper SAS query + * parameters. + * + *

Notes on SAS generation

+ *

+ *

    + *
  • If {@link #setVersion(String) version} is not set, the {@link DataLakeServiceVersion#getLatest() latest + * service version} is used.
  • + *
  • If {@link #setIdentifier(String) identifier} is set, {@link #setExpiryTime(OffsetDateTime) expiryTime} and + * permissions should not be set. These values are inherited from the stored access policy.
  • + *
  • Otherwise, {@link #setExpiryTime(OffsetDateTime) expiryTime} and {@link #getPermissions() permissions} must + * be set.
  • + *
+ * + *

+ * The type of SAS query parameters returned depends on the following: + *

    + *
  1. If {@link #getPathName()} is not set, file system SAS query parameters are returned.
  2. + *
  3. If only {@link #getPathName()} is set, path SAS query parameters are returned.
  4. + *
+ * + * See class level JavaDocs for code snippets. + * + * @param storageSharedKeyCredentials A {@link StorageSharedKeyCredential} object used to sign the SAS values. + * @return {@link DataLakeServiceSasQueryParameters} + * @throws IllegalStateException If the HMAC-SHA256 algorithm isn't supported, if the key isn't a valid Base64 + * encoded string, or the UTF-8 charset isn't supported. + * @throws IllegalArgumentException if {@link #getPermissions()} contains an invalid character for the SAS resource. + * @throws NullPointerException if {@code storageSharedKeyCredentials} is null. + */ + public DataLakeServiceSasQueryParameters generateSasQueryParameters( + StorageSharedKeyCredential storageSharedKeyCredentials) { + StorageImplUtils.assertNotNull("storageSharedKeyCredentials", storageSharedKeyCredentials); + + ensureState(); + + // Signature is generated on the un-url-encoded values. + final String canonicalName = getCanonicalName(storageSharedKeyCredentials.getAccountName()); + final String signature = storageSharedKeyCredentials.computeHmac256(stringToSign(canonicalName)); + + return new DataLakeServiceSasQueryParameters(this.version, this.protocol, this.startTime, this.expiryTime, + this.sasIpRange, this.identifier, this.resource, this.permissions, signature, this.cacheControl, + this.contentDisposition, this.contentEncoding, this.contentLanguage, this.contentType, null /* delegate */); + } + + /** + * Uses a user delegation key to sign these signature values to produce the proper SAS query parameters. + * + *

Notes on SAS generation

+ *

+ *

    + *
  • If {@link #setVersion(String) version} is not set, the {@link DataLakeServiceVersion#getLatest() latest + * service version} is used.
  • + *
  • If {@link #setIdentifier(String) identifier} is set, {@link #setExpiryTime(OffsetDateTime) expiryTime} and + * permissions should not be set. These values are inherited from the stored access policy.
  • + *
  • Otherwise, {@link #setExpiryTime(OffsetDateTime) expiryTime} and {@link #getPermissions() permissions} must + * be set.
  • + *
+ * + *

+ * The type of SAS query parameters returned depends on the following: + *

    + *
  1. If {@link #getPathName()} is not set, file system SAS query parameters are returned.
  2. + *
  3. If only {@link #getPathName()} is set, path SAS query parameters are returned.
  4. + *
+ * + * See class level JavaDocs for code snippets. + * + * @param delegationKey A {@link UserDelegationKey} object used to sign the SAS values. + * @param accountName Azure Storage account name to generate SAS for. + * @return {@link DataLakeServiceSasQueryParameters} + * @throws IllegalStateException If the HMAC-SHA256 algorithm isn't supported, if the key isn't a valid Base64 + * encoded string, or the UTF-8 charset isn't supported. + * @throws IllegalArgumentException if {@link #getPermissions()} contains an invalid character for the SAS resource. + * @throws NullPointerException if {@code delegationKey} or {@code account} is null. + * @see + * Create a user delegation SAS + */ + public DataLakeServiceSasQueryParameters generateSasQueryParameters(UserDelegationKey delegationKey, + String accountName) { + StorageImplUtils.assertNotNull("delegationKey", delegationKey); + StorageImplUtils.assertNotNull("accountName", accountName); + + ensureState(); + + // Signature is generated on the un-url-encoded values. + final String canonicalName = getCanonicalName(accountName); + String signature = StorageImplUtils.computeHMac256( + delegationKey.getValue(), stringToSign(delegationKey, canonicalName)); + + + return new DataLakeServiceSasQueryParameters(this.version, this.protocol, this.startTime, this.expiryTime, + this.sasIpRange, null /* identifier */, this.resource, this.permissions, signature, + this.cacheControl, this.contentDisposition, this.contentEncoding, this.contentLanguage, this.contentType, + delegationKey); + } + + /** + * Ensures that the builder's properties are in a consistent state. + + * 1. If there is no version, use latest. + * 2. Resource name is chosen by: + * a. If "pathName" is _not_ set, it is a file system resource. + * b. Otherwise, it is a path resource. + * 3. Reparse permissions depending on what the resource is. If it is an unrecognised resource, do nothing. + * + * Taken from: + * https://github.com/Azure/azure-storage-blob-go/blob/master/azblob/sas_service.go#L33 + * https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/src/Sas/BlobSasBuilder.cs + */ + private void ensureState() { + if (version == null) { + version = DataLakeServiceVersion.getLatest().getVersion(); + } + + if (ImplUtils.isNullOrEmpty(pathName)) { + resource = SAS_CONTAINER_CONSTANT; + } else { + resource = SAS_BLOB_CONSTANT; + } + + if (permissions != null) { + switch (resource) { + case SAS_BLOB_CONSTANT: + permissions = PathSasPermission.parse(permissions).toString(); + break; + case SAS_CONTAINER_CONSTANT: + permissions = FileSystemSasPermission.parse(permissions).toString(); + break; + default: + // We won't reparse the permissions if we don't know the type. + logger.info("Not re-parsing permissions. Resource type '{}' is unknown.", resource); + break; + } + } + } + + /** + * Computes the canonical name for a file system or path resource for SAS signing. + */ + private String getCanonicalName(String account) { + // File System: "/blob/account/containername" + // Path: "/blob/account/containername/blobname" + return ImplUtils.isNullOrEmpty(pathName) + ? String.format("/blob/%s/%s", account, fileSystemName) + : String.format("/blob/%s/%s/%s", account, fileSystemName, pathName.replace("\\", "/")); + } + + private String stringToSign(String canonicalName) { + return String.join("\n", + this.permissions == null ? "" : permissions, + this.startTime == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(this.startTime), + this.expiryTime == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(this.expiryTime), + canonicalName, + this.identifier == null ? "" : this.identifier, + this.sasIpRange == null ? "" : this.sasIpRange.toString(), + this.protocol == null ? "" : this.protocol.toString(), + version, + resource, + this.snapshotId == null ? "" : this.snapshotId, + this.cacheControl == null ? "" : this.cacheControl, + this.contentDisposition == null ? "" : this.contentDisposition, + this.contentEncoding == null ? "" : this.contentEncoding, + this.contentLanguage == null ? "" : this.contentLanguage, + this.contentType == null ? "" : this.contentType + ); + } + + private String stringToSign(final UserDelegationKey key, String canonicalName) { + return String.join("\n", + this.permissions == null ? "" : this.permissions, + this.startTime == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(this.startTime), + this.expiryTime == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(this.expiryTime), + canonicalName, + key.getSignedObjectId() == null ? "" : key.getSignedObjectId(), + key.getSignedTenantId() == null ? "" : key.getSignedTenantId(), + key.getSignedStart() == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(key.getSignedStart()), + key.getSignedExpiry() == null ? "" : Constants.ISO_8601_UTC_DATE_FORMATTER.format(key.getSignedExpiry()), + key.getSignedService() == null ? "" : key.getSignedService(), + key.getSignedVersion() == null ? "" : key.getSignedVersion(), + this.sasIpRange == null ? "" : this.sasIpRange.toString(), + this.protocol == null ? "" : this.protocol.toString(), + version, + resource, + this.snapshotId == null ? "" : this.snapshotId, + this.cacheControl == null ? "" : this.cacheControl, + this.contentDisposition == null ? "" : this.contentDisposition, + this.contentEncoding == null ? "" : this.contentEncoding, + this.contentLanguage == null ? "" : this.contentLanguage, + this.contentType == null ? "" : this.contentType + ); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/FileSystemSasPermission.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/FileSystemSasPermission.java new file mode 100644 index 0000000000000..a8f61cf518788 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/FileSystemSasPermission.java @@ -0,0 +1,223 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.sas; + + +import com.azure.storage.common.implementation.Constants; + +import java.util.Locale; + +/** + * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a file system. + * Setting a value to true means that any SAS which uses these permissions will grant permissions for that operation. + * It is possible to construct the permissions string without this class, but the order of the permissions is + * particular and this class guarantees correctness. + */ +public final class FileSystemSasPermission { + private boolean readPermission; + + private boolean addPermission; + + private boolean createPermission; + + private boolean writePermission; + + private boolean deletePermission; + + private boolean listPermission; + + /** + * Initializes an {@code FileSystemSasPermission} object with all fields set to false. + */ + public FileSystemSasPermission() { + } + + /** + * Creates an {@code FileSystemSasPermission} from the specified permissions string. This method will throw an + * {@code IllegalArgumentException} if it encounters a character that does not correspond to a valid permission. + * + * @param permString A {@code String} which represents the {@code FileSystemSasPermission}. + * @return A {@code FileSystemSasPermission} generated from the given {@code String}. + * @throws IllegalArgumentException If {@code permString} contains a character other than r, a, c, w, d, or l. + */ + public static FileSystemSasPermission parse(String permString) { + FileSystemSasPermission permissions = new FileSystemSasPermission(); + + for (int i = 0; i < permString.length(); i++) { + char c = permString.charAt(i); + switch (c) { + case 'r': + permissions.readPermission = true; + break; + case 'a': + permissions.addPermission = true; + break; + case 'c': + permissions.createPermission = true; + break; + case 'w': + permissions.writePermission = true; + break; + case 'd': + permissions.deletePermission = true; + break; + case 'l': + permissions.listPermission = true; + break; + default: + throw new IllegalArgumentException( + String.format(Locale.ROOT, Constants.ENUM_COULD_NOT_BE_PARSED_INVALID_VALUE, + "Permissions", permString, c)); + } + } + return permissions; + } + + /** + * @return the read permission status + */ + public boolean hasReadPermission() { + return readPermission; + } + + /** + * Sets the read permission status. + * + * @param hasReadPermission Permission status to set + * @return the updated FileSystemSasPermission object + */ + public FileSystemSasPermission setReadPermission(boolean hasReadPermission) { + this.readPermission = hasReadPermission; + return this; + } + + /** + * @return the add permission status + */ + public boolean hasAddPermission() { + return addPermission; + } + + /** + * Sets the add permission status. + * + * @param hasAddPermission Permission status to set + * @return the updated FileSystemSasPermission object + */ + public FileSystemSasPermission setAddPermission(boolean hasAddPermission) { + this.addPermission = hasAddPermission; + return this; + } + + /** + * @return the create permission status + */ + public boolean hasCreatePermission() { + return createPermission; + } + + /** + * Sets the create permission status. + * + * @param hasCreatePermission Permission status to set + * @return the updated FileSystemSasPermission object + */ + public FileSystemSasPermission setCreatePermission(boolean hasCreatePermission) { + this.createPermission = hasCreatePermission; + return this; + } + + /** + * @return the write permission status + */ + public boolean hasWritePermission() { + return writePermission; + } + + /** + * Sets the write permission status. + * + * @param hasWritePermission Permission status to set + * @return the updated FileSystemSasPermission object + */ + public FileSystemSasPermission setWritePermission(boolean hasWritePermission) { + this.writePermission = hasWritePermission; + return this; + } + + /** + * @return the delete permission status + */ + public boolean hasDeletePermission() { + return deletePermission; + } + + /** + * Sets the delete permission status. + * + * @param hasDeletePermission Permission status to set + * @return the updated FileSystemSasPermission object + */ + public FileSystemSasPermission setDeletePermission(boolean hasDeletePermission) { + this.deletePermission = hasDeletePermission; + return this; + } + + /** + * @return the list permission status + */ + public boolean hasListPermission() { + return listPermission; + } + + /** + * Sets the list permission status. + * + * @param hasListPermission Permission status to set + * @return the updated FileSystemSasPermission object + */ + public FileSystemSasPermission setListPermission(boolean hasListPermission) { + this.listPermission = hasListPermission; + return this; + } + + /** + * Converts the given permissions to a {@code String}. Using this method will guarantee the permissions are in an + * order accepted by the service. + * + * @return A {@code String} which represents the {@code FileSystemSasPermission}. + */ + @Override + public String toString() { + // The order of the characters should be as specified here to ensure correctness: + // https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas + final StringBuilder builder = new StringBuilder(); + + if (this.readPermission) { + builder.append('r'); + } + + if (this.addPermission) { + builder.append('a'); + } + + if (this.createPermission) { + builder.append('c'); + } + + if (this.writePermission) { + builder.append('w'); + } + + if (this.deletePermission) { + builder.append('d'); + } + + if (this.listPermission) { + builder.append('l'); + } + + return builder.toString(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/PathSasPermission.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/PathSasPermission.java new file mode 100644 index 0000000000000..6ed458c9b1ee2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/PathSasPermission.java @@ -0,0 +1,197 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake.sas; + +import com.azure.storage.common.implementation.Constants; + +import java.util.Locale; + +/** + * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a path. Setting + * a value to true means that any SAS which uses these permissions will grant permissions for that operation. It is + * possible to construct the permissions string without this class, but the order of the permissions is particular and + * this class guarantees correctness. + */ +public final class PathSasPermission { + + private boolean readPermission; + + private boolean addPermission; + + private boolean createPermission; + + private boolean writePermission; + + private boolean deletePermission; + + /** + * Initializes a {@code PathSasPermission} object with all fields set to false. + */ + public PathSasPermission() { + } + + /** + * Creates a {@code PathSasPermission} from the specified permissions string. This method will throw an + * {@code IllegalArgumentException} if it encounters a character that does not correspond to a valid permission. + * + * @param permString A {@code String} which represents the {@code PathSasPermission}. + * @return A {@code PathSasPermission} generated from the given {@code String}. + * @throws IllegalArgumentException If {@code permString} contains a character other than r, a, c, w, or d. + */ + public static PathSasPermission parse(String permString) { + PathSasPermission permissions = new PathSasPermission(); + + for (int i = 0; i < permString.length(); i++) { + char c = permString.charAt(i); + switch (c) { + case 'r': + permissions.readPermission = true; + break; + case 'a': + permissions.addPermission = true; + break; + case 'c': + permissions.createPermission = true; + break; + case 'w': + permissions.writePermission = true; + break; + case 'd': + permissions.deletePermission = true; + break; + default: + throw new IllegalArgumentException( + String.format(Locale.ROOT, Constants.ENUM_COULD_NOT_BE_PARSED_INVALID_VALUE, + "Permissions", permString, c)); + } + } + return permissions; + } + + /** + * @return the read permission status. + */ + public boolean hasReadPermission() { + return readPermission; + } + + /** + * Sets the read permission status. + * + * @param hasReadPermission Permission status to set + * @return the updated PathSasPermission object. + */ + public PathSasPermission setReadPermission(boolean hasReadPermission) { + this.readPermission = hasReadPermission; + return this; + } + + /** + * @return the add permission status. + */ + public boolean hasAddPermission() { + return addPermission; + } + + /** + * Sets the add permission status. + * + * @param hasAddPermission Permission status to set + * @return the updated PathSasPermission object. + */ + public PathSasPermission setAddPermission(boolean hasAddPermission) { + this.addPermission = hasAddPermission; + return this; + } + + /** + * @return the create permission status. + */ + public boolean hasCreatePermission() { + return createPermission; + } + + /** + * Sets the create permission status. + * + * @param hasCreatePermission Permission status to set + * @return the updated PathSasPermission object. + */ + public PathSasPermission setCreatePermission(boolean hasCreatePermission) { + this.createPermission = hasCreatePermission; + return this; + } + + /** + * @return the write permission status. + */ + public boolean hasWritePermission() { + return writePermission; + } + + /** + * Sets the write permission status. + * + * @param hasWritePermission Permission status to set + * @return the updated PathSasPermission object. + */ + public PathSasPermission setWritePermission(boolean hasWritePermission) { + this.writePermission = hasWritePermission; + return this; + } + + /** + * @return the delete permission status. + */ + public boolean hasDeletePermission() { + return deletePermission; + } + + /** + * Sets the delete permission status. + * + * @param hasDeletePermission Permission status to set + * @return the updated PathSasPermission object. + */ + public PathSasPermission setDeletePermission(boolean hasDeletePermission) { + this.deletePermission = hasDeletePermission; + return this; + } + + /** + * Converts the given permissions to a {@code String}. Using this method will guarantee the permissions are in an + * order accepted by the service. + * + * @return A {@code String} which represents the {@code PathSasPermission}. + */ + @Override + public String toString() { + // The order of the characters should be as specified here to ensure correctness: + // https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas + + final StringBuilder builder = new StringBuilder(); + + if (this.readPermission) { + builder.append('r'); + } + + if (this.addPermission) { + builder.append('a'); + } + + if (this.createPermission) { + builder.append('c'); + } + + if (this.writePermission) { + builder.append('w'); + } + + if (this.deletePermission) { + builder.append('d'); + } + + return builder.toString(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/package-info.java new file mode 100644 index 0000000000000..ba62905eb1816 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/sas/package-info.java @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Package containing sas related classes for DataLakeStorageClient. + * Azure Data Lake Storage provides storage for Hadoop and other big data + * workloads. + */ +package com.azure.storage.file.datalake.sas; diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/BasicExample.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/BasicExample.java new file mode 100644 index 0000000000000..429f3b9e65d18 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/BasicExample.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.common.StorageSharedKeyCredential; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; +import java.util.Locale; + +/** + * This example shows how to start using the Azure Storage Data Lake SDK for Java. + */ +public class BasicExample { + + /** + * Entry point into the basic examples for Storage datalake. + * + * @param args Unused. Arguments to the program. + * @throws IOException If an I/O error occurs + * @throws RuntimeException If the downloaded data doesn't match the uploaded data + */ + public static void main(String[] args) throws IOException { + + /* + * From the Azure portal, get your Storage account's name and account key. + */ + String accountName = SampleHelper.getAccountName(); + String accountKey = SampleHelper.getAccountKey(); + + /* + * Use your Storage account's name and key to create a credential object; this is used to access your account. + */ + StorageSharedKeyCredential credential = new StorageSharedKeyCredential(accountName, accountKey); + + /* + * From the Azure portal, get your Storage account dfs service URL endpoint. + * The URL typically looks like this: + */ + String endpoint = String.format(Locale.ROOT, "https://%s.dfs.core.windows.net", accountName); + + /* + * Create a DataLakeServiceClient object that wraps the service endpoint, credential and a request pipeline. + */ + DataLakeServiceClient storageClient = new DataLakeServiceClientBuilder().endpoint(endpoint).credential(credential).buildClient(); + + /* + * This example shows several common operations just to get you started. + */ + + /* + * Create a client that references a to-be-created file system in your Azure Storage account. This returns a + * FileSystem object that wraps the file system's endpoint, credential and a request pipeline (inherited from storageClient). + * Note that file system names require lowercase. + */ + DataLakeFileSystemClient dataLakeFileSystemClient = storageClient.getFileSystemClient("myjavafilesystembasic" + System.currentTimeMillis()); + + /* + * Create a file system in Storage datalake account. + */ + dataLakeFileSystemClient.create(); + + /* + * Create a client that references a to-be-created file in your Azure Storage account's file system. + * This returns a DataLakeFileClient object that wraps the file's endpoint, credential and a request pipeline + * (inherited from dataLakeFileSystemClient). Note that file names can be mixed case. + */ + DataLakeFileClient fileClient = dataLakeFileSystemClient.getFileClient("HelloWorld.txt"); + + String data = "Hello world!"; + InputStream dataStream = new ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8)); + + /* + * Create the file with string (plain text) content. + */ + fileClient.create(); + fileClient.append(dataStream, 0, data.length()); + fileClient.flush(data.length()); + + dataStream.close(); + + /* + * Download the file's content to output stream. + */ + int dataSize = (int) fileClient.getProperties().getFileSize(); + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(dataSize); + fileClient.read(outputStream); + outputStream.close(); + + /* + * Verify that the file data round-tripped correctly. + */ + if (!data.equals(new String(outputStream.toByteArray(), StandardCharsets.UTF_8))) { + throw new RuntimeException("The downloaded data does not match the uploaded data."); + } + + /* + * Create more files (maybe even a few directories) before listing. + */ + for (int i = 0; i < 3; i++) { + String sampleData = "Samples"; + InputStream dataInFiles = new ByteArrayInputStream(sampleData.getBytes(Charset.defaultCharset())); + DataLakeFileClient fClient = dataLakeFileSystemClient.getFileClient("myfilesforlisting" + System.currentTimeMillis()); + fClient.create(); + fClient.append(dataInFiles, 0, sampleData.length()); + fClient.flush(sampleData.length()); + dataInFiles.close(); + dataLakeFileSystemClient.getDirectoryClient("mydirsforlisting" + System.currentTimeMillis()).create(); + } + + /* + * List the path(s) in our file system. + */ + dataLakeFileSystemClient.listPaths() + .forEach(pathItem -> System.out.println("Path name: " + pathItem.getName())); + + /* + * Delete the file we created earlier. + */ + fileClient.delete(); + + /* + * Delete the file system we created earlier. + */ + dataLakeFileSystemClient.delete(); + } +} 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 new file mode 100644 index 0000000000000..daabdd0edc481 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryAsyncClientJavaDocSamples.java @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.PathHttpHeaders; + +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeDirectoryAsyncClient} + */ +@SuppressWarnings({"unused"}) +public class DataLakeDirectoryAsyncClientJavaDocSamples { + private String fileName = "fileName"; + private String directoryName = "directoryName"; + private DataLakeDirectoryAsyncClient client = JavaDocCodeSnippetsHelpers.getDirectoryAsyncClient(directoryName); + private String leaseId = "leaseId"; + private String destinationPath = "destinationPath"; + + /** + * Code snippet for {@link DataLakeDirectoryAsyncClient#getSubDirectoryAsyncClient(String)} + */ + public void getDirectoryClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.getSubDirectoryAsyncClient#String + DataLakeDirectoryAsyncClient dataLakeDirectoryClient = client.getSubDirectoryAsyncClient(directoryName); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.getSubDirectoryAsyncClient#String + } + + /** + * Code snippet for {@link DataLakeDirectoryAsyncClient#getFileAsyncClient(String)} + */ + public void getFileClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.getFileAsyncClient#String + DataLakeFileAsyncClient dataLakeFileClient = client.getFileAsyncClient(fileName); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.getFileAsyncClient#String + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#create()} and + * {@link DataLakeDirectoryAsyncClient#createWithResponse(PathHttpHeaders, Map, DataLakeRequestConditions, String, String)} + */ + public void createCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.create + client.create().subscribe(response -> + System.out.printf("Last Modified Time:%s", response.getLastModified())); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.create + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + + client.createWithResponse(httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, + permissions, umask) + .subscribe(response -> System.out.printf("Last Modified Time:%s", response.getValue().getLastModified())); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#delete()} and + * {@link DataLakeDirectoryAsyncClient#deleteWithResponse(boolean, DataLakeRequestConditions)} + */ + public void deleteCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.delete + client.delete().subscribe(response -> + System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.delete + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteWithResponse#boolean-DataLakeRequestConditions + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + boolean recursive = false; // Default value + + client.deleteWithResponse(recursive, requestConditions) + .subscribe(response -> System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteWithResponse#boolean-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#createFile(String)} and + * {@link DataLakeDirectoryAsyncClient#createFileWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String)} + */ + public void createFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFile#String + DataLakeFileAsyncClient fileClient = client.createFile(fileName).block(); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + DataLakeFileAsyncClient newFileClient = client.createFileWithResponse(fileName, + httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, permissions, + umask).block().getValue(); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#deleteFile(String)} and + * {@link DataLakeDirectoryAsyncClient#deleteFileWithResponse(String, DataLakeRequestConditions)} + */ + public void deleteFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFile#String + client.deleteFile(fileName).subscribe(response -> + System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileWithResponse#String-DataLakeRequestConditions + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.deleteFileWithResponse(fileName, requestConditions) + .subscribe(response -> System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteFileWithResponse#String-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#createSubDirectory(String)} and + * {@link DataLakeDirectoryAsyncClient#createSubDirectoryWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String)} + */ + public void createSubDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubDirectory#String + DataLakeDirectoryAsyncClient directoryClient = client.createSubDirectory(fileName).block(); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + DataLakeDirectoryAsyncClient newDirectoryClient = client.createSubDirectoryWithResponse( + fileName, httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, permissions, + umask).block().getValue(); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.createSubDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#deleteSubDirectory(String)} and + * {@link DataLakeDirectoryAsyncClient#deleteSubDirectoryWithResponse(String, boolean, DataLakeRequestConditions)} + */ + public void deleteSubDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubDirectory#String + client.deleteSubDirectory(directoryName).subscribe(response -> + System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubDirectoryWithResponse#String-boolean-DataLakeRequestConditions + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + boolean recursive = false; // Default value + + client.deleteSubDirectoryWithResponse(directoryName, recursive, requestConditions) + .subscribe(response -> System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.deleteSubDirectoryWithResponse#String-boolean-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeDirectoryAsyncClient#rename(String)} and + * {@link DataLakeDirectoryAsyncClient#renameWithResponse(String, DataLakeRequestConditions, DataLakeRequestConditions)} + */ + public void renameCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.rename#String + DataLakeDirectoryAsyncClient renamedClient = client.rename(destinationPath).block(); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.rename#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions + DataLakeRequestConditions sourceRequestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + DataLakeRequestConditions destinationRequestConditions = new DataLakeRequestConditions(); + + DataLakeDirectoryAsyncClient newRenamedClient = client.renameWithResponse(destinationPath, + sourceRequestConditions, destinationRequestConditions).block().getValue(); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryAsyncClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions + } +} 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 new file mode 100644 index 0000000000000..82edc90f16369 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeDirectoryClientJavaDocSamples.java @@ -0,0 +1,199 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +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.models.PathInfo; + +import java.time.Duration; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeDirectoryClient} + */ +@SuppressWarnings({"unused"}) +public class DataLakeDirectoryClientJavaDocSamples { + private String fileName = "fileName"; + private String directoryName = "directoryName"; + private DataLakeDirectoryClient client = JavaDocCodeSnippetsHelpers.getDirectoryClient(directoryName); + private String leaseId = "leaseId"; + private Duration timeout = Duration.ofSeconds(30); + private String key1 = "key1"; + private String value1 = "val1"; + private String destinationPath = "destinationPath"; + + /** + * Code snippet for {@link DataLakeDirectoryClient#getSubDirectoryClient(String)} + */ + public void getDirectoryClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.getSubDirectoryClient#String + DataLakeDirectoryClient dataLakeDirectoryClient = client.getSubDirectoryClient(directoryName); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.getSubDirectoryClient#String + } + + /** + * Code snippet for {@link DataLakeDirectoryClient#getFileClient(String)} + */ + public void getFileClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.getFileClient#String + DataLakeFileClient dataLakeFileClient = client.getFileClient(fileName); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.getFileClient#String + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#create()} and + * {@link DataLakeDirectoryClient#createWithResponse(PathHttpHeaders, Map, DataLakeRequestConditions, String, String, Duration, Context)} + */ + public void createCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.create + System.out.printf("Last Modified Time:%s", client.create().getLastModified()); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.create + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + + Response response = client.createWithResponse(httpHeaders, + Collections.singletonMap("metadata", "value"), requestConditions, permissions, umask, timeout, + new Context(key1, value1)); + System.out.printf("Last Modified Time:%s", response.getValue().getLastModified()); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#delete()} and + * {@link DataLakeDirectoryClient#deleteWithResponse(boolean, DataLakeRequestConditions, Duration, Context)} + */ + public void deleteCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.delete + client.delete(); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.delete + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteWithResponse#boolean-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + boolean recursive = false; // Default value + + client.deleteWithResponse(recursive, requestConditions, timeout, new Context(key1, value1)); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteWithResponse#boolean-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#createFile(String)} and + * {@link DataLakeDirectoryClient#createFileWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String, Duration, Context)} + */ + public void createFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFile#String + DataLakeFileClient fileClient = client.createFile(fileName); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + Response newFileClient = client.createFileWithResponse(fileName, httpHeaders, + Collections.singletonMap("metadata", "value"), requestConditions, + permissions, umask, timeout, new Context(key1, value1)); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#deleteFile(String)} and + * {@link DataLakeDirectoryClient#deleteFileWithResponse(String, DataLakeRequestConditions, Duration, Context)} + */ + public void deleteFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFile#String + client.deleteFile(fileName); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileWithResponse#String-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.deleteFileWithResponse(fileName, requestConditions, timeout, new Context(key1, value1)); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteFileWithResponse#String-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#createSubDirectory(String)} and + * {@link DataLakeDirectoryClient#createSubDirectoryWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String, Duration, Context)} + */ + public void createSubDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubDirectory#String + DataLakeDirectoryClient directoryClient = client.createSubDirectory(directoryName); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + Response newDirectoryClient = client.createSubDirectoryWithResponse(directoryName, + httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, permissions, umask, timeout, + new Context(key1, value1)); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.createSubDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#deleteSubDirectory(String)} and + * {@link DataLakeDirectoryClient#deleteSubDirectoryWithResponse(String, boolean, DataLakeRequestConditions, Duration, Context)} + */ + public void deleteSubDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubDirectory#String + client.deleteSubDirectory(directoryName); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubDirectoryWithResponse#String-boolean-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + boolean recursive = false; // Default value + + client.deleteSubDirectoryWithResponse(directoryName, recursive, requestConditions, timeout, + new Context(key1, value1)); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.deleteSubDirectoryWithResponse#String-boolean-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeDirectoryClient#rename(String)} and + * {@link DataLakeDirectoryClient#renameWithResponse(String, DataLakeRequestConditions, DataLakeRequestConditions, Duration, Context)} + */ + public void renameCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.rename#String + DataLakeDirectoryClient renamedClient = client.rename(destinationPath); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.rename#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeDirectoryClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions sourceRequestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + DataLakeRequestConditions destinationRequestConditions = new DataLakeRequestConditions(); + + DataLakeDirectoryClient newRenamedClient = client.renameWithResponse(destinationPath, sourceRequestConditions, + destinationRequestConditions, timeout, new Context(key1, value1)).getValue(); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeDirectoryClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions-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 new file mode 100644 index 0000000000000..57216003067d5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileAsyncClientJavaDocSamples.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.DownloadRetryOptions; +import com.azure.storage.file.datalake.models.FileRange; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import reactor.core.publisher.Flux; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.UncheckedIOException; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeFileAsyncClient} + */ +@SuppressWarnings({"unused"}) +public class DataLakeFileAsyncClientJavaDocSamples { + private String fileName = "fileName"; + private DataLakeFileAsyncClient client = JavaDocCodeSnippetsHelpers.getFileAsyncClient(fileName); + private String leaseId = "leaseId"; + private String destinationPath = "destinationPath"; + private Flux data = Flux.just(ByteBuffer.wrap("data".getBytes(StandardCharsets.UTF_8))); + private long length = 4L; + private long position = 4L; + private long offset = 0L; + + /** + * Code snippets for {@link DataLakeFileAsyncClient#create()} and + * {@link DataLakeFileAsyncClient#createWithResponse(PathHttpHeaders, Map, DataLakeRequestConditions, String, String)} + */ + public void createCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.create + client.create().subscribe(response -> + System.out.printf("Last Modified Time:%s", response.getLastModified())); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.create + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String + + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + + client.createWithResponse(httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, + permissions, umask) + .subscribe(response -> System.out.printf("Last Modified Time:%s", response.getValue().getLastModified())); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String + } + + /** + * Code snippets for {@link DataLakeFileAsyncClient#delete()} and + * {@link DataLakeFileAsyncClient#deleteWithResponse(DataLakeRequestConditions)} + */ + public void deleteCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.delete + client.delete().subscribe(response -> + System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.delete + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteWithResponse#DataLakeRequestConditions + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.deleteWithResponse(requestConditions) + .subscribe(response -> System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.deleteWithResponse#DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeFileAsyncClient#rename(String)} and + * {@link DataLakeFileAsyncClient#renameWithResponse(String, DataLakeRequestConditions, DataLakeRequestConditions)} + */ + public void renameCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.rename#String + DataLakeFileAsyncClient renamedClient = client.rename(destinationPath).block(); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.rename#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions + DataLakeRequestConditions sourceRequestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + DataLakeRequestConditions destinationRequestConditions = new DataLakeRequestConditions(); + + DataLakeFileAsyncClient newRenamedClient = client.renameWithResponse(destinationPath, sourceRequestConditions, + destinationRequestConditions).block().getValue(); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeFileAsyncClient#read()} and + * {@link DataLakeFileAsyncClient#readWithResponse(FileRange, DownloadRetryOptions, DataLakeRequestConditions, boolean)} + * @throws UncheckedIOException if the read fails. + */ + public void readCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.read + ByteArrayOutputStream downloadData = new ByteArrayOutputStream(); + client.read().subscribe(piece -> { + try { + downloadData.write(piece.array()); + } catch (IOException ex) { + throw new UncheckedIOException(ex); + } + }); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.read + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.readWithResponse#FileRange-DownloadRetryOptions-DataLakeRequestConditions-boolean + FileRange range = new FileRange(1024, 2048L); + DownloadRetryOptions options = new DownloadRetryOptions().setMaxRetryRequests(5); + + client.readWithResponse(range, options, null, false).subscribe(response -> { + ByteArrayOutputStream readData = new ByteArrayOutputStream(); + response.getValue().subscribe(piece -> { + try { + readData.write(piece.array()); + } catch (IOException ex) { + throw new UncheckedIOException(ex); + } + }); + }); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.readWithResponse#FileRange-DownloadRetryOptions-DataLakeRequestConditions-boolean + } + + /** + * Code snippets for {@link DataLakeFileAsyncClient#append(Flux, long, long)} and + * {@link DataLakeFileAsyncClient#appendWithResponse(Flux, long, long, byte[], String, Context)} + */ + public void appendCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.append#Flux-long-long + client.append(data, offset, length) + .subscribe( + response -> System.out.println("Append data completed"), + error -> System.out.printf("Error when calling append data: %s", error)); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.append#Flux-long-long + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.appendWithResponse#Flux-long-long-byte-String + FileRange range = new FileRange(1024, 2048L); + DownloadRetryOptions options = new DownloadRetryOptions().setMaxRetryRequests(5); + byte[] contentMd5 = new byte[0]; // Replace with valid md5 + + client.appendWithResponse(data, offset, length, contentMd5, leaseId).subscribe(response -> + System.out.printf("Append data completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.appendWithResponse#Flux-long-long-byte-String + } + + /** + * Code snippets for {@link DataLakeFileAsyncClient#flush(long)} and + * {@link DataLakeFileAsyncClient#flushWithResponse(long, boolean, boolean, PathHttpHeaders, DataLakeRequestConditions)} + */ + public void flushCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.flush#long + client.flush(position).subscribe(response -> + System.out.println("Flush data completed")); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.flush#long + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileAsyncClient.flushWithResponse#long-boolean-boolean-PathHttpHeaders-DataLakeRequestConditions + FileRange range = new FileRange(1024, 2048L); + DownloadRetryOptions options = new DownloadRetryOptions().setMaxRetryRequests(5); + byte[] contentMd5 = new byte[0]; // Replace with valid md5 + boolean retainUncommittedData = false; + boolean close = false; + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.flushWithResponse(position, retainUncommittedData, close, httpHeaders, + requestConditions).subscribe(response -> + System.out.printf("Flush data completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeFileAsyncClient.flushWithResponse#long-boolean-boolean-PathHttpHeaders-DataLakeRequestConditions + } + +} 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 new file mode 100644 index 0000000000000..1004c3dbd9fd0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeFileClientJavaDocSamples.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.DownloadRetryOptions; +import com.azure.storage.file.datalake.models.FileRange; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import com.azure.storage.file.datalake.models.PathInfo; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.InputStream; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.time.Duration; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeFileClient} + */ +@SuppressWarnings({"unused"}) +public class DataLakeFileClientJavaDocSamples { + private String fileName = "fileName"; + private DataLakeFileClient client = JavaDocCodeSnippetsHelpers.getFileClient(fileName); + private String leaseId = "leaseId"; + private Duration timeout = Duration.ofSeconds(30); + private String key1 = "key1"; + private String key2 = "key2"; + private String value1 = "val1"; + private String value2 = "val2"; + private String destinationPath = "destinationPath"; + private InputStream data = new ByteArrayInputStream("data".getBytes(StandardCharsets.UTF_8)); + private long offset = 0L; + private long length = 4L; + private long position = 4L; + + /** + * Code snippets for {@link DataLakeFileClient#create()} and + * {@link DataLakeFileClient#createWithResponse(PathHttpHeaders, Map, DataLakeRequestConditions, String, String, Duration, Context)} + */ + public void createCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.create + System.out.printf("Last Modified Time:%s", client.create().getLastModified()); + // END: com.azure.storage.file.datalake.DataLakeFileClient.create + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + + Response response = client.createWithResponse(httpHeaders, + Collections.singletonMap("metadata", "value"), requestConditions, permissions, umask, timeout, + new Context(key1, value1)); + System.out.printf("Last Modified Time:%s", response.getValue().getLastModified()); + // END: com.azure.storage.file.datalake.DataLakeFileClient.createWithResponse#PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileClient#delete()} and + * {@link DataLakeFileClient#deleteWithResponse(DataLakeRequestConditions, Duration, Context)} + */ + public void deleteCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.delete + client.delete(); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeFileClient.delete + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.deleteWithResponse#DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.deleteWithResponse(requestConditions, timeout, new Context(key1, value1)); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeFileClient.deleteWithResponse#DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileClient#rename(String)} and + * {@link DataLakeFileClient#renameWithResponse(String, DataLakeRequestConditions, DataLakeRequestConditions, Duration, Context)} + */ + public void renameCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.rename#String + DataLakeFileClient renamedClient = client.rename(destinationPath); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeFileClient.rename#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions sourceRequestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + DataLakeRequestConditions destinationRequestConditions = new DataLakeRequestConditions(); + + DataLakeFileClient newRenamedClient = client.renameWithResponse(destinationPath, sourceRequestConditions, + destinationRequestConditions, timeout, new Context(key1, value1)).getValue(); + System.out.println("Directory Client has been renamed"); + // END: com.azure.storage.file.datalake.DataLakeFileClient.renameWithResponse#String-DataLakeRequestConditions-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileClient#read(OutputStream)} and + * {@link DataLakeFileClient#readWithResponse(OutputStream, FileRange, DownloadRetryOptions, DataLakeRequestConditions, boolean, Duration, Context)} + */ + public void readCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.read#OutputStream + client.read(new ByteArrayOutputStream()); + System.out.println("Download completed."); + // END: com.azure.storage.file.datalake.DataLakeFileClient.read#OutputStream + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.readWithResponse#OutputStream-FileRange-DownloadRetryOptions-DataLakeRequestConditions-boolean-Duration-Context + FileRange range = new FileRange(1024, 2048L); + DownloadRetryOptions options = new DownloadRetryOptions().setMaxRetryRequests(5); + + System.out.printf("Download completed with status %d%n", + client.readWithResponse(new ByteArrayOutputStream(), range, options, null, false, + timeout, new Context(key2, value2)).getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeFileClient.readWithResponse#OutputStream-FileRange-DownloadRetryOptions-DataLakeRequestConditions-boolean-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileClient#append(InputStream, long, long)} and + * {@link DataLakeFileClient#appendWithResponse(InputStream, long, long, byte[], String, Duration, Context)} + */ + public void appendCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.append#InputStream-long-long + client.append(data, offset, length); + System.out.println("Append data completed"); + // END: com.azure.storage.file.datalake.DataLakeFileClient.append#InputStream-long-long + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.appendWithResponse#InputStream-long-long-byte-String-Duration-Context + FileRange range = new FileRange(1024, 2048L); + DownloadRetryOptions options = new DownloadRetryOptions().setMaxRetryRequests(5); + byte[] contentMd5 = new byte[0]; // Replace with valid md5 + + Response response = client.appendWithResponse(data, offset, length, contentMd5, leaseId, timeout, + new Context(key1, value1)); + System.out.printf("Append data completed with status %d%n", response.getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeFileClient.appendWithResponse#InputStream-long-long-byte-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileClient#flush(long)} and + * {@link DataLakeFileClient#flushWithResponse(long, boolean, boolean, PathHttpHeaders, DataLakeRequestConditions, Duration, Context)} + */ + public void flushCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.flush#long + client.flush(position); + System.out.println("Flush data completed"); + // END: com.azure.storage.file.datalake.DataLakeFileClient.flush#long + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileClient.flushWithResponse#long-boolean-boolean-PathHttpHeaders-DataLakeRequestConditions-Duration-Context + FileRange range = new FileRange(1024, 2048L); + DownloadRetryOptions options = new DownloadRetryOptions().setMaxRetryRequests(5); + byte[] contentMd5 = new byte[0]; // Replace with valid md5 + boolean retainUncommittedData = false; + boolean close = false; + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + Response response = client.flushWithResponse(position, retainUncommittedData, close, httpHeaders, + requestConditions, timeout, new Context(key1, value1)); + System.out.printf("Flush data completed with status %d%n", response.getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeFileClient.flushWithResponse#long-boolean-boolean-PathHttpHeaders-DataLakeRequestConditions-Duration-Context + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClientJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClientJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..070e1a0c0ad7a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceAsyncClientJavaDocCodeSnippets.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemListDetails; +import com.azure.storage.file.datalake.models.ListFileSystemsOptions; +import com.azure.storage.file.datalake.models.PublicAccessType; + +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeServiceAsyncClient} + */ +@SuppressWarnings({"unused"}) +public class DataLakeServiceAsyncClientJavaDocCodeSnippets { + private DataLakeServiceAsyncClient client = JavaDocCodeSnippetsHelpers.getDataLakeServiceAsyncClient(); + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#getFileSystemAsyncClient(String)} + */ + public void getFileSystemClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getFileSystemAsyncClient#String + DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient = client.getFileSystemAsyncClient("fileSystemName"); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getFileSystemAsyncClient#String + } + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#createFileSystem(String)} + */ + public void createFileSystem() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.createFileSystem#String + DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient = + client.createFileSystem("fileSystemName").block(); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.createFileSystem#String + } + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#createFileSystemWithResponse(String, Map, PublicAccessType)} + */ + public void createFileSystemWithResponse() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.createFileSystemWithResponse#String-Map-PublicAccessType + Map metadata = Collections.singletonMap("metadata", "value"); + + DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient = client + .createFileSystemWithResponse("fileSystemName", metadata, PublicAccessType.CONTAINER).block().getValue(); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.createFileSystemWithResponse#String-Map-PublicAccessType + } + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#deleteFileSystem(String)} + */ + public void deleteFileSystem() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.deleteFileSystem#String + client.deleteFileSystem("fileSystemName").subscribe( + response -> System.out.printf("Delete file system completed%n"), + error -> System.out.printf("Delete file system failed: %s%n", error)); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.deleteFileSystem#String + } + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#deleteFileSystemWithResponse(String, DataLakeRequestConditions)} + */ + public void deleteFileSystemWithResponse() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.deleteFileSystemWithResponse#String-DataLakeRequestConditions + client.deleteFileSystemWithResponse("fileSystemName", new DataLakeRequestConditions()).subscribe(response -> + System.out.printf("Delete file system completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.deleteFileSystemWithResponse#String-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeServiceAsyncClient#listFileSystems()} and + * {@link DataLakeServiceAsyncClient#listFileSystems(ListFileSystemsOptions)} + */ + public void listFileSystems() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.listFileSystems + client.listFileSystems().subscribe(fileSystem -> System.out.printf("Name: %s%n", fileSystem.getName())); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.listFileSystems + + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.listFileSystems#ListFileSystemsOptions + ListFileSystemsOptions options = new ListFileSystemsOptions() + .setPrefix("fileSystemNamePrefixToMatch") + .setDetails(new FileSystemListDetails().setRetrieveMetadata(true)); + + client.listFileSystems(options).subscribe(fileSystem -> System.out.printf("Name: %s%n", fileSystem.getName())); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.listFileSystems#ListFileSystemsOptions + } + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#getUserDelegationKey(OffsetDateTime, OffsetDateTime)} + */ + public void getUserDelegationKey() { + OffsetDateTime delegationKeyStartTime = OffsetDateTime.now(); + OffsetDateTime delegationKeyExpiryTime = OffsetDateTime.now().plusDays(7); + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getUserDelegationKey#OffsetDateTime-OffsetDateTime + client.getUserDelegationKey(delegationKeyStartTime, delegationKeyExpiryTime).subscribe(response -> + System.out.printf("User delegation key: %s%n", response.getValue())); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getUserDelegationKey#OffsetDateTime-OffsetDateTime + } + + /** + * Code snippet for {@link DataLakeServiceAsyncClient#getUserDelegationKeyWithResponse(OffsetDateTime, OffsetDateTime)} + */ + public void getUserDelegationKeyWithResponse() { + OffsetDateTime delegationKeyStartTime = OffsetDateTime.now(); + OffsetDateTime delegationKeyExpiryTime = OffsetDateTime.now().plusDays(7); + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getUserDelegationKeyWithResponse#OffsetDateTime-OffsetDateTime + client.getUserDelegationKeyWithResponse(delegationKeyStartTime, delegationKeyExpiryTime).subscribe(response -> + System.out.printf("User delegation key: %s%n", response.getValue().getValue())); + // END: com.azure.storage.file.datalake.DataLakeServiceAsyncClient.getUserDelegationKeyWithResponse#OffsetDateTime-OffsetDateTime + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceClientJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceClientJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..37556922941d6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceClientJavaDocCodeSnippets.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemListDetails; +import com.azure.storage.file.datalake.models.ListFileSystemsOptions; +import com.azure.storage.file.datalake.models.PublicAccessType; + +import java.time.Duration; +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeServiceClient} + */ +@SuppressWarnings({"unused"}) +public class DataLakeServiceClientJavaDocCodeSnippets { + + private final DataLakeServiceClient client = JavaDocCodeSnippetsHelpers.getDataLakeServiceClient(); + private final Duration timeout = Duration.ofSeconds(30); + + /** + * Code snippet for {@link DataLakeServiceClient#getFileSystemClient(String)} + */ + public void getFileSystemClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.getFileSystemClient#String + DataLakeFileSystemClient dataLakeFileSystemClient = client.getFileSystemClient("fileSystemName"); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.getFileSystemClient#String + } + + /** + * Code snippet for {@link DataLakeServiceClient#createFileSystem(String)} + */ + public void createFileSystem() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.createFileSystem#String + DataLakeFileSystemClient dataLakeFileSystemClient = client.createFileSystem("fileSystemName"); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.createFileSystem#String + } + + /** + * Code snippet for {@link DataLakeServiceClient#createFileSystemWithResponse(String, Map, PublicAccessType, Context)} + */ + public void createFileSystemWithResponse() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.createFileSystemWithResponse#String-Map-PublicAccessType-Context + Map metadata = Collections.singletonMap("metadata", "value"); + Context context = new Context("Key", "Value"); + + DataLakeFileSystemClient dataLakeFileSystemClient = client.createFileSystemWithResponse( + "fileSystemName", + metadata, + PublicAccessType.CONTAINER, + context).getValue(); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.createFileSystemWithResponse#String-Map-PublicAccessType-Context + } + + /** + * Code snippet for {@link DataLakeServiceClient#deleteFileSystem(String)} + */ + public void deleteFileSystem() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.deleteFileSystem#String + try { + client.deleteFileSystem("fileSystemName"); + System.out.printf("Delete file system completed with status %n"); + } catch (UnsupportedOperationException error) { + System.out.printf("Delete file system failed: %s%n", error); + } + // END: com.azure.storage.file.datalake.DataLakeServiceClient.deleteFileSystem#String + } + + /** + * Code snippet for {@link DataLakeServiceClient#deleteFileSystemWithResponse(String, DataLakeRequestConditions, + * Context)} + */ + public void deleteFileSystemWithResponse() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.deleteFileSystemWithResponse#String-DataLakeRequestConditions-Context + Context context = new Context("Key", "Value"); + System.out.printf("Delete file system completed with status %d%n", + client.deleteFileSystemWithResponse("fileSystemName", new DataLakeRequestConditions(), context) + .getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.deleteFileSystemWithResponse#String-DataLakeRequestConditions-Context + } + + /** + * Code snippets for {@link DataLakeServiceClient#listFileSystems()} and + * {@link DataLakeServiceClient#listFileSystems(ListFileSystemsOptions, Duration)} + */ + public void listFileSystems() { + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.listFileSystems + client.listFileSystems().forEach(fileSystem -> System.out.printf("Name: %s%n", fileSystem.getName())); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.listFileSystems + + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.listFileSystems#ListFileSystemsOptions-Duration + ListFileSystemsOptions options = new ListFileSystemsOptions() + .setPrefix("filSystemNamePrefixToMatch") + .setDetails(new FileSystemListDetails().setRetrieveMetadata(true)); + + client.listFileSystems(options, timeout).forEach(fileSystem -> System.out.printf("Name: %s%n", + fileSystem.getName())); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.listFileSystems#ListFileSystemsOptions-Duration + } + + /** + * Code snippets for {@link DataLakeServiceClient#getUserDelegationKey(OffsetDateTime, OffsetDateTime)} + * and {@link DataLakeServiceClient#getUserDelegationKeyWithResponse(OffsetDateTime, OffsetDateTime, Duration, Context)} + */ + public void getUserDelegationKey() { + OffsetDateTime delegationKeyStartTime = OffsetDateTime.now(); + OffsetDateTime delegationKeyExpiryTime = OffsetDateTime.now().plusDays(7); + Context context = new Context("Key", "Value"); + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.getUserDelegationKey#OffsetDateTime-OffsetDateTime + System.out.printf("User delegation key: %s%n", + client.getUserDelegationKey(delegationKeyStartTime, delegationKeyExpiryTime)); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.getUserDelegationKey#OffsetDateTime-OffsetDateTime + + // BEGIN: com.azure.storage.file.datalake.DataLakeServiceClient.getUserDelegationKeyWithResponse#OffsetDateTime-OffsetDateTime-Duration-Context + System.out.printf("User delegation key: %s%n", + client.getUserDelegationKeyWithResponse(delegationKeyStartTime, delegationKeyExpiryTime, timeout, context)); + // END: com.azure.storage.file.datalake.DataLakeServiceClient.getUserDelegationKeyWithResponse#OffsetDateTime-OffsetDateTime-Duration-Context + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceSasSignatureValuesJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceSasSignatureValuesJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..0334f7eb96249 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DataLakeServiceSasSignatureValuesJavaDocCodeSnippets.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.sas.SasProtocol; +import com.azure.storage.file.datalake.models.UserDelegationKey; +import com.azure.storage.file.datalake.sas.DataLakeServiceSasQueryParameters; +import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues; +import com.azure.storage.file.datalake.sas.PathSasPermission; + +import java.time.OffsetDateTime; + +/** + * Code snippets for {@link DataLakeServiceSasSignatureValues}. + */ +public class DataLakeServiceSasSignatureValuesJavaDocCodeSnippets { + /** + * Generates a file or directory SAS with {@link StorageSharedKeyCredential} + */ + public void fileSas() { + // BEGIN: com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues.generateSasQueryParameters#StorageSharedKeyCredential + PathSasPermission pathPermission = new PathSasPermission().setReadPermission(true); + + // We are creating a SAS to a path because we set both the file system name and path name. + DataLakeServiceSasSignatureValues builder = new DataLakeServiceSasSignatureValues() + .setProtocol(SasProtocol.HTTPS_ONLY) // Users MUST use HTTPS (not HTTP). + .setExpiryTime(OffsetDateTime.now().plusDays(2)) + .setFileSystemName("my-file-system") + .setPathName("HelloWorld.txt") + .setPermissions(pathPermission); + + StorageSharedKeyCredential credential = new StorageSharedKeyCredential("account-name", "key"); + DataLakeServiceSasQueryParameters sasQueryParameters = builder.generateSasQueryParameters(credential); + // END: com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues.generateSasQueryParameters#StorageSharedKeyCredential + } + + /** + * Generates a file system SAS using {@link UserDelegationKey}. + */ + public void userDelegationKey() { + // BEGIN: com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues.generateSasQueryParameters#UserDelegationKey-String + PathSasPermission pathPermission = new PathSasPermission() + .setReadPermission(true) + .setWritePermission(true); + + // We are creating a SAS to a file system because only file system name is set. + DataLakeServiceSasSignatureValues builder = new DataLakeServiceSasSignatureValues() + .setProtocol(SasProtocol.HTTPS_ONLY) // Users MUST use HTTPS (not HTTP). + .setExpiryTime(OffsetDateTime.now().plusDays(2)) + .setFileSystemName("my-file-system") + .setPermissions(pathPermission); + + // Get a user delegation key after signing in with Azure AD + UserDelegationKey credential = new UserDelegationKey(); + String account = "my-path-storage-account"; + DataLakeServiceSasQueryParameters sasQueryParameters = builder.generateSasQueryParameters(credential, account); + // END: com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues.generateSasQueryParameters#UserDelegationKey-String + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DirectoryExample.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DirectoryExample.java new file mode 100644 index 0000000000000..07e7c9917759a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/DirectoryExample.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.storage.file.datalake; + +import com.azure.core.util.Configuration; +import com.azure.storage.file.datalake.implementation.models.StorageErrorException; +import com.azure.storage.file.datalake.models.PathProperties; + +import java.util.UUID; + +/** + * Sample demonstrates how to create, list and delete directory and its subdirectories and files + * and how to get and set properties. + */ +public class DirectoryExample { + private static final String ENDPOINT = Configuration.getGlobalConfiguration().get("AZURE_STORAGE_ENDPOINT"); + + // This is the helper method to generate random name. + private static String generateRandomName() { + return UUID.randomUUID().toString().substring(0, 8); + } + + /** + * The main method shows how to do the basic operation using directory sync client. + * @param args No args needed for the main method. + */ + public static void main(String[] args) { + String fileSystemName = generateRandomName(); + DataLakeFileSystemClient dataLakeFileSystemClient = new DataLakeFileSystemClientBuilder().endpoint(ENDPOINT).fileSystemName(fileSystemName).buildClient(); + dataLakeFileSystemClient.create(); + // Build up a directory client + DataLakeDirectoryClient directoryClient = new DataLakePathClientBuilder().endpoint(ENDPOINT) + .pathName(generateRandomName()) + .fileSystemName(fileSystemName) + .buildDirectoryClient(); + + // Create a parent directory + try { + directoryClient.create(); + } catch (StorageErrorException e) { + System.out.println("Failed to create a directory. Reasons: " + e.getMessage()); + } + + // Create a child directory. + String childDirectoryName = generateRandomName(); + try { + directoryClient.createSubDirectory(childDirectoryName); + } catch (StorageErrorException e) { + System.out.println("Failed to create sub directory. Reasons: " + e.getMessage()); + } + + // Create a 1KB file under the child directory. + DataLakeDirectoryClient childDirClient = directoryClient.getSubDirectoryClient(childDirectoryName); + String fileName = generateRandomName(); + try { + childDirClient.createFile(fileName); + } catch (StorageErrorException e) { + System.out.println("Failed to create a file under the child directory. Reasons: " + e.getMessage()); + } + + // Delete the child directory. The operation will fail because storage service only allowed to delete the empty directory. + try { + childDirClient.delete(); + } catch (StorageErrorException e) { + System.out.println("This is expected as the child directory is not empty."); + } + + // Get the parent directory properties. + try { + PathProperties propertiesResponse = directoryClient.getProperties(); + System.out.printf("This is the eTag of the directory: %s%n", propertiesResponse.getETag()); + } catch (StorageErrorException e) { + System.out.println("Failed to get the properties of the parent directory"); + } + + // Delete the file. + try { + childDirClient.deleteFile(fileName); + } catch (StorageErrorException e) { + System.out.println("Failed to delete the file. Reasons: " + e.getMessage()); + } + + // Delete the child folder + try { + directoryClient.deleteSubDirectory(childDirectoryName); + } catch (StorageErrorException e) { + System.out.println("Failed to delete the child directory. Reasons: " + e.getMessage()); + } + + // Delete the parent folder + try { + directoryClient.delete(); + } catch (StorageErrorException e) { + System.out.println("Failed to delete the parent directory. Reasons: " + e.getMessage()); + } + + dataLakeFileSystemClient.delete(); + } + +} 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 new file mode 100644 index 0000000000000..76dd438987955 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemAsyncClientJavaDocCodeSamples.java @@ -0,0 +1,261 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.ListPathsOptions; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import com.azure.storage.file.datalake.models.PublicAccessType; +import reactor.core.publisher.Mono; + +import java.time.Duration; +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeFileSystemAsyncClient} + */ +@SuppressWarnings({"unused"}) +public class FileSystemAsyncClientJavaDocCodeSamples { + + private DataLakeFileSystemAsyncClient client = JavaDocCodeSnippetsHelpers.getFileSystemAsyncClient(); + private String fileName = "fileName"; + private String directoryName = "directoryName"; + private String leaseId = "leaseId"; + private String proposedId = "proposedId"; + private int leaseDuration = (int) Duration.ofSeconds(30).getSeconds(); + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#getFileAsyncClient(String)} + */ + public void getFileAsyncClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getFileAsyncClient#String + DataLakeFileAsyncClient dataLakeFileAsyncClient = client.getFileAsyncClient(fileName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getFileAsyncClient#String + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#getDirectoryAsyncClient(String)} + */ + public void getDirectoryAsyncClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getDirectoryAsyncClient#String + DataLakeDirectoryAsyncClient dataLakeDirectoryAsyncClient = client.getDirectoryAsyncClient(directoryName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getDirectoryAsyncClient#String + } + + /** + * Generates a code sample for using {@link DataLakeFileSystemAsyncClient#getFileSystemName()} + */ + public void getFileSystemName() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getFileSystemName + String fileSystemName = client.getFileSystemName(); + System.out.println("The name of the file system is " + fileSystemName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getFileSystemName + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#create()} + */ + public void create() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.create + client.create().subscribe( + response -> System.out.printf("Create completed%n"), + error -> System.out.printf("Error while creating file system %s%n", error)); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.create + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#createWithResponse(Map, PublicAccessType)} + */ + public void create2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createWithResponse#Map-PublicAccessType + Map metadata = Collections.singletonMap("metadata", "value"); + client.createWithResponse(metadata, PublicAccessType.CONTAINER).subscribe(response -> + System.out.printf("Create completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createWithResponse#Map-PublicAccessType + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#delete()} + */ + public void delete() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.delete + client.delete().subscribe( + response -> System.out.printf("Delete completed%n"), + error -> System.out.printf("Delete failed: %s%n", error)); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.delete + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#deleteWithResponse(DataLakeRequestConditions)} + */ + public void delete2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteWithResponse#DataLakeRequestConditions + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId) + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + client.deleteWithResponse(accessConditions).subscribe(response -> + System.out.printf("Delete completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteWithResponse#DataLakeRequestConditions + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#getProperties()} + */ + public void getProperties() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getProperties + client.getProperties().subscribe(response -> + System.out.printf("Public Access Type: %s, Legal Hold? %b, Immutable? %b%n", + response.getPublicAccess(), + response.hasLegalHold(), + response.hasImmutabilityPolicy())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getProperties + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#getPropertiesWithResponse(String)} + */ + public void getProperties2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getPropertiesWithResponse#String + + client.getPropertiesWithResponse(leaseId).subscribe(response -> + System.out.printf("Public Access Type: %s, Legal Hold? %b, Immutable? %b%n", + response.getValue().getPublicAccess(), + response.getValue().hasLegalHold(), + response.getValue().hasImmutabilityPolicy())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.getPropertiesWithResponse#String + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#setMetadata(Map)} + */ + public void setMetadata() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.setMetadata#Map + Map metadata = Collections.singletonMap("metadata", "value"); + client.setMetadata(metadata).subscribe( + response -> System.out.printf("Set metadata completed%n"), + error -> System.out.printf("Set metadata failed: %s%n", error)); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.setMetadata#Map + } + + /** + * Code snippet for {@link DataLakeFileSystemAsyncClient#setMetadataWithResponse(Map, DataLakeRequestConditions)} + */ + public void setMetadata2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.setMetadataWithResponse#Map-DataLakeRequestConditions + Map metadata = Collections.singletonMap("metadata", "value"); + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId) + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + client.setMetadataWithResponse(metadata, accessConditions).subscribe(response -> + System.out.printf("Set metadata completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.setMetadataWithResponse#Map-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeFileSystemAsyncClient#createFile(String)} and + * {@link DataLakeFileSystemAsyncClient#createFileWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String)} + */ + public void createFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFile#String + Mono fileClient = client.createFile(fileName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + Mono> newFileClient = client.createFileWithResponse(fileName, httpHeaders, + Collections.singletonMap("metadata", "value"), requestConditions, permissions, umask); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + } + + /** + * Code snippets for {@link DataLakeFileSystemAsyncClient#deleteFile(String)} and + * {@link DataLakeFileSystemAsyncClient#deleteFileWithResponse(String, DataLakeRequestConditions)} + */ + public void deleteFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFile#String + client.deleteFile(fileName).subscribe(response -> + System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileWithResponse#String-DataLakeRequestConditions + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.deleteFileWithResponse(fileName, requestConditions) + .subscribe(response -> System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteFileWithResponse#String-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeFileSystemAsyncClient#createDirectory(String)} and + * {@link DataLakeFileSystemAsyncClient#createDirectoryWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String)} + */ + public void createDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectory#String + Mono directoryClient = client.createDirectory(fileName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + Mono> newDirectoryClient = client.createDirectoryWithResponse(fileName, + httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, permissions, umask); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.createDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String + } + + /** + * Code snippets for {@link DataLakeFileSystemAsyncClient#deleteDirectory(String)} and + * {@link DataLakeFileSystemAsyncClient#deleteDirectoryWithResponse(String, boolean, DataLakeRequestConditions)} + */ + public void deleteDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectory#String + client.deleteDirectory(directoryName).subscribe(response -> + System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryWithResponse#String-boolean-DataLakeRequestConditions + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + boolean recursive = false; // Default value + + client.deleteDirectoryWithResponse(directoryName, recursive, requestConditions) + .subscribe(response -> System.out.println("Delete request completed")); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.deleteDirectoryWithResponse#String-boolean-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakeFileSystemAsyncClient#listPaths()} and + * {@link DataLakeFileSystemAsyncClient#listPaths(ListPathsOptions)} + */ + public void listPaths() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.listPaths + client.listPaths().subscribe(path -> System.out.printf("Name: %s%n", path.getName())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.listPaths + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.listPaths#ListPathsOptions + ListPathsOptions options = new ListPathsOptions() + .setPath("PathNamePrefixToMatch") + .setMaxResults(10); + + client.listPaths(options).subscribe(path -> System.out.printf("Name: %s%n", path.getName())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemAsyncClient.listPaths#ListPathsOptions + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientBuilderJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientBuilderJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..c5a9416833a78 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientBuilderJavaDocCodeSnippets.java @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.policy.RequestRetryOptions; +import com.azure.storage.common.policy.RequestRetryPolicy; +import com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy; + +/** + * Code snippets for {@link DataLakeFileSystemClientBuilder} + */ +@SuppressWarnings({"unused"}) +public class FileSystemClientBuilderJavaDocCodeSnippets { + private String connectionString = "AccountName=name;AccountKey=key;DefaultEndpointProtocol=protocol;EndpointSuffix=suffix"; + private String endpoint = "endpointURL"; + private String fileSystemName = "file system Name"; + private StorageSharedKeyCredential storageSharedKeyCredential = new StorageSharedKeyCredential("accountName", "accountKey"); + private HttpPipeline httpPipeline = new HttpPipelineBuilder() + .httpClient(HttpClient.createDefault()) + .policies(new AddDatePolicy()) + .policies(new RequestIdPolicy()) + .policies(new StorageSharedKeyCredentialPolicy(storageSharedKeyCredential)) + .policies(new RequestRetryPolicy(new RequestRetryOptions())) + .build(); + + /** + * Code snippet for {@link DataLakeFileSystemClientBuilder#buildClient()} using credential and endpoint + */ + public void fileSystemClientCredentialAndEndpoint() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClientBuilder.buildClient + DataLakeFileSystemClient client = new DataLakeFileSystemClientBuilder() + .endpoint(endpoint) + .credential(storageSharedKeyCredential) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClientBuilder.buildClient + } + + /** + * Code snippet for {@link DataLakeFileSystemClientBuilder#buildAsyncClient()} using credential and endpoint + */ + public void fileSystemAsyncClientCredentialAndEndpoint() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClientBuilder.buildAsyncClient + DataLakeFileSystemAsyncClient client = new DataLakeFileSystemClientBuilder() + .endpoint(endpoint) + .credential(storageSharedKeyCredential) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClientBuilder.buildAsyncClient + } +} 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 new file mode 100644 index 0000000000000..5c1d54cdf336e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/FileSystemClientJavaDocCodeSamples.java @@ -0,0 +1,290 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.storage.blob.models.BlobErrorCode; +import com.azure.storage.blob.models.BlobStorageException; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.FileSystemProperties; +import com.azure.storage.file.datalake.models.ListPathsOptions; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import com.azure.storage.file.datalake.models.PublicAccessType; + +import java.time.Duration; +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeFileSystemClient} + */ +@SuppressWarnings({"unused"}) +public class FileSystemClientJavaDocCodeSamples { + + private DataLakeFileSystemClient client = JavaDocCodeSnippetsHelpers.getFileSystemClient(); + private String fileName = "fileName"; + private String directoryName = "directoryName"; + private String leaseId = "leaseId"; + private String proposedId = "proposedId"; + private int leaseDuration = (int) Duration.ofSeconds(30).getSeconds(); + private Duration timeout = Duration.ofSeconds(30); + private String key1 = "key1"; + private String value1 = "value1"; + + /** + * Code snippet for {@link DataLakeFileSystemClient#getFileClient(String)} + */ + public void getFileClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.getFileClient#String + DataLakeFileClient dataLakeFileClient = client.getFileClient(fileName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.getFileClient#String + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#getDirectoryClient(String)} + */ + public void getDirectoryClient() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.getDirectoryClient#String + DataLakeDirectoryClient dataLakeDirectoryClient = client.getDirectoryClient(directoryName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.getDirectoryClient#String + } + + /** + * Generates a code sample for using {@link DataLakeFileSystemClient#getFileSystemName()} + */ + public void getFileSystemName() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.getFileSystemName + String fileSystemName = client.getFileSystemName(); + System.out.println("The name of the file system is " + fileSystemName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.getFileSystemName + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#create()} + */ + public void create() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.create + try { + client.create(); + System.out.printf("Create completed%n"); + } catch (BlobStorageException error) { + if (error.getErrorCode().equals(BlobErrorCode.CONTAINER_ALREADY_EXISTS)) { + System.out.printf("Can't create file system. It already exists %n"); + } + } + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.create + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#createWithResponse(Map, PublicAccessType, Duration, Context)} + */ + public void create2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createWithResponse#Map-PublicAccessType-Duration-Context + Map metadata = Collections.singletonMap("metadata", "value"); + Context context = new Context("Key", "Value"); + + System.out.printf("Create completed with status %d%n", + client.createWithResponse(metadata, PublicAccessType.CONTAINER, timeout, context).getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createWithResponse#Map-PublicAccessType-Duration-Context + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#delete()} + */ + public void setDelete() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.delete + try { + client.delete(); + System.out.printf("Delete completed%n"); + } catch (BlobStorageException error) { + if (error.getErrorCode().equals(BlobErrorCode.CONTAINER_NOT_FOUND)) { + System.out.printf("Delete failed. File System was not found %n"); + } + } + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.delete + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#deleteWithResponse(DataLakeRequestConditions, Duration, Context)} + */ + public void delete2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteWithResponse#DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId) + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + Context context = new Context("Key", "Value"); + + System.out.printf("Delete completed with status %d%n", client.deleteWithResponse( + accessConditions, timeout, context).getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteWithResponse#DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#getProperties()} + */ + public void getProperties() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.getProperties + FileSystemProperties properties = client.getProperties(); + System.out.printf("Public Access Type: %s, Legal Hold? %b, Immutable? %b%n", + properties.getPublicAccess(), + properties.hasLegalHold(), + properties.hasImmutabilityPolicy()); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.getProperties + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#getPropertiesWithResponse(String, Duration, Context)} + */ + public void getProperties2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.getPropertiesWithResponse#String-Duration-Context + Context context = new Context("Key", "Value"); + + FileSystemProperties properties = client.getPropertiesWithResponse(leaseId, timeout, context) + .getValue(); + System.out.printf("Public Access Type: %s, Legal Hold? %b, Immutable? %b%n", + properties.getPublicAccess(), + properties.hasLegalHold(), + properties.hasImmutabilityPolicy()); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.getPropertiesWithResponse#String-Duration-Context + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#setMetadata(Map)} + */ + public void setMetadata() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.setMetadata#Map + Map metadata = Collections.singletonMap("metadata", "value"); + try { + client.setMetadata(metadata); + System.out.printf("Set metadata completed with status %n"); + } catch (UnsupportedOperationException error) { + System.out.printf("Fail while setting metadata %n"); + } + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.setMetadata#Map + } + + /** + * Code snippet for {@link DataLakeFileSystemClient#setMetadataWithResponse(Map, DataLakeRequestConditions, Duration, + * Context)} + */ + public void setMetadata2() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.setMetadataWithResponse#Map-DataLakeRequestConditions-Duration-Context + Map metadata = Collections.singletonMap("metadata", "value"); + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId) + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + Context context = new Context("Key", "Value"); + + System.out.printf("Set metadata completed with status %d%n", + client.setMetadataWithResponse(metadata, accessConditions, timeout, context).getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.setMetadataWithResponse#Map-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileSystemClient#createFile(String)} and + * {@link DataLakeFileSystemClient#createFileWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String, Duration, Context)} + */ + public void createFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFile#String + DataLakeFileClient fileClient = client.createFile(fileName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + Response newFileClient = client.createFileWithResponse(fileName, httpHeaders, + Collections.singletonMap("metadata", "value"), requestConditions, + permissions, umask, timeout, new Context(key1, value1)); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createFileWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileSystemClient#deleteFile(String)} and + * {@link DataLakeFileSystemClient#deleteFileWithResponse(String, DataLakeRequestConditions, Duration, Context)} + */ + public void deleteFileCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFile#String + client.deleteFile(fileName); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFile#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileWithResponse#String-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + + client.deleteFileWithResponse(fileName, requestConditions, timeout, new Context(key1, value1)); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteFileWithResponse#String-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileSystemClient#createDirectory(String)} and + * {@link DataLakeFileSystemClient#createDirectoryWithResponse(String, PathHttpHeaders, Map, DataLakeRequestConditions, String, String, Duration, Context)} + */ + public void createDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectory#String + DataLakeDirectoryClient directoryClient = client.createDirectory(directoryName); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + PathHttpHeaders httpHeaders = new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"); + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + String permissions = "permissions"; + String umask = "umask"; + Response newDirectoryClient = client.createDirectoryWithResponse(directoryName, + httpHeaders, Collections.singletonMap("metadata", "value"), requestConditions, + permissions, umask, timeout, new Context(key1, value1)); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.createDirectoryWithResponse#String-PathHttpHeaders-Map-DataLakeRequestConditions-String-String-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileSystemClient#deleteDirectory(String)} and + * {@link DataLakeFileSystemClient#deleteDirectoryWithResponse(String, boolean, DataLakeRequestConditions, Duration, Context)} + */ + public void deleteDirectoryCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectory#String + client.deleteDirectory(directoryName); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectory#String + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryWithResponse#String-boolean-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions requestConditions = new DataLakeRequestConditions() + .setLeaseId(leaseId); + boolean recursive = false; // Default value + + client.deleteDirectoryWithResponse(directoryName, recursive, requestConditions, timeout, + new Context(key1, value1)); + System.out.println("Delete request completed"); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteDirectoryWithResponse#String-boolean-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeFileSystemClient#listPaths()} and + * {@link DataLakeFileSystemClient#listPaths(ListPathsOptions, Duration)} + */ + public void listPaths() { + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.listPaths + client.listPaths().forEach(path -> System.out.printf("Name: %s%n", path.getName())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.listPaths + + // BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.listPaths#ListPathsOptions-Duration + ListPathsOptions options = new ListPathsOptions() + .setPath("pathPrefixToMatch") + .setMaxResults(10); + + client.listPaths(options, timeout).forEach(path -> System.out.printf("Name: %s%n", path.getName())); + // END: com.azure.storage.file.datalake.DataLakeFileSystemClient.listPaths#ListPathsOptions-Duration + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/GetSetAccessControlExample.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/GetSetAccessControlExample.java new file mode 100644 index 0000000000000..02751e63aab13 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/GetSetAccessControlExample.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.file.datalake.models.PathAccessControl; + +import java.io.IOException; +import java.util.Locale; + +/** + * This example shows how to get and set access control of a file using the Azure Storage Data Lake SDK for Java. + * Note: the same code can be used on a directory as well. + */ +public class GetSetAccessControlExample { + + /** + * Entry point into the upload download examples for Storage datalake. + * + * @param args Unused. Arguments to the program. + * @throws IOException If an I/O error occurs + * @throws RuntimeException If the downloaded data doesn't match the uploaded data + */ + public static void main(String[] args) throws IOException { + + /* + * From the Azure portal, get your Storage account's name and account key. + */ + String accountName = SampleHelper.getAccountName(); + String accountKey = SampleHelper.getAccountKey(); + + /* + * Use your Storage account's name and key to create a credential object; this is used to access your account. + */ + StorageSharedKeyCredential credential = new StorageSharedKeyCredential(accountName, accountKey); + + /* + * From the Azure portal, get your Storage account dfs service URL endpoint. + * The URL typically looks like this: + */ + String endpoint = String.format(Locale.ROOT, "http://%s.dfs.core.windows.net", accountName); + + /* + * Create a DataLakeServiceClient object that wraps the service endpoint, credential and a request pipeline. + */ + DataLakeServiceClient storageClient = new DataLakeServiceClientBuilder().endpoint(endpoint).credential(credential).buildClient(); + + /* + * This example shows several common operations just to get you started. + */ + + /* + * Create a client that references a to-be-created file system in your Azure Storage account. This returns a + * FileSystem object that wraps the file system's endpoint, credential and a request pipeline (inherited from storageClient). + * Note that file system names require lowercase. + */ + DataLakeFileSystemClient dataLakeFileSystemClient = storageClient.getFileSystemClient("myjavafilesystembasic" + System.currentTimeMillis()); + + /* + * Create a file system in Storage datalake account. + */ + dataLakeFileSystemClient.create(); + + /* + * Create a client that references a to-be-created file in your Azure Storage account's file system. + * This returns a DataLakeFileClient object that wraps the file's endpoint, credential and a request pipeline + * (inherited from dataLakeFileSystemClient). Note that file names can be mixed case. + */ + DataLakeFileClient fileClient = dataLakeFileSystemClient.getFileClient("HelloWorld.txt"); + + /* + * Create the file. + */ + fileClient.create(); + + /* + * Set access controls on the file + */ + PathAccessControl pathAccessControl = new PathAccessControl() + .setPermissions("0777"); + fileClient.setAccessControl(pathAccessControl); + + /* + * Get access controls on the file + */ + + PathAccessControl returnedAccessControl = fileClient.getAccessControl(); + + /* + * Compare set and returned access control + */ + if (pathAccessControl.getPermissions().equals(returnedAccessControl.getPermissions())) { + throw new RuntimeException("The returned permissions do not match the uploaded permissions."); + } + + /* + * Delete the file we created earlier. + */ + fileClient.delete(); + + /* + * Delete the file system we created earlier. + */ + dataLakeFileSystemClient.delete(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/JavaDocCodeSnippetsHelpers.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/JavaDocCodeSnippetsHelpers.java new file mode 100644 index 0000000000000..4f9ab36bf0d5e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/JavaDocCodeSnippetsHelpers.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import java.net.MalformedURLException; +import java.net.URL; + +final class JavaDocCodeSnippetsHelpers { + static DataLakeFileSystemAsyncClient getFileSystemAsyncClient() { + return new DataLakeFileSystemClientBuilder().buildAsyncClient(); + } + + static DataLakeFileSystemClient getFileSystemClient() { + return new DataLakeFileSystemClientBuilder().buildClient(); + } + + static DataLakeFileAsyncClient getFileAsyncClient(String fileName) { + return getFileSystemAsyncClient().getFileAsyncClient(fileName); + } + + static DataLakeFileClient getFileClient(String fileName) { + return getFileSystemClient().getFileClient(fileName); + } + + static DataLakeDirectoryAsyncClient getDirectoryAsyncClient(String directoryName) { + return getFileSystemAsyncClient().getDirectoryAsyncClient(directoryName); + } + + static DataLakeDirectoryClient getDirectoryClient(String directoryName) { + return getFileSystemClient().getDirectoryClient(directoryName); + } + + + static DataLakeServiceAsyncClient getDataLakeServiceAsyncClient() { + return new DataLakeServiceClientBuilder().buildAsyncClient(); + } + + static DataLakeServiceClient getDataLakeServiceClient() { + return new DataLakeServiceClientBuilder().buildClient(); + } + + static URL generateURL(String urlString) { + try { + return new URL(urlString); + } catch (MalformedURLException ex) { + throw new RuntimeException(ex); + } + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseAsyncClientJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseAsyncClientJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..b5257408ed3e2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseAsyncClientJavaDocCodeSnippets.java @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.RequestConditions; + +import java.time.OffsetDateTime; + + +public class LeaseAsyncClientJavaDocCodeSnippets { + private DataLakeLeaseAsyncClient client = new DataLakeLeaseClientBuilder() + .pathAsyncClient(JavaDocCodeSnippetsHelpers.getFileAsyncClient("fileName")) + .buildAsyncClient(); + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#acquireLease(int)} + */ + public void acquireLeaseCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.acquireLease#int + client.acquireLease(60).subscribe(response -> System.out.printf("Lease ID is %s%n", response)); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.acquireLease#int + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#renewLease()} + */ + public void renewLeaseCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.renewLease + client.renewLease().subscribe(response -> System.out.printf("Renewed lease ID is %s%n", response)); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.renewLease + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#releaseLease()} + */ + public void releaseLeaseCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.releaseLease + client.releaseLease().subscribe(response -> System.out.println("Completed release lease")); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.releaseLease + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#breakLease()} + */ + public void breakLeaseCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.breakLease + client.breakLease().subscribe(response -> + System.out.printf("The broken lease has %d seconds remaining on the lease", response)); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.breakLease + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#changeLease(String)} + */ + public void changeLeaseCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.changeLease#String + client.changeLease("proposedId").subscribe(response -> System.out.printf("Changed lease ID is %s%n", response)); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.changeLease#String + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#acquireLeaseWithResponse(int, RequestConditions)} + */ + public void acquireLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.acquireLeaseWithResponse#int-RequestConditions + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfModifiedSince(OffsetDateTime.now().minusDays(3)); + + client.acquireLeaseWithResponse(60, modifiedAccessConditions).subscribe(response -> + System.out.printf("Lease ID is %s%n", response.getValue())); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.acquireLeaseWithResponse#int-RequestConditions + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#renewLeaseWithResponse(RequestConditions)} + */ + public void renewLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.renewLeaseWithResponse#RequestConditions + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + client.renewLeaseWithResponse(modifiedAccessConditions).subscribe(response -> + System.out.printf("Renewed lease ID is %s%n", response.getValue())); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.renewLeaseWithResponse#RequestConditions + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#releaseLeaseWithResponse(RequestConditions)} + */ + public void releaseLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.releaseLeaseWithResponse#RequestConditions + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + client.releaseLeaseWithResponse(modifiedAccessConditions).subscribe(response -> + System.out.printf("Release lease completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.releaseLeaseWithResponse#RequestConditions + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#breakLeaseWithResponse(Integer, RequestConditions)} + */ + public void breakLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.breakLeaseWithResponse#Integer-RequestConditions + Integer retainLeaseInSeconds = 5; + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + client.breakLeaseWithResponse(retainLeaseInSeconds, modifiedAccessConditions).subscribe(response -> + System.out.printf("The broken lease has %d seconds remaining on the lease", response.getValue())); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.breakLeaseWithResponse#Integer-RequestConditions + } + + /** + * Code snippets for {@link DataLakeLeaseAsyncClient#changeLeaseWithResponse(String, RequestConditions)} + */ + public void changeLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.changeLeaseWithResponse#String-RequestConditions + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + client.changeLeaseWithResponse("proposedId", modifiedAccessConditions).subscribe(response -> + System.out.printf("Changed lease ID is %s%n", response.getValue())); + // END: com.azure.storage.file.datalake.DataLakeLeaseAsyncClient.changeLeaseWithResponse#String-RequestConditions + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseClientBuilderJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseClientBuilderJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..efaf18f266a8a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseClientBuilderJavaDocCodeSnippets.java @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +public class LeaseClientBuilderJavaDocCodeSnippets { + private DataLakeFileSystemAsyncClient dataLakeFileSystemAsyncClient = new DataLakeFileSystemClientBuilder() + .fileSystemName("fileSystemName") + .buildAsyncClient(); + + private DataLakeFileSystemClient dataLakeFileSystemClient = new DataLakeFileSystemClientBuilder() + .fileSystemName("fileSystemName") + .buildClient(); + + private DataLakeFileAsyncClient fileAsyncClient = dataLakeFileSystemAsyncClient.getFileAsyncClient("file"); + private DataLakeFileClient fileClient = dataLakeFileSystemClient.getFileClient("file"); + + private DataLakeDirectoryAsyncClient directoryAsyncClient = dataLakeFileSystemAsyncClient.getDirectoryAsyncClient("dir"); + private DataLakeDirectoryClient directoryClient = dataLakeFileSystemClient.getDirectoryClient("dir"); + + private String leaseId = "leaseId"; + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildClient()}. + */ + public void syncInstantiationWithDirectory() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithDirectory + DataLakeLeaseClient dataLakeLeaseClient = new DataLakeLeaseClientBuilder() + .pathClient(directoryClient) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithDirectory + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildClient()}. + */ + public void syncInstantiationWithDirectoryAndLeaseId() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithDirectoryAndLeaseId + DataLakeLeaseClient dataLakeLeaseClient = new DataLakeLeaseClientBuilder() + .pathClient(directoryClient) + .leaseId(leaseId) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithDirectoryAndLeaseId + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildClient()}. + */ + public void syncInstantiationWithFile() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFile + DataLakeLeaseClient dataLakeLeaseClient = new DataLakeLeaseClientBuilder() + .pathClient(fileClient) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFile + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildClient()}. + */ + public void syncInstantiationWithFileAndLeaseId() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileAndLeaseId + DataLakeLeaseClient dataLakeLeaseClient = new DataLakeLeaseClientBuilder() + .pathClient(fileClient) + .leaseId(leaseId) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileAndLeaseId + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildClient()}. + */ + public void syncInstantiationWithFileSystem() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileSystem + DataLakeLeaseClient dataLakeLeaseClient = new DataLakeLeaseClientBuilder() + .fileSystemClient(dataLakeFileSystemClient) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileSystem + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildClient()}. + */ + public void syncInstantiationWithFileSystemAndLeaseId() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileSystemAndLeaseId + DataLakeLeaseClient dataLakeLeaseClient = new DataLakeLeaseClientBuilder() + .fileSystemClient(dataLakeFileSystemClient) + .leaseId(leaseId) + .buildClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.syncInstantiationWithFileSystemAndLeaseId + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildAsyncClient()}. + */ + public void asyncInstantiationWithFile() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFile + DataLakeLeaseAsyncClient dataLakeLeaseAsyncClient = new DataLakeLeaseClientBuilder() + .pathAsyncClient(fileAsyncClient) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFile + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildAsyncClient()}. + */ + public void asyncInstantiationWithFileAndLeaseId() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileAndLeaseId + DataLakeLeaseAsyncClient dataLakeLeaseAsyncClient = new DataLakeLeaseClientBuilder() + .pathAsyncClient(fileAsyncClient) + .leaseId(leaseId) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileAndLeaseId + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildAsyncClient()}. + */ + public void asyncInstantiationWithDirectory() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithDirectory + DataLakeLeaseAsyncClient dataLakeLeaseAsyncClient = new DataLakeLeaseClientBuilder() + .pathAsyncClient(directoryAsyncClient) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithDirectory + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildAsyncClient()}. + */ + public void asyncInstantiationWithDirectoryAndLeaseId() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithDirectoryAndLeaseId + DataLakeLeaseAsyncClient dataLakeLeaseAsyncClient = new DataLakeLeaseClientBuilder() + .pathAsyncClient(directoryAsyncClient) + .leaseId(leaseId) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithDirectoryAndLeaseId + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildAsyncClient()}. + */ + public void asyncInstantiationWithFileSystem() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileSystem + DataLakeLeaseAsyncClient dataLakeLeaseAsyncClient = new DataLakeLeaseClientBuilder() + .fileSystemAsyncClient(dataLakeFileSystemAsyncClient) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileSystem + } + + /** + * Code snippets for {@link DataLakeLeaseClientBuilder#buildAsyncClient()}. + */ + public void asyncInstantiationWithFileSystemAndLeaseId() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileSystemAndLeaseId + DataLakeLeaseAsyncClient dataLakeLeaseAsyncClient = new DataLakeLeaseClientBuilder() + .fileSystemAsyncClient(dataLakeFileSystemAsyncClient) + .leaseId(leaseId) + .buildAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakeLeaseClientBuilder.asyncInstantiationWithFileSystemAndLeaseId + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseClientJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseClientJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..640f070953b43 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/LeaseClientJavaDocCodeSnippets.java @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.RequestConditions; +import com.azure.core.util.Context; + +import java.time.Duration; +import java.time.OffsetDateTime; + +public class LeaseClientJavaDocCodeSnippets { + private DataLakeLeaseClient client = new DataLakeLeaseClientBuilder() + .pathClient(JavaDocCodeSnippetsHelpers.getFileClient("fileName")) + .buildClient(); + private Duration timeout = Duration.ofSeconds(30); + private String key = "key"; + private String value = "value"; + + /** + * Code snippets for {@link DataLakeLeaseClient#acquireLease(int)} + */ + public void acquireLease() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.acquireLease#int + System.out.printf("Lease ID is %s%n", client.acquireLease(60)); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.acquireLease#int + } + + /** + * Code snippets for {@link DataLakeLeaseClient#renewLease()} + */ + public void renewLease() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.renewLease + System.out.printf("Renewed lease ID is %s%n", client.renewLease()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.renewLease + } + + /** + * Code snippets for {@link DataLakeLeaseClient#releaseLease()} + */ + public void releaseLease() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.releaseLease + client.releaseLease(); + System.out.println("Release lease completed"); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.releaseLease + } + + /** + * Code snippets for {@link DataLakeLeaseClient#breakLease()} + */ + public void breakLease() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.breakLease + System.out.printf("The broken lease has %d seconds remaining on the lease", client.breakLease()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.breakLease + } + + /** + * Code snippets for {@link DataLakeLeaseClient#changeLease(String)} + */ + public void changeLease() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.changeLease#String + System.out.printf("Changed lease ID is %s%n", client.changeLease("proposedId")); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.changeLease#String + } + + /** + * Code snippets for {@link DataLakeLeaseClient#acquireLeaseWithResponse(int, RequestConditions, Duration, Context)} + */ + public void acquireLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.acquireLeaseWithResponse#int-RequestConditions-Duration-Context + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfModifiedSince(OffsetDateTime.now().minusDays(3)); + + System.out.printf("Lease ID is %s%n", client + .acquireLeaseWithResponse(60, modifiedAccessConditions, timeout, new Context(key, value)) + .getValue()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.acquireLeaseWithResponse#int-RequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeLeaseClient#renewLeaseWithResponse(RequestConditions, Duration, Context)} + */ + public void renewLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.renewLeaseWithResponse#RequestConditions-Duration-Context + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + System.out.printf("Renewed lease ID is %s%n", + client.renewLeaseWithResponse(modifiedAccessConditions, timeout, new Context(key, value)) + .getValue()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.renewLeaseWithResponse#RequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeLeaseClient#releaseLeaseWithResponse(RequestConditions, Duration, Context)} + */ + public void releaseLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.releaseLeaseWithResponse#RequestConditions-Duration-Context + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + System.out.printf("Release lease completed with status %d%n", + client.releaseLeaseWithResponse(modifiedAccessConditions, timeout, new Context(key, value)) + .getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.releaseLeaseWithResponse#RequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeLeaseClient#breakLeaseWithResponse(Integer, RequestConditions, Duration, Context)} + */ + public void breakLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.breakLeaseWithResponse#Integer-RequestConditions-Duration-Context + Integer retainLeaseInSeconds = 5; + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + System.out.printf("The broken lease has %d seconds remaining on the lease", client + .breakLeaseWithResponse(retainLeaseInSeconds, modifiedAccessConditions, timeout, new Context(key, value)) + .getValue()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.breakLeaseWithResponse#Integer-RequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakeLeaseClient#changeLeaseWithResponse(String, RequestConditions, Duration, Context)} + */ + public void changeLeaseWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakeLeaseClient.changeLeaseWithResponse#String-RequestConditions-Duration-Context + RequestConditions modifiedAccessConditions = new RequestConditions() + .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3)); + + System.out.printf("Changed lease ID is %s%n", + client.changeLeaseWithResponse("proposedId", modifiedAccessConditions, timeout, new Context(key, value)) + .getValue()); + // END: com.azure.storage.file.datalake.DataLakeLeaseClient.changeLeaseWithResponse#String-RequestConditions-Duration-Context + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/ListFileSystemsExample.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/ListFileSystemsExample.java new file mode 100644 index 0000000000000..97fcafc95422c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/ListFileSystemsExample.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.common.StorageSharedKeyCredential; + +import java.util.Locale; + +/** + * This example shows how to list all file systems with storage client using the Azure Storage Data Lake SDK for Java. + */ +public class ListFileSystemsExample { + + /** + * Entry point into the list file system examples for Storage Data Lake. + * @param args Unused. Arguments to the program. + */ + public static void main(String[] args) { + String accountName = SampleHelper.getAccountName(); + String accountKey = SampleHelper.getAccountKey(); + + /* + * Use your Storage account's name and key to create a credential object; this is used to access your account. + */ + StorageSharedKeyCredential credential = new StorageSharedKeyCredential(accountName, accountKey); + + /* + * From the Azure portal, get your Storage account datalake service URL endpoint. + * The URL typically looks like this: + */ + String endpoint = String.format(Locale.ROOT, "https://%s.dfs.core.windows.net", accountName); + + /* + * Create a DataLakeServiceClient object that wraps the service endpoint, credential and a request pipeline. + */ + DataLakeServiceClient storageClient = new DataLakeServiceClientBuilder().endpoint(endpoint).credential(credential).buildClient(); + + /* + * Create 3 different file systems from the storageClient. + */ + for (int i = 0; i < 3; i++) { + storageClient.createFileSystem("myfilesystemsforlisting" + i + System.currentTimeMillis()); + } + + /* + * List the file system's name under the Azure storage account. + */ + storageClient.listFileSystems().forEach(fileSystemItem -> { + System.out.println("File System name: " + fileSystemItem.getName()); + + /* + * Clean up the file systems at the same time. + */ + storageClient.getFileSystemClient(fileSystemItem.getName()).delete(); + }); + } +} 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 new file mode 100644 index 0000000000000..a3eb2a7375caf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathAsyncClientJavaDocCodeSamples.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.PathAccessControl; +import com.azure.storage.file.datalake.models.PathHttpHeaders; + +import java.util.Collections; +import java.util.Map; + +/** + * Code snippets for {@link DataLakeFileSystemClient} + */ +@SuppressWarnings({"unused"}) +public class PathAsyncClientJavaDocCodeSamples { + private String fileName = "fileName"; + private DataLakeFileAsyncClient client = JavaDocCodeSnippetsHelpers.getFileAsyncClient(fileName); + private String leaseId = "leaseId"; + + /** + * Code snippets for {@link DataLakePathAsyncClient#setMetadata(Map)} + */ + public void setMetadataCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setMetadata#Map + client.setMetadata(Collections.singletonMap("metadata", "value")) + .subscribe(response -> System.out.println("Set metadata completed")); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setMetadata#Map + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#setMetadataWithResponse(Map, DataLakeRequestConditions)} + */ + public void setMetadataWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setMetadata#Map-DataLakeRequestConditions + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + + client.setMetadataWithResponse(Collections.singletonMap("metadata", "value"), accessConditions) + .subscribe(response -> System.out.printf("Set metadata completed with status %d%n", + response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setMetadata#Map-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#setHttpHeaders(PathHttpHeaders)} + */ + public void setHTTPHeadersCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setHttpHeaders#PathHttpHeaders + client.setHttpHeaders(new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary")); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setHttpHeaders#PathHttpHeaders + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#setHttpHeadersWithResponse(PathHttpHeaders, DataLakeRequestConditions)} + */ + public void setHTTPHeadersWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setHttpHeadersWithResponse#PathHttpHeaders-DataLakeRequestConditions + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + + client.setHttpHeadersWithResponse(new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"), accessConditions).subscribe(response -> + System.out.printf("Set HTTP headers completed with status %d%n", response.getStatusCode())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setHttpHeadersWithResponse#PathHttpHeaders-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#getProperties()} + */ + public void getPropertiesCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.getProperties + client.getProperties().subscribe(response -> + System.out.printf("Creation Time: %s, Size: %d%n", response.getCreationTime(), response.getFileSize())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.getProperties + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#getPropertiesWithResponse(DataLakeRequestConditions)} + */ + public void getPropertiesWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.getPropertiesWithResponse#DataLakeRequestConditions + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + + client.getPropertiesWithResponse(accessConditions).subscribe( + response -> System.out.printf("Creation Time: %s, Size: %d%n", response.getValue().getCreationTime(), + response.getValue().getFileSize())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.getPropertiesWithResponse#DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#setAccessControl(PathAccessControl)} + */ + public void setAccessControlCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControl#PathAccessControl + PathAccessControl control = new PathAccessControl() + .setPermissions("0766"); + + client.setAccessControl(control).subscribe( + response -> System.out.printf("Last Modified Time: %s", response.getLastModified())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControl#PathAccessControl + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#setAccessControlWithResponse(PathAccessControl, DataLakeRequestConditions)} + */ + public void setAccessControlWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlWithResponse#PathAccessControl-DataLakeRequestConditions + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + PathAccessControl control = new PathAccessControl().setPermissions("0766"); + + client.setAccessControlWithResponse(control, accessConditions).subscribe( + response -> System.out.printf("Last Modified Time: %s", response.getValue().getLastModified())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.setAccessControlWithResponse#PathAccessControl-DataLakeRequestConditions + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#getAccessControl()} + */ + public void getAccessControlCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.getAccessControl + client.getAccessControl().subscribe( + response -> System.out.printf("Access Control List: %s, Group: %s, Owner: %s, Permissions: %s", + response.getAcl(), response.getGroup(), response.getOwner(), response.getPermissions())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.getAccessControl + } + + /** + * Code snippets for {@link DataLakePathAsyncClient#getAccessControlWithResponse(boolean, DataLakeRequestConditions)} + */ + public void getAccessControlWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathAsyncClient.getAccessControlWithResponse#boolean-DataLakeRequestConditions + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + boolean returnUpn = false; + + client.getAccessControlWithResponse(returnUpn, accessConditions).subscribe( + response -> System.out.printf("Access Control List: %s, Group: %s, Owner: %s, Permissions: %s", + response.getValue().getAcl(), response.getValue().getGroup(), response.getValue().getOwner(), + response.getValue().getPermissions())); + // END: com.azure.storage.file.datalake.DataLakePathAsyncClient.getAccessControlWithResponse#boolean-DataLakeRequestConditions + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientBuilderJavaDocCodeSnippets.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientBuilderJavaDocCodeSnippets.java new file mode 100644 index 0000000000000..728b05728d878 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientBuilderJavaDocCodeSnippets.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.HttpClient; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.AddDatePolicy; +import com.azure.core.http.policy.RequestIdPolicy; +import com.azure.storage.common.StorageSharedKeyCredential; +import com.azure.storage.common.policy.RequestRetryOptions; +import com.azure.storage.common.policy.RequestRetryPolicy; +import com.azure.storage.common.policy.StorageSharedKeyCredentialPolicy; + +/** + * Code snippets for {@link DataLakePathClientBuilder} + */ +@SuppressWarnings({"unused"}) +public class PathClientBuilderJavaDocCodeSnippets { + private String connectionString = "AccountName=name;AccountKey=key;DefaultEndpointProtocol=protocol;EndpointSuffix=suffix"; + private String endpoint = "endpointURL"; + private String fileSystemName = "file system Name"; + private StorageSharedKeyCredential storageSharedKeyCredential = new StorageSharedKeyCredential("accountName", "accountKey"); + private HttpPipeline httpPipeline = new HttpPipelineBuilder() + .httpClient(HttpClient.createDefault()) + .policies(new AddDatePolicy()) + .policies(new RequestIdPolicy()) + .policies(new StorageSharedKeyCredentialPolicy(storageSharedKeyCredential)) + .policies(new RequestRetryPolicy(new RequestRetryOptions())) + .build(); + + /** + * Code snippet for {@link DataLakePathClientBuilder#buildFileClient()} using credential and endpoint + */ + public void fileClientCredentialAndEndpoint() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildFileClient + DataLakeFileClient client = new DataLakePathClientBuilder() + .endpoint(endpoint) + .credential(storageSharedKeyCredential) + .buildFileClient(); + // END: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildFileClient + } + + /** + * Code snippet for {@link DataLakePathClientBuilder#buildFileAsyncClient()} using credential and endpoint + */ + public void fileAsyncClientCredentialAndEndpoint() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildFileAsyncClient + DataLakeFileAsyncClient client = new DataLakePathClientBuilder() + .endpoint(endpoint) + .credential(storageSharedKeyCredential) + .buildFileAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildFileAsyncClient + } + + /** + * Code snippet for {@link DataLakePathClientBuilder#buildDirectoryClient()} using credential and endpoint + */ + public void directoryClientCredentialAndEndpoint() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildDirectoryClient + DataLakeDirectoryClient client = new DataLakePathClientBuilder() + .endpoint(endpoint) + .credential(storageSharedKeyCredential) + .buildDirectoryClient(); + // END: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildDirectoryClient + } + + /** + * Code snippet for {@link DataLakePathClientBuilder#buildDirectoryAsyncClient()} using credential and endpoint + */ + public void directoryAsyncClientCredentialAndEndpoint() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildDirectoryAsyncClient + DataLakeDirectoryAsyncClient client = new DataLakePathClientBuilder() + .endpoint(endpoint) + .credential(storageSharedKeyCredential) + .buildDirectoryAsyncClient(); + // END: com.azure.storage.file.datalake.DataLakePathClientBuilder.buildDirectoryAsyncClient + } + +} 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 new file mode 100644 index 0000000000000..ea7df89dd009b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/PathClientJavaDocCodeSamples.java @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.http.rest.Response; +import com.azure.storage.file.datalake.models.DataLakeRequestConditions; +import com.azure.storage.file.datalake.models.PathAccessControl; + +import java.util.Collections; +import java.util.Map; +import java.time.Duration; +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.PathHttpHeaders; +import com.azure.storage.file.datalake.models.PathInfo; +import com.azure.storage.file.datalake.models.PathProperties; + +/** + * Code snippets for {@link DataLakeFileSystemClient} + */ +@SuppressWarnings({"unused"}) +public class PathClientJavaDocCodeSamples { + private String fileName = "fileName"; + private DataLakeFileClient client = JavaDocCodeSnippetsHelpers.getFileClient(fileName); + private String leaseId = "leaseId"; + private Duration timeout = Duration.ofSeconds(30); + + private String key1 = "key1"; + private String key2 = "key2"; + private String value1 = "val1"; + private String value2 = "val2"; + + /** + * Code snippets for {@link DataLakePathClient#setMetadata(Map)} + */ + public void setMetadataCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setMetadata#Map + client.setMetadata(Collections.singletonMap("metadata", "value")); + System.out.println("Set metadata completed"); + // END: com.azure.storage.file.datalake.DataLakePathClient.setMetadata#Map + } + + /** + * Code snippets for {@link DataLakePathClient#setMetadataWithResponse(Map, DataLakeRequestConditions, Duration, Context)} + */ + public void setMetadataWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setMetadata#Map-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + + client.setMetadataWithResponse(Collections.singletonMap("metadata", "value"), accessConditions, timeout, + new Context(key2, value2)); + System.out.println("Set metadata completed"); + // END: com.azure.storage.file.datalake.DataLakePathClient.setMetadata#Map-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakePathClient#setHttpHeaders(PathHttpHeaders)} + */ + public void setHTTPHeadersCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setHttpHeaders#PathHttpHeaders + client.setHttpHeaders(new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary")); + // END: com.azure.storage.file.datalake.DataLakePathClient.setHttpHeaders#PathHttpHeaders + } + + /** + * Code snippets for {@link DataLakePathClient#setHttpHeadersWithResponse(PathHttpHeaders, DataLakeRequestConditions, Duration, Context)} + */ + public void setHTTPHeadersWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setHttpHeadersWithResponse#PathHttpHeaders-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + + Response response = client.setHttpHeadersWithResponse(new PathHttpHeaders() + .setContentLanguage("en-US") + .setContentType("binary"), accessConditions, timeout, new Context(key2, value2)); + System.out.printf("Set HTTP headers completed with status %d%n", + response.getStatusCode()); + // END: com.azure.storage.file.datalake.DataLakePathClient.setHttpHeadersWithResponse#PathHttpHeaders-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakePathClient#getProperties()} + */ + public void getPropertiesCodeSnippet() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.getProperties + System.out.printf("Creation Time: %s, Size: %d%n", client.getProperties().getCreationTime(), + client.getProperties().getFileSize()); + // END: com.azure.storage.file.datalake.DataLakePathClient.getProperties + } + + /** + * Code snippets for {@link DataLakePathClient#getPropertiesWithResponse(DataLakeRequestConditions, Duration, Context)} + */ + public void getPropertiesWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.getPropertiesWithResponse#DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + + Response response = client.getPropertiesWithResponse(accessConditions, timeout, + new Context(key2, value2)); + + System.out.printf("Creation Time: %s, Size: %d%n", response.getValue().getCreationTime(), + response.getValue().getFileSize()); + // END: com.azure.storage.file.datalake.DataLakePathClient.getPropertiesWithResponse#DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakePathClient#setAccessControl(PathAccessControl)} + */ + public void setAccessControlCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setAccessControl#PathAccessControl + PathAccessControl control = new PathAccessControl() + .setPermissions("0766"); + + System.out.printf("Last Modified Time: %s", client.setAccessControl(control).getLastModified()); + // END: com.azure.storage.file.datalake.DataLakePathClient.setAccessControl#PathAccessControl + } + + /** + * Code snippets for {@link DataLakePathClient#setAccessControlWithResponse(PathAccessControl, DataLakeRequestConditions, Duration, Context)} + */ + public void setAccessControlWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlWithResponse#PathAccessControl-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + PathAccessControl control = new PathAccessControl().setPermissions("0766"); + + Response response = client.setAccessControlWithResponse(control, accessConditions, timeout, + new Context(key2, value2)); + System.out.printf("Last Modified Time: %s", response.getValue().getLastModified()); + // END: com.azure.storage.file.datalake.DataLakePathClient.setAccessControlWithResponse#PathAccessControl-DataLakeRequestConditions-Duration-Context + } + + /** + * Code snippets for {@link DataLakePathClient#getAccessControl()} + */ + public void getAccessControlCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.getAccessControl + PathAccessControl response = client.getAccessControl(); + System.out.printf("Access Control List: %s, Group: %s, Owner: %s, Permissions: %s", + response.getAcl(), response.getGroup(), response.getOwner(), response.getPermissions()); + // END: com.azure.storage.file.datalake.DataLakePathClient.getAccessControl + } + + /** + * Code snippets for {@link DataLakePathClient#getAccessControlWithResponse(boolean, DataLakeRequestConditions, Duration, Context)} + */ + public void getAccessControlWithResponseCodeSnippets() { + // BEGIN: com.azure.storage.file.datalake.DataLakePathClient.getAccessControlWithResponse#boolean-DataLakeRequestConditions-Duration-Context + DataLakeRequestConditions accessConditions = new DataLakeRequestConditions().setLeaseId(leaseId); + boolean returnUpn = false; + + Response response = client.getAccessControlWithResponse(returnUpn, accessConditions, timeout, + new Context(key1, value1)); + + System.out.printf("Access Control List: %s, Group: %s, Owner: %s, Permissions: %s", + response.getValue().getAcl(), response.getValue().getGroup(), response.getValue().getOwner(), + response.getValue().getPermissions()); + // END: com.azure.storage.file.datalake.DataLakePathClient.getAccessControlWithResponse#boolean-DataLakeRequestConditions-Duration-Context + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/SampleHelper.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/SampleHelper.java new file mode 100644 index 0000000000000..64e25b2c58d4f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/SampleHelper.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.core.util.Configuration; + +/** + * This is a helper class of frequently used methods for sample codes. + */ +class SampleHelper { + static String getAccountName() { + return Configuration.getGlobalConfiguration().get("DATA_LAKE_STORAGE_ACCOUNT_NAME"); + } + + static String getAccountKey() { + return Configuration.getGlobalConfiguration().get("DATA_LAKE_STORAGE_ACCOUNT_KEY"); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/UploadDownloadExample.java b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/UploadDownloadExample.java new file mode 100644 index 0000000000000..7ef1c8dd3a19d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/samples/java/com/azure/storage/file/datalake/UploadDownloadExample.java @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake; + +import com.azure.storage.common.StorageSharedKeyCredential; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; +import java.util.Locale; + +/** + * This example shows how to upload and download using the Azure Storage Data Lake SDK for Java. + */ +public class UploadDownloadExample { + + /** + * Entry point into the upload download examples for Storage datalake. + * + * @param args Unused. Arguments to the program. + * @throws IOException If an I/O error occurs + * @throws RuntimeException If the downloaded data doesn't match the uploaded data + */ + public static void main(String[] args) throws IOException { + + /* + * From the Azure portal, get your Storage account's name and account key. + */ + String accountName = SampleHelper.getAccountName(); + String accountKey = SampleHelper.getAccountKey(); + + /* + * Use your Storage account's name and key to create a credential object; this is used to access your account. + */ + StorageSharedKeyCredential credential = new StorageSharedKeyCredential(accountName, accountKey); + + /* + * From the Azure portal, get your Storage account dfs service URL endpoint. + * The URL typically looks like this: + */ + String endpoint = String.format(Locale.ROOT, "http://%s.dfs.core.windows.net", accountName); + + /* + * Create a DataLakeServiceClient object that wraps the service endpoint, credential and a request pipeline. + */ + DataLakeServiceClient storageClient = new DataLakeServiceClientBuilder().endpoint(endpoint).credential(credential).buildClient(); + + /* + * This example shows several common operations just to get you started. + */ + + /* + * Create a client that references a to-be-created file system in your Azure Storage account. This returns a + * FileSystem object that wraps the file system's endpoint, credential and a request pipeline (inherited from storageClient). + * Note that file system names require lowercase. + */ + DataLakeFileSystemClient dataLakeFileSystemClient = storageClient.getFileSystemClient("myjavafilesystembasic" + System.currentTimeMillis()); + + /* + * Create a file system in Storage datalake account. + */ + dataLakeFileSystemClient.create(); + + /* + * Create a client that references a to-be-created file in your Azure Storage account's file system. + * This returns a DataLakeFileClient object that wraps the file's endpoint, credential and a request pipeline + * (inherited from dataLakeFileSystemClient). Note that file names can be mixed case. + */ + DataLakeFileClient fileClient = dataLakeFileSystemClient.getFileClient("HelloWorld.txt"); + + StringBuilder sb = new StringBuilder(); + + String data = "Hello World!!!!!"; + sb.append(data); + InputStream dataStream = new ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8)); + + /* + * Create the file. + */ + fileClient.create(); + + /* + * Append 16 bytes of random data to the file + * The first parameter denotes the input stream to append + * The second parameter denotes the offset at which to start appending the data. + * The third parameter denotes the length of data being appended. + * Data is not actually written until the flush command is called. + */ + fileClient.append(dataStream, 0, 16); + dataStream.close(); + + /* + * Flush the amount of data specified. This is when data is actually written to the service. + */ + fileClient.flush(16); + + sb.append(data); + dataStream = new ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8)); + dataStream.close(); + + /* + * Append more data to the file after the data appended before. So we start appending at the end of the + * last 16 bytes + */ + fileClient.append(dataStream, 16, 16); + + sb.append(data); + dataStream = new ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8)); + + /* + * Append even more data before flushing. Note, our offset parameter is now adjusted to append data only after + * the first 32 bytes now. + */ + fileClient.append(dataStream, 32, 16); + + /* + * Flush all the data we just appended. This is 48 bytes since that's the last position of data we have appended + * relative to the file. + */ + fileClient.flush(48); + + dataStream.close(); + + /* + * Download the file's content to output stream. + */ + int dataSize = (int) fileClient.getProperties().getFileSize(); + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(dataSize); + fileClient.read(outputStream); + outputStream.close(); + + /* + * Verify that the file data round-tripped correctly. + */ + if (!sb.toString().equals(new String(outputStream.toByteArray(), StandardCharsets.UTF_8))) { + throw new RuntimeException("The downloaded data does not match the uploaded data."); + } + + /* + * Delete the file we created earlier. + */ + fileClient.delete(); + + /* + * Delete the file system we created earlier. + */ + dataLakeFileSystemClient.delete(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy new file mode 100644 index 0000000000000..a490b010a7eee --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/APISpec.groovy @@ -0,0 +1,598 @@ +package com.azure.storage.file.datalake + +import com.azure.core.http.* +import com.azure.core.http.netty.NettyAsyncHttpClientBuilder +import com.azure.core.http.policy.HttpLogDetailLevel +import com.azure.core.http.policy.HttpLogOptions +import com.azure.core.http.policy.HttpPipelinePolicy +import com.azure.core.http.rest.Response +import com.azure.core.implementation.util.FluxUtil +import com.azure.core.test.InterceptorManager +import com.azure.core.test.TestMode +import com.azure.core.test.utils.TestResourceNamer +import com.azure.core.util.Configuration +import com.azure.core.util.logging.ClientLogger +import com.azure.identity.EnvironmentCredentialBuilder +import com.azure.storage.common.StorageSharedKeyCredential +import com.azure.storage.file.datalake.models.FileSystemItem +import com.azure.storage.file.datalake.models.LeaseStateType +import com.azure.storage.file.datalake.models.ListFileSystemsOptions +import com.azure.storage.file.datalake.models.PathProperties +import reactor.core.publisher.Flux +import reactor.core.publisher.Mono +import spock.lang.Requires +import spock.lang.Shared +import spock.lang.Specification + +import java.nio.ByteBuffer +import java.nio.charset.Charset +import java.nio.charset.StandardCharsets +import java.time.Duration +import java.time.OffsetDateTime +import java.util.function.Supplier + +class APISpec extends Specification { + @Shared + ClientLogger logger = new ClientLogger(APISpec.class) + + Integer entityNo = 0 // Used to generate stable container names for recording tests requiring multiple containers. + + // both sync and async clients point to same container + @Shared + DataLakeFileSystemClient fsc + + @Shared + DataLakeFileSystemClient fscPremium + + @Shared + DataLakeFileSystemAsyncClient fscAsync + + // Fields used for conveniently creating blobs with data. + static final String defaultText = "default" + + public static final ByteBuffer defaultData = ByteBuffer.wrap(defaultText.getBytes(StandardCharsets.UTF_8)) + + static final Supplier defaultInputStream = new Supplier() { + @Override + InputStream get() { + return new ByteArrayInputStream(defaultText.getBytes(StandardCharsets.UTF_8)) + } + } + + static int defaultDataSize = defaultData.remaining() + + static final Flux defaultFlux = Flux.just(defaultData).map { buffer -> buffer.duplicate() } + + // Prefixes for blobs and containers + String fileSystemPrefix = "jtfs" // java test file system + + String pathPrefix = "javapath" + + /* + The values below are used to create data-driven tests for access conditions. + */ + static final OffsetDateTime oldDate = OffsetDateTime.now().minusDays(1) + + static final OffsetDateTime newDate = OffsetDateTime.now().plusDays(1) + + /* + Note that this value is only used to check if we are depending on the received etag. This value will not actually + be used. + */ + static final String receivedEtag = "received" + + static final String garbageEtag = "garbage" + + /* + Note that this value is only used to check if we are depending on the received etag. This value will not actually + be used. + */ + static final String receivedLeaseID = "received" + + static final String garbageLeaseID = UUID.randomUUID().toString() + + public static final String defaultEndpointTemplate = "https://%s.dfs.core.windows.net/" + + static def AZURE_TEST_MODE = "AZURE_TEST_MODE" + static def DATA_LAKE_STORAGE = "DATA_LAKE_STORAGE_" + + protected static StorageSharedKeyCredential primaryCredential + static StorageSharedKeyCredential alternateCredential + static StorageSharedKeyCredential pathCredential + static StorageSharedKeyCredential premiumCredential + static TestMode testMode + + DataLakeServiceClient primaryDataLakeServiceClient + DataLakeServiceAsyncClient primaryDataLakeServiceAsyncClient + DataLakeServiceClient alternateDataLakeServiceClient + DataLakeServiceClient dataLakeServiceClient + DataLakeServiceClient premiumDataLakeServiceClient + + InterceptorManager interceptorManager + boolean recordLiveMode + private TestResourceNamer resourceNamer + protected String testName + def fileSystemName + + def setupSpec() { + testMode = setupTestMode() + primaryCredential = getCredential(DATA_LAKE_STORAGE) + } + + def setup() { + String fullTestName = specificationContext.getCurrentIteration().getName().replace(' ', '').toLowerCase() + String className = specificationContext.getCurrentSpec().getName() + int iterationIndex = fullTestName.lastIndexOf("[") + int substringIndex = (int) Math.min((iterationIndex != -1) ? iterationIndex : fullTestName.length(), 50) + this.testName = fullTestName.substring(0, substringIndex) + this.interceptorManager = new InterceptorManager(className + fullTestName, testMode) + this.resourceNamer = new TestResourceNamer(className + testName, testMode, interceptorManager.getRecordedData()) + + // If the test doesn't have the Requires tag record it in live mode. + recordLiveMode = specificationContext.getCurrentIteration().getDescription().getAnnotation(Requires.class) == null + + primaryDataLakeServiceClient = setClient(primaryCredential) + primaryDataLakeServiceAsyncClient = getServiceAsyncClient(primaryCredential) + alternateDataLakeServiceClient = setClient(alternateCredential) + dataLakeServiceClient = setClient(pathCredential) + premiumDataLakeServiceClient = setClient(premiumCredential) + + fileSystemName = generateFileSystemName() + fsc = primaryDataLakeServiceClient.getFileSystemClient(fileSystemName) + fscAsync = primaryDataLakeServiceAsyncClient.getFileSystemAsyncClient(fileSystemName) + fsc.create() + } + + def cleanup() { + def options = new ListFileSystemsOptions().setPrefix(fileSystemPrefix + testName) + for (FileSystemItem fileSystem : primaryDataLakeServiceClient.listFileSystems(options, Duration.ofSeconds(120))) { + DataLakeFileSystemClient fileSystemClient = primaryDataLakeServiceClient.getFileSystemClient(fileSystem.getName()) + + if (fileSystem.getProperties().getLeaseState() == LeaseStateType.LEASED) { + createLeaseClient(fileSystemClient).breakLeaseWithResponse(0, null, null, null) + } + + fileSystemClient.delete() + } + + interceptorManager.close() + } + + //TODO: Should this go in core. + static Mono collectBytesInBuffer(Flux content) { + return FluxUtil.collectBytesInByteBufferStream(content).map { bytes -> ByteBuffer.wrap(bytes) } + } + + static TestMode setupTestMode() { + String testMode = Configuration.getGlobalConfiguration().get(AZURE_TEST_MODE) + + if (testMode != null) { + try { + return TestMode.valueOf(testMode.toUpperCase(Locale.US)) + } catch (IllegalArgumentException ignore) { + return TestMode.PLAYBACK + } + } + + return TestMode.PLAYBACK + } + + static boolean liveMode() { + return setupTestMode() == TestMode.RECORD + } + + private StorageSharedKeyCredential getCredential(String accountType) { + String accountName + String accountKey + + if (testMode == TestMode.RECORD) { + accountName = Configuration.getGlobalConfiguration().get(accountType + "ACCOUNT_NAME") + accountKey = Configuration.getGlobalConfiguration().get(accountType + "ACCOUNT_KEY") + } else { + accountName = "storageaccount" + accountKey = "astorageaccountkey" + } + + if (accountName == null || accountKey == null) { + logger.warning("Account name or key for the {} account was null. Test's requiring these credentials will fail.", accountType) + return null + } + + return new StorageSharedKeyCredential(accountName, accountKey) + } + + DataLakeServiceClient setClient(StorageSharedKeyCredential credential) { + try { + return getServiceClient(credential) + } catch (Exception ignore) { + return null + } + } + + def getOAuthServiceClient() { + DataLakeServiceClientBuilder builder = new DataLakeServiceClientBuilder() + .endpoint(String.format(defaultEndpointTemplate, primaryCredential.getAccountName())) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + if (testMode == TestMode.RECORD) { + if (recordLiveMode) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + // AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET + return builder.credential(new EnvironmentCredentialBuilder().build()).buildClient() + } else { + // Running in playback, we don't have access to the AAD environment variables, just use SharedKeyCredential. + return builder.credential(primaryCredential).buildClient() + } + } + + DataLakeServiceClient getServiceClient(String endpoint) { + return getServiceClient(null, endpoint, null) + } + + DataLakeServiceClient getServiceClient(StorageSharedKeyCredential credential) { + return getServiceClient(credential, String.format(defaultEndpointTemplate, credential.getAccountName()), null) + } + + DataLakeServiceClient getServiceClient(StorageSharedKeyCredential credential, String endpoint) { + return getServiceClient(credential, endpoint, null) + } + + DataLakeServiceClient getServiceClient(StorageSharedKeyCredential credential, String endpoint, + HttpPipelinePolicy... policies) { + return getServiceClientBuilder(credential, endpoint, policies).buildClient() + } + + DataLakeServiceClient getServiceClient(String sasToken, String endpoint) { + return getServiceClientBuilder(null, endpoint, null).sasToken(sasToken).buildClient() + } + + DataLakeServiceAsyncClient getServiceAsyncClient(StorageSharedKeyCredential credential) { + return getServiceClientBuilder(credential, String.format(defaultEndpointTemplate, credential.getAccountName())) + .buildAsyncClient() + } + + DataLakeServiceClientBuilder getServiceClientBuilder(StorageSharedKeyCredential credential, String endpoint, + HttpPipelinePolicy... policies) { + DataLakeServiceClientBuilder builder = new DataLakeServiceClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + for (HttpPipelinePolicy policy : policies) { + builder.addPolicy(policy) + } + + if (testMode == TestMode.RECORD && recordLiveMode) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + if (credential != null) { + builder.credential(credential) + } + + return builder + } + + HttpClient getHttpClient() { + NettyAsyncHttpClientBuilder builder = new NettyAsyncHttpClientBuilder() + if (testMode == TestMode.RECORD) { + builder.wiretap(true) + + if (Boolean.parseBoolean(Configuration.getGlobalConfiguration().get("AZURE_TEST_DEBUGGING"))) { + builder.proxy(new ProxyOptions(ProxyOptions.Type.HTTP, new InetSocketAddress("localhost", 8888))) + } + + return builder.build() + } else { + return interceptorManager.getPlaybackClient() + } + } + + static DataLakeLeaseClient createLeaseClient(DataLakePathClient pathClient) { + return createLeaseClient(pathClient, null) + } + + static DataLakeLeaseClient createLeaseClient(DataLakePathClient pathClient, String leaseId) { + return new DataLakeLeaseClientBuilder() + .pathClient(pathClient) + .leaseId(leaseId) + .buildClient() + } + + static DataLakeLeaseClient createLeaseClient(DataLakeFileSystemClient fileSystemClient) { + return createLeaseClient(fileSystemClient, null) + } + + static DataLakeLeaseClient createLeaseClient(DataLakeFileSystemClient fileSystemClient, String leaseId) { + return new DataLakeLeaseClientBuilder() + .fileSystemClient(fileSystemClient) + .leaseId(leaseId) + .buildClient() + } + + DataLakeFileClient getFileClient(StorageSharedKeyCredential credential, String endpoint, HttpPipelinePolicy... policies) { + DataLakePathClientBuilder builder = new DataLakePathClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + for (HttpPipelinePolicy policy : policies) { + builder.addPolicy(policy) + } + + if (testMode == TestMode.RECORD && recordLiveMode) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.credential(credential).buildFileClient() + } + + DataLakeFileClient getFileClient(StorageSharedKeyCredential credential, String endpoint, String pathName) { + DataLakePathClientBuilder builder = new DataLakePathClientBuilder() + .endpoint(endpoint) + .pathName(pathName) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + if (testMode == TestMode.RECORD && recordLiveMode) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.credential(credential).buildFileClient() + } + + DataLakeFileClient getFileClient(String sasToken, String endpoint, String pathName) { + DataLakePathClientBuilder builder = new DataLakePathClientBuilder() + .endpoint(endpoint) + .pathName(pathName) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + if (testMode == TestMode.RECORD && recordLiveMode) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + return builder.sasToken(sasToken).buildFileClient() + } + + DataLakeFileSystemClient getFileSystemClient(String sasToken, String endpoint) { + DataLakeFileSystemClientBuilder builder = new DataLakeFileSystemClientBuilder() + .endpoint(endpoint) + .httpClient(getHttpClient()) + .httpLogOptions(new HttpLogOptions().setLogLevel(HttpLogDetailLevel.BODY_AND_HEADERS)) + + if (testMode == TestMode.RECORD && recordLiveMode) { + builder.addPolicy(interceptorManager.getRecordPolicy()) + } + + builder.sasToken(sasToken).buildClient() + } + + def generateFileSystemName() { + generateResourceName(fileSystemPrefix, entityNo++) + } + + def generatePathName() { + generateResourceName(pathPrefix, entityNo++) + } + + private String generateResourceName(String prefix, int entityNo) { + return resourceNamer.randomName(prefix + testName + entityNo, 63) + } + + String getRandomUUID() { + return resourceNamer.randomUuid() + } + + String getConfigValue(String value) { + return resourceNamer.recordValueFromConfig(value) + } + + String getBlockID() { + return Base64.encoder.encodeToString(resourceNamer.randomUuid().getBytes(StandardCharsets.UTF_8)) + } + + OffsetDateTime getUTCNow() { + return resourceNamer.now() + } + + byte[] getRandomByteArray(int size) { + long seed = UUID.fromString(resourceNamer.randomUuid()).getMostSignificantBits() & Long.MAX_VALUE + Random rand = new Random(seed) + byte[] data = new byte[size] + rand.nextBytes(data) + return data + } + + /* + Size must be an int because ByteBuffer sizes can only be an int. Long is not supported. + */ + + ByteBuffer getRandomData(int size) { + return ByteBuffer.wrap(getRandomByteArray(size)) + } + + /** + * Validates the presence of headers that are present on a large number of responses. These headers are generally + * random and can really only be checked as not null. + * @param headers + * The object (may be headers object or response object) that has properties which expose these common headers. + * @return + * Whether or not the header values are appropriate. + */ + def validateBasicHeaders(HttpHeaders headers) { + return headers.getValue("etag") != null && + // Quotes should be scrubbed from etag header values + !headers.getValue("etag").contains("\"") && + headers.getValue("last-modified") != null && + headers.getValue("x-ms-request-id") != null && + headers.getValue("x-ms-version") != null && + headers.getValue("date") != null + } + + def validatePathProperties(Response response, String cacheControl, String contentDisposition, + String contentEncoding, String contentLanguage, byte[] contentMD5, String contentType) { + return response.getValue().getCacheControl() == cacheControl && + response.getValue().getContentDisposition() == contentDisposition && + response.getValue().getContentEncoding() == contentEncoding && + response.getValue().getContentLanguage() == contentLanguage && + response.getValue().getContentMd5() == contentMD5 && + response.getHeaders().getValue("Content-Type") == contentType + } + + def setupFileSystemLeaseCondition(DataLakeFileSystemClient fsc, String leaseID) { + if (leaseID == receivedLeaseID) { + return createLeaseClient(fsc).acquireLease(-1) + } else { + return leaseID + } + } + + /** + * This will retrieve the etag to be used in testing match conditions. The result will typically be assigned to + * the ifMatch condition when testing success and the ifNoneMatch condition when testing failure. + * + * @param bc + * The URL to the path to get the etag on. + * @param match + * The ETag value for this test. If {@code receivedEtag} is passed, that will signal that the test is expecting + * the path's actual etag for this test, so it is retrieved. + * @return + * The appropriate etag value to run the current test. + */ + def setupPathMatchCondition(DataLakePathClient pc, String match) { + if (match == receivedEtag) { + return pc.getProperties().getETag() + } else { + return match + } + } + + def setupPathMatchCondition(DataLakePathAsyncClient pac, String match) { + if (match == receivedEtag) { + return pac.getProperties().block().getETag() + } else { + return match + } + } + + /** + * This helper method will acquire a lease on a path to prepare for testing leaseAccessConditions. We want to test + * against a valid lease in both the success and failure cases to guarantee that the results actually indicate + * proper setting of the header. If we pass null, though, we don't want to acquire a lease, as that will interfere + * with other AC tests. + * + * @param bc + * The path on which to acquire a lease. + * @param leaseID + * The signalID. Values should only ever be {@code receivedLeaseID}, {@code garbageLeaseID}, or {@code null}. + * @return + * The actual leaseAccessConditions of the path if recievedLeaseID is passed, otherwise whatever was passed will be + * returned. + */ + def setupPathLeaseCondition(DataLakePathClient pc, String leaseID) { + String responseLeaseId = null + if (leaseID == receivedLeaseID || leaseID == garbageLeaseID) { + responseLeaseId = createLeaseClient(pc).acquireLease(-1) + } + if (leaseID == receivedLeaseID) { + return responseLeaseId + } else { + return leaseID + } + } + + def setupPathLeaseCondition(DataLakePathAsyncClient pac, String leaseID) { + String responseLeaseId = null + if (leaseID == receivedLeaseID || leaseID == garbageLeaseID) { + responseLeaseId = new DataLakeLeaseClientBuilder() + .pathAsyncClient(pac) + .buildAsyncClient() + .acquireLease(-1) + .block() + } + if (leaseID == receivedLeaseID) { + return responseLeaseId + } else { + return leaseID + } + } + + class MockRetryRangeResponsePolicy implements HttpPipelinePolicy { + @Override + Mono process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) { + return next.process().flatMap { HttpResponse response -> + if (response.getRequest().getHeaders().getValue("x-ms-range") != "bytes=2-6") { + return Mono. error(new IllegalArgumentException("The range header was not set correctly on retry.")) + } else { + // ETag can be a dummy value. It's not validated, but DownloadResponse requires one + return Mono. just(new MockDownloadHttpResponse(response, 206, Flux.error(new IOException()))) + } + } + } + } + + /* + This is for stubbing responses that will actually go through the pipeline and autorest code. Autorest does not seem + to play too nicely with mocked objects and the complex reflection stuff on both ends made it more difficult to work + with than was worth it. Because this type is just for BlobDownload, we don't need to accept a header type. + */ + + class MockDownloadHttpResponse extends HttpResponse { + private final int statusCode + private final HttpHeaders headers + private final Flux body + + MockDownloadHttpResponse(HttpResponse response, int statusCode, Flux body) { + super(response.getRequest()) + this.statusCode = statusCode + this.headers = response.getHeaders() + this.body = body + } + + @Override + int getStatusCode() { + return statusCode + } + + @Override + String getHeaderValue(String s) { + return headers.getValue(s) + } + + @Override + HttpHeaders getHeaders() { + return headers + } + + @Override + Flux getBody() { + return body + } + + @Override + Mono getBodyAsByteArray() { + return Mono.error(new IOException()) + } + + @Override + Mono getBodyAsString() { + return Mono.error(new IOException()) + } + + @Override + Mono getBodyAsString(Charset charset) { + return Mono.error(new IOException()) + } + } + + // Only sleep if test is running in live mode + def sleepIfRecord(long milliseconds) { + if (testMode == TestMode.RECORD) { + sleep(milliseconds) + } + } + +} 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 new file mode 100644 index 0000000000000..5cd8c0bd69780 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/DirectoryAPITest.groovy @@ -0,0 +1,1355 @@ +package com.azure.storage.file.datalake + +import com.azure.core.util.Context +import com.azure.storage.blob.models.BlobErrorCode +import com.azure.storage.blob.models.BlobStorageException + +import com.azure.storage.file.datalake.implementation.models.StorageErrorException +import com.azure.storage.file.datalake.models.* +import spock.lang.Unroll + +class DirectoryAPITest extends APISpec { + DataLakeDirectoryClient dc + String directoryName + + def setup() { + directoryName = generatePathName() + dc = fsc.getDirectoryClient(directoryName) + dc.create() + } + + def "Create min"() { + when: + dc = fsc.getDirectoryClient(generatePathName()) + dc.create() + + then: + notThrown(StorageErrorException) + } + + def "Create defaults"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + def createResponse = dc.createWithResponse(null, null, null, null, null, null, null) + + then: + createResponse.getStatusCode() == 201 + validateBasicHeaders(createResponse.getHeaders()) + } + + def "Create error"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + dc.createWithResponse(null, null, new DataLakeRequestConditions().setIfMatch("garbage"), null, null, null, + Context.NONE) + + then: + thrown(Exception) + } + + @Unroll + def "Create 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()) + + when: + dc.createWithResponse(headers, null, null, null, null, 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 metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null) { + metadata.put(key1, value1) + } + if (key2 != null) { + metadata.put(key2, value2) + } + + when: + dc.createWithResponse(null, metadata, null, null, null, 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" + } + + @Unroll + def "Create AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.createWithResponse(null, null, drc, null, null, null, null).getStatusCode() == 201 + + 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 "Create AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.createWithResponse(null, null, drc, null, null, null, Context.NONE) + + then: + thrown(Exception) + + 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 permissions and umask"() { + setup: + def permissions = "0777" + def umask = "0057" + + expect: + dc.createWithResponse(null, null, null, permissions, umask, null, Context.NONE).getStatusCode() == 201 + } + + def "Delete min"() { + expect: + dc.deleteWithResponse(false, null, null, null).getStatusCode() == 200 + } + + def "Delete recursive"() { + expect: + dc.deleteWithResponse(true, null, null, null).getStatusCode() == 200 + } + + def "Delete dir does not exist anymore"() { + when: + dc.deleteWithResponse(false, null, null, null) + dc.getPropertiesWithResponse(null, null, null) + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.BLOB_NOT_FOUND +// e.getServiceMessage().contains("The specified blob does not exist.") + } + + @Unroll + def "Delete AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.deleteWithResponse(false, drc, 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 AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.deleteWithResponse(false, drc, null, null).getStatusCode() + + then: + thrown(StorageErrorException) + + 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 access control min"() { + when: + def resp = dc.setAccessControl(new PathAccessControl().setPermissions("0777")) + + then: + notThrown(StorageErrorException) + + resp.getETag() + resp.getLastModified() + } + + def "Set access control bad permission"() { + when: + dc.setAccessControlWithResponse(new PathAccessControl().setPermissions("asdf"), null, null, null) + + then: + def e = thrown(StorageErrorException) + e.getResponse().getStatusCode() == 400 + e.getMessage().contains("InvalidPermission") + e.getMessage().contains("The permission value is invalid.") + } + + @Unroll + def "Set access control with response"() { + setup: + def pac = new PathAccessControl() + .setPermissions(permissions) + .setGroup(group) + .setOwner(owner) + .setAcl(acl) + + expect: + dc.setAccessControlWithResponse(pac, null, null, Context.NONE).getStatusCode() == 200 + + // TODO (gapra) : Add tests to add group and owner, not sure what values can be + where: + permissions | group | owner | acl + "0777" | null | null | null + null | null | null | "user::rwx" + } + + @Unroll + def "Set access control AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + dc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), drc, null, Context.NONE).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 "Set access control AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), drc, null, Context.NONE).getStatusCode() == 200 + + then: + thrown(StorageErrorException) + + 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 access control error"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + dc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), null, null, null) + + then: + thrown(StorageErrorException) + } + + def "Get access control min"() { + when: + PathAccessControl pac = dc.getAccessControl() + + then: + notThrown(StorageErrorException) + pac.getAcl() + pac.getPermissions() + pac.getOwner() + pac.getGroup() + } + + def "Get access control with response"() { + expect: + dc.getAccessControlWithResponse(false, null, null, null).getStatusCode() == 200 + } + + def "Get access control return upn"() { + expect: + dc.getAccessControlWithResponse(true, null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Get access control AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.getAccessControlWithResponse(false, drc, 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 "Get access control AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.getAccessControlWithResponse(false, drc, null, null).getStatusCode() == 200 + + then: + thrown(StorageErrorException) + + 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 + // Known issue - uncomment when resolved + } + + def "Rename min"() { + expect: + dc.renameWithResponse(generatePathName(), null, null, null, null).getStatusCode() == 201 + } + + def "Rename with response"() { + when: + def resp = dc.renameWithResponse(generatePathName(), null, null, null, null) + + def renamedClient = resp.getValue() + renamedClient.getProperties() + + then: + notThrown(StorageErrorException) + + when: + dc.getProperties() + + then: + thrown(BlobStorageException) + } + + def "Rename error"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + dc.renameWithResponse(generatePathName(), null, null, null, null) + + then: + thrown(StorageErrorException) + } + + @Unroll + def "Rename source AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.renameWithResponse(generatePathName(), drc, null, null, null).getStatusCode() == 201 + + 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 "Rename source AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.renameWithResponse(generatePathName(), drc, null, null, null) + + then: + thrown(StorageErrorException) + + 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 "Rename dest AC"() { + setup: + def pathName = generatePathName() + def destDir = fsc.getDirectoryClient(pathName) + destDir.create() + match = setupPathMatchCondition(destDir, match) + leaseID = setupPathLeaseCondition(destDir, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.renameWithResponse(pathName, null, drc, null, null).getStatusCode() == 201 + + 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 "Rename dest AC fail"() { + setup: + def pathName = generatePathName() + def destDir = fsc.getDirectoryClient(pathName) + destDir.create() + noneMatch = setupPathMatchCondition(destDir, noneMatch) + setupPathLeaseCondition(destDir, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.renameWithResponse(pathName, null, drc, null, null) + + then: + thrown(StorageErrorException) + + 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 "Get properties default"() { + when: + def response = dc.getPropertiesWithResponse(null, null, null) + def headers = response.getHeaders() + def properties = response.getValue() + + then: + validateBasicHeaders(headers) + headers.getValue("Accept-Ranges") == "bytes" + properties.getCreationTime() + properties.getLastModified() + properties.getETag() + properties.getFileSize() >= 0 + properties.getContentType() + !properties.getContentMd5() // tested in "set HTTP headers" + !properties.getContentEncoding() // tested in "set HTTP headers" + !properties.getContentDisposition() // tested in "set HTTP headers" + !properties.getContentLanguage() // tested in "set HTTP headers" + !properties.getCacheControl() // tested in "set HTTP headers" + properties.getLeaseStatus() == LeaseStatusType.UNLOCKED + properties.getLeaseState() == LeaseStateType.AVAILABLE + !properties.getLeaseDuration() // tested in "acquire lease" + !properties.getCopyId() // tested in "abort copy" + !properties.getCopyStatus() // tested in "copy" + !properties.getCopySource() // tested in "copy" + !properties.getCopyProgress() // tested in "copy" + !properties.getCopyCompletionTime() // tested in "copy" + !properties.getCopyStatusDescription() // only returned when the service has errors; cannot validate. + properties.isServerEncrypted() + !properties.isIncrementalCopy() // tested in PageBlob."start incremental copy" + properties.getAccessTier() == AccessTier.HOT + properties.getArchiveStatus() == null + properties.getMetadata() + !properties.getAccessTierChangeTime() + !properties.getEncryptionKeySha256() + + } + + def "Get properties min"() { + expect: + dc.getPropertiesWithResponse(null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Get properties AC"() { + setup: + def drc = new DataLakeRequestConditions() + .setLeaseId(setupPathLeaseCondition(dc, leaseID)) + .setIfMatch(setupPathMatchCondition(dc, match)) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.getPropertiesWithResponse(drc, 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 "Get properties AC fail"() { + setup: + def drc = new DataLakeRequestConditions() + .setLeaseId(setupPathLeaseCondition(dc, leaseID)) + .setIfMatch(match) + .setIfNoneMatch(setupPathMatchCondition(dc, noneMatch)) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.getPropertiesWithResponse(drc, null, null) + + then: + thrown(BlobStorageException) + + 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 "Get properties error"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + dc.getProperties() + + then: + thrown(BlobStorageException) + } + + def "Set HTTP headers null"() { + setup: + def response = dc.setHttpHeadersWithResponse(null, null, null, null) + + expect: + response.getStatusCode() == 200 + validateBasicHeaders(response.getHeaders()) + } + + def "Set HTTP headers min"() { + setup: + def properties = dc.getProperties() + def headers = new PathHttpHeaders() + .setContentEncoding(properties.getContentEncoding()) + .setContentDisposition(properties.getContentDisposition()) + .setContentType("type") + .setCacheControl(properties.getCacheControl()) + .setContentLanguage(properties.getContentLanguage()) + + dc.setHttpHeaders(headers) + + expect: + dc.getProperties().getContentType() == "type" + } + + @Unroll + def "Set HTTP headers headers"() { + setup: + def putHeaders = new PathHttpHeaders() + .setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentMd5(contentMD5) + .setContentType(contentType) + + dc.setHttpHeaders(putHeaders) + + expect: + validatePathProperties( + dc.getPropertiesWithResponse(null, null, null), + cacheControl, contentDisposition, contentEncoding, contentLanguage, contentMD5, contentType) + + where: + cacheControl | contentDisposition | contentEncoding | contentLanguage | contentMD5 | contentType + null | null | null | null | null | null + "control" | "disposition" | "encoding" | "language" | null | "type" + } + + @Unroll + def "Set HTTP headers AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.setHttpHeadersWithResponse(null, drc, 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 "Set HTTP headers AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.setHttpHeadersWithResponse(null, drc, null, null) + + then: + thrown(BlobStorageException) + + 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 HTTP headers error"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + dc.setHttpHeaders(null) + + then: + thrown(BlobStorageException) + } + + def "Set metadata all null"() { + when: + def response = dc.setMetadataWithResponse(null, null, null, null) + + then: + // Directories have an is directory metadata param by default + dc.getProperties().getMetadata().size() == 1 + response.getStatusCode() == 200 + validateBasicHeaders(response.getHeaders()) + Boolean.parseBoolean(response.getHeaders().getValue("x-ms-request-server-encrypted")) + } + + def "Set metadata min"() { + setup: + def metadata = new HashMap() + metadata.put("foo", "bar") + + when: + dc.setMetadata(metadata) + + then: + // Directory adds a directory metadata value + for(String k : metadata.keySet()) { + dc.getProperties().getMetadata().containsKey(k) + dc.getProperties().getMetadata().get(k) == metadata.get(k) + } + } + + @Unroll + def "Set metadata metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null && value1 != null) { + metadata.put(key1, value1) + } + if (key2 != null && value2 != null) { + metadata.put(key2, value2) + } + + expect: + dc.setMetadataWithResponse(metadata, null, null, null).getStatusCode() == statusCode + // Directory adds a directory metadata value + for(String k : metadata.keySet()) { + dc.getProperties().getMetadata().containsKey(k) + dc.getProperties().getMetadata().get(k) == metadata.get(k) + } + + where: + key1 | value1 | key2 | value2 || statusCode + null | null | null | null || 200 + "foo" | "bar" | "fizz" | "buzz" || 200 + } + + @Unroll + def "Set metadata AC"() { + setup: + match = setupPathMatchCondition(dc, match) + leaseID = setupPathLeaseCondition(dc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + dc.setMetadataWithResponse(null, drc, 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 "Set metadata AC fail"() { + setup: + noneMatch = setupPathMatchCondition(dc, noneMatch) + setupPathLeaseCondition(dc, leaseID) + + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.setMetadataWithResponse(null, drc, null, null) + + then: + thrown(BlobStorageException) + + 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 metadata error"() { + setup: + dc = fsc.getDirectoryClient(generatePathName()) + + when: + dc.setMetadata(null) + + then: + thrown(BlobStorageException) + } + + def "Create file min"() { + when: + dc.getFileClient(generatePathName()).create() + + then: + notThrown(StorageErrorException) + } + + 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, new DataLakeRequestConditions().setIfMatch("garbage"), + null, null, null, + Context.NONE) + + then: + thrown(StorageErrorException) + } + + @Unroll + def "Create 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 = dc.createFileWithResponse(generatePathName(), headers, null, null, null, null, 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 file metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null) { + metadata.put(key1, value1) + } + if (key2 != null) { + metadata.put(key2, value2) + } + + when: + def client = dc.createFileWithResponse(generatePathName(), null, metadata, null, null, null, null, null).getValue() + def response = client.getProperties() + + then: + response.getMetadata() == metadata + + where: + key1 | value1 | key2 | value2 + null | null | null | null + "foo" | "bar" | "fizz" | "buzz" + } + + @Unroll + def "Create file AC"() { + setup: + def pathName = generatePathName() + def client = dc.getFileClient(pathName) + client.create() + match = setupPathMatchCondition(client, match) + leaseID = setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + dc.createFileWithResponse(pathName, null, null, drc, null, null, null, null).getStatusCode() == 201 + + 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 "Create file AC fail"() { + setup: + def pathName = generatePathName() + def client = dc.getFileClient(pathName) + client.create() + noneMatch = setupPathMatchCondition(client, noneMatch) + setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.createFileWithResponse(pathName, null, null, drc, null, null, null, Context.NONE) + + then: + thrown(StorageErrorException) + + 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 file permissions and umask"() { + setup: + def permissions = "0777" + def umask = "0057" + + expect: + dc.createFileWithResponse(generatePathName(), null, null, null, permissions, umask, null, Context.NONE).getStatusCode() == 201 + } + + def "Delete file min"() { + expect: + def pathName = generatePathName() + dc.createFile(pathName) + dc.deleteFileWithResponse(pathName, null, null, null).getStatusCode() == 200 + } + + def "Delete file file does not exist anymore"() { + when: + def pathName = generatePathName() + def client = dc.createFile(pathName) + dc.deleteFileWithResponse(pathName, null, null, null) + client.getPropertiesWithResponse(null, null, null) + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.BLOB_NOT_FOUND +// e.getServiceMessage().contains("The specified blob does not exist.") + } + + @Unroll + def "Delete 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) + + expect: + dc.deleteFileWithResponse(pathName, drc, 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 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) + + when: + dc.deleteFileWithResponse(pathName, drc, null, null).getStatusCode() + + then: + thrown(StorageErrorException) + + 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: + def subdir = dc.getSubDirectoryClient(generatePathName()) + subdir.create() + + then: + notThrown(StorageErrorException) + } + + def "Create sub dir defaults"() { + when: + def createResponse = dc.createSubDirectoryWithResponse(generatePathName(), null, null, null, null, null, null, null) + + then: + createResponse.getStatusCode() == 201 + validateBasicHeaders(createResponse.getHeaders()) + } + + def "Create sub dir error"() { + when: + dc.createSubDirectoryWithResponse(generatePathName(), null, null, + new DataLakeRequestConditions().setIfMatch("garbage"), null, null, null, + Context.NONE) + + then: + thrown(Exception) + } + + @Unroll + def "Create sub 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 = dc.createSubDirectoryWithResponse(generatePathName(), headers, null, null, null, null, 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 sub dir metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null) { + metadata.put(key1, value1) + } + if (key2 != null) { + metadata.put(key2, value2) + } + + when: + def client = dc.createSubDirectoryWithResponse(generatePathName(), null, metadata, null, null, null, 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" + } + + @Unroll + def "Create sub dir AC"() { + setup: + def pathName = generatePathName() + def client = dc.getSubDirectoryClient(pathName) + client.create() + match = setupPathMatchCondition(client, match) + leaseID = setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + dc.createSubDirectoryWithResponse(pathName, null, null, drc, null, null, null, null).getStatusCode() == 201 + + 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 "Create sub dir AC fail"() { + setup: + def pathName = generatePathName() + def client = dc.getSubDirectoryClient(pathName) + client.create() + noneMatch = setupPathMatchCondition(client, noneMatch) + setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + dc.createSubDirectoryWithResponse(pathName, null, null, drc, null, null, null, Context.NONE) + + then: + thrown(Exception) + + 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 permissions and umask"() { + setup: + def permissions = "0777" + def umask = "0057" + + expect: + dc.createSubDirectoryWithResponse(generatePathName(), null, null, null, permissions, umask, null, Context.NONE).getStatusCode() == 201 + } + + def "Delete sub dir min"() { + expect: + def pathName = generatePathName() + dc.createSubDirectory(pathName) + dc.deleteSubDirectoryWithResponse(pathName, false, null, null, null).getStatusCode() == 200 + } + + def "Delete sub dir recursive"() { + expect: + def pathName = generatePathName() + dc.createSubDirectory(pathName) + dc.deleteSubDirectoryWithResponse(pathName, true, null, null, null).getStatusCode() == 200 + } + + def "Delete sub dir dir does not exist anymore"() { + when: + def pathName = generatePathName() + def client = dc.createSubDirectory(pathName) + dc.deleteSubDirectoryWithResponse(pathName, false, null, null, null) + client.getPropertiesWithResponse(null, null, null) + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.BLOB_NOT_FOUND +// e.getServiceMessage().contains("The specified blob does not exist.") + } + + @Unroll + def "Delete 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) + + expect: + dc.deleteSubDirectoryWithResponse(pathName, false, drc, 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 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) + + when: + dc.deleteSubDirectoryWithResponse(pathName, false, drc, null, null).getStatusCode() + + then: + thrown(StorageErrorException) + + 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 + } + + +} 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 new file mode 100644 index 0000000000000..100371ec0ac45 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileAPITest.groovy @@ -0,0 +1,1297 @@ +package com.azure.storage.file.datalake + +import com.azure.core.exception.UnexpectedLengthException +import com.azure.core.util.Context +import com.azure.storage.blob.models.BlobErrorCode +import com.azure.storage.blob.models.BlobStorageException + +import com.azure.storage.file.datalake.implementation.models.StorageErrorException +import com.azure.storage.file.datalake.models.* +import spock.lang.Unroll + +import java.nio.ByteBuffer +import java.security.MessageDigest + +class FileAPITest extends APISpec { + DataLakeFileClient fc + String fileName + + def setup() { + fileName = generatePathName() + fc = fsc.getFileClient(fileName) + + fc.create() + fc.append(new ByteArrayInputStream(defaultData.array()), 0, defaultDataSize) + fc.flush(defaultDataSize) + } + + def "Create min"() { + when: + fc = fsc.getFileClient(generatePathName()) + fc.create() + + then: + notThrown(StorageErrorException) + } + + def "Create defaults"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + def createResponse = fc.createWithResponse(null, null, null, null, null, null, null) + + then: + createResponse.getStatusCode() == 201 + validateBasicHeaders(createResponse.getHeaders()) + } + + def "Create error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.createWithResponse(null, null, new DataLakeRequestConditions().setIfMatch("garbage"), null, null, null, + Context.NONE) + + then: + thrown(StorageErrorException) + } + + @Unroll + def "Create 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.createWithResponse(headers, null, null, null, null, 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 metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null) { + metadata.put(key1, value1) + } + if (key2 != null) { + metadata.put(key2, value2) + } + + when: + fc.createWithResponse(null, metadata, null, null, null, null, Context.NONE) + def response = fc.getProperties() + + then: + response.getMetadata() == metadata + + where: + key1 | value1 | key2 | value2 + null | null | null | null + "foo" | "bar" | "fizz" | "buzz" + } + + @Unroll + def "Create AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + fc.createWithResponse(null, null, drc, null, null, null, null).getStatusCode() == 201 + + 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 "Create AC fail"() { + setup: + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.createWithResponse(null, null, drc, null, null, null, Context.NONE) + + then: + thrown(StorageErrorException) + + 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 permissions and umask"() { + setup: + def permissions = "0777" + def umask = "0057" + + expect: + fc.createWithResponse(null, null, null, permissions, umask, null, Context.NONE).getStatusCode() == 201 + } + + def "Delete min"() { + expect: + fc.deleteWithResponse(null, null, null).getStatusCode() == 200 + } + + def "Delete file does not exist anymore"() { + when: + fc.deleteWithResponse(null, null, null) + fc.getPropertiesWithResponse(null, null, null) + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.BLOB_NOT_FOUND +// e.getServiceMessage().contains("The specified blob does not exist.") + } + + @Unroll + def "Delete AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.deleteWithResponse(drc, 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 AC fail"() { + setup: + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.deleteWithResponse(drc, null, null).getStatusCode() + + then: + thrown(StorageErrorException) + + 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 access control min"() { + when: + def resp = fc.setAccessControl(new PathAccessControl().setPermissions("0777")) + + then: + notThrown(StorageErrorException) + + resp.getETag() + resp.getLastModified() + } + + def "Set access control bad permission"() { + when: + fc.setAccessControlWithResponse(new PathAccessControl().setPermissions("asdf"), null, null, null) + + then: + def e = thrown(StorageErrorException) + e.getResponse().getStatusCode() == 400 + e.getMessage().contains("InvalidPermission") + e.getMessage().contains("The permission value is invalid.") + } + + def "Set access control with response"() { + expect: + fc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), null, null, Context.NONE).getStatusCode() == 200 + } + + @Unroll + def "Set access control AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), drc, null, Context.NONE).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 "Set access control AC fail"() { + setup: + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), drc, null, Context.NONE).getStatusCode() == 200 + + then: + thrown(StorageErrorException) + + 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 access control error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.setAccessControlWithResponse(new PathAccessControl().setPermissions("0777"), null, null, null) + + then: + thrown(StorageErrorException) + } + + def "Get access control min"() { + when: + PathAccessControl pac = fc.getAccessControl() + + then: + notThrown(StorageErrorException) + pac.getAcl() + pac.getPermissions() + pac.getOwner() + pac.getGroup() + } + + def "Get access control with response"() { + expect: + fc.getAccessControlWithResponse(false, null, null, null).getStatusCode() == 200 + } + + def "Get access control return upn"() { + expect: + fc.getAccessControlWithResponse(true, null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Get access control AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + fc.getAccessControlWithResponse(false, drc, 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 "Get access control AC fail"() { + setup: + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.getAccessControlWithResponse(false, drc, null, null).getStatusCode() == 200 + + then: + thrown(StorageErrorException) + + 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 + // known bug in dfs endpoint so this test fails + } + + def "Get properties default"() { + when: + def response = fc.getPropertiesWithResponse(null, null, null) + def headers = response.getHeaders() + def properties = response.getValue() + + then: + validateBasicHeaders(headers) + headers.getValue("Accept-Ranges") == "bytes" + properties.getCreationTime() + properties.getLastModified() + properties.getETag() + properties.getFileSize() >= 0 + properties.getContentType() + !properties.getContentMd5() // tested in "set HTTP headers" + !properties.getContentEncoding() // tested in "set HTTP headers" + !properties.getContentDisposition() // tested in "set HTTP headers" + !properties.getContentLanguage() // tested in "set HTTP headers" + !properties.getCacheControl() // tested in "set HTTP headers" + properties.getLeaseStatus() == LeaseStatusType.UNLOCKED + properties.getLeaseState() == LeaseStateType.AVAILABLE + !properties.getLeaseDuration() // tested in "acquire lease" + !properties.getCopyId() // tested in "abort copy" + !properties.getCopyStatus() // tested in "copy" + !properties.getCopySource() // tested in "copy" + !properties.getCopyProgress() // tested in "copy" + !properties.getCopyCompletionTime() // tested in "copy" + !properties.getCopyStatusDescription() // only returned when the service has errors; cannot validate. + properties.isServerEncrypted() + !properties.isIncrementalCopy() // tested in PageBlob."start incremental copy" + properties.getAccessTier() == AccessTier.HOT + properties.getArchiveStatus() == null + !properties.getMetadata() // new file does not have default metadata associated + !properties.getAccessTierChangeTime() + !properties.getEncryptionKeySha256() + + } + + def "Get properties min"() { + expect: + fc.getPropertiesWithResponse(null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Get properties AC"() { + setup: + def drc = new DataLakeRequestConditions() + .setLeaseId(setupPathLeaseCondition(fc, leaseID)) + .setIfMatch(setupPathMatchCondition(fc, match)) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.getPropertiesWithResponse(drc, 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 "Get properties AC fail"() { + setup: + def drc = new DataLakeRequestConditions() + .setLeaseId(setupPathLeaseCondition(fc, leaseID)) + .setIfMatch(match) + .setIfNoneMatch(setupPathMatchCondition(fc, noneMatch)) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.getPropertiesWithResponse(drc, null, null) + + then: + thrown(BlobStorageException) + + 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 "Get properties error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.getProperties() + + then: + thrown(BlobStorageException) + } + + def "Set HTTP headers null"() { + setup: + def response = fc.setHttpHeadersWithResponse(null, null, null, null) + + expect: + response.getStatusCode() == 200 + validateBasicHeaders(response.getHeaders()) + } + + def "Set HTTP headers min"() { + setup: + def properties = fc.getProperties() + def headers = new PathHttpHeaders() + .setContentEncoding(properties.getContentEncoding()) + .setContentDisposition(properties.getContentDisposition()) + .setContentType("type") + .setCacheControl(properties.getCacheControl()) + .setContentLanguage(properties.getContentLanguage()) + .setContentMd5(Base64.getEncoder().encode(MessageDigest.getInstance("MD5").digest(defaultData.array()))) + + fc.setHttpHeaders(headers) + + expect: + fc.getProperties().getContentType() == "type" + } + + @Unroll + def "Set HTTP headers headers"() { + setup: + fc.append(new ByteArrayInputStream(defaultData.array()), 0, defaultDataSize) + fc.flush(defaultDataSize) + def putHeaders = new PathHttpHeaders() + .setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentMd5(contentMD5) + .setContentType(contentType) + + fc.setHttpHeaders(putHeaders) + + expect: + validatePathProperties( + fc.getPropertiesWithResponse(null, null, null), + cacheControl, contentDisposition, contentEncoding, contentLanguage, contentMD5, contentType) + + where: + cacheControl | contentDisposition | contentEncoding | contentLanguage | contentMD5 | contentType + null | null | null | null | null | null + "control" | "disposition" | "encoding" | "language" | Base64.getEncoder().encode(MessageDigest.getInstance("MD5").digest(defaultData.array())) | "type" + } + + @Unroll + def "Set HTTP headers AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.setHttpHeadersWithResponse(null, drc, 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 "Set HTTP headers AC fail"() { + setup: + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.setHttpHeadersWithResponse(null, drc, null, null) + + then: + thrown(BlobStorageException) + + 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 HTTP headers error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.setHttpHeaders(null) + + then: + thrown(BlobStorageException) + } + + def "Set metadata min"() { + setup: + def metadata = new HashMap() + metadata.put("foo", "bar") + + when: + fc.setMetadata(metadata) + + then: + fc.getProperties().getMetadata() == metadata + } + + @Unroll + def "Set metadata metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null && value1 != null) { + metadata.put(key1, value1) + } + if (key2 != null && value2 != null) { + metadata.put(key2, value2) + } + + expect: + fc.setMetadataWithResponse(metadata, null, null, null).getStatusCode() == statusCode + fc.getProperties().getMetadata() == metadata + + where: + key1 | value1 | key2 | value2 || statusCode + null | null | null | null || 200 + "foo" | "bar" | "fizz" | "buzz" || 200 + } + + @Unroll + def "Set metadata AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.setMetadataWithResponse(null, drc, 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 "Set metadata AC fail"() { + setup: + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.setMetadataWithResponse(null, drc, null, null) + + then: + thrown(BlobStorageException) + + 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 metadata error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.setMetadata(null) + + then: + thrown(BlobStorageException) + } + + def "Read all null"() { + when: + def stream = new ByteArrayOutputStream() + def response = fc.readWithResponse(stream, null, null, null, false, null, null) + def body = ByteBuffer.wrap(stream.toByteArray()) + def headers = response.getHeaders() + + then: + body == defaultData + headers.toMap().keySet().stream().noneMatch({ it.startsWith("x-ms-meta-") }) + headers.getValue("Content-Length") != null + headers.getValue("Content-Type") != null + headers.getValue("Content-Range") == null + headers.getValue("Content-Encoding") == null + headers.getValue("Cache-Control") == null + headers.getValue("Content-Disposition") == null + headers.getValue("Content-Language") == null + headers.getValue("x-ms-blob-sequence-number") == null + headers.getValue("x-ms-copy-completion-time") == null + headers.getValue("x-ms-copy-status-description") == null + headers.getValue("x-ms-copy-id") == null + headers.getValue("x-ms-copy-progress") == null + headers.getValue("x-ms-copy-source") == null + headers.getValue("x-ms-copy-status") == null + headers.getValue("x-ms-lease-duration") == null + headers.getValue("x-ms-lease-state") == LeaseStateType.AVAILABLE.toString() + headers.getValue("x-ms-lease-status") == LeaseStatusType.UNLOCKED.toString() + headers.getValue("Accept-Ranges") == "bytes" + headers.getValue("x-ms-blob-committed-block-count") == null + headers.getValue("x-ms-server-encrypted") != null + headers.getValue("x-ms-blob-content-md5") == null + } + + def "Read empty file"() { + setup: + fc = fsc.getFileClient("emptyFile") + fc.create() + + when: + def outStream = new ByteArrayOutputStream() + fc.read(outStream) + def result = outStream.toByteArray() + + then: + notThrown(BlobStorageException) + result.length == 0 + } + + /* + This is to test the appropriate integration of DownloadResponse, including setting the correct range values on + HttpGetterInfo. + */ + + def "Read with retry range"() { + /* + We are going to make a request for some range on a blob. The Flux returned will throw an exception, forcing + a retry per the DownloadRetryOptions. The next request should have the same range header, which was generated + from the count and offset values in HttpGetterInfo that was constructed on the initial call to download. We + don't need to check the data here, but we want to ensure that the correct range is set each time. This will + test the correction of a bug that was found which caused HttpGetterInfo to have an incorrect offset when it was + constructed in BlobClient.download(). + */ + setup: + def fileClient = getFileClient(primaryCredential, fc.getPathUrl(), new MockRetryRangeResponsePolicy()) + + when: + def range = new FileRange(2, 5L) + def options = new DownloadRetryOptions().setMaxRetryRequests(3) + fileClient.readWithResponse(new ByteArrayOutputStream(), range, options, null, false, null, null) + + then: + /* + Because the dummy Flux always throws an error. This will also validate that an IllegalArgumentException is + NOT thrown because the types would not match. + */ + def e = thrown(RuntimeException) + e.getCause() instanceof IOException + } + + def "Read min"() { + when: + def outStream = new ByteArrayOutputStream() + fc.read(outStream) + def result = outStream.toByteArray() + + then: + result == defaultData.array() + } + + @Unroll + def "Read range"() { + setup: + def range = (count == null) ? new FileRange(offset) : new FileRange(offset, count) + + when: + def outStream = new ByteArrayOutputStream() + fc.readWithResponse(outStream, range, null, null, false, null, null) + String bodyStr = outStream.toString() + + then: + bodyStr == expectedData + + where: + offset | count || expectedData + 0 | null || defaultText + 0 | 5L || defaultText.substring(0, 5) + 3 | 2L || defaultText.substring(3, 3 + 2) + } + + @Unroll + def "Read AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + def response = fc.readWithResponse(new ByteArrayOutputStream(), null, null, drc, false, null, null) + + then: + response.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 "Read AC fail"() { + setup: + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(setupPathMatchCondition(fc, noneMatch)) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.readWithResponse(new ByteArrayOutputStream(), null, null, drc, false, null, null).getStatusCode() + + then: + thrown(BlobStorageException) + + 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 "Read md5"() { + when: + def response = fc.readWithResponse(new ByteArrayOutputStream(), new FileRange(0, 3), null, null, true, null, null) + def contentMD5 = response.getHeaders().getValue("content-md5").getBytes() + + then: + contentMD5 == Base64.getEncoder().encode(MessageDigest.getInstance("MD5").digest(defaultText.substring(0, 3).getBytes())) + } + + def "Read error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.read(null) + + then: + thrown(NullPointerException) + } + + def "Rename min"() { + expect: + fc.renameWithResponse(generatePathName(), null, null, null, null).getStatusCode() == 201 + } + + def "Rename with response"() { + when: + def resp = fc.renameWithResponse(generatePathName(), null, null, null, null) + + def renamedClient = resp.getValue() + renamedClient.getProperties() + + then: + notThrown(StorageErrorException) + + when: + fc.getProperties() + + then: + thrown(BlobStorageException) + } + + def "Rename error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.renameWithResponse(generatePathName(), null, null, null, null) + + then: + thrown(StorageErrorException) + } + + @Unroll + def "Rename source AC"() { + setup: + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.renameWithResponse(generatePathName(), drc, null, null, null).getStatusCode() == 201 + + 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 "Rename source AC fail"() { + setup: + fc = fsc.getFileClient(generatePathName()) + fc.create() + + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.renameWithResponse(generatePathName(), drc, null, null, null) + + then: + thrown(StorageErrorException) + + 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 "Rename dest AC"() { + setup: + def pathName = generatePathName() + def destFile = fsc.getFileClient(pathName) + destFile.create() + match = setupPathMatchCondition(destFile, match) + leaseID = setupPathLeaseCondition(destFile, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fc.renameWithResponse(pathName, null, drc, null, null).getStatusCode() == 201 + + 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 "Rename dest AC fail"() { + setup: + def pathName = generatePathName() + def destFile = fsc.getFileClient(pathName) + destFile.create() + noneMatch = setupPathMatchCondition(destFile, noneMatch) + setupPathLeaseCondition(destFile, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.renameWithResponse(pathName, null, drc, null, null) + + then: + thrown(StorageErrorException) + + 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 "Append data min"() { + when: + fc.append(new ByteArrayInputStream(defaultData.array()), 0, defaultDataSize) + + then: + notThrown(StorageErrorException) + } + + def "Append data"() { + setup: + def response = fc.appendWithResponse(defaultInputStream.get(), 0, defaultDataSize, null, null, null, null) + def headers = response.getHeaders() + + expect: + response.getStatusCode() == 202 + headers.getValue("x-ms-request-id") != null + headers.getValue("x-ms-version") != null + headers.getValue("Date") != null + Boolean.parseBoolean(headers.getValue("x-ms-request-server-encrypted")) + } + + def "Append data md5"() { + setup: + fc = fsc.getFileClient(generatePathName()) + fc.create() + def md5 = MessageDigest.getInstance("MD5").digest(defaultText.getBytes()) + def response = fc.appendWithResponse(defaultInputStream.get(), 0, defaultDataSize, md5, null, null, null) + def headers = response.getHeaders() + + expect: + response.getStatusCode() == 202 + headers.getValue("x-ms-request-id") != null + headers.getValue("x-ms-version") != null + headers.getValue("Date") != null + Boolean.parseBoolean(headers.getValue("x-ms-request-server-encrypted")) + } + + @Unroll + def "Append data illegal arguments"() { + when: + fc.append(data == null ? null : data.get(), 0, dataSize) + + then: + thrown(exceptionType) + + where: + data | dataSize | exceptionType + null | defaultDataSize | NullPointerException + defaultInputStream | defaultDataSize + 1 | UnexpectedLengthException + defaultInputStream | defaultDataSize - 1 | UnexpectedLengthException + } + + def "Append data empty body"() { + when: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(new ByteArrayInputStream(new byte[0]), 0, 0) + + then: + thrown(StorageErrorException) + } + + def "Append data null body"() { + when: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(null, 0, 0) + + then: + thrown(NullPointerException) + } + + def "Append data lease"() { + setup: + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + + expect: + fc.appendWithResponse(defaultInputStream.get(), 0, defaultDataSize, null, leaseID, null, null).getStatusCode() == 202 + } + + def "Append data lease fail"() { + setup: + setupPathLeaseCondition(fc, receivedLeaseID) + + when: + fc.appendWithResponse(defaultInputStream.get(), 0, defaultDataSize, null, garbageLeaseID, null, null) + + then: + def e = thrown(StorageErrorException) + e.getResponse().getStatusCode() == 412 + } + + def "Append data error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.appendWithResponse(defaultInputStream.get(), 0, defaultDataSize, null, null, null, null) + + then: + def e = thrown(StorageErrorException) + e.getResponse().getStatusCode() == 404 + } + + def "Flush data min"() { + when: + fc.append(new ByteArrayInputStream(defaultData.array()), 0, defaultDataSize) + fc.flush(defaultDataSize) + + then: + notThrown(StorageErrorException) + } + + def "Flush close"() { + when: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + fc.flushWithResponse(defaultDataSize, false, true, null, null, null, null) + + then: + notThrown(StorageErrorException) + } + + def "Flush retain uncommitted data "() { + when: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + fc.flushWithResponse(defaultDataSize, true, false, null, null, null, null) + + then: + notThrown(StorageErrorException) + } + + def "Flush IA"() { + when: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + fc.flushWithResponse(4, false, false, null, null, null, null) + + then: + thrown(StorageErrorException) + } + + @Unroll + def "Flush headers"() { + setup: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + def headers = new PathHttpHeaders().setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentType(contentType) + + when: + fc.flushWithResponse(defaultDataSize, false, false, headers, null, 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 "Flush AC"() { + setup: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + + match = setupPathMatchCondition(fc, match) + leaseID = setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + fc.flushWithResponse(defaultDataSize, false, false, null, drc, 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 "Flush AC fail"() { + setup: + fc = fsc.getFileClient(generatePathName()) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fc.flushWithResponse(defaultDataSize, false, false, null, drc, null, null) + then: + thrown(StorageErrorException) + + 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 "Flush error"() { + setup: + fc = fsc.getFileClient(generatePathName()) + + when: + fc.flush(1) + + then: + thrown(StorageErrorException) + } + +} 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 new file mode 100644 index 0000000000000..daeb0167f8c12 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/FileSystemAPITest.groovy @@ -0,0 +1,919 @@ +package com.azure.storage.file.datalake + +import com.azure.core.util.Context +import com.azure.storage.blob.models.BlobErrorCode +import com.azure.storage.blob.models.BlobStorageException + +import com.azure.storage.file.datalake.implementation.models.StorageErrorException +import com.azure.storage.file.datalake.models.* +import spock.lang.Unroll + +class FileSystemAPITest extends APISpec { + + def "Create all null"() { + setup: + // Overwrite the existing fsc, which has already been created + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + def response = fsc.createWithResponse(null, null, null, null) + + then: + response.getStatusCode() == 201 + validateBasicHeaders(response.getHeaders()) + } + + def "Create min"() { + when: + def fsc = primaryDataLakeServiceClient.createFileSystem(generateFileSystemName()) + + then: + fsc.getProperties() + + notThrown(Exception) + } + + @Unroll + def "Create 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.createWithResponse(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 publicAccess"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + fsc.createWithResponse(null, publicAccess, null, null) + def access = fsc.getProperties().getPublicAccess() + + then: + access == publicAccess + + where: + publicAccess | _ + PublicAccessType.BLOB | _ + PublicAccessType.CONTAINER | _ + null | _ + } + + def "Create error"() { + when: + fsc.create() + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 409 + e.getErrorCode() == BlobErrorCode.CONTAINER_ALREADY_EXISTS + e.getServiceMessage().contains("The specified container already exists.") + } + + def "Get properties null"() { + when: + def response = fsc.getPropertiesWithResponse(null, null, null) + + then: + validateBasicHeaders(response.getHeaders()) + response.getValue().getPublicAccess() == null + !response.getValue().hasImmutabilityPolicy() + !response.getValue().hasLegalHold() + response.getValue().getLeaseDuration() == null + response.getValue().getLeaseState() == LeaseStateType.AVAILABLE + response.getValue().getLeaseStatus() == LeaseStatusType.UNLOCKED + response.getValue().getMetadata().size() == 0 + } + + def "Get properties min"() { + expect: + fsc.getProperties() != null + } + + def "Get properties lease"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + expect: + fsc.getPropertiesWithResponse(leaseID, null, null).getStatusCode() == 200 + } + + def "Get properties lease fail"() { + when: + fsc.getPropertiesWithResponse("garbage", null, null) + + then: + thrown(BlobStorageException) + } + + def "Get properties error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + fsc.getProperties() + + then: + thrown(BlobStorageException) + } + + def "Set metadata"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + def metadata = new HashMap() + metadata.put("key", "value") + fsc.createWithResponse(metadata, null, null, null) + + when: + def response = fsc.setMetadataWithResponse(null, null, null, null) + + then: + response.getStatusCode() == 200 + validateBasicHeaders(response.getHeaders()) + fsc.getPropertiesWithResponse(null, null, null).getValue().getMetadata().size() == 0 + } + + def "Set metadata min"() { + setup: + def metadata = new HashMap() + metadata.put("foo", "bar") + + when: + fsc.setMetadata(metadata) + + then: + fsc.getPropertiesWithResponse(null, null, null).getValue().getMetadata() == metadata + } + + @Unroll + def "Set metadata metadata"() { + setup: + def metadata = new HashMap() + if (key1 != null) { + metadata.put(key1, value1) + } + if (key2 != null) { + metadata.put(key2, value2) + } + + expect: + fsc.setMetadataWithResponse(metadata, null, null, null).getStatusCode() == 200 + fsc.getPropertiesWithResponse(null, null, null).getValue().getMetadata() == metadata + + where: + key1 | value1 | key2 | value2 + null | null | null | null + "foo" | "bar" | "fizz" | "buzz" + } + + @Unroll + def "Set metadata AC"() { + setup: + leaseID = setupFileSystemLeaseCondition(fsc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfModifiedSince(modified) + + expect: + fsc.setMetadataWithResponse(null, drc, null, null).getStatusCode() == 200 + + where: + modified | leaseID + null | null + oldDate | null + null | receivedLeaseID + } + + @Unroll + def "Set metadata AC fail"() { + setup: + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfModifiedSince(modified) + + when: + fsc.setMetadataWithResponse(null, drc, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | leaseID + newDate | null + null | garbageLeaseID + } + + @Unroll + def "Set metadata AC illegal"() { + setup: + def drc = new DataLakeRequestConditions() + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfUnmodifiedSince(unmodified) + + when: + fsc.setMetadataWithResponse(null, drc, null, null) + + then: + thrown(UnsupportedOperationException) + + where: + unmodified | match | noneMatch + newDate | null | null + null | receivedEtag | null + null | null | garbageEtag + } + + def "Set metadata error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + fsc.setMetadata(null) + + then: + thrown(BlobStorageException) + } + + def "Delete"() { + when: + def response = fsc.deleteWithResponse(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 min"() { + when: + fsc.delete() + + and: + fsc.getProperties() + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.CONTAINER_NOT_FOUND + e.getServiceMessage().contains("The specified container does not exist.") + } + + @Unroll + def "Delete AC"() { + setup: + leaseID = setupFileSystemLeaseCondition(fsc, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + expect: + fsc.deleteWithResponse(drc, null, null).getStatusCode() == 202 + + where: + modified | unmodified | leaseID + null | null | null + oldDate | null | null + null | newDate | null + null | null | receivedLeaseID + } + + @Unroll + def "Delete AC fail"() { + setup: + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fsc.deleteWithResponse(drc, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified | leaseID + newDate | null | null + null | oldDate | null + null | null | garbageLeaseID + } + + @Unroll + def "Delete AC illegal"() { + setup: + def drc = new DataLakeRequestConditions() + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + when: + fsc.deleteWithResponse(drc, null, null) + + then: + thrown(UnsupportedOperationException) + + where: + match | noneMatch + receivedEtag | null + null | garbageEtag + } + + def "Delete error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + fsc.delete() + + then: + thrown(BlobStorageException) + } + + def "Create file min"() { + when: + fsc.createFile(generatePathName()) + + then: + notThrown(StorageErrorException) + } + + def "Create file defaults"() { + when: + def createResponse = fsc.createFileWithResponse(generatePathName(), null, null, null, null, null, null, null) + + then: + createResponse.getStatusCode() == 201 + validateBasicHeaders(createResponse.getHeaders()) + } + + def "Create file error"() { + when: + fsc.createFileWithResponse(generatePathName(), null, null, + new DataLakeRequestConditions().setIfMatch("garbage"), null, null, null, + Context.NONE) + + then: + thrown(StorageErrorException) + } + + @Unroll + def "Create 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.createFileWithResponse(generatePathName(), headers, null, null, null, null, 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 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.createFileWithResponse(generatePathName(), null, metadata, null, null, null, null, null).getValue() + def response = client.getProperties() + + then: + response.getMetadata() == metadata + + where: + key1 | value1 | key2 | value2 + null | null | null | null + "foo" | "bar" | "fizz" | "buzz" + } + + @Unroll + def "Create file AC"() { + setup: + def pathName = generatePathName() + def client = fsc.getFileClient(pathName) + client.create() + match = setupPathMatchCondition(client, match) + leaseID = setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + fsc.createFileWithResponse(pathName, null, null, drc, null, null, null, null).getStatusCode() == 201 + + 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 "Create file AC fail"() { + setup: + def pathName = generatePathName() + def client = fsc.getFileClient(pathName) + client.create() + noneMatch = setupPathMatchCondition(client, noneMatch) + setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fsc.createFileWithResponse(pathName, null, null, drc, null, null, null, Context.NONE) + + then: + thrown(StorageErrorException) + + 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 file permissions and umask"() { + setup: + def permissions = "0777" + def umask = "0057" + + expect: + fsc.createFileWithResponse(generatePathName(), null, null, null, permissions, umask, null, Context.NONE).getStatusCode() == 201 + } + + def "Delete file min"() { + expect: + def pathName = generatePathName() + fsc.createFile(pathName) + fsc.deleteFileWithResponse(pathName, null, null, null).getStatusCode() == 200 + } + + def "Delete file file does not exist anymore"() { + when: + def pathName = generatePathName() + def client = fsc.createFile(pathName) + fsc.deleteFileWithResponse(pathName, null, null, null) + client.getPropertiesWithResponse(null, null, null) + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.BLOB_NOT_FOUND +// e.getServiceMessage().contains("The specified blob does not exist.") + } + + @Unroll + def "Delete 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) + + expect: + fsc.deleteFileWithResponse(pathName, drc, 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 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) + + when: + fsc.deleteFileWithResponse(pathName, drc, null, null).getStatusCode() + + then: + thrown(StorageErrorException) + + 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: + def dir = fsc.getDirectoryClient(generatePathName()) + dir.create() + + then: + notThrown(StorageErrorException) + } + + def "Create dir defaults"() { + when: + def createResponse = fsc.createDirectoryWithResponse(generatePathName(), null, null, null, null, null, null, null) + + then: + createResponse.getStatusCode() == 201 + validateBasicHeaders(createResponse.getHeaders()) + } + + def "Create dir error"() { + when: + fsc.createDirectoryWithResponse(generatePathName(), null, null, + new DataLakeRequestConditions().setIfMatch("garbage"), null, null, null, + Context.NONE) + + then: + thrown(Exception) + } + + @Unroll + def "Create 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.createDirectoryWithResponse(generatePathName(), headers, null, null, null, null, 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 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.createDirectoryWithResponse(generatePathName(), null, metadata, null, null, null, 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" + } + + @Unroll + def "Create dir AC"() { + setup: + def pathName = generatePathName() + def client = fsc.getDirectoryClient(pathName) + client.create() + match = setupPathMatchCondition(client, match) + leaseID = setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + + expect: + fsc.createDirectoryWithResponse(pathName, null, null, drc, null, null, null, null).getStatusCode() == 201 + + 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 "Create dir AC fail"() { + setup: + def pathName = generatePathName() + def client = fsc.getDirectoryClient(pathName) + client.create() + noneMatch = setupPathMatchCondition(client, noneMatch) + setupPathLeaseCondition(client, leaseID) + def drc = new DataLakeRequestConditions() + .setLeaseId(leaseID) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + + when: + fsc.createDirectoryWithResponse(pathName, null, null, drc, null, null, null, Context.NONE) + + then: + thrown(Exception) + + 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 permissions and umask"() { + setup: + def permissions = "0777" + def umask = "0057" + + expect: + fsc.createDirectoryWithResponse(generatePathName(), null, null, null, permissions, umask, null, Context.NONE).getStatusCode() == 201 + } + + def "Delete dir min"() { + expect: + def pathName = generatePathName() + fsc.createDirectory(pathName) + fsc.deleteDirectoryWithResponse(pathName, false, null, null, null).getStatusCode() == 200 + } + + def "Delete dir recursive"() { + expect: + def pathName = generatePathName() + fsc.createDirectory(pathName) + fsc.deleteDirectoryWithResponse(pathName, true, null, null, null).getStatusCode() == 200 + } + + def "Delete dir dir does not exist anymore"() { + when: + def pathName = generatePathName() + def client = fsc.createDirectory(pathName) + fsc.deleteDirectoryWithResponse(pathName, false, null, null, null) + client.getPropertiesWithResponse(null, null, null) + + then: + def e = thrown(BlobStorageException) + e.getResponse().getStatusCode() == 404 + e.getErrorCode() == BlobErrorCode.BLOB_NOT_FOUND +// e.getServiceMessage().contains("The specified blob does not exist.") + } + + @Unroll + def "Delete 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) + + expect: + fsc.deleteDirectoryWithResponse(pathName, false, drc, 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 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) + + when: + fsc.deleteDirectoryWithResponse(pathName, false, drc, null, null).getStatusCode() + + then: + thrown(StorageErrorException) + + 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() + fsc.getFileClient(fileName).create() + + when: + def response = fsc.listPaths().iterator() + + then: + def dirPath = response.next() + dirPath.getName() == dirName +// dirPath.getETag() + dirPath.getGroup() + dirPath.getLastModified() + dirPath.getOwner() + dirPath.getPermissions() +// dirPath.getContentLength() + dirPath.isDirectory() + + response.hasNext() + def filePath = response.next() + filePath.getName() == fileName +// filePath.getETag() + filePath.getGroup() + filePath.getLastModified() + filePath.getOwner() + filePath.getPermissions() +// filePath.getContentLength() + !filePath.isDirectory() + + !response.hasNext() + } + + def "List paths recursive"() { + setup: + def dirName = generatePathName() + fsc.getDirectoryClient(dirName).create() + + def fileName = generatePathName() + fsc.getFileClient(fileName).create() + + when: + def response = fsc.listPaths(new ListPathsOptions().setRecursive(true), null).iterator() + + then: + def dirPath = response.next() + response.hasNext() + def filePath = response.next() + !response.hasNext() + } + + def "List paths return upn"() { + setup: + def dirName = generatePathName() + fsc.getDirectoryClient(dirName).create() + + def fileName = generatePathName() + fsc.getFileClient(fileName).create() + + when: + def response = fsc.listPaths(new ListPathsOptions().setReturnUpn(true), null).iterator() + + then: + def dirPath = response.next() + response.hasNext() + def filePath = response.next() + !response.hasNext() + } + + def "List paths max results"() { + setup: + def dirName = generatePathName() + fsc.getDirectoryClient(dirName).create() + + def fileName = generatePathName() + fsc.getFileClient(fileName).create() + + when: + def response = fsc.listPaths(new ListPathsOptions().setMaxResults(1), null).iterator() + + then: + def dirPath = response.next() + response.hasNext() + def filePath = response.next() + !response.hasNext() + } + +// def "List paths path"() { +// setup: +// def dirName = generatePathName() +// fsc.getDirectoryClient("foo").create() +// +// def fileName = generatePathName() +// fsc.getFileClient(fileName).create() +// +// when: +// def response = fsc.listPaths(new ListPathsOptions().setPath("foo"), null).iterator() +// +// then: +// def dirPath = response.next() +//// response.hasNext() +//// def filePath = response.next() +// !response.hasNext() +// } + +// setupFileSystemForGetPaths() {} + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/LeaseAPITest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/LeaseAPITest.groovy new file mode 100644 index 0000000000000..d4f7d42c21435 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/LeaseAPITest.groovy @@ -0,0 +1,915 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake + +import com.azure.core.http.RequestConditions +import com.azure.storage.blob.models.BlobStorageException +import com.azure.storage.file.datalake.models.LeaseDurationType +import com.azure.storage.file.datalake.models.LeaseStateType +import spock.lang.Unroll + +class LeaseAPITest extends APISpec { + private DataLakeFileClient createPathClient() { + def fc = fsc.getFileClient(generatePathName()) + fc.create() + return fc + } + + @Unroll + def "Acquire file lease"() { + setup: + def fc = createPathClient() + def leaseClient = createLeaseClient(fc, proposedID) + + when: + def leaseId = leaseClient.acquireLease(leaseTime) + + then: + leaseId != null + + when: + def response = fc.getPropertiesWithResponse(null, null, null) + def properties = response.getValue() + def headers = response.getHeaders() + + then: + properties.getLeaseState() == leaseState + properties.getLeaseDuration() == leaseDuration + validateBasicHeaders(headers) + + where: + proposedID | leaseTime || leaseState | leaseDuration + null | -1 || LeaseStateType.LEASED | LeaseDurationType.INFINITE + null | 25 || LeaseStateType.LEASED | LeaseDurationType.FIXED + UUID.randomUUID().toString() | -1 || LeaseStateType.LEASED | LeaseDurationType.INFINITE + } + + def "Acquire file lease min"() { + expect: + createLeaseClient(createPathClient()) + .acquireLeaseWithResponse(-1, null, null, null) + .getStatusCode() == 201 + } + + @Unroll + def "Acquire file lease duration fail"() { + setup: + def leaseClient = createLeaseClient(createPathClient()) + + when: + leaseClient.acquireLease(duration) + + then: + thrown(BlobStorageException) + + where: + duration | _ + -10 | _ + 10 | _ + 70 | _ + } + + @Unroll + def "Acquire file lease AC"() { + setup: + def fc = createPathClient() + match = setupPathMatchCondition(fc, match) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + expect: + createLeaseClient(fc) + .acquireLeaseWithResponse(-1, mac, null, null) + .getStatusCode() == 201 + + where: + modified | unmodified | match | noneMatch + null | null | null | null + oldDate | null | null | null + null | newDate | null | null + null | null | receivedEtag | null + null | null | null | garbageEtag + } + + @Unroll + def "Acquire file lease AC fail"() { + setup: + def fc = createPathClient() + noneMatch = setupPathMatchCondition(fc, noneMatch) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fc).acquireLeaseWithResponse(-1, mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified | match | noneMatch + newDate | null | null | null + null | oldDate | null | null + null | null | garbageEtag | null + null | null | null | receivedEtag + } + + def "Acquire file lease error"() { + setup: + def fc = fsc.getFileClient(generatePathName()) + + when: + createLeaseClient(fc).acquireLease(20) + + then: + thrown(BlobStorageException) + } + + def "Renew file lease"() { + setup: + def fc = createPathClient() + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + + // If running in live mode wait for the lease to expire to ensure we are actually renewing it + sleepIfRecord(16000) + def renewLeaseResponse = createLeaseClient(fc, leaseID).renewLeaseWithResponse(null, null, null) + + expect: + fc.getProperties().getLeaseState() == LeaseStateType.LEASED + validateBasicHeaders(renewLeaseResponse.getHeaders()) + renewLeaseResponse.getValue() != null + } + + def "Renew file lease min"() { + setup: + def fc = createPathClient() + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + + expect: + createLeaseClient(fc, leaseID) + .renewLeaseWithResponse(null, null, null) + .getStatusCode() == 200 + } + + @Unroll + def "Renew file lease AC"() { + setup: + def fc = createPathClient() + match = setupPathMatchCondition(fc, match) + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + expect: + createLeaseClient(fc, leaseID) + .renewLeaseWithResponse(mac, null, null) + .getStatusCode() == 200 + + where: + modified | unmodified | match | noneMatch + null | null | null | null + oldDate | null | null | null + null | newDate | null | null + null | null | receivedEtag | null + null | null | null | garbageEtag + } + + @Unroll + def "Renew file lease AC fail"() { + setup: + def fc = createPathClient() + noneMatch = setupPathMatchCondition(fc, noneMatch) + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fc, leaseID).renewLeaseWithResponse(mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified | match | noneMatch + newDate | null | null | null + null | oldDate | null | null + null | null | garbageEtag | null + null | null | null | receivedEtag + } + + def "Renew file lease error"() { + setup: + def fc = fsc.getFileClient(generatePathName()) + + when: + createLeaseClient(fc, "id").renewLease() + + then: + thrown(BlobStorageException) + } + + def "Release file lease"() { + setup: + def fc = createPathClient() + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def headers = createLeaseClient(fc, leaseID).releaseLeaseWithResponse(null, null, null).getHeaders() + + expect: + fc.getProperties().getLeaseState() == LeaseStateType.AVAILABLE + validateBasicHeaders(headers) + } + + def "Release file lease min"() { + setup: + def fc = createPathClient() + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + + expect: + createLeaseClient(fc, leaseID).releaseLeaseWithResponse(null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Release file lease AC"() { + setup: + def fc = createPathClient() + match = setupPathMatchCondition(fc, match) + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + expect: + createLeaseClient(fc, leaseID).releaseLeaseWithResponse(mac, null, null).getStatusCode() == 200 + + where: + modified | unmodified | match | noneMatch + null | null | null | null + oldDate | null | null | null + null | newDate | null | null + null | null | receivedEtag | null + null | null | null | garbageEtag + } + + @Unroll + def "Release file lease AC fail"() { + setup: + def fc = createPathClient() + noneMatch = setupPathMatchCondition(fc, noneMatch) + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fc, leaseID).releaseLeaseWithResponse(mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified | match | noneMatch + newDate | null | null | null + null | oldDate | null | null + null | null | garbageEtag | null + null | null | null | receivedEtag + } + + def "Release file lease error"() { + setup: + def fc = fsc.getFileClient(generatePathName()) + + when: + createLeaseClient(fc, "id").releaseLease() + + then: + thrown(BlobStorageException) + } + + @Unroll + def "Break file lease"() { + setup: + def fc = createPathClient() + def leaseClient = createLeaseClient(fc, getRandomUUID()) + + when: + leaseClient.acquireLease(leaseTime) + def breakLeaseResponse = leaseClient.breakLeaseWithResponse(breakPeriod, null, null, null) + def leaseState = fc.getProperties().getLeaseState() + + then: + leaseState == LeaseStateType.BROKEN || leaseState == LeaseStateType.BREAKING + breakLeaseResponse.getValue() <= remainingTime + validateBasicHeaders(breakLeaseResponse.getHeaders()) + + where: + leaseTime | breakPeriod | remainingTime + -1 | null | 0 + -1 | 20 | 25 + 20 | 15 | 16 + } + + def "Break file lease min"() { + setup: + def fc = createPathClient() + setupPathLeaseCondition(fc, receivedLeaseID) + + expect: + createLeaseClient(fc).breakLeaseWithResponse(null, null, null, null).getStatusCode() == 202 + } + + @Unroll + def "Break file lease AC"() { + setup: + def fc = createPathClient() + match = setupPathMatchCondition(fc, match) + setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + expect: + createLeaseClient(fc).breakLeaseWithResponse(null, mac, null, null).getStatusCode() == 202 + + where: + modified | unmodified | match | noneMatch + null | null | null | null + oldDate | null | null | null + null | newDate | null | null + null | null | receivedEtag | null + null | null | null | garbageEtag + } + + @Unroll + def "Break file lease AC fail"() { + setup: + def fc = createPathClient() + noneMatch = setupPathMatchCondition(fc, noneMatch) + setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fc).breakLeaseWithResponse(null, mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified | match | noneMatch + newDate | null | null | null + null | oldDate | null | null + null | null | garbageEtag | null + null | null | null | receivedEtag + } + + def "Break file lease error"() { + setup: + def fc = createPathClient() + + when: + createLeaseClient(fc).breakLease() + + then: + thrown(BlobStorageException) + } + + def "Change file lease"() { + setup: + def fc = createPathClient() + def leaseClient = createLeaseClient(fc, getRandomUUID()) + leaseClient.acquireLease(15) + def changeLeaseResponse = leaseClient.changeLeaseWithResponse(getRandomUUID(), null, null, null) + def leaseClient2 = createLeaseClient(fc, changeLeaseResponse.getValue()) + + expect: + leaseClient2.releaseLeaseWithResponse(null, null, null).getStatusCode() == 200 + validateBasicHeaders(changeLeaseResponse.getHeaders()) + } + + def "Change file lease min"() { + setup: + def fc = createPathClient() + def leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + + expect: + createLeaseClient(fc, leaseID).changeLeaseWithResponse(getRandomUUID(), null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Change file lease AC"() { + setup: + def fc = createPathClient() + match = setupPathMatchCondition(fc, match) + String leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + expect: + createLeaseClient(fc, leaseID).changeLeaseWithResponse(getRandomUUID(), mac, null, null).getStatusCode() == 200 + + where: + modified | unmodified | match | noneMatch + null | null | null | null + oldDate | null | null | null + null | newDate | null | null + null | null | receivedEtag | null + null | null | null | garbageEtag + } + + @Unroll + def "Change file lease AC fail"() { + setup: + def fc = createPathClient() + noneMatch = setupPathMatchCondition(fc, noneMatch) + String leaseID = setupPathLeaseCondition(fc, receivedLeaseID) + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fc, leaseID).changeLeaseWithResponse(getRandomUUID(), mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified | match | noneMatch + newDate | null | null | null + null | oldDate | null | null + null | null | garbageEtag | null + null | null | null | receivedEtag + } + + def "Change file lease error"() { + setup: + def fc = fsc.getFileClient(generatePathName()) + + when: + createLeaseClient(fc, "id").changeLease("id") + + then: + thrown(BlobStorageException) + } + + + @Unroll + def "Acquire file system lease"() { + setup: + def leaseResponse = createLeaseClient(fsc, proposedID).acquireLeaseWithResponse(leaseTime, null, null, null) + + when: + def properties = fsc.getProperties() + + then: + leaseResponse.getValue() != null + validateBasicHeaders(leaseResponse.getHeaders()) + properties.getLeaseState() == leaseState + properties.getLeaseDuration() == leaseDuration + + where: + proposedID | leaseTime || leaseState | leaseDuration + null | -1 || LeaseStateType.LEASED | LeaseDurationType.INFINITE + null | 25 || LeaseStateType.LEASED | LeaseDurationType.FIXED + UUID.randomUUID().toString() | -1 || LeaseStateType.LEASED | LeaseDurationType.INFINITE + } + + def "Acquire file system lease min"() { + expect: + createLeaseClient(fsc).acquireLeaseWithResponse(-1, null, null, null).getStatusCode() == 201 + } + + @Unroll + def "Acquire file system lease duration fail"() { + setup: + def leaseClient = createLeaseClient(fsc) + + when: + leaseClient.acquireLease(duration) + + then: + thrown(BlobStorageException) + + where: + duration | _ + -10 | _ + 10 | _ + 70 | _ + } + + @Unroll + def "Acquire file system lease AC"() { + setup: + def mac = new RequestConditions() + .setIfModifiedSince(modified) + .setIfUnmodifiedSince(unmodified) + .setIfMatch(match) + .setIfNoneMatch(noneMatch) + + expect: + createLeaseClient(fsc).acquireLeaseWithResponse(-1, mac, null, null).getStatusCode() == 201 + + where: + modified | unmodified | match | noneMatch + null | null | null | null + oldDate | null | null | null + null | newDate | null | null + null | null | receivedEtag | null + null | null | null | garbageEtag + } + + @Unroll + def "Acquire file system lease AC fail"() { + setup: + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + when: + createLeaseClient(fsc).acquireLeaseWithResponse(-1, mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified + newDate | null + null | oldDate + } + + def "Acquire file system lease error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + createLeaseClient(fsc).acquireLease(50) + + then: + thrown(BlobStorageException) + } + + def "Renew file system lease"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + // If running in live mode wait for the lease to expire to ensure we are actually renewing it + sleepIfRecord(16000) + def renewLeaseResponse = createLeaseClient(fsc, leaseID).renewLeaseWithResponse(null, null, null) + + expect: + fsc.getProperties().getLeaseState() == LeaseStateType.LEASED + validateBasicHeaders(renewLeaseResponse.getHeaders()) + } + + def "Renew file system lease min"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + expect: + createLeaseClient(fsc, leaseID).renewLeaseWithResponse(null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Renew file system lease AC"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + expect: + createLeaseClient(fsc, leaseID).renewLeaseWithResponse(mac, null, null).getStatusCode() == 200 + + where: + modified | unmodified + null | null + oldDate | null + null | newDate + } + + @Unroll + def "Renew file system lease AC fail"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + when: + createLeaseClient(fsc, leaseID).renewLeaseWithResponse(mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified + newDate | null + null | oldDate + } + + @Unroll + def "Renew file system lease AC illegal"() { + setup: + def mac = new RequestConditions().setIfMatch(match).setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fsc, receivedEtag).renewLeaseWithResponse(mac, null, null) + + then: + thrown(BlobStorageException) + + where: + match | noneMatch + receivedEtag | null + null | garbageEtag + } + + def "Renew file system lease error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + createLeaseClient(fsc, "id").renewLease() + + then: + thrown(BlobStorageException) + } + + def "Release file system lease"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + def releaseLeaseResponse = createLeaseClient(fsc, leaseID).releaseLeaseWithResponse(null, null, null) + + expect: + fsc.getProperties().getLeaseState() == LeaseStateType.AVAILABLE + validateBasicHeaders(releaseLeaseResponse.getHeaders()) + } + + def "Release file system lease min"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + expect: + createLeaseClient(fsc, leaseID).releaseLeaseWithResponse(null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Release file system lease AC"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + expect: + createLeaseClient(fsc, leaseID).releaseLeaseWithResponse(mac, null, null).getStatusCode() == 200 + + where: + modified | unmodified + null | null + oldDate | null + null | newDate + } + + @Unroll + def "Release file system lease AC fail"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + when: + createLeaseClient(fsc, leaseID).releaseLeaseWithResponse(mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified + newDate | null + null | oldDate + } + + @Unroll + def "Release file system lease AC illegal"() { + setup: + def mac = new RequestConditions().setIfMatch(match).setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fsc, receivedLeaseID).releaseLeaseWithResponse(mac, null, null) + + then: + thrown(BlobStorageException) + + where: + match | noneMatch + receivedEtag | null + null | garbageEtag + } + + def "Release file system lease error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + createLeaseClient(fsc, "id").releaseLease() + + then: + thrown(BlobStorageException) + } + + @Unroll + def "Break file system lease"() { + setup: + def leaseClient = createLeaseClient(fsc, getRandomUUID()) + leaseClient.acquireLease(leaseTime) + + def breakLeaseResponse = leaseClient.breakLeaseWithResponse(breakPeriod, null, null, null) + def state = fsc.getProperties().getLeaseState() + + expect: + state == LeaseStateType.BROKEN || state == LeaseStateType.BREAKING + breakLeaseResponse.getValue() <= remainingTime + validateBasicHeaders(breakLeaseResponse.getHeaders()) + if (breakPeriod != null) { + // If running in live mode wait for the lease to break so we can delete the file system after the test completes + sleepIfRecord(breakPeriod * 1000) + } + + where: + leaseTime | breakPeriod | remainingTime + -1 | null | 0 + -1 | 20 | 25 + 20 | 15 | 16 + + } + + def "Break file system lease min"() { + setup: + setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + expect: + createLeaseClient(fsc).breakLeaseWithResponse(null, null, null, null).getStatusCode() == 202 + } + + @Unroll + def "Break file system lease AC"() { + setup: + setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + expect: + createLeaseClient(fsc).breakLeaseWithResponse(null, mac, null, null).getStatusCode() == 202 + + where: + modified | unmodified + null | null + oldDate | null + null | newDate + } + + @Unroll + def "Break file system lease AC fail"() { + setup: + setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + when: + createLeaseClient(fsc).breakLeaseWithResponse(null, mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified + newDate | null + null | oldDate + } + + @Unroll + def "Break file system lease AC illegal"() { + setup: + def mac = new RequestConditions().setIfMatch(match).setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fsc).breakLeaseWithResponse(null, mac, null, null) + + then: + thrown(BlobStorageException) + + where: + match | noneMatch + receivedEtag | null + null | garbageEtag + } + + def "Break file system lease error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + createLeaseClient(fsc).breakLease() + + then: + thrown(BlobStorageException) + } + + def "Change file system lease"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def leaseClient = createLeaseClient(fsc, leaseID) + def changeLeaseResponse = leaseClient.changeLeaseWithResponse(getRandomUUID(), null, null, null) + leaseID = changeLeaseResponse.getValue() + + expect: + createLeaseClient(fsc, leaseID).releaseLeaseWithResponse(null, null, null).getStatusCode() == 200 + validateBasicHeaders(changeLeaseResponse.getHeaders()) + } + + def "Change file system lease min"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + + expect: + createLeaseClient(fsc, leaseID).changeLeaseWithResponse(getRandomUUID(), null, null, null).getStatusCode() == 200 + } + + @Unroll + def "Change file system lease AC"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + expect: + createLeaseClient(fsc, leaseID).changeLeaseWithResponse(getRandomUUID(), mac, null, null).getStatusCode() == 200 + + where: + modified | unmodified + null | null + oldDate | null + null | newDate + } + + @Unroll + def "Change file system lease AC fail"() { + setup: + def leaseID = setupFileSystemLeaseCondition(fsc, receivedLeaseID) + def mac = new RequestConditions().setIfModifiedSince(modified).setIfUnmodifiedSince(unmodified) + + when: + createLeaseClient(fsc, leaseID).changeLeaseWithResponse(getRandomUUID(), mac, null, null) + + then: + thrown(BlobStorageException) + + where: + modified | unmodified + newDate | null + null | oldDate + } + + @Unroll + def "Change file system lease AC illegal"() { + setup: + def mac = new RequestConditions().setIfMatch(match).setIfNoneMatch(noneMatch) + + when: + createLeaseClient(fsc, receivedLeaseID).changeLeaseWithResponse(garbageLeaseID, mac, null, null) + + then: + thrown(BlobStorageException) + + where: + match | noneMatch + receivedEtag | null + null | garbageEtag + } + + def "Change file system lease error"() { + setup: + fsc = primaryDataLakeServiceClient.getFileSystemClient(generateFileSystemName()) + + when: + createLeaseClient(fsc, "id").changeLease("id") + + then: + thrown(BlobStorageException) + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/SASTest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/SASTest.groovy new file mode 100644 index 0000000000000..803d2c3d01335 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/SASTest.groovy @@ -0,0 +1,618 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake + +import com.azure.storage.blob.models.BlobStorageException +import com.azure.storage.common.implementation.Constants +import com.azure.storage.common.implementation.StorageImplUtils +import com.azure.storage.common.sas.* +import com.azure.storage.file.datalake.implementation.models.StorageErrorException +import com.azure.storage.file.datalake.models.FileRange +import com.azure.storage.file.datalake.models.UserDelegationKey +import com.azure.storage.file.datalake.sas.DataLakeServiceSasSignatureValues +import com.azure.storage.file.datalake.sas.FileSystemSasPermission +import com.azure.storage.file.datalake.sas.PathSasPermission +import spock.lang.Unroll + +import java.time.LocalDateTime +import java.time.OffsetDateTime +import java.time.ZoneOffset + +class SASTest extends APISpec { + + @Unroll + def "File range"() { + expect: + if (count == null) { + assert new FileRange(offset).toHeaderValue() == result + } else { + assert new FileRange(offset, count).toHeaderValue() == result + } + + + where: + offset | count || result + 0 | null || null + 0 | 5 || "bytes=0-4" + 5 | 10 || "bytes=5-14" + } + + @Unroll + def "File range IA"() { + when: + new FileRange(offset, count) + + then: + thrown(IllegalArgumentException) + + where: + offset | count + -1 | 5 + 0 | -1 + } + + def "serviceSASSignatureValues network test file"() { + setup: + def pathName = generatePathName() + def fc = getFileClient(primaryCredential, fsc.getFileSystemUrl(), pathName) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + fc.flush(defaultDataSize) + + def permissions = new PathSasPermission() + .setReadPermission(true) + .setWritePermission(true) + .setCreatePermission(true) + .setDeletePermission(true) + .setAddPermission(true) + def startTime = getUTCNow().minusDays(1) + def expiryTime = getUTCNow().plusDays(1) + def ipRange = new SasIpRange() + .setIpMin("0.0.0.0") + .setIpMax("255.255.255.255") + def sasProtocol = SasProtocol.HTTPS_HTTP + def cacheControl = "cache" + def contentDisposition = "disposition" + def contentEncoding = "encoding" + def contentLanguage = "language" + def contentType = "type" + + when: + def sas = new DataLakeServiceSasSignatureValues() + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .setStartTime(startTime) + .setProtocol(sasProtocol) + .setSasIpRange(ipRange) + .setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentType(contentType) + .setPathName(fc.getFilePath()) + .setFileSystemName(fc.getFileSystemName()) + .generateSasQueryParameters(primaryCredential) + .encode() + + def client = getFileClient(sas, fsc.getFileSystemUrl(), pathName) + + def os = new ByteArrayOutputStream() + client.read(os) + def properties = client.getProperties() + + then: + os.toString() == defaultText + properties.getCacheControl() == "cache" + properties.getContentDisposition() == "disposition" + properties.getContentEncoding() == "encoding" + properties.getContentLanguage() == "language" + notThrown(BlobStorageException) + } + + // Set Access Policy on File System not implemented yet +// def "serviceSASSignatureValues network test file system"() { +// setup: +// def identifier = new BlobSignedIdentifier() +// .setId("0000") +// .setAccessPolicy(new BlobAccessPolicy().setPermissions("racwdl") +// .setExpiresOn(getUTCNow().plusDays(1))) +// fsc.setAccessPolicy(null, Arrays.asList(identifier)) +// +// // Check containerSASPermissions +// def permissions = new FileSystemSasPermission() +// .setReadPermission(true) +// .setWritePermission(true) +// .setListPermission(true) +// .setCreatePermission(true) +// .setDeletePermission(true) +// .setAddPermission(true) +// .setListPermission(true) +// +// def expiryTime = getUTCNow().plusDays(1) +// +// when: +// def sasWithId = new DataLakeServiceSasSignatureValues() +// .setIdentifier(identifier.getId()) +// .setFileSystemName(fsc.getFileSystemName()) +// .generateSasQueryParameters(primaryCredential) +// .encode() +// +// def client1 = getFileSystemClient(sasWithId, fsc.getFileSystemUrl()) +// +// client1.listBlobs().iterator().hasNext() +// +// def sasWithPermissions = new DataLakeServiceSasSignatureValues() +// .setPermissions(permissions) +// .setExpiryTime(expiryTime) +// .setFileSystemName(fsc.getFileSystemName()) +// .generateSasQueryParameters(primaryCredential) +// .encode() +// def client2 = getFileSystemClient(sasWithPermissions, fsc.getFileSystemUrl()) +// +// client2.listBlobs().iterator().hasNext() +// +// then: +// notThrown(BlobStorageException) +// } + + def "serviceSASSignatureValues network test file user delegation"() { + setup: + def pathName = generatePathName() + def fc = fsc.getFileClient(pathName) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + fc.flush(defaultDataSize) + + def permissions = new PathSasPermission() + .setReadPermission(true) + .setWritePermission(true) + .setCreatePermission(true) + .setDeletePermission(true) + .setAddPermission(true) + + def startTime = getUTCNow().minusDays(1) + def expiryTime = getUTCNow().plusDays(1) + + def ipRange = new SasIpRange() + .setIpMin("0.0.0.0") + .setIpMax("255.255.255.255") + + def sasProtocol = SasProtocol.HTTPS_HTTP + def cacheControl = "cache" + def contentDisposition = "disposition" + def contentEncoding = "encoding" + def contentLanguage = "language" + def contentType = "type" + + def key = getOAuthServiceClient().getUserDelegationKey(null, expiryTime) + + def keyOid = getConfigValue(key.getSignedObjectId()) + key.setSignedObjectId(keyOid) + + def keyTid = getConfigValue(key.getSignedTenantId()) + key.setSignedTenantId(keyTid) + when: + def sas = new DataLakeServiceSasSignatureValues() + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .setStartTime(startTime) + .setProtocol(sasProtocol) + .setSasIpRange(ipRange) + .setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentType(contentType) + .setFileSystemName(fsc.getFileSystemName()) + .setPathName(fc.getFilePath()) + .setVersion(key.getSignedVersion()) + .generateSasQueryParameters(key, primaryCredential.getAccountName()) + .encode() + + then: + sas != null + + when: + def client = getFileClient(sas, fsc.getFileSystemUrl(), pathName) + + def os = new ByteArrayOutputStream() + client.read(os) + def properties = client.getProperties() + + then: + os.toString() == defaultText + properties.getCacheControl() == "cache" + properties.getContentDisposition() == "disposition" + properties.getContentEncoding() == "encoding" + properties.getContentLanguage() == "language" + notThrown(BlobStorageException) + } + + def "serviceSASSignatureValues network test file system user delegation"() { + setup: + def permissions = new FileSystemSasPermission() + .setReadPermission(true) + .setWritePermission(true) + .setCreatePermission(true) + .setDeletePermission(true) + .setAddPermission(true) + .setListPermission(true) + + def expiryTime = getUTCNow().plusDays(1) + + def key = getOAuthServiceClient().getUserDelegationKey(null, expiryTime) + + def keyOid = getConfigValue(key.getSignedObjectId()) + key.setSignedObjectId(keyOid) + + def keyTid = getConfigValue(key.getSignedTenantId()) + key.setSignedTenantId(keyTid) + when: + def sasWithPermissions = new DataLakeServiceSasSignatureValues() + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .setFileSystemName(fsc.getFileSystemName()) + .generateSasQueryParameters(key, primaryCredential.getAccountName()) + .encode() + + def client = getFileSystemClient(sasWithPermissions, fsc.getFileSystemUrl()) + client.listPaths().iterator().hasNext() + + then: + notThrown(BlobStorageException) + } + + def "accountSAS network test file read"() { + setup: + def pathName = generatePathName() + def fc = fsc.getFileClient(pathName) + fc.create() + fc.append(defaultInputStream.get(), 0, defaultDataSize) + fc.flush(defaultDataSize) + + def service = new AccountSasService() + .setBlobAccess(true) + def resourceType = new AccountSasResourceType() + .setContainer(true) + .setService(true) + .setObject(true) + def permissions = new AccountSasPermission() + .setReadPermission(true) + def expiryTime = getUTCNow().plusDays(1) + + when: + def sas = new AccountSasSignatureValues() + .setServices(service.toString()) + .setResourceTypes(resourceType.toString()) + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .generateSasQueryParameters(primaryCredential) + .encode() + def client = getFileClient(sas, fsc.getFileSystemUrl(), pathName).getBlockBlobClient() + def os = new ByteArrayOutputStream() + client.download(os) + + then: + os.toString() == defaultText + } + + def "accountSAS network test file delete fails"() { + setup: + def pathName = generatePathName() + def fc = fsc.getFileClient(pathName) + fc.create() + + def service = new AccountSasService() + .setBlobAccess(true) + def resourceType = new AccountSasResourceType() + .setContainer(true) + .setService(true) + .setObject(true) + def permissions = new AccountSasPermission() + .setReadPermission(true) + def expiryTime = getUTCNow().plusDays(1) + + when: + def sas = new AccountSasSignatureValues() + .setServices(service.toString()) + .setResourceTypes(resourceType.toString()) + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .generateSasQueryParameters(primaryCredential) + .encode() + def client = getFileClient(sas, fsc.getFileSystemUrl(), pathName) + client.delete() + + then: + thrown(StorageErrorException) + } + + def "accountSAS network create file system fails"() { + setup: + def service = new AccountSasService() + .setBlobAccess(true) + def resourceType = new AccountSasResourceType() + .setContainer(true) + .setService(true) + .setObject(true) + def permissions = new AccountSasPermission() + .setReadPermission(true) + .setCreatePermission(false) + def expiryTime = getUTCNow().plusDays(1) + + when: + def sas = new AccountSasSignatureValues() + .setServices(service.toString()) + .setResourceTypes(resourceType.toString()) + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .generateSasQueryParameters(primaryCredential) + .encode() + def sc = getServiceClient(sas, primaryDataLakeServiceClient.getAccountUrl()) + sc.createFileSystem(generateFileSystemName()) + + then: + thrown(BlobStorageException) + } + + def "accountSAS network create file system succeeds"() { + setup: + def service = new AccountSasService() + .setBlobAccess(true) + def resourceType = new AccountSasResourceType() + .setContainer(true) + .setService(true) + .setObject(true) + def permissions = new AccountSasPermission() + .setReadPermission(true) + .setCreatePermission(true) + def expiryTime = getUTCNow().plusDays(1) + + when: + def sas = new AccountSasSignatureValues() + .setServices(service.toString()) + .setResourceTypes(resourceType.toString()) + .setPermissions(permissions) + .setExpiryTime(expiryTime) + .generateSasQueryParameters(primaryCredential) + .encode() + def sc = getServiceClient(sas, primaryDataLakeServiceClient.getAccountUrl()) + sc.createFileSystem(generateFileSystemName()) + + then: + notThrown(BlobStorageException) + } + + /* + This test will ensure that each field gets placed into the proper location within the string to sign and that null + values are handled correctly. We will validate the whole SAS with service calls as well as correct serialization of + individual parts later. + */ + + @Unroll + def "serviceSasSignatures string to sign"() { + when: + def v = new DataLakeServiceSasSignatureValues() + def p = new PathSasPermission() + def expected = String.format(expectedStringToSign, primaryCredential.getAccountName()) + + p.setReadPermission(true) + v.setPermissions(p) + + v.setStartTime(startTime) + def e = OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC) + v.setExpiryTime(e) + + v.setFileSystemName("fileSystemName") + .setPathName("pathName") + if (ipRange != null) { + def ipR = new SasIpRange() + ipR.setIpMin("ip") + v.setSasIpRange(ipR) + } + v.setIdentifier(identifier) + .setProtocol(protocol) + .setCacheControl(cacheControl) + .setContentDisposition(disposition) + .setContentEncoding(encoding) + .setContentLanguage(language) + .setContentType(type) + + def token = v.generateSasQueryParameters(primaryCredential) + then: + token.getSignature() == primaryCredential.computeHmac256(expected) + + /* + We don't test the blob or containerName properties because canonicalized resource is always added as at least + /blob/accountName. We test canonicalization of resources later. Again, this is not to test a fully functional + sas but the construction of the string to sign. + Signed resource is tested elsewhere, as we work some minor magic in choosing which value to use. + */ + where: + startTime | identifier | ipRange | protocol | cacheControl | disposition | encoding | language | type || expectedStringToSign + OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC) | null | null | null | null | null | null | null | null || "r\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | "id" | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\nid\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | new SasIpRange() | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\nip\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | SasProtocol.HTTPS_ONLY | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n" + SasProtocol.HTTPS_ONLY + "\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | "control" | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\ncontrol\n\n\n\n" + null | null | null | null | null | "disposition" | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\ndisposition\n\n\n" + null | null | null | null | null | null | "encoding" | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\nencoding\n\n" + null | null | null | null | null | null | null | "language" | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\nlanguage\n" + null | null | null | null | null | null | null | null | "type" || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\ntype" + } + + @Unroll + def "serviceSasSignatures string to sign user delegation key"() { + when: + def v = new DataLakeServiceSasSignatureValues() + def expected = String.format(expectedStringToSign, primaryCredential.getAccountName()) + + def p = new PathSasPermission() + p.setReadPermission(true) + v.setPermissions(p) + + v.setStartTime(startTime) + def e = OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC) + v.setExpiryTime(e) + + v.setFileSystemName("fileSystemName") + .setPathName("pathName") + if (ipRange != null) { + def ipR = new SasIpRange() + ipR.setIpMin("ip") + v.setSasIpRange(ipR) + } + v.setProtocol(protocol) + .setCacheControl(cacheControl) + .setContentDisposition(disposition) + .setContentEncoding(encoding) + .setContentLanguage(language) + .setContentType(type) + def key = new UserDelegationKey() + .setSignedObjectId(keyOid) + .setSignedTenantId(keyTid) + .setSignedStart(keyStart) + .setSignedExpiry(keyExpiry) + .setSignedService(keyService) + .setSignedVersion(keyVersion) + .setValue(keyValue) + def token = v.generateSasQueryParameters(key, primaryCredential.getAccountName()) + + then: + token.getSignature() == StorageImplUtils.computeHMac256(key.getValue(), expected) + + /* + We test string to sign functionality directly related to user delegation sas specific parameters + */ + where: + startTime | keyOid | keyTid | keyStart | keyExpiry | keyService | keyVersion | keyValue | ipRange | protocol | snapId | cacheControl | disposition | encoding | language | type || expectedStringToSign + OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC) | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | "11111111-1111-1111-1111-111111111111" | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n11111111-1111-1111-1111-111111111111\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | "22222222-2222-2222-2222-222222222222" | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n22222222-2222-2222-2222-222222222222\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | OffsetDateTime.of(LocalDateTime.of(2018, 1, 1, 0, 0), ZoneOffset.UTC) | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n2018-01-01T00:00:00Z\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | OffsetDateTime.of(LocalDateTime.of(2018, 1, 1, 0, 0), ZoneOffset.UTC) | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n2018-01-01T00:00:00Z\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | null | "b" | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\nb\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | null | null | "2018-06-17" | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n2018-06-17\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | new SasIpRange() | null | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\nip\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | SasProtocol.HTTPS_ONLY | null | null | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n" + SasProtocol.HTTPS_ONLY + "\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | "control" | null | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\ncontrol\n\n\n\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | "disposition" | null | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\ndisposition\n\n\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | "encoding" | null | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\nencoding\n\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | "language" | null || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\nlanguage\n" + null | null | null | null | null | null | null | "3hd4LRwrARVGbeMRQRfTLIsGMkCPuZJnvxZDU7Gak8c=" | null | null | null | null | null | null | null | "type" || "r\n\n" + Constants.ISO_8601_UTC_DATE_FORMATTER.format(OffsetDateTime.of(2017, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC)) + "\n/blob/%s/fileSystemName/pathName\n\n\n\n\n\n\n\n\n" + Constants.HeaderConstants.TARGET_STORAGE_VERSION + "\nb\n\n\n\n\n\ntype" + } + + @Unroll + def "PathSasPermission toString"() { + setup: + def perms = new PathSasPermission() + .setReadPermission(read) + .setWritePermission(write) + .setDeletePermission(delete) + .setCreatePermission(create) + .setAddPermission(add) + + expect: + perms.toString() == expectedString + + where: + read | write | delete | create | add || expectedString + true | false | false | false | false || "r" + false | true | false | false | false || "w" + false | false | true | false | false || "d" + false | false | false | true | false || "c" + false | false | false | false | true || "a" + true | true | true | true | true || "racwd" + } + + @Unroll + def "PathSasPermission parse"() { + when: + def perms = PathSasPermission.parse(permString) + + then: + perms.hasReadPermission() == read + perms.hasWritePermission() == write + perms.hasDeletePermission() == delete + perms.hasCreatePermission() == create + perms.hasAddPermission() == add + + where: + permString || read | write | delete | create | add + "r" || true | false | false | false | false + "w" || false | true | false | false | false + "d" || false | false | true | false | false + "c" || false | false | false | true | false + "a" || false | false | false | false | true + "racwd" || true | true | true | true | true + "dcwra" || true | true | true | true | true + } + + def "PathSasPermission parse IA"() { + when: + PathSasPermission.parse("rwaq") + + then: + thrown(IllegalArgumentException) + } + + @Unroll + def "FileSystemSasPermission toString"() { + setup: + def perms = new FileSystemSasPermission() + .setReadPermission(read) + .setWritePermission(write) + .setDeletePermission(delete) + .setCreatePermission(create) + .setAddPermission(add) + .setListPermission(list) + + expect: + perms.toString() == expectedString + + where: + read | write | delete | create | add | list || expectedString + true | false | false | false | false | false || "r" + false | true | false | false | false | false || "w" + false | false | true | false | false | false || "d" + false | false | false | true | false | false || "c" + false | false | false | false | true | false || "a" + false | false | false | false | false | true || "l" + true | true | true | true | true | true || "racwdl" + } + + @Unroll + def "FileSystemSasPermission parse"() { + when: + def perms = FileSystemSasPermission.parse(permString) + + then: + perms.hasReadPermission() == read + perms.hasWritePermission() == write + perms.hasDeletePermission() == delete + perms.hasCreatePermission() == create + perms.hasAddPermission() == add + perms.hasListPermission() == list + + where: + permString || read | write | delete | create | add | list + "r" || true | false | false | false | false | false + "w" || false | true | false | false | false | false + "d" || false | false | true | false | false | false + "c" || false | false | false | true | false | false + "a" || false | false | false | false | true | false + "l" || false | false | false | false | false | true + "racwdl" || true | true | true | true | true | true + "dcwrla" || true | true | true | true | true | true + } + + def "FileSystemSasPermission parse IA"() { + when: + FileSystemSasPermission.parse("rwaq") + + then: + thrown(IllegalArgumentException) + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/ServiceAPITest.groovy b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/ServiceAPITest.groovy new file mode 100644 index 0000000000000..dc3a97b2070d8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/java/com/azure/storage/file/datalake/ServiceAPITest.groovy @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.file.datalake + +import com.azure.core.http.rest.Response +import com.azure.storage.blob.models.BlobStorageException +import com.azure.storage.file.datalake.models.FileSystemItem +import com.azure.storage.file.datalake.models.FileSystemListDetails +import com.azure.storage.file.datalake.models.ListFileSystemsOptions +import com.azure.storage.file.datalake.models.UserDelegationKey + +import java.time.Duration +import java.time.OffsetDateTime + +class ServiceAPITest extends APISpec { + + def "List file systems"() { + when: + def response = + primaryDataLakeServiceClient.listFileSystems(new ListFileSystemsOptions().setPrefix(fileSystemPrefix + testName), null) + + then: + for (FileSystemItem c : response) { + assert c.getName().startsWith(fileSystemPrefix) + assert c.getProperties().getLastModified() != null + assert c.getProperties().getETag() != null + assert c.getProperties().getLeaseStatus() != null + assert c.getProperties().getLeaseState() != null + assert c.getProperties().getLeaseDuration() == null + assert c.getProperties().getPublicAccess() == null + assert !c.getProperties().isHasLegalHold() + assert !c.getProperties().isHasImmutabilityPolicy() + } + } + + def "List file systems min"() { + when: + primaryDataLakeServiceClient.listFileSystems().iterator().hasNext() + + then: + notThrown(BlobStorageException) + } + + def "List file systems marker"() { + setup: + for (int i = 0; i < 10; i++) { + primaryDataLakeServiceClient.createFileSystem(generateFileSystemName()) + } + + def listResponse = primaryDataLakeServiceClient.listFileSystems().iterator() + def firstFileSystemName = listResponse.next().getName() + + expect: + // Assert that the second segment is indeed after the first alphabetically + firstFileSystemName < listResponse.next().getName() + } + + def "List file systems details"() { + setup: + def metadata = new HashMap() + metadata.put("foo", "bar") + fsc = primaryDataLakeServiceClient.createFileSystemWithResponse("aaa" + generateFileSystemName(), metadata, null, null).getValue() + + expect: + primaryDataLakeServiceClient.listFileSystems(new ListFileSystemsOptions() + .setDetails(new FileSystemListDetails().setRetrieveMetadata(true)) + .setPrefix("aaa" + fileSystemPrefix), null) + .iterator().next().getMetadata() == metadata + + // File system with prefix "aaa" will not be cleaned up by normal test cleanup. + fsc.deleteWithResponse(null, null, null).getStatusCode() == 202 + } + + def "List file systems maxResults"() { + setup: + def NUM_FILESYSTEMS = 5 + def PAGE_RESULTS = 3 + def fileSystemName = generateFileSystemName() + def fileSystemPrefix = fileSystemName.substring(0, Math.min(60, fileSystemName.length())) + + def fileSystems = [] as Collection + for (i in (1..NUM_FILESYSTEMS)) { + fileSystems << primaryDataLakeServiceClient.createFileSystem(fileSystemPrefix + i) + } + + expect: + primaryDataLakeServiceClient.listFileSystems(new ListFileSystemsOptions() + .setPrefix(fileSystemPrefix) + .setMaxResultsPerPage(PAGE_RESULTS), null) + .iterableByPage().iterator().next().getValue().size() == PAGE_RESULTS + + cleanup: + fileSystems.each { fileSystem -> fileSystem.delete() } + } + + def "List file systems error"() { + when: + primaryDataLakeServiceClient.listFileSystems().streamByPage("garbage continuation token").count() + + then: + thrown(BlobStorageException) + } + + def "List file systems with timeout still backed by PagedFlux"() { + setup: + def NUM_FILESYSTEMS = 5 + def PAGE_RESULTS = 3 + + def fileSystems = [] as Collection + for (i in (1..NUM_FILESYSTEMS)) { + fileSystems << primaryDataLakeServiceClient.createFileSystem(generateFileSystemName()) + } + + when: "Consume results by page" + primaryDataLakeServiceClient.listFileSystems(new ListFileSystemsOptions().setMaxResultsPerPage(PAGE_RESULTS), Duration.ofSeconds(10)).streamByPage().count() + + then: "Still have paging functionality" + notThrown(Exception) + + cleanup: + fileSystems.each { fileSystem -> fileSystem.delete() } + } + + def "Get UserDelegationKey"() { + setup: + def start = OffsetDateTime.now() + def expiry = start.plusDays(1) + + Response response = getOAuthServiceClient().getUserDelegationKeyWithResponse(start, expiry, null, null) + + expect: + response.getStatusCode() == 200 + response.getValue() != null + response.getValue().getSignedObjectId() != null + response.getValue().getSignedTenantId() != null + response.getValue().getSignedStart() != null + response.getValue().getSignedExpiry() != null + response.getValue().getSignedService() != null + response.getValue().getSignedVersion() != null + response.getValue().getValue() != null + } + + def "Get UserDelegationKey min"() { + setup: + def expiry = OffsetDateTime.now().plusDays(1) + + def response = getOAuthServiceClient().getUserDelegationKeyWithResponse(null, expiry, null, null) + + expect: + response.getStatusCode() == 200 + } + + def "Get UserDelegationKey error"() { + when: + getOAuthServiceClient().getUserDelegationKey(start, expiry) + + then: + thrown(exception) + + where: + start | expiry || exception + null | null || NullPointerException + OffsetDateTime.now() | OffsetDateTime.now().minusDays(1) || IllegalArgumentException + } + +} diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[0].json new file mode 100644 index 0000000000000..e784fc2b5c0b6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac50c62219e960a1dde?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b05ae472-ce97-4993-acd0-4b87a72c1980" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8F76BE3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6571c0-a01e-0034-72d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "b05ae472-ce97-4993-acd0-4b87a72c1980" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac50c62219e960a1dde/javapathcreateac1directoryapitestcreateac50c4163421c5f6c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8decc1fe-6ac4-424c-add5-9f84a0e07b28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA900BA53", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e002c-801f-00ab-2ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "8decc1fe-6ac4-424c-add5-9f84a0e07b28" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac50c62219e960a1dde/javapathcreateac1directoryapitestcreateac50c4163421c5f6c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f968a3f0-49e4-4d73-8254-8982b928f1e1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9083883", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e002d-801f-00ab-2bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "f968a3f0-49e4-4d73-8254-8982b928f1e1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c164a768-dae3-4b4e-a124-5997bce5fdf4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fddfd-e01e-007c-15d3-90d34f000000", + "Body" : "jtfscreateacjtfscreateac0directoryapitestcreateac50c62219e960a1ddeFri, 01 Nov 2019 16:43:44 GMT\"0x8D75EEAA8F76BE3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "c164a768-dae3-4b4e-a124-5997bce5fdf4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac50c62219e960a1dde?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b9718a1-bacc-4cfb-aa6f-21a5f2ed8162" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65720f-a01e-0034-39d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "5b9718a1-bacc-4cfb-aa6f-21a5f2ed8162" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0directoryapitestcreateac50c62219e960a1dde", "javapathcreateac1directoryapitestcreateac50c4163421c5f6c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[1].json new file mode 100644 index 0000000000000..d4b506fdc4cc8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac38d06186a3b873d51?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3f14b5a5-92ac-49c9-abad-5ad3b0f5fcf6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA91FC458", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fde22-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "3f14b5a5-92ac-49c9-abad-5ad3b0f5fcf6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac38d06186a3b873d51/javapathcreateac1directoryapitestcreateac38d90480a01f7ff?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a2a3ec4-0a0a-46e7-aaac-ad5fa3e2239a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA92A2E84", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e002f-801f-00ab-2dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "0a2a3ec4-0a0a-46e7-aaac-ad5fa3e2239a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac38d06186a3b873d51/javapathcreateac1directoryapitestcreateac38d90480a01f7ff?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37f5c28e-17d1-4a4c-931b-8f05b20ff8ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA931D104", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0031-801f-00ab-2fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "37f5c28e-17d1-4a4c-931b-8f05b20ff8ec" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b20b3be-5689-434f-bc2a-cd05159fc2af" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65728b-a01e-0034-20d3-90e1d2000000", + "Body" : "jtfscreateacjtfscreateac0directoryapitestcreateac38d06186a3b873d51Fri, 01 Nov 2019 16:43:44 GMT\"0x8D75EEAA91FC458\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "6b20b3be-5689-434f-bc2a-cd05159fc2af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac38d06186a3b873d51?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba88bfdf-6a14-488e-8142-e2fc0f38ca56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fde65-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "ba88bfdf-6a14-488e-8142-e2fc0f38ca56" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0directoryapitestcreateac38d06186a3b873d51", "javapathcreateac1directoryapitestcreateac38d90480a01f7ff" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[2].json new file mode 100644 index 0000000000000..a6b72bcefa49f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac5e5066191528d6e9c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "10476d71-1b2c-4511-976b-b417f939ff5e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9491D16", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6572dc-a01e-0034-6ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "10476d71-1b2c-4511-976b-b417f939ff5e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac5e5066191528d6e9c/javapathcreateac1directoryapitestcreateac5e5885768802856?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8877c272-ce11-4a63-a1ca-33842c80024e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA954641F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0032-801f-00ab-30d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "8877c272-ce11-4a63-a1ca-33842c80024e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac5e5066191528d6e9c/javapathcreateac1directoryapitestcreateac5e5885768802856?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6db363a1-8427-426d-a1b9-6f14efdec24c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA95C08C3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0033-801f-00ab-31d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "6db363a1-8427-426d-a1b9-6f14efdec24c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94edfd3f-bc30-4348-a9a3-fefe87aec9aa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fdeb3-e01e-007c-3ed3-90d34f000000", + "Body" : "jtfscreateacjtfscreateac0directoryapitestcreateac5e5066191528d6e9cFri, 01 Nov 2019 16:43:45 GMT\"0x8D75EEAA9491D16\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "94edfd3f-bc30-4348-a9a3-fefe87aec9aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac5e5066191528d6e9c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5fced8b0-e1fe-4c3c-bff4-fde9a5f1f957" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657374-a01e-0034-71d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "5fced8b0-e1fe-4c3c-bff4-fde9a5f1f957" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0directoryapitestcreateac5e5066191528d6e9c", "javapathcreateac1directoryapitestcreateac5e5885768802856" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[3].json new file mode 100644 index 0000000000000..9cc22db990f71 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac51569794dd882b12c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01250b0a-feed-474d-bc8d-a7fa83973f04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA972D54B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fded6-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "01250b0a-feed-474d-bc8d-a7fa83973f04" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac51569794dd882b12c/javapathcreateac1directoryapitestcreateac51569991386997e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb1243ad-8953-4190-896e-927eb1ff7c32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA97BDFA7", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0034-801f-00ab-32d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "eb1243ad-8953-4190-896e-927eb1ff7c32" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac51569794dd882b12c/javapathcreateac1directoryapitestcreateac51569991386997e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17591d9e-46cc-4053-b7ac-21bfe0120dc8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:45 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", + "ETag" : "0x8D75EEAA97BDFA7", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:45 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a6573ea-a01e-0034-60d3-90e1d2000000", + "x-ms-client-request-id" : "17591d9e-46cc-4053-b7ac-21bfe0120dc8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac51569794dd882b12c/javapathcreateac1directoryapitestcreateac51569991386997e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01859797-06e0-4572-8647-2648e062eec0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA98F6A5B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0035-801f-00ab-33d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "01859797-06e0-4572-8647-2648e062eec0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de78db60-39fe-434a-b2a0-bf41e2d0084c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fdf16-e01e-007c-15d3-90d34f000000", + "Body" : "jtfscreateacjtfscreateac0directoryapitestcreateac51569794dd882b12cFri, 01 Nov 2019 16:43:45 GMT\"0x8D75EEAA972D54B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "de78db60-39fe-434a-b2a0-bf41e2d0084c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac51569794dd882b12c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39239737-5437-4f30-9d01-9876d60c806f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657440-a01e-0034-2fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "39239737-5437-4f30-9d01-9876d60c806f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0directoryapitestcreateac51569794dd882b12c", "javapathcreateac1directoryapitestcreateac51569991386997e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[4].json new file mode 100644 index 0000000000000..bdbc688451c89 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac84855053d38da25d0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fd1c7b7f-294a-483e-a57c-65c33c9b63fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9A7F8A3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fdf2f-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "fd1c7b7f-294a-483e-a57c-65c33c9b63fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac84855053d38da25d0/javapathcreateac1directoryapitestcreateac8481858673d45e7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "756fc845-9d5c-4e7d-abdc-999e4b4eb3ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9B15B7B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0036-801f-00ab-34d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "756fc845-9d5c-4e7d-abdc-999e4b4eb3ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateac84855053d38da25d0/javapathcreateac1directoryapitestcreateac8481858673d45e7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45d2b9de-55dc-41d7-8969-35ea6e2beac4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9B92A9F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0037-801f-00ab-35d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "45d2b9de-55dc-41d7-8969-35ea6e2beac4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8b8d07b-d8fe-4515-8957-35c569cf5575" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6574d1-a01e-0034-2fd3-90e1d2000000", + "Body" : "jtfscreateacjtfscreateac0directoryapitestcreateac84855053d38da25d0Fri, 01 Nov 2019 16:43:45 GMT\"0x8D75EEAA9A7F8A3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "d8b8d07b-d8fe-4515-8957-35c569cf5575", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateac84855053d38da25d0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "55d0f707-01c7-4899-b61e-d4fc408ab183" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdf6b-e01e-007c-5fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "55d0f707-01c7-4899-b61e-d4fc408ab183" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0directoryapitestcreateac84855053d38da25d0", "javapathcreateac1directoryapitestcreateac8481858673d45e7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[5].json new file mode 100644 index 0000000000000..fad9636ca6bfa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateac[5].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateacd39462884606d5e45?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08ab6eb5-1c8b-4603-a93c-7a4bdfb75b6d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9CFF1A9", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657511-a01e-0034-6ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "08ab6eb5-1c8b-4603-a93c-7a4bdfb75b6d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateacd39462884606d5e45/javapathcreateac1directoryapitestcreateacd3976709889f9db?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9965236c-97c4-4bf4-9ffa-4232e4032b6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9DD4CA8", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0038-801f-00ab-36d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "9965236c-97c4-4bf4-9ffa-4232e4032b6b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateacd39462884606d5e45/javapathcreateac1directoryapitestcreateacd3976709889f9db?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "295d8572-b293-44fa-a94c-49180bec0973" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9DD4CA8", + "x-ms-lease-id" : "30bca510-2c65-460f-96be-475b0f287017", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fdf9f-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "295d8572-b293-44fa-a94c-49180bec0973" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0directoryapitestcreateacd39462884606d5e45/javapathcreateac1directoryapitestcreateacd3976709889f9db?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ea811c4-898b-4455-8412-12810c8c96ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA9EE37B3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0039-801f-00ab-37d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "4ea811c4-898b-4455-8412-12810c8c96ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "52d21052-bb68-45eb-b545-7cdda99cb4cb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657598-a01e-0034-61d3-90e1d2000000", + "Body" : "jtfscreateacjtfscreateac0directoryapitestcreateacd39462884606d5e45Fri, 01 Nov 2019 16:43:46 GMT\"0x8D75EEAA9CFF1A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "52d21052-bb68-45eb-b545-7cdda99cb4cb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0directoryapitestcreateacd39462884606d5e45?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a4540e7-fab2-43e2-be88-b60470fd95b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdfd6-e01e-007c-44d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "5a4540e7-fab2-43e2-be88-b60470fd95b1" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0directoryapitestcreateacd39462884606d5e45", "javapathcreateac1directoryapitestcreateacd3976709889f9db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[0].json new file mode 100644 index 0000000000000..da59520e8fe30 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail30b9851461806?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46f44588-7b3f-4c1f-adb6-d2d4c617d35b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA0674CF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6575c9-a01e-0034-10d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "46f44588-7b3f-4c1f-adb6-d2d4c617d35b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail30b9851461806/javapathcreateacfail1directoryapitestcreateacfail30b35720949?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ed75164-2251-468c-ae0b-235b94a5d0fc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA0FF201", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e003a-801f-00ab-38d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "7ed75164-2251-468c-ae0b-235b94a5d0fc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail30b9851461806/javapathcreateacfail1directoryapitestcreateacfail30b35720949?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c5b57a70-3b39-48aa-9a39-feafa1a206fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e003b-801f-00ab-39d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e003b-801f-00ab-39d3-909968000000\\nTime:2019-11-01T16:43:46.5215392Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:45 GMT", + "x-ms-client-request-id" : "c5b57a70-3b39-48aa-9a39-feafa1a206fd", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88eaa859-3dcc-459f-b6aa-b955f579f3e7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe025-e01e-007c-0dd3-90d34f000000", + "Body" : "jtfscreateacfailjtfscreateacfail0directoryapitestcreateacfail30b9851461806Fri, 01 Nov 2019 16:43:46 GMT\"0x8D75EEAAA0674CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "88eaa859-3dcc-459f-b6aa-b955f579f3e7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail30b9851461806?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d02b3ba-310c-4c99-af9b-f4fee9cf3340" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657617-a01e-0034-58d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "8d02b3ba-310c-4c99-af9b-f4fee9cf3340" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0directoryapitestcreateacfail30b9851461806", "javapathcreateacfail1directoryapitestcreateacfail30b35720949" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[1].json new file mode 100644 index 0000000000000..7005bc7822e6e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail04e06667f8c5f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e2e07403-65fe-4093-b3a4-5f9378d3f25c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA2FDEBB", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe045-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "e2e07403-65fe-4093-b3a4-5f9378d3f25c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail04e06667f8c5f/javapathcreateacfail1directoryapitestcreateacfail04e080596f1?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95371b7e-320d-47de-a918-6ba8c1871846" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA393235", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e003c-801f-00ab-3ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "95371b7e-320d-47de-a918-6ba8c1871846" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail04e06667f8c5f/javapathcreateacfail1directoryapitestcreateacfail04e080596f1?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "519f22bd-64e4-410a-a66b-e9e11ecf4362" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e003d-801f-00ab-3bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e003d-801f-00ab-3bd3-909968000000\\nTime:2019-11-01T16:43:46.7917330Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "519f22bd-64e4-410a-a66b-e9e11ecf4362", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7b0be60-0266-4ecb-96bf-a6c73506f951" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65769c-a01e-0034-51d3-90e1d2000000", + "Body" : "jtfscreateacfailjtfscreateacfail0directoryapitestcreateacfail04e06667f8c5fFri, 01 Nov 2019 16:43:46 GMT\"0x8D75EEAAA2FDEBB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "a7b0be60-0266-4ecb-96bf-a6c73506f951", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail04e06667f8c5f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1df9beb8-95d3-4d28-8214-f65d5e73f256" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe07e-e01e-007c-5fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "1df9beb8-95d3-4d28-8214-f65d5e73f256" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0directoryapitestcreateacfail04e06667f8c5f", "javapathcreateacfail1directoryapitestcreateacfail04e080596f1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[2].json new file mode 100644 index 0000000000000..5365a73724d15 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailbd359664efd50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "21d0abee-9f6e-4d22-b206-0a9b894d1b90" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA57B0BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6576c7-a01e-0034-76d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "21d0abee-9f6e-4d22-b206-0a9b894d1b90" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailbd359664efd50/javapathcreateacfail1directoryapitestcreateacfailbd384912857?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b985bcf-7f12-4676-ad14-61472c5191c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA614753", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e003e-801f-00ab-3cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "8b985bcf-7f12-4676-ad14-61472c5191c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailbd359664efd50/javapathcreateacfail1directoryapitestcreateacfailbd384912857?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c7b182d-078a-4739-965f-463be3159865" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e003f-801f-00ab-3dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e003f-801f-00ab-3dd3-909968000000\\nTime:2019-11-01T16:43:47.0529195Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "4c7b182d-078a-4739-965f-463be3159865", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e5392b2-ec50-4717-bfc0-8c04d44c7004" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe0b9-e01e-007c-16d3-90d34f000000", + "Body" : "jtfscreateacfailjtfscreateacfail0directoryapitestcreateacfailbd359664efd50Fri, 01 Nov 2019 16:43:46 GMT\"0x8D75EEAAA57B0BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "2e5392b2-ec50-4717-bfc0-8c04d44c7004", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailbd359664efd50?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b0f8563-27a4-45df-a054-e424bd917ce9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657733-a01e-0034-5bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "1b0f8563-27a4-45df-a054-e424bd917ce9" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0directoryapitestcreateacfailbd359664efd50", "javapathcreateacfail1directoryapitestcreateacfailbd384912857" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[3].json new file mode 100644 index 0000000000000..0c9a4a381312d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailde6018964184c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "058d517a-8a14-4274-8ed2-1d1127fdeca1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA7EA932", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe0d8-e01e-007c-34d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "058d517a-8a14-4274-8ed2-1d1127fdeca1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailde6018964184c/javapathcreateacfail1directoryapitestcreateacfailde6025445ec?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f281f2e-01fe-427a-ad29-c829718da31e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAA8877B6", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0040-801f-00ab-3ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "0f281f2e-01fe-427a-ad29-c829718da31e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailde6018964184c/javapathcreateacfail1directoryapitestcreateacfailde6025445ec", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1bd1b481-6053-4d1f-b90a-d72dc5c799a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:47 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", + "ETag" : "0x8D75EEAAA8877B6", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:47 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a657775-a01e-0034-13d3-90e1d2000000", + "x-ms-client-request-id" : "1bd1b481-6053-4d1f-b90a-d72dc5c799a5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailde6018964184c/javapathcreateacfail1directoryapitestcreateacfailde6025445ec?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0151be75-b962-4fe4-b9df-cc661ff8f474" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0041-801f-00ab-3fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0041-801f-00ab-3fd3-909968000000\\nTime:2019-11-01T16:43:47.3651430Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:46 GMT", + "x-ms-client-request-id" : "0151be75-b962-4fe4-b9df-cc661ff8f474", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e429d8b-65c4-4a20-8118-b8893aa884ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe10f-e01e-007c-68d3-90d34f000000", + "Body" : "jtfscreateacfailjtfscreateacfail0directoryapitestcreateacfailde6018964184cFri, 01 Nov 2019 16:43:47 GMT\"0x8D75EEAAA7EA932\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "9e429d8b-65c4-4a20-8118-b8893aa884ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfailde6018964184c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf67360a-a60c-4bd8-8896-ba1af3af3df9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6577c7-a01e-0034-60d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "bf67360a-a60c-4bd8-8896-ba1af3af3df9" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0directoryapitestcreateacfailde6018964184c", "javapathcreateacfail1directoryapitestcreateacfailde6025445ec" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[4].json new file mode 100644 index 0000000000000..1052e5594b4ec --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail75c73734581b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ffb1abb-af9b-4f69-9e02-cd98c3f98adf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAAB293CD", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe134-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "0ffb1abb-af9b-4f69-9e02-cd98c3f98adf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail75c73734581b5/javapathcreateacfail1directoryapitestcreateacfail75c4567964f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a791b68-15d1-43ea-9378-3902a84cd081" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAABBBE03", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0042-801f-00ab-40d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "9a791b68-15d1-43ea-9378-3902a84cd081" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail75c73734581b5/javapathcreateacfail1directoryapitestcreateacfail75c4567964f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "479cafda-a0a0-466b-ac87-e7f20f2b0788" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAABBBE03", + "x-ms-lease-id" : "447d4f82-4319-4f72-aa7b-74071acf0322", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65780d-a01e-0034-1dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "479cafda-a0a0-466b-ac87-e7f20f2b0788" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail75c73734581b5/javapathcreateacfail1directoryapitestcreateacfail75c4567964f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9abbee57-40d2-4018-97dc-8b28e7c5a72a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0043-801f-00ab-41d3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e0043-801f-00ab-41d3-909968000000\\nTime:2019-11-01T16:43:47.7103902Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "9abbee57-40d2-4018-97dc-8b28e7c5a72a", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a613b178-9b8a-484a-bb88-cf490b986f98" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe18d-e01e-007c-5fd3-90d34f000000", + "Body" : "jtfscreateacfailjtfscreateacfail0directoryapitestcreateacfail75c73734581b5Fri, 01 Nov 2019 16:43:47 GMT\"0x8D75EEAAAB293CD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "a613b178-9b8a-484a-bb88-cf490b986f98", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0directoryapitestcreateacfail75c73734581b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "989170de-120a-425c-9b13-b5906fce4575" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65784c-a01e-0034-53d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "989170de-120a-425c-9b13-b5906fce4575" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0directoryapitestcreateacfail75c73734581b5", "javapathcreateacfail1directoryapitestcreateacfail75c4567964f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatedefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatedefaults.json new file mode 100644 index 0000000000000..b67573c12dcc8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatedefaults.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedefaults0directoryapitestcreatedefaultsa1031692e15?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0bd9d192-5f11-4ca3-9d86-db25f7e18d5b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA7E41C71", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656e61-a01e-0034-6bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "0bd9d192-5f11-4ca3-9d86-db25f7e18d5b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedefaults0directoryapitestcreatedefaultsa1031692e15/javapathcreatedefaults1directoryapitestcreatedefaultsa10208260?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4cbaeb5d-3e9d-456c-acdc-3882e7b0a273" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA7ED4809", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0020-801f-00ab-1ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "4cbaeb5d-3e9d-456c-acdc-3882e7b0a273" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedefaults0directoryapitestcreatedefaultsa1031692e15/javapathcreatedefaults2directoryapitestcreatedefaultsa1014384a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5110bf78-6875-47f4-ab36-23cf3dd9d35b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA7F4CF64", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0021-801f-00ab-1fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "5110bf78-6875-47f4-ab36-23cf3dd9d35b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74a1c0b9-56bd-4ba8-9c04-4da9eeb4c24a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fda71-e01e-007c-3fd3-90d34f000000", + "Body" : "jtfscreatedefaultsjtfscreatedefaults0directoryapitestcreatedefaultsa1031692e15Fri, 01 Nov 2019 16:43:42 GMT\"0x8D75EEAA7E41C71\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "74a1c0b9-56bd-4ba8-9c04-4da9eeb4c24a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedefaults0directoryapitestcreatedefaultsa1031692e15?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a0e4649-205d-465a-8a34-6dff52504aed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656eac-a01e-0034-2ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "2a0e4649-205d-465a-8a34-6dff52504aed" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedefaults0directoryapitestcreatedefaultsa1031692e15", "javapathcreatedefaults1directoryapitestcreatedefaultsa10208260", "javapathcreatedefaults2directoryapitestcreatedefaultsa1014384a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateerror.json new file mode 100644 index 0000000000000..f143fa9e4d52a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0directoryapitestcreateerror347332767fb9a0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b18e5e33-6f66-431a-a5d2-268eed6c240b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA80BD8B1", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fdaaf-e01e-007c-78d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "b18e5e33-6f66-431a-a5d2-268eed6c240b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateerror0directoryapitestcreateerror347332767fb9a0/javapathcreateerror1directoryapitestcreateerror34743466070d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d942e571-0656-4bec-9444-c5785d0ada1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA815363B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0022-801f-00ab-20d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "d942e571-0656-4bec-9444-c5785d0ada1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateerror0directoryapitestcreateerror347332767fb9a0/javapathcreateerror2directoryapitestcreateerror34792611c860?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5be9486f-f5fb-4d12-91ec-813bda63e987" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0023-801f-00ab-21d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0023-801f-00ab-21d3-909968000000\\nTime:2019-11-01T16:43:43.1971595Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "5be9486f-f5fb-4d12-91ec-813bda63e987", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8f089df-e153-4f98-91a8-3fdc5be44e07" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a656f0c-a01e-0034-06d3-90e1d2000000", + "Body" : "jtfscreateerrorjtfscreateerror0directoryapitestcreateerror347332767fb9a0Fri, 01 Nov 2019 16:43:43 GMT\"0x8D75EEAA80BD8B1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "d8f089df-e153-4f98-91a8-3fdc5be44e07", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0directoryapitestcreateerror347332767fb9a0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f85a904-5dad-4ccc-ad8d-4551211bd96f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdb21-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "0f85a904-5dad-4ccc-ad8d-4551211bd96f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateerror0directoryapitestcreateerror347332767fb9a0", "javapathcreateerror1directoryapitestcreateerror34743466070d", "javapathcreateerror2directoryapitestcreateerror34792611c860" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[0].json new file mode 100644 index 0000000000000..e88c6c9306d65 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac564204132f4fd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cea3b6db-cabb-4f18-af22-3cb0e0bfa9fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1658F43", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c83f-a01e-0034-6ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "cea3b6db-cabb-4f18-af22-3cb0e0bfa9fd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac564204132f4fd/javapathcreatefileac1directoryapitestcreatefileac56411239ff3?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "909e986c-9473-4afc-beb6-e6b50ed2ad47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC170FFFD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e013c-801f-00ab-31d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "909e986c-9473-4afc-beb6-e6b50ed2ad47" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac564204132f4fd/javapathcreatefileac1directoryapitestcreatefileac56411239ff3/javapathcreatefileac2directoryapitestcreatefileac56465740ea2?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ffffc34-de79-4979-9a44-82eb53117abb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1797722", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e013d-801f-00ab-32d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "7ffffc34-de79-4979-9a44-82eb53117abb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac564204132f4fd/javapathcreatefileac1directoryapitestcreatefileac56411239ff3/javapathcreatefileac2directoryapitestcreatefileac56465740ea2?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "64545da3-ea23-4796-b886-d4d79a312989" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC181BC32", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e013e-801f-00ab-33d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "64545da3-ea23-4796-b886-d4d79a312989" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7d8f60b-8bdc-4d3c-89a6-6fa08221503c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70177c-e01e-007c-3ed3-90d34f000000", + "Body" : "jtfscreatefileacjtfscreatefileac0directoryapitestcreatefileac564204132f4fdFri, 01 Nov 2019 16:44:25 GMT\"0x8D75EEAC1658F43\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "a7d8f60b-8bdc-4d3c-89a6-6fa08221503c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac564204132f4fd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c248e30-2393-4093-a388-348ddf203422" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c8e2-a01e-0034-02d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "5c248e30-2393-4093-a388-348ddf203422" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0directoryapitestcreatefileac564204132f4fd", "javapathcreatefileac1directoryapitestcreatefileac56411239ff3", "javapathcreatefileac2directoryapitestcreatefileac56465740ea2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[1].json new file mode 100644 index 0000000000000..9d025fd2a631c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1486335419538?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8322f8c1-95f5-485e-a15e-1028587c205f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC19B9B32", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7017ab-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "8322f8c1-95f5-485e-a15e-1028587c205f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1486335419538/javapathcreatefileac1directoryapitestcreatefileac14857035173?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3a245f9e-adcc-4741-9480-2dcd58e02261" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1A528E1", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e013f-801f-00ab-34d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "3a245f9e-adcc-4741-9480-2dcd58e02261" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1486335419538/javapathcreatefileac1directoryapitestcreatefileac14857035173/javapathcreatefileac2directoryapitestcreatefileac14863718944?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17ef103f-5c59-4406-96d4-1b1d99f036eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1ADE30E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0140-801f-00ab-35d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "17ef103f-5c59-4406-96d4-1b1d99f036eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1486335419538/javapathcreatefileac1directoryapitestcreatefileac14857035173/javapathcreatefileac2directoryapitestcreatefileac14863718944?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6719f1e-9b5f-47e0-bc67-bfcd61dc5250" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1C0494E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0141-801f-00ab-36d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "f6719f1e-9b5f-47e0-bc67-bfcd61dc5250" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04fff1ab-938b-43fd-b3e3-aef2aa445722" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c9b0-a01e-0034-35d3-90e1d2000000", + "Body" : "jtfscreatefileacjtfscreatefileac0directoryapitestcreatefileac1486335419538Fri, 01 Nov 2019 16:44:25 GMT\"0x8D75EEAC19B9B32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "04fff1ab-938b-43fd-b3e3-aef2aa445722", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1486335419538?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97d81b28-9975-497f-a4ec-cdc937b61f4e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701833-e01e-007c-5dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "97d81b28-9975-497f-a4ec-cdc937b61f4e" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0directoryapitestcreatefileac1486335419538", "javapathcreatefileac1directoryapitestcreatefileac14857035173", "javapathcreatefileac2directoryapitestcreatefileac14863718944" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[2].json new file mode 100644 index 0000000000000..caa1426b4ef7a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1717637643587?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01a890e2-cd4d-4b84-a9e4-54b8eb5d7ecb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1D7C6B5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c9f2-a01e-0034-72d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "01a890e2-cd4d-4b84-a9e4-54b8eb5d7ecb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1717637643587/javapathcreatefileac1directoryapitestcreatefileac171515161f0?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cdbba346-a15f-4632-b766-4b40fac935e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1E110CC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0142-801f-00ab-37d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "cdbba346-a15f-4632-b766-4b40fac935e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1717637643587/javapathcreatefileac1directoryapitestcreatefileac171515161f0/javapathcreatefileac2directoryapitestcreatefileac17113932444?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b8890f6-d704-4093-9dcc-3afb1d3a4fd6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1E90FA6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0143-801f-00ab-38d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "9b8890f6-d704-4093-9dcc-3afb1d3a4fd6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1717637643587/javapathcreatefileac1directoryapitestcreatefileac171515161f0/javapathcreatefileac2directoryapitestcreatefileac17113932444?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c269029-3991-4b99-9932-a56235ec0307" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1F11B82", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0146-801f-00ab-3bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "9c269029-3991-4b99-9932-a56235ec0307" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "841495c1-723c-4f3a-aeed-df8663f59cc2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7018a4-e01e-007c-4cd3-90d34f000000", + "Body" : "jtfscreatefileacjtfscreatefileac0directoryapitestcreatefileac1717637643587Fri, 01 Nov 2019 16:44:26 GMT\"0x8D75EEAC1D7C6B5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "841495c1-723c-4f3a-aeed-df8663f59cc2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac1717637643587?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b2ccd1f-f60c-40c7-9453-b6ac88815e67" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ca94-a01e-0034-0fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "5b2ccd1f-f60c-40c7-9453-b6ac88815e67" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0directoryapitestcreatefileac1717637643587", "javapathcreatefileac1directoryapitestcreatefileac171515161f0", "javapathcreatefileac2directoryapitestcreatefileac17113932444" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[3].json new file mode 100644 index 0000000000000..f39a0634bdbd1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[3].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaceef746381993f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "486d657c-50b9-46fd-9d90-4db400194bc3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2098C01", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7018d0-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "486d657c-50b9-46fd-9d90-4db400194bc3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaceef746381993f/javapathcreatefileac1directoryapitestcreatefileaceef18697794?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b53bfd2d-3499-45d1-abea-71c2cf7f8f05" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2128C58", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0150-801f-00ab-45d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "b53bfd2d-3499-45d1-abea-71c2cf7f8f05" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaceef746381993f/javapathcreatefileac1directoryapitestcreatefileaceef18697794/javapathcreatefileac2directoryapitestcreatefileaceef27924feb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e883537-36c3-481e-bf7a-7b85898a6936" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC21C5B0A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0151-801f-00ab-46d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "3e883537-36c3-481e-bf7a-7b85898a6936" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaceef746381993f/javapathcreatefileac1directoryapitestcreatefileaceef18697794%2Fjavapathcreatefileac2directoryapitestcreatefileaceef27924feb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61a0fe4d-0579-41c6-84d4-e3dd05a81439" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44: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", + "ETag" : "0x8D75EEAC21C5B0A", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:26 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65cb25-a01e-0034-18d3-90e1d2000000", + "x-ms-client-request-id" : "61a0fe4d-0579-41c6-84d4-e3dd05a81439", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaceef746381993f/javapathcreatefileac1directoryapitestcreatefileaceef18697794/javapathcreatefileac2directoryapitestcreatefileaceef27924feb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5490c824-10d1-491e-b634-8796d49586bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC22BD023", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0153-801f-00ab-48d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "5490c824-10d1-491e-b634-8796d49586bd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b445cd3-6729-43b3-a64d-ebf695241065" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701940-e01e-007c-5dd3-90d34f000000", + "Body" : "jtfscreatefileacjtfscreatefileac0directoryapitestcreatefileaceef746381993fFri, 01 Nov 2019 16:44:26 GMT\"0x8D75EEAC2098C01\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "7b445cd3-6729-43b3-a64d-ebf695241065", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaceef746381993f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d45920d-fcd9-4fc1-94cf-02d4dc98d99b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65cbae-a01e-0034-14d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "5d45920d-fcd9-4fc1-94cf-02d4dc98d99b" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0directoryapitestcreatefileaceef746381993f", "javapathcreatefileac1directoryapitestcreatefileaceef18697794", "javapathcreatefileac2directoryapitestcreatefileaceef27924feb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[4].json new file mode 100644 index 0000000000000..a24aa30c130d5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaca1d4084245d6c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3140e6a3-d006-4442-85a5-752545f9893b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC244077B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70196d-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "3140e6a3-d006-4442-85a5-752545f9893b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaca1d4084245d6c/javapathcreatefileac1directoryapitestcreatefileaca1d8741467b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c8fbb324-b521-4017-b8f4-c7dc436ae7dc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC24D95B7", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0157-801f-00ab-4cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "c8fbb324-b521-4017-b8f4-c7dc436ae7dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaca1d4084245d6c/javapathcreatefileac1directoryapitestcreatefileaca1d8741467b/javapathcreatefileac2directoryapitestcreatefileaca1d55997021?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae7f73c6-9afd-42ac-97af-8bf09ab1d519" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC258228E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0159-801f-00ab-4ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "ae7f73c6-9afd-42ac-97af-8bf09ab1d519" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaca1d4084245d6c/javapathcreatefileac1directoryapitestcreatefileaca1d8741467b/javapathcreatefileac2directoryapitestcreatefileaca1d55997021?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a59d646e-a2da-4474-bcbe-1cb893152072" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2606D7E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e015b-801f-00ab-50d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "a59d646e-a2da-4474-bcbe-1cb893152072" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a549d5a5-f7e5-48c4-ad2d-67efd67a59e4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65cc89-a01e-0034-5ad3-90e1d2000000", + "Body" : "jtfscreatefileacjtfscreatefileac0directoryapitestcreatefileaca1d4084245d6cFri, 01 Nov 2019 16:44:27 GMT\"0x8D75EEAC244077B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "a549d5a5-f7e5-48c4-ad2d-67efd67a59e4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileaca1d4084245d6c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eaa6aaff-0775-4dad-be7a-96fa47866b7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7019ec-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "eaa6aaff-0775-4dad-be7a-96fa47866b7a" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0directoryapitestcreatefileaca1d4084245d6c", "javapathcreatefileac1directoryapitestcreatefileaca1d8741467b", "javapathcreatefileac2directoryapitestcreatefileaca1d55997021" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[5].json new file mode 100644 index 0000000000000..927508ad9d1aa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileac[5].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac43d00021d9411?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4593e7b9-aaf3-4b78-9693-1091077e068f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2797B4D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ccd0-a01e-0034-17d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "4593e7b9-aaf3-4b78-9693-1091077e068f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac43d00021d9411/javapathcreatefileac1directoryapitestcreatefileac43d41776f77?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1961755f-0f7f-4c87-8954-2f066650a3a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC282F315", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e015d-801f-00ab-52d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "1961755f-0f7f-4c87-8954-2f066650a3a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac43d00021d9411/javapathcreatefileac1directoryapitestcreatefileac43d41776f77/javapathcreatefileac2directoryapitestcreatefileac43d9664274c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "230242dc-0263-4ba2-a654-5a5940ab4f0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC28B830B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e015e-801f-00ab-53d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:26 GMT", + "x-ms-client-request-id" : "230242dc-0263-4ba2-a654-5a5940ab4f0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac43d00021d9411/javapathcreatefileac1directoryapitestcreatefileac43d41776f77%2Fjavapathcreatefileac2directoryapitestcreatefileac43d9664274c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e57810b-68e7-4817-8d15-4a8aaa1862eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC28B830B", + "x-ms-lease-id" : "58886bee-b145-4e43-a01a-efbc096d34fa", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701a51-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "9e57810b-68e7-4817-8d15-4a8aaa1862eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac43d00021d9411/javapathcreatefileac1directoryapitestcreatefileac43d41776f77/javapathcreatefileac2directoryapitestcreatefileac43d9664274c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7177f20f-8247-4be3-9f19-d250f6bd48eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC29BBA39", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e015f-801f-00ab-54d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "7177f20f-8247-4be3-9f19-d250f6bd48eb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce189080-d9f9-493f-a02d-334c7ad02187" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65cd83-a01e-0034-39d3-90e1d2000000", + "Body" : "jtfscreatefileacjtfscreatefileac0directoryapitestcreatefileac43d00021d9411Fri, 01 Nov 2019 16:44:27 GMT\"0x8D75EEAC2797B4D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "ce189080-d9f9-493f-a02d-334c7ad02187", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0directoryapitestcreatefileac43d00021d9411?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71b8f132-48fb-4497-aee6-489b997fda45" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701a8b-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "71b8f132-48fb-4497-aee6-489b997fda45" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0directoryapitestcreatefileac43d00021d9411", "javapathcreatefileac1directoryapitestcreatefileac43d41776f77", "javapathcreatefileac2directoryapitestcreatefileac43d9664274c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[0].json new file mode 100644 index 0000000000000..1217338b3df2f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "255ffa55-a99d-4919-9ed0-cee4418599b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2B35A72", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65cdbd-a01e-0034-6dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "255ffa55-a99d-4919-9ed0-cee4418599b3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891f/javapathcreatefileacfail10937520c683e5c63540c1?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe318100-5ad2-4d3b-9e99-080346b855fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2BD3F2F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0160-801f-00ab-55d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "fe318100-5ad2-4d3b-9e99-080346b855fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891f/javapathcreatefileacfail10937520c683e5c63540c1/javapathcreatefileacfail251052258e353621e0482e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5f4089c-6703-4512-ba98-6f514f4b176e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2C5561F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0161-801f-00ab-56d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "d5f4089c-6703-4512-ba98-6f514f4b176e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891f/javapathcreatefileacfail10937520c683e5c63540c1/javapathcreatefileacfail251052258e353621e0482e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b611c72-005f-4d0f-b91e-2743891d0ce2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0162-801f-00ab-57d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0162-801f-00ab-57d3-909968000000\\nTime:2019-11-01T16:44:27.9872080Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "4b611c72-005f-4d0f-b91e-2743891d0ce2", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "19745d19-0f13-43c4-a662-c3478babbd55" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701ad6-e01e-007c-5cd3-90d34f000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891fFri, 01 Nov 2019 16:44:27 GMT\"0x8D75EEAC2B35A72\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "19745d19-0f13-43c4-a662-c3478babbd55", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ebf84c74-3fd4-4705-a894-7bcdee656c4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ce59-a01e-0034-80d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "ebf84c74-3fd4-4705-a894-7bcdee656c4c" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0directoryapitestcreatefileacfailbbf46891f", "javapathcreatefileacfail10937520c683e5c63540c1", "javapathcreatefileacfail251052258e353621e0482e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[1].json new file mode 100644 index 0000000000000..4866663e41cbb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[1].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfail6af380988?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "444f9341-3f6d-4cf8-9790-7a98a9b3ece1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2E80630", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701b00-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "444f9341-3f6d-4cf8-9790-7a98a9b3ece1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfail6af380988/javapathcreatefileacfail14028973fe42d24c394bc5?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f80a5ff-2458-416b-83c9-40210102c901" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2F14654", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0163-801f-00ab-58d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "2f80a5ff-2458-416b-83c9-40210102c901" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfail6af380988/javapathcreatefileacfail14028973fe42d24c394bc5/javapathcreatefileacfail245920f31fa479a0ee4784?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3e93367-8cc8-4256-9243-70f3201e98b6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC2F97F1C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0164-801f-00ab-59d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "e3e93367-8cc8-4256-9243-70f3201e98b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfail6af380988/javapathcreatefileacfail14028973fe42d24c394bc5/javapathcreatefileacfail245920f31fa479a0ee4784?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0af50dc1-873c-4c93-844e-e69b691a835f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0165-801f-00ab-5ad3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0165-801f-00ab-5ad3-909968000000\\nTime:2019-11-01T16:44:28.3214472Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "0af50dc1-873c-4c93-844e-e69b691a835f", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fac1bc5c-23e3-4eae-8318-57220a1c9b26" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65cf11-a01e-0034-30d3-90e1d2000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0directoryapitestcreatefileacfail6af380988Fri, 01 Nov 2019 16:44:28 GMT\"0x8D75EEAC2E80630\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "fac1bc5c-23e3-4eae-8318-57220a1c9b26", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfail6af380988?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0212d6af-d852-41b1-a5bc-03609cb3cf5e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701b35-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "0212d6af-d852-41b1-a5bc-03609cb3cf5e" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0directoryapitestcreatefileacfail6af380988", "javapathcreatefileacfail14028973fe42d24c394bc5", "javapathcreatefileacfail245920f31fa479a0ee4784" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[2].json new file mode 100644 index 0000000000000..4daa21a91be40 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[2].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfaila71493571?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0f6c790-19e6-43c2-8bd6-00de4b01538e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC319A8D4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65cf4d-a01e-0034-68d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "c0f6c790-19e6-43c2-8bd6-00de4b01538e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfaila71493571/javapathcreatefileacfail175025126c2eab8bfe4930?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "228e6a2f-f4a8-4308-b585-2364c5e09a46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3235A64", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0166-801f-00ab-5bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "228e6a2f-f4a8-4308-b585-2364c5e09a46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfaila71493571/javapathcreatefileacfail175025126c2eab8bfe4930/javapathcreatefileacfail20240401d6173eb0b741d8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3961487d-f2ca-4574-b42a-be06b0d99e2d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC32BB84A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0167-801f-00ab-5cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:27 GMT", + "x-ms-client-request-id" : "3961487d-f2ca-4574-b42a-be06b0d99e2d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfaila71493571/javapathcreatefileacfail175025126c2eab8bfe4930/javapathcreatefileacfail20240401d6173eb0b741d8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e94e1f23-6f35-4aa1-acaa-75306b985807" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0168-801f-00ab-5dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0168-801f-00ab-5dd3-909968000000\\nTime:2019-11-01T16:44:28.6456793Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "e94e1f23-6f35-4aa1-acaa-75306b985807", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6675eff-ba1c-4b03-8641-9eefefaf9a2b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701b72-e01e-007c-6bd3-90d34f000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0directoryapitestcreatefileacfaila71493571Fri, 01 Nov 2019 16:44:28 GMT\"0x8D75EEAC319A8D4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "f6675eff-ba1c-4b03-8641-9eefefaf9a2b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfaila71493571?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e25dfae-a03b-4086-bc2f-a34ff94d5618" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65cff3-a01e-0034-80d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "7e25dfae-a03b-4086-bc2f-a34ff94d5618" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0directoryapitestcreatefileacfaila71493571", "javapathcreatefileacfail175025126c2eab8bfe4930", "javapathcreatefileacfail20240401d6173eb0b741d8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[3].json new file mode 100644 index 0000000000000..7193e4a2468a0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db8be60e-07a6-40eb-92aa-b1b01fe205ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC34B94DC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701b91-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "db8be60e-07a6-40eb-92aa-b1b01fe205ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537/javapathcreatefileacfail1464492a03d52de75f4f88?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a145cc6-5b2e-45d5-83e2-2aed053971eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC354E123", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0169-801f-00ab-5ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "7a145cc6-5b2e-45d5-83e2-2aed053971eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537/javapathcreatefileacfail1464492a03d52de75f4f88/javapathcreatefileacfail232906471d9e613b224e4c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ad7d112-6c8f-4114-aaac-416870f1e9ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC35E598F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e016a-801f-00ab-5fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "9ad7d112-6c8f-4114-aaac-416870f1e9ff" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537/javapathcreatefileacfail1464492a03d52de75f4f88%2Fjavapathcreatefileacfail232906471d9e613b224e4c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "929e69c4-b490-41de-93f6-de43c7e82390" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:28 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", + "ETag" : "0x8D75EEAC35E598F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:28 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65d07e-a01e-0034-7fd3-90e1d2000000", + "x-ms-client-request-id" : "929e69c4-b490-41de-93f6-de43c7e82390", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537/javapathcreatefileacfail1464492a03d52de75f4f88/javapathcreatefileacfail232906471d9e613b224e4c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29457366-2bfc-4ba7-bf40-230e36776003" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e016b-801f-00ab-60d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e016b-801f-00ab-60d3-909968000000\\nTime:2019-11-01T16:44:29.0339568Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "29457366-2bfc-4ba7-bf40-230e36776003", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b20bcde-5730-473d-9db2-808fc0aec079" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701be1-e01e-007c-52d3-90d34f000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537Fri, 01 Nov 2019 16:44:28 GMT\"0x8D75EEAC34B94DC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "0b20bcde-5730-473d-9db2-808fc0aec079", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "069acb38-5aaa-4e32-b7a3-666f11221150" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65d0fb-a01e-0034-71d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "069acb38-5aaa-4e32-b7a3-666f11221150" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0directoryapitestcreatefileacfailcf4998537", "javapathcreatefileacfail1464492a03d52de75f4f88", "javapathcreatefileacfail232906471d9e613b224e4c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[4].json new file mode 100644 index 0000000000000..8279eeb533881 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileacfail[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "024dd389-b80a-42c9-ad86-5c158d13074d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC385E93B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701c0c-e01e-007c-7cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "024dd389-b80a-42c9-ad86-5c158d13074d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538/javapathcreatefileacfail159425269cacb202dc4385?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "019c9be6-76f4-4551-b69f-c739c2fa1cbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC38F5280", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e016c-801f-00ab-61d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "019c9be6-76f4-4551-b69f-c739c2fa1cbe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538/javapathcreatefileacfail159425269cacb202dc4385/javapathcreatefileacfail222558ed232f77290e4378?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b7bfbd4-bc02-43fd-80b4-00e33268a110" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3977849", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e016d-801f-00ab-62d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "4b7bfbd4-bc02-43fd-80b4-00e33268a110" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538/javapathcreatefileacfail159425269cacb202dc4385%2Fjavapathcreatefileacfail222558ed232f77290e4378?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef4cce34-1f2f-426c-928b-0ed27c2f6dfa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3977849", + "x-ms-lease-id" : "22123412-b909-4a0e-a7b2-3642927f7f04", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65d1a3-a01e-0034-0dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "ef4cce34-1f2f-426c-928b-0ed27c2f6dfa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538/javapathcreatefileacfail159425269cacb202dc4385/javapathcreatefileacfail222558ed232f77290e4378?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b6c358d-a195-433d-876a-1fd75bf96363" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e016e-801f-00ab-63d3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e016e-801f-00ab-63d3-909968000000\\nTime:2019-11-01T16:44:29.4112273Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:28 GMT", + "x-ms-client-request-id" : "9b6c358d-a195-433d-876a-1fd75bf96363", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bb71304c-1405-4e74-83e9-c7ac8d673c78" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701c54-e01e-007c-39d3-90d34f000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0directoryapitestcreatefileacfailac9176538Fri, 01 Nov 2019 16:44:29 GMT\"0x8D75EEAC385E93B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "bb71304c-1405-4e74-83e9-c7ac8d673c78", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "56102559-1570-4a4d-8738-1ce5f94179db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65d206-a01e-0034-69d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "56102559-1570-4a4d-8738-1ce5f94179db" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0directoryapitestcreatefileacfailac9176538", "javapathcreatefileacfail159425269cacb202dc4385", "javapathcreatefileacfail222558ed232f77290e4378" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefiledefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefiledefaults.json new file mode 100644 index 0000000000000..3153cdc2b57f9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefiledefaults.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefiledefaults002713e17d399347be48e4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22f6eebd-b696-4da4-9c4b-5861a6e096e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC04E6E90", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c483-a01e-0034-7ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "22f6eebd-b696-4da4-9c4b-5861a6e096e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefiledefaults002713e17d399347be48e4a/javapathcreatefiledefaults1903185b9c30b3cb4e474?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f38a9c36-102a-4063-8e89-ea4679405264" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC057B8E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0130-801f-00ab-25d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "f38a9c36-102a-4063-8e89-ea4679405264" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefiledefaults002713e17d399347be48e4a/javapathcreatefiledefaults1903185b9c30b3cb4e474/javapathcreatefiledefaults2762092c29efeb635c457?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6373a257-25ae-4b69-ab3e-45e8b32e68cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC060307E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0131-801f-00ab-26d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "6373a257-25ae-4b69-ab3e-45e8b32e68cf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefiledefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a37f8c22-a2d5-45f8-af20-3ba3ca351474" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701526-e01e-007c-35d3-90d34f000000", + "Body" : "jtfscreatefiledefaultsjtfscreatefiledefaults002713e17d399347be48e4aFri, 01 Nov 2019 16:44:23 GMT\"0x8D75EEAC04E6E90\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "a37f8c22-a2d5-45f8-af20-3ba3ca351474", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefiledefaults002713e17d399347be48e4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b51d958-0b05-4b50-b72b-574caad5db80" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c4e0-a01e-0034-4bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "2b51d958-0b05-4b50-b72b-574caad5db80" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefiledefaults002713e17d399347be48e4a", "javapathcreatefiledefaults1903185b9c30b3cb4e474", "javapathcreatefiledefaults2762092c29efeb635c457" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileerror.json new file mode 100644 index 0000000000000..fcc2a23fe2ec1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileerror0directoryapitestcreatefileerrorc21630794a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2191dadc-87e3-411a-9b2e-adcd53402d3d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0770ABF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701547-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "2191dadc-87e3-411a-9b2e-adcd53402d3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileerror0directoryapitestcreatefileerrorc21630794a/javapathcreatefileerror1876081a6f1ca8b90b4de09?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14c71a54-6097-41bb-880a-746518ccbbcf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC080B168", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0132-801f-00ab-27d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "14c71a54-6097-41bb-880a-746518ccbbcf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileerror0directoryapitestcreatefileerrorc21630794a/javapathcreatefileerror1876081a6f1ca8b90b4de09/javapathcreatefileerror288906434eb0b4c6c546829?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a805b82d-4b11-4f8f-a5f4-03380081b736" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0133-801f-00ab-28d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0133-801f-00ab-28d3-909968000000\\nTime:2019-11-01T16:44:24.1674742Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "a805b82d-4b11-4f8f-a5f4-03380081b736", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ba81636-41de-43cf-8930-11e94469f821" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c541-a01e-0034-29d3-90e1d2000000", + "Body" : "jtfscreatefileerrorjtfscreatefileerror0directoryapitestcreatefileerrorc21630794aFri, 01 Nov 2019 16:44:24 GMT\"0x8D75EEAC0770ABF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "8ba81636-41de-43cf-8930-11e94469f821", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileerror0directoryapitestcreatefileerrorc21630794a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20fc1781-f126-433e-8a46-24a7fd3d2f43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701587-e01e-007c-06d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "20fc1781-f126-433e-8a46-24a7fd3d2f43" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileerror0directoryapitestcreatefileerrorc21630794a", "javapathcreatefileerror1876081a6f1ca8b90b4de09", "javapathcreatefileerror288906434eb0b4c6c546829" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileheaders[0].json new file mode 100644 index 0000000000000..249505bfe3fff --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileheaders[0].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders003900840e1e70fd194317b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97e11c2e-4184-4e62-8843-bc6afd7ac326" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC09DD56A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c585-a01e-0034-66d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "97e11c2e-4184-4e62-8843-bc6afd7ac326" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileheaders003900840e1e70fd194317b7/javapathcreatefileheaders133754f56dafc61e684bcc?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2804a257-72f4-418a-a9f7-c84fe0d94905" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0A6C4C1", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0134-801f-00ab-29d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "2804a257-72f4-418a-a9f7-c84fe0d94905" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileheaders003900840e1e70fd194317b7/javapathcreatefileheaders133754f56dafc61e684bcc/javapathcreatefileheaders222872279c95cf8f294549?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34ade698-e890-4a06-b9ff-6b33c77856a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0AF2055", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0135-801f-00ab-2ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "34ade698-e890-4a06-b9ff-6b33c77856a5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders003900840e1e70fd194317b7/javapathcreatefileheaders133754f56dafc61e684bcc%2Fjavapathcreatefileheaders222872279c95cf8f294549", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0dfd0f31-8504-4f9d-b718-e15ec8163fe8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44: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", + "ETag" : "0x8D75EEAC0AF2055", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:24 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7015f3-e01e-007c-69d3-90d34f000000", + "x-ms-client-request-id" : "0dfd0f31-8504-4f9d-b718-e15ec8163fe8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "143bd37e-415c-4a4e-beeb-e2f365b44594" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c5df-a01e-0034-36d3-90e1d2000000", + "Body" : "jtfscreatefileheadersjtfscreatefileheaders003900840e1e70fd194317b7Fri, 01 Nov 2019 16:44:24 GMT\"0x8D75EEAC09DD56A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "143bd37e-415c-4a4e-beeb-e2f365b44594", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders003900840e1e70fd194317b7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c063fef-2377-45c9-a577-46a7d9862607" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701616-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "8c063fef-2377-45c9-a577-46a7d9862607" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileheaders003900840e1e70fd194317b7", "javapathcreatefileheaders133754f56dafc61e684bcc", "javapathcreatefileheaders222872279c95cf8f294549" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileheaders[1].json new file mode 100644 index 0000000000000..177ea13ad786d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefileheaders[1].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders06496131d0dd9bc56840edb2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca9284d8-ca82-47fd-b9b2-012674376d5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0D0120E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c62d-a01e-0034-01d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "ca9284d8-ca82-47fd-b9b2-012674376d5d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileheaders06496131d0dd9bc56840edb2/javapathcreatefileheaders186382c4cdcc202c044e29?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9217d53-1c6b-4a63-b97a-549ec6713eeb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0D98D84", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0136-801f-00ab-2bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "f9217d53-1c6b-4a63-b97a-549ec6713eeb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileheaders06496131d0dd9bc56840edb2/javapathcreatefileheaders186382c4cdcc202c044e29/javapathcreatefileheaders2572741ed63b958a824aee?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "723ea22e-f6fc-48ad-804e-312d3904c253" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0E1AFA9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0137-801f-00ab-2cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "723ea22e-f6fc-48ad-804e-312d3904c253" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders06496131d0dd9bc56840edb2/javapathcreatefileheaders186382c4cdcc202c044e29%2Fjavapathcreatefileheaders2572741ed63b958a824aee", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cefb0119-c9a2-4ca0-ad08-262b7786b977" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44: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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEAC0E1AFA9", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:24 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc701645-e01e-007c-33d3-90d34f000000", + "x-ms-client-request-id" : "cefb0119-c9a2-4ca0-ad08-262b7786b977", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "783720c1-a6ad-47d3-a204-2ea570fdebbe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c69e-a01e-0034-69d3-90e1d2000000", + "Body" : "jtfscreatefileheadersjtfscreatefileheaders06496131d0dd9bc56840edb2Fri, 01 Nov 2019 16:44:24 GMT\"0x8D75EEAC0D0120E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "783720c1-a6ad-47d3-a204-2ea570fdebbe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders06496131d0dd9bc56840edb2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1dec44c1-b096-4526-a4a7-6bc93ebbfb1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701659-e01e-007c-44d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "1dec44c1-b096-4526-a4a7-6bc93ebbfb1a" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileheaders06496131d0dd9bc56840edb2", "javapathcreatefileheaders186382c4cdcc202c044e29", "javapathcreatefileheaders2572741ed63b958a824aee" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemetadata[0].json new file mode 100644 index 0000000000000..2a7e1bdc8d475 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemetadata[0].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata06412704f2616cf2334adca?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "716d881f-cb2d-4472-9876-12f755f67252" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC101D96D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c6de-a01e-0034-24d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "716d881f-cb2d-4472-9876-12f755f67252" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemetadata06412704f2616cf2334adca/javapathcreatefilemetadata10354825a5de26490245b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87f697c7-cf8f-4438-9a9d-d7b164d1f88c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC10B1AC7", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0138-801f-00ab-2dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "87f697c7-cf8f-4438-9a9d-d7b164d1f88c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemetadata06412704f2616cf2334adca/javapathcreatefilemetadata10354825a5de26490245b/javapathcreatefilemetadata26342305785e7ae1bd4ef?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff8e395d-6389-4460-acce-f2a6202925d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC1138E50", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0139-801f-00ab-2ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "ff8e395d-6389-4460-acce-f2a6202925d6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata06412704f2616cf2334adca/javapathcreatefilemetadata10354825a5de26490245b%2Fjavapathcreatefilemetadata26342305785e7ae1bd4ef", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e250d44-6829-4edd-b7a2-91b8a496a44b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44: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", + "ETag" : "0x8D75EEAC1138E50", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:25 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc701699-e01e-007c-7cd3-90d34f000000", + "x-ms-client-request-id" : "8e250d44-6829-4edd-b7a2-91b8a496a44b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b6af516-4487-4688-96d5-9290a2e469bf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c776-a01e-0034-2fd3-90e1d2000000", + "Body" : "jtfscreatefilemetadatajtfscreatefilemetadata06412704f2616cf2334adcaFri, 01 Nov 2019 16:44:24 GMT\"0x8D75EEAC101D96D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "3b6af516-4487-4688-96d5-9290a2e469bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata06412704f2616cf2334adca?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4aafe99-5700-4991-b057-8006ce6c0360" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7016b9-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "b4aafe99-5700-4991-b057-8006ce6c0360" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilemetadata06412704f2616cf2334adca", "javapathcreatefilemetadata10354825a5de26490245b", "javapathcreatefilemetadata26342305785e7ae1bd4ef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemetadata[1].json new file mode 100644 index 0000000000000..16f2d925e71f2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemetadata[1].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata03870145416f0b013a40e6a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a60da6a0-939d-4826-a306-97c324c92981" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC132DD59", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c79d-a01e-0034-54d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "a60da6a0-939d-4826-a306-97c324c92981" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemetadata03870145416f0b013a40e6a/javapathcreatefilemetadata1924414006557fb2b942f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "545e559c-7e1e-4a5a-9ee1-e6281637a75c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC13C333A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e013a-801f-00ab-2fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "545e559c-7e1e-4a5a-9ee1-e6281637a75c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemetadata03870145416f0b013a40e6a/javapathcreatefilemetadata1924414006557fb2b942f/javapathcreatefilemetadata2988516a92e6e7b36448c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2908d68-af50-47e9-a8bc-ab221b0f0cba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC144C852", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e013b-801f-00ab-30d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:24 GMT", + "x-ms-client-request-id" : "c2908d68-af50-47e9-a8bc-ab221b0f0cba" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata03870145416f0b013a40e6a/javapathcreatefilemetadata1924414006557fb2b942f%2Fjavapathcreatefilemetadata2988516a92e6e7b36448c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b1f6200-7909-4738-9872-964a675dd750" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D75EEAC144C852", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:25 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7016fd-e01e-007c-57d3-90d34f000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "4b1f6200-7909-4738-9872-964a675dd750", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87492e80-5dc5-46b5-942a-7af79c0cceb0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c7f9-a01e-0034-29d3-90e1d2000000", + "Body" : "jtfscreatefilemetadatajtfscreatefilemetadata03870145416f0b013a40e6aFri, 01 Nov 2019 16:44:25 GMT\"0x8D75EEAC132DD59\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "87492e80-5dc5-46b5-942a-7af79c0cceb0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata03870145416f0b013a40e6a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7176643-2b57-4d18-bacf-bacee2980690" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701721-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:25 GMT", + "x-ms-client-request-id" : "e7176643-2b57-4d18-bacf-bacee2980690" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilemetadata03870145416f0b013a40e6a", "javapathcreatefilemetadata1924414006557fb2b942f", "javapathcreatefilemetadata2988516a92e6e7b36448c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemin.json new file mode 100644 index 0000000000000..61c32c0a296cd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilemin.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemin0directoryapitestcreatefilemin6ae934655e64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8f133e7-a8f6-4a6c-8c00-f1fad97ddd9c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0266B34", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7014b1-e01e-007c-4ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "f8f133e7-a8f6-4a6c-8c00-f1fad97ddd9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemin0directoryapitestcreatefilemin6ae934655e64/javapathcreatefilemin1directoryapitestcreatefilemin6ae95173c3?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b798a4ff-da90-409c-bbad-3519e21ed528" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC02F9C80", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e012e-801f-00ab-23d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "b798a4ff-da90-409c-bbad-3519e21ed528" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemin0directoryapitestcreatefilemin6ae934655e64/javapathcreatefilemin1directoryapitestcreatefilemin6ae95173c3/javapathcreatefilemin2directoryapitestcreatefilemin6ae87363c4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "75c2c36c-b13e-4c64-8c72-6b6703635289" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC037DBB2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e012f-801f-00ab-24d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "75c2c36c-b13e-4c64-8c72-6b6703635289" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a921c8b-65c1-40b4-a9e8-f998b565936c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c45c-a01e-0034-56d3-90e1d2000000", + "Body" : "jtfscreatefileminjtfscreatefilemin0directoryapitestcreatefilemin6ae934655e64Fri, 01 Nov 2019 16:44:23 GMT\"0x8D75EEAC0266B34\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "4a921c8b-65c1-40b4-a9e8-f998b565936c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemin0directoryapitestcreatefilemin6ae934655e64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42a044f3-0430-4c0b-8227-4731c952e198" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7014ea-e01e-007c-7ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "42a044f3-0430-4c0b-8227-4731c952e198" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilemin0directoryapitestcreatefilemin6ae934655e64", "javapathcreatefilemin1directoryapitestcreatefilemin6ae95173c3", "javapathcreatefilemin2directoryapitestcreatefilemin6ae87363c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilepermissionsandumask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilepermissionsandumask.json new file mode 100644 index 0000000000000..daa628bced03a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatefilepermissionsandumask.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilepermissionsandumask026387a1d61b103f60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd9bc905-e4da-4728-8559-9f8d49a7f9fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3BF04ED", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701c69-e01e-007c-4ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "bd9bc905-e4da-4728-8559-9f8d49a7f9fa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilepermissionsandumask026387a1d61b103f60/javapathcreatefilepermissionsandumask153669bc30a85a29?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9618ee1d-c115-42d8-aedd-f7672031eb8e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3C9093E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e016f-801f-00ab-64d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "9618ee1d-c115-42d8-aedd-f7672031eb8e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilepermissionsandumask026387a1d61b103f60/javapathcreatefilepermissionsandumask153669bc30a85a29/javapathcreatefilepermissionsandumask294169efc0aac568?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d0d6f519-fcae-48ee-bc6a-eb5fb1df8aa1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3D3BFF1", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0170-801f-00ab-65d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "d0d6f519-fcae-48ee-bc6a-eb5fb1df8aa1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilepermissionsandumask&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a22f234f-6ec0-4115-8c2f-44ee8dd463ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65d29f-a01e-0034-75d3-90e1d2000000", + "Body" : "jtfscreatefilepermissionsandumaskjtfscreatefilepermissionsandumask026387a1d61b103f60Fri, 01 Nov 2019 16:44:29 GMT\"0x8D75EEAC3BF04ED\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "a22f234f-6ec0-4115-8c2f-44ee8dd463ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilepermissionsandumask026387a1d61b103f60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c259874f-3a24-4ffc-929b-bdc38c8fc104" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701c9e-e01e-007c-80d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "c259874f-3a24-4ffc-929b-bdc38c8fc104" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilepermissionsandumask026387a1d61b103f60", "javapathcreatefilepermissionsandumask153669bc30a85a29", "javapathcreatefilepermissionsandumask294169efc0aac568" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateheaders[0].json new file mode 100644 index 0000000000000..9085ef5ec0db0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateheaders[0].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0directoryapitestcreateheadersfd0368550592?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "02f3de90-2283-4d7f-999b-74a631315815" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA83271A9", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656f54-a01e-0034-48d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "02f3de90-2283-4d7f-999b-74a631315815" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0directoryapitestcreateheadersfd0368550592/javapathcreateheaders1directoryapitestcreateheadersfd01799148?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e6d1ba8-abd2-403c-b602-5a8dd46358e0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA83BF281", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0024-801f-00ab-22d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "5e6d1ba8-abd2-403c-b602-5a8dd46358e0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0directoryapitestcreateheadersfd0368550592/javapathcreateheaders2directoryapitestcreateheadersfd0588905d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ad4b1f6-9704-4eca-9761-51cee3481e3f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8457E1D", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0025-801f-00ab-23d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "6ad4b1f6-9704-4eca-9761-51cee3481e3f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0directoryapitestcreateheadersfd0368550592/javapathcreateheaders2directoryapitestcreateheadersfd0588905d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e2ad0d8-d75e-4b62-ac60-f9813587d46e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:43 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", + "ETag" : "0x8D75EEAA8457E1D", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:43 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fdb90-e01e-007c-4ed3-90d34f000000", + "x-ms-client-request-id" : "9e2ad0d8-d75e-4b62-ac60-f9813587d46e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92fd8c4d-7cde-4ded-b1bb-81b7d040693c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a656fce-a01e-0034-37d3-90e1d2000000", + "Body" : "jtfscreateheadersjtfscreateheaders0directoryapitestcreateheadersfd0368550592Fri, 01 Nov 2019 16:43:43 GMT\"0x8D75EEAA83271A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "92fd8c4d-7cde-4ded-b1bb-81b7d040693c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0directoryapitestcreateheadersfd0368550592?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e69d17b-e0c6-4087-98e3-3a66393fdeca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdbc7-e01e-007c-80d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "8e69d17b-e0c6-4087-98e3-3a66393fdeca" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateheaders0directoryapitestcreateheadersfd0368550592", "javapathcreateheaders1directoryapitestcreateheadersfd01799148", "javapathcreateheaders2directoryapitestcreateheadersfd0588905d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateheaders[1].json new file mode 100644 index 0000000000000..f95f86ebab470 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreateheaders[1].json @@ -0,0 +1,142 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "13cd5264-19cd-42c5-bc28-850023d33c8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8676DED", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656ffb-a01e-0034-61d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "13cd5264-19cd-42c5-bc28-850023d33c8c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9/javapathcreateheaders1directoryapitestcreateheaders5ea4402646?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d3deb320-1b15-4b4d-ae05-be01d40c9179" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA870E76D", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0026-801f-00ab-24d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "d3deb320-1b15-4b4d-ae05-be01d40c9179" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9/javapathcreateheaders2directoryapitestcreateheaders5ea700548e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62869357-c984-4d76-8fbc-f80da692ef6a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA87887E8", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0027-801f-00ab-25d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "62869357-c984-4d76-8fbc-f80da692ef6a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9/javapathcreateheaders2directoryapitestcreateheaders5ea700548e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b0cd630b-ed6c-4218-bf1a-0e141050b9cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:43 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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEAA87887E8", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:43 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fdc29-e01e-007c-5fd3-90d34f000000", + "x-ms-client-request-id" : "b0cd630b-ed6c-4218-bf1a-0e141050b9cf", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a82accf8-60a5-42b3-aeb4-9a1f77e88904" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657062-a01e-0034-39d3-90e1d2000000", + "Body" : "jtfscreateheadersjtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9Fri, 01 Nov 2019 16:43:43 GMT\"0x8D75EEAA8676DED\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "a82accf8-60a5-42b3-aeb4-9a1f77e88904", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6b3c61a-7c82-4b93-86d6-0198c5f0f275" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdc50-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "c6b3c61a-7c82-4b93-86d6-0198c5f0f275" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateheaders0directoryapitestcreateheaders5ea70702e7e9", "javapathcreateheaders1directoryapitestcreateheaders5ea4402646", "javapathcreateheaders2directoryapitestcreateheaders5ea700548e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemetadata[0].json new file mode 100644 index 0000000000000..93ad255eac383 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemetadata[0].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata7c627640648?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66952e23-289e-4c95-b5ce-6bd9158e4101" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA897D57C", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657093-a01e-0034-65d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "66952e23-289e-4c95-b5ce-6bd9158e4101" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata7c627640648/javapathcreatemetadata1directoryapitestcreatemetadata7c6673332?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7cce695-38c5-4331-8bed-80e11b7ed9e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8A11BB7", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0028-801f-00ab-26d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "a7cce695-38c5-4331-8bed-80e11b7ed9e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata7c627640648/javapathcreatemetadata1directoryapitestcreatemetadata7c6673332?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eef35930-af74-46e8-96e3-16f223a30843" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8A8D0FA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0029-801f-00ab-27d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "eef35930-af74-46e8-96e3-16f223a30843" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata7c627640648/javapathcreatemetadata1directoryapitestcreatemetadata7c6673332", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2dd83d7b-2c35-40e7-bbc5-d1b2f7fd07ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:44 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", + "ETag" : "0x8D75EEAA8A8D0FA", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:44 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fdce5-e01e-007c-11d3-90d34f000000", + "x-ms-client-request-id" : "2dd83d7b-2c35-40e7-bbc5-d1b2f7fd07ab", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d0264c4b-49a1-4c78-86bb-3c79de9ce3aa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657119-a01e-0034-61d3-90e1d2000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0directoryapitestcreatemetadata7c627640648Fri, 01 Nov 2019 16:43:44 GMT\"0x8D75EEAA897D57C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "d0264c4b-49a1-4c78-86bb-3c79de9ce3aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata7c627640648?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33430f57-3c00-42af-ab26-c8a8f18fece1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdd09-e01e-007c-31d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "33430f57-3c00-42af-ab26-c8a8f18fece1" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0directoryapitestcreatemetadata7c627640648", "javapathcreatemetadata1directoryapitestcreatemetadata7c6673332" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemetadata[1].json new file mode 100644 index 0000000000000..af527e6141d4a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemetadata[1].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata3c31583098b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04d145f1-c05a-485a-abc4-33bcd2bdbc9e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8C7A0AF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65713c-a01e-0034-7dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "04d145f1-c05a-485a-abc4-33bcd2bdbc9e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata3c31583098b/javapathcreatemetadata1directoryapitestcreatemetadata3c3825620?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aedeb993-3199-467a-8064-95424122fb52" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8D0D0C6", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e002a-801f-00ab-28d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "aedeb993-3199-467a-8064-95424122fb52" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata3c31583098b/javapathcreatemetadata1directoryapitestcreatemetadata3c3825620?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17b4f38b-ea06-45b2-a493-d2c381559df8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA8D8D3AF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e002b-801f-00ab-29d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:43 GMT", + "x-ms-client-request-id" : "17b4f38b-ea06-45b2-a493-d2c381559df8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata3c31583098b/javapathcreatemetadata1directoryapitestcreatemetadata3c3825620", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "630b35c8-7fae-432b-89c7-dbcbe4d7a5de" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:44 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEAA8D8D3AF", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:44 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fdd77-e01e-007c-18d3-90d34f000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "630b35c8-7fae-432b-89c7-dbcbe4d7a5de", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d7c946b0-fe74-4bf1-ae87-25791fc6d103" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6571a0-a01e-0034-56d3-90e1d2000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0directoryapitestcreatemetadata3c31583098bFri, 01 Nov 2019 16:43:44 GMT\"0x8D75EEAA8C7A0AF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "d7c946b0-fe74-4bf1-ae87-25791fc6d103", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0directoryapitestcreatemetadata3c31583098b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c0d0ba9-2eca-4379-923f-db5d77182019" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fdda0-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:44 GMT", + "x-ms-client-request-id" : "5c0d0ba9-2eca-4379-923f-db5d77182019" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0directoryapitestcreatemetadata3c31583098b", "javapathcreatemetadata1directoryapitestcreatemetadata3c3825620" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemin.json new file mode 100644 index 0000000000000..bdabc61e28372 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatemin.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin0directoryapitestcreatemine7574178f204123f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78461e33-1cc8-496d-baf0-0a6ae10a73fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA7B6F2A5", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd9c3-e01e-007c-18d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "78461e33-1cc8-496d-baf0-0a6ae10a73fd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemin0directoryapitestcreatemine7574178f204123f/javapathcreatemin1directoryapitestcreatemine75978454c31a8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "40d452f5-b90c-44a1-ac6b-5fdedab52376" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA7C479A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e001e-801f-00ab-1cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "40d452f5-b90c-44a1-ac6b-5fdedab52376" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemin0directoryapitestcreatemine7574178f204123f/javapathcreatemin2directoryapitestcreatemine750913204fa89?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ca53b03-0513-4fbf-913e-2ad1d6dcbab8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA7CBF4A8", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e001f-801f-00ab-1dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "4ca53b03-0513-4fbf-913e-2ad1d6dcbab8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "00cfbb3a-6442-4e26-bcd1-2bf9de6a02e7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a656e40-a01e-0034-4bd3-90e1d2000000", + "Body" : "jtfscreateminjtfscreatemin0directoryapitestcreatemine7574178f204123fFri, 01 Nov 2019 16:43:42 GMT\"0x8D75EEAA7B6F2A5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "00cfbb3a-6442-4e26-bcd1-2bf9de6a02e7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin0directoryapitestcreatemine7574178f204123f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d8c9ffb-f3a8-43dc-889a-c89d17fa0c6c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fda0a-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "8d8c9ffb-f3a8-43dc-889a-c89d17fa0c6c" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemin0directoryapitestcreatemine7574178f204123f", "javapathcreatemin1directoryapitestcreatemine75978454c31a8", "javapathcreatemin2directoryapitestcreatemine750913204fa89" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatepermissionsandumask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatepermissionsandumask.json new file mode 100644 index 0000000000000..1768b281f78f6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatepermissionsandumask.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepermissionsandumask0675554ab0ddd5c1fe42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38c61907-4280-4ee2-88fc-73d36b593fb1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAAE3709F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe1b0-e01e-007c-02d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "38c61907-4280-4ee2-88fc-73d36b593fb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatepermissionsandumask0675554ab0ddd5c1fe42/javapathcreatepermissionsandumask118170a8486cafd1ab?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ef265ba-1810-41a3-a513-d583df7d4333" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAAECCB96", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0044-801f-00ab-42d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "1ef265ba-1810-41a3-a513-d583df7d4333" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatepermissionsandumask0675554ab0ddd5c1fe42/javapathcreatepermissionsandumask118170a8486cafd1ab?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7dbe8d47-7377-4e3e-b5ba-63caf47898c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAAF451F4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0045-801f-00ab-43d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "7dbe8d47-7377-4e3e-b5ba-63caf47898c0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatepermissionsandumask&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c8698742-a7db-4e33-ad16-5035f844d0c9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6578aa-a01e-0034-2ad3-90e1d2000000", + "Body" : "jtfscreatepermissionsandumaskjtfscreatepermissionsandumask0675554ab0ddd5c1fe42Fri, 01 Nov 2019 16:43:47 GMT\"0x8D75EEAAAE3709F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "c8698742-a7db-4e33-ad16-5035f844d0c9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepermissionsandumask0675554ab0ddd5c1fe42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "75e53b19-5a94-447c-af57-b1b3d13a7e70" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe1f4-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "75e53b19-5a94-447c-af57-b1b3d13a7e70" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatepermissionsandumask0675554ab0ddd5c1fe42", "javapathcreatepermissionsandumask118170a8486cafd1ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[0].json new file mode 100644 index 0000000000000..cb8f0fc09a4b7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[0].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db964484-34b1-4a12-9184-59679c9efa03" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8254CD5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702650-e01e-007c-69d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "db964484-34b1-4a12-9184-59679c9efa03" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8/javapathcreatesubdirac1directoryapitestcreatesubdiraca4f002085?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9dc2731-477a-4158-946f-1d756bf632ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC82E6EAF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a8-801f-00ab-1dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "e9dc2731-477a-4158-946f-1d756bf632ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8/javapathcreatesubdirac1directoryapitestcreatesubdiraca4f002085/javapathcreatesubdirac2directoryapitestcreatesubdiraca4f71929e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a518ebb-3bcc-46fc-a2d3-47aac96d3c36" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC835E38C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a9-801f-00ab-1ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "8a518ebb-3bcc-46fc-a2d3-47aac96d3c36" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8/javapathcreatesubdirac1directoryapitestcreatesubdiraca4f002085/javapathcreatesubdirac2directoryapitestcreatesubdiraca4f71929e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c137971b-fff7-488a-b7b9-a00d7fa8adf7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC83D7C1C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01aa-801f-00ab-1fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "c137971b-fff7-488a-b7b9-a00d7fa8adf7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9cb4441-7ba0-4f2f-a159-41ae9030f919" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65e465-a01e-0034-5cd3-90e1d2000000", + "Body" : "jtfscreatesubdiracjtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8Fri, 01 Nov 2019 16:44:36 GMT\"0x8D75EEAC8254CD5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "c9cb4441-7ba0-4f2f-a159-41ae9030f919", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f49b71c-873e-4974-89ea-901ed41c3f0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7026ab-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "9f49b71c-873e-4974-89ea-901ed41c3f0f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirac0directoryapitestcreatesubdiraca4f162386b8", "javapathcreatesubdirac1directoryapitestcreatesubdiraca4f002085", "javapathcreatesubdirac2directoryapitestcreatesubdiraca4f71929e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[1].json new file mode 100644 index 0000000000000..0e996c339ae2e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[1].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d39d8d4-0743-45da-ab2e-0c75d1951a6f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC857657E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65e4ad-a01e-0034-20d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "3d39d8d4-0743-45da-ab2e-0c75d1951a6f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381a/javapathcreatesubdirac1directoryapitestcreatesubdirac7ed043175?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac7f7878-771e-4e08-89f8-da899685fc58" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8650ABF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ab-801f-00ab-20d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "ac7f7878-771e-4e08-89f8-da899685fc58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381a/javapathcreatesubdirac1directoryapitestcreatesubdirac7ed043175/javapathcreatesubdirac2directoryapitestcreatesubdirac7ed416125?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97aedc6d-7573-4a5c-9925-7f19f0eaf934" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC86CBB11", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ac-801f-00ab-21d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "97aedc6d-7573-4a5c-9925-7f19f0eaf934" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381a/javapathcreatesubdirac1directoryapitestcreatesubdirac7ed043175/javapathcreatesubdirac2directoryapitestcreatesubdirac7ed416125?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dcefca99-136c-41e2-aae2-2134091f262c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8749BB6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ad-801f-00ab-22d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "dcefca99-136c-41e2-aae2-2134091f262c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b71e126-8ecb-4005-9ba6-5fa5edb00e54" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702718-e01e-007c-27d3-90d34f000000", + "Body" : "jtfscreatesubdiracjtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381aFri, 01 Nov 2019 16:44:37 GMT\"0x8D75EEAC857657E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "3b71e126-8ecb-4005-9ba6-5fa5edb00e54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3705906e-982b-4af3-8925-841cb2fc5e39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e543-a01e-0034-2bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "3705906e-982b-4af3-8925-841cb2fc5e39" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirac0directoryapitestcreatesubdirac7ed5350381a", "javapathcreatesubdirac1directoryapitestcreatesubdirac7ed043175", "javapathcreatesubdirac2directoryapitestcreatesubdirac7ed416125" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[2].json new file mode 100644 index 0000000000000..e7114cb3813ed --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[2].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbdb7b57-d8d4-4212-9a05-379264a6a161" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC88D703D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702737-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "dbdb7b57-d8d4-4212-9a05-379264a6a161" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6/javapathcreatesubdirac1directoryapitestcreatesubdirace5d982596?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5ba4cc3-5d72-479a-9bdd-81119d51d5be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC89AFF31", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ae-801f-00ab-23d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "d5ba4cc3-5d72-479a-9bdd-81119d51d5be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6/javapathcreatesubdirac1directoryapitestcreatesubdirace5d982596/javapathcreatesubdirac2directoryapitestcreatesubdirace5d78950f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aa80ce7b-09f4-4a41-8439-a6b817e02817" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8A2AA48", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01af-801f-00ab-24d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "aa80ce7b-09f4-4a41-8439-a6b817e02817" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6/javapathcreatesubdirac1directoryapitestcreatesubdirace5d982596/javapathcreatesubdirac2directoryapitestcreatesubdirace5d78950f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0936a508-ff97-4abb-aaa7-05183c35d29b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8AA391B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b0-801f-00ab-25d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "0936a508-ff97-4abb-aaa7-05183c35d29b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9e9b773-ff9c-41e8-9807-b2fef8a9b0c1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65e5fe-a01e-0034-56d3-90e1d2000000", + "Body" : "jtfscreatesubdiracjtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6Fri, 01 Nov 2019 16:44:37 GMT\"0x8D75EEAC88D703D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "a9e9b773-ff9c-41e8-9807-b2fef8a9b0c1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22692880-ea8e-41f0-a1e5-ebcbdf597cfa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702782-e01e-007c-06d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "22692880-ea8e-41f0-a1e5-ebcbdf597cfa" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirac0directoryapitestcreatesubdirace5d973336c6", "javapathcreatesubdirac1directoryapitestcreatesubdirace5d982596", "javapathcreatesubdirac2directoryapitestcreatesubdirace5d78950f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[3].json new file mode 100644 index 0000000000000..a6096cf6f31de --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30115fba-377a-4591-a388-47fcf076f33f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8C24890", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65e654-a01e-0034-26d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "30115fba-377a-4591-a388-47fcf076f33f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7/javapathcreatesubdirac1directoryapitestcreatesubdirac8dd10342e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "520961d4-6f7d-41e0-bcbc-e38126f3e13d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8CB6688", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b1-801f-00ab-26d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "520961d4-6f7d-41e0-bcbc-e38126f3e13d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7/javapathcreatesubdirac1directoryapitestcreatesubdirac8dd10342e/javapathcreatesubdirac2directoryapitestcreatesubdirac8dd984438?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc6d9a44-715b-4f29-afc6-8a121a7ec75e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8D318A3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b2-801f-00ab-27d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "dc6d9a44-715b-4f29-afc6-8a121a7ec75e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7/javapathcreatesubdirac1directoryapitestcreatesubdirac8dd10342e%2Fjavapathcreatesubdirac2directoryapitestcreatesubdirac8dd984438", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31400db5-1f83-4c02-946a-699454ee13e8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:37 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", + "ETag" : "0x8D75EEAC8D318A3", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:38 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7027cc-e01e-007c-47d3-90d34f000000", + "x-ms-client-request-id" : "31400db5-1f83-4c02-946a-699454ee13e8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7/javapathcreatesubdirac1directoryapitestcreatesubdirac8dd10342e/javapathcreatesubdirac2directoryapitestcreatesubdirac8dd984438?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3b73a2b-4c28-41be-83e7-97b76a296062" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8E29AB2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b3-801f-00ab-28d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "b3b73a2b-4c28-41be-83e7-97b76a296062" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f7d7cd1-375a-4e7b-95df-dd0d6e17dfbc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65e724-a01e-0034-6bd3-90e1d2000000", + "Body" : "jtfscreatesubdiracjtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7Fri, 01 Nov 2019 16:44:37 GMT\"0x8D75EEAC8C24890\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "9f7d7cd1-375a-4e7b-95df-dd0d6e17dfbc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e16055f-c3be-4f18-9bee-3839e63dbfc4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702801-e01e-007c-73d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "8e16055f-c3be-4f18-9bee-3839e63dbfc4" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirac0directoryapitestcreatesubdirac8dd87840ae7", "javapathcreatesubdirac1directoryapitestcreatesubdirac8dd10342e", "javapathcreatesubdirac2directoryapitestcreatesubdirac8dd984438" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[4].json new file mode 100644 index 0000000000000..a1b159273da39 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[4].json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb950788572d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98cba0f6-62ca-43bc-aa50-b72b922c5ba4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC8FC9CFA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65e788-a01e-0034-4ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "98cba0f6-62ca-43bc-aa50-b72b922c5ba4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb950788572d/javapathcreatesubdirac1directoryapitestcreatesubdiracb95297527?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "21473588-1543-4e8e-87b1-012efac23da0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC905A91A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b4-801f-00ab-29d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "21473588-1543-4e8e-87b1-012efac23da0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb950788572d/javapathcreatesubdirac1directoryapitestcreatesubdiracb95297527/javapathcreatesubdirac2directoryapitestcreatesubdiracb95749078?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82b853ed-712a-4550-9985-a15ccf7e8bc9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC90D1E65", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b5-801f-00ab-2ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "82b853ed-712a-4550-9985-a15ccf7e8bc9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb950788572d/javapathcreatesubdirac1directoryapitestcreatesubdiracb95297527/javapathcreatesubdirac2directoryapitestcreatesubdiracb95749078?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6015ea88-ea9f-487a-9dcd-5bf076e81021" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC914C8E2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b6-801f-00ab-2bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:37 GMT", + "x-ms-client-request-id" : "6015ea88-ea9f-487a-9dcd-5bf076e81021" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a31bd472-ea24-4ee8-9ae2-39b65bd9925a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702840-e01e-007c-30d3-90d34f000000", + "Body" : "jtfscreatesubdiracjtfscreatesubdirac0directoryapitestcreatesubdiracb950788572dFri, 01 Nov 2019 16:44:38 GMT\"0x8D75EEAC8FC9CFA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "a31bd472-ea24-4ee8-9ae2-39b65bd9925a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb950788572d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "acbf848d-6922-4c94-95f4-492871d58541" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e80f-a01e-0034-49d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "acbf848d-6922-4c94-95f4-492871d58541" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirac0directoryapitestcreatesubdiracb950788572d", "javapathcreatesubdirac1directoryapitestcreatesubdiracb95297527", "javapathcreatesubdirac2directoryapitestcreatesubdiracb95749078" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[5].json new file mode 100644 index 0000000000000..ad701ac64d056 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirac[5].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2663cc4-2424-4172-9561-8513dee8335c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC92B5350", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702859-e01e-007c-49d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "a2663cc4-2424-4172-9561-8513dee8335c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b/javapathcreatesubdirac1directoryapitestcreatesubdiracb8a63883c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d0cd39a3-df21-460f-9da1-55d0109725b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC93471E2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b7-801f-00ab-2cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "d0cd39a3-df21-460f-9da1-55d0109725b3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b/javapathcreatesubdirac1directoryapitestcreatesubdiracb8a63883c/javapathcreatesubdirac2directoryapitestcreatesubdiracb8a25730f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4dec441b-a854-49b3-9010-0c2dd8bcfb22" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC93C102D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b8-801f-00ab-2dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "4dec441b-a854-49b3-9010-0c2dd8bcfb22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b/javapathcreatesubdirac1directoryapitestcreatesubdiracb8a63883c%2Fjavapathcreatesubdirac2directoryapitestcreatesubdiracb8a25730f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "482a7f9a-9cf8-4372-8709-02fdacc86737" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC93C102D", + "x-ms-lease-id" : "81ac7323-0c75-4324-bd82-d54d438a1cee", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65e880-a01e-0034-32d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "482a7f9a-9cf8-4372-8709-02fdacc86737" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b/javapathcreatesubdirac1directoryapitestcreatesubdiracb8a63883c/javapathcreatesubdirac2directoryapitestcreatesubdiracb8a25730f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b2e1cf3-b7cd-404f-ae6a-023cbaa2488d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC94C9E0E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01b9-801f-00ab-2ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "6b2e1cf3-b7cd-404f-ae6a-023cbaa2488d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c66bd3ed-f266-468e-9a56-f4cf06bce3f9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7028ad-e01e-007c-12d3-90d34f000000", + "Body" : "jtfscreatesubdiracjtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3bFri, 01 Nov 2019 16:44:38 GMT\"0x8D75EEAC92B5350\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "c66bd3ed-f266-468e-9a56-f4cf06bce3f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3ab6bb5-0e6e-4471-b25c-7ea952f8c231" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e8f3-a01e-0034-19d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "f3ab6bb5-0e6e-4471-b25c-7ea952f8c231" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirac0directoryapitestcreatesubdiracb8a63857d3b", "javapathcreatesubdirac1directoryapitestcreatesubdiracb8a63883c", "javapathcreatesubdirac2directoryapitestcreatesubdiracb8a25730f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[0].json new file mode 100644 index 0000000000000..d16d29bbb9a31 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail04322425fb843c9da944ac8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "977948b3-83a7-4ce6-a62e-b8f8af6eddfc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9661CF3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7028d7-e01e-007c-3bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "977948b3-83a7-4ce6-a62e-b8f8af6eddfc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail04322425fb843c9da944ac8/javapathcreatesubdiracfail171345bfadb76d682c44a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f153e228-a250-4527-a113-a33729e9113d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9738470", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01bc-801f-00ab-31d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "f153e228-a250-4527-a113-a33729e9113d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail04322425fb843c9da944ac8/javapathcreatesubdiracfail171345bfadb76d682c44a/javapathcreatesubdiracfail289189248916b9c7964f8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93eb47f7-1304-4587-8e7e-f67df3ff97cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC97B166B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01bd-801f-00ab-32d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "93eb47f7-1304-4587-8e7e-f67df3ff97cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail04322425fb843c9da944ac8/javapathcreatesubdiracfail171345bfadb76d682c44a/javapathcreatesubdiracfail289189248916b9c7964f8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c071b7b-56aa-439d-b9e1-47b77a9223dc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01be-801f-00ab-33d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01be-801f-00ab-33d3-909968000000\\nTime:2019-11-01T16:44:39.2632791Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "8c071b7b-56aa-439d-b9e1-47b77a9223dc", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a113cda3-8106-4f9f-931e-89c3e9d4bea4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65e9ad-a01e-0034-41d3-90e1d2000000", + "Body" : "jtfscreatesubdiracfailjtfscreatesubdiracfail04322425fb843c9da944ac8Fri, 01 Nov 2019 16:44:39 GMT\"0x8D75EEAC9661CF3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "a113cda3-8106-4f9f-931e-89c3e9d4bea4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail04322425fb843c9da944ac8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "40c88abc-d30c-4962-bfdc-cadc5047b342" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702967-e01e-007c-3ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "40c88abc-d30c-4962-bfdc-cadc5047b342" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdiracfail04322425fb843c9da944ac8", "javapathcreatesubdiracfail171345bfadb76d682c44a", "javapathcreatesubdiracfail289189248916b9c7964f8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[1].json new file mode 100644 index 0000000000000..be4fa1e0c3ed9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[1].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail041257b50e879900374f288?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d967716-0adf-48c0-95ff-14d0768258ca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9A1381F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ea05-a01e-0034-0dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "4d967716-0adf-48c0-95ff-14d0768258ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail041257b50e879900374f288/javapathcreatesubdiracfail13250153ea4eed48a7422?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "72846dbd-91d4-42f0-984f-ecb4bfe0873a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9AA43DE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01bf-801f-00ab-34d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "72846dbd-91d4-42f0-984f-ecb4bfe0873a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail041257b50e879900374f288/javapathcreatesubdiracfail13250153ea4eed48a7422/javapathcreatesubdiracfail282201396611974a9248e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89b88cd1-210c-4175-b07a-b3d689cccc26" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9B1B950", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c0-801f-00ab-35d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "89b88cd1-210c-4175-b07a-b3d689cccc26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail041257b50e879900374f288/javapathcreatesubdiracfail13250153ea4eed48a7422/javapathcreatesubdiracfail282201396611974a9248e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "52496fb3-e0c7-4721-9a89-4dde2ca0fc67" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01c1-801f-00ab-36d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01c1-801f-00ab-36d3-909968000000\\nTime:2019-11-01T16:44:39.5905133Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:38 GMT", + "x-ms-client-request-id" : "52496fb3-e0c7-4721-9a89-4dde2ca0fc67", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9546041f-7095-4b0d-9b37-ee77ed7544ee" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7029ef-e01e-007c-3ed3-90d34f000000", + "Body" : "jtfscreatesubdiracfailjtfscreatesubdiracfail041257b50e879900374f288Fri, 01 Nov 2019 16:44:39 GMT\"0x8D75EEAC9A1381F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "9546041f-7095-4b0d-9b37-ee77ed7544ee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail041257b50e879900374f288?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2eaa242-ba7a-403a-828f-255d2dfa5e47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ea95-a01e-0034-10d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "c2eaa242-ba7a-403a-828f-255d2dfa5e47" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdiracfail041257b50e879900374f288", "javapathcreatesubdiracfail13250153ea4eed48a7422", "javapathcreatesubdiracfail282201396611974a9248e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[2].json new file mode 100644 index 0000000000000..d611e86fc666f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[2].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail04814488032677c9b74ed5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ffcdbc4-1165-43a6-bfe7-d961d8746db3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9CFA02B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702a1e-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "7ffcdbc4-1165-43a6-bfe7-d961d8746db3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail04814488032677c9b74ed5a/javapathcreatesubdiracfail169106978ab510bf5948b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f549425-dfe9-4e3e-8db0-d39e903334e9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9D8AA90", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c2-801f-00ab-37d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "2f549425-dfe9-4e3e-8db0-d39e903334e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail04814488032677c9b74ed5a/javapathcreatesubdiracfail169106978ab510bf5948b/javapathcreatesubdiracfail2099715d6f6bef3ed2453?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c80846d-d36f-4c8b-bd54-5d68fc0a51fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9E02017", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c3-801f-00ab-38d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "2c80846d-d36f-4c8b-bd54-5d68fc0a51fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail04814488032677c9b74ed5a/javapathcreatesubdiracfail169106978ab510bf5948b/javapathcreatesubdiracfail2099715d6f6bef3ed2453?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8ec49da-0b67-40af-8281-d66fff85b58c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01c4-801f-00ab-39d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01c4-801f-00ab-39d3-909968000000\\nTime:2019-11-01T16:44:39.8947315Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "f8ec49da-0b67-40af-8281-d66fff85b58c", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "690d71dd-accd-4085-871a-35e6cf024a5d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65eb1f-a01e-0034-0ad3-90e1d2000000", + "Body" : "jtfscreatesubdiracfailjtfscreatesubdiracfail04814488032677c9b74ed5aFri, 01 Nov 2019 16:44:39 GMT\"0x8D75EEAC9CFA02B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "690d71dd-accd-4085-871a-35e6cf024a5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail04814488032677c9b74ed5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50a0bc44-d8c2-406a-a15f-e607c494876f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702a8e-e01e-007c-4ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "50a0bc44-d8c2-406a-a15f-e607c494876f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdiracfail04814488032677c9b74ed5a", "javapathcreatesubdiracfail169106978ab510bf5948b", "javapathcreatesubdiracfail2099715d6f6bef3ed2453" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[3].json new file mode 100644 index 0000000000000..090f1e0dba620 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail0203081671e1c283fa4869a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d53b9517-bdf2-4945-9f76-25dc49b1402b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC9FE5D10", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65eb60-a01e-0034-40d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "d53b9517-bdf2-4945-9f76-25dc49b1402b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail0203081671e1c283fa4869a/javapathcreatesubdiracfail1206938dee452bc2004d8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3758c9fb-97f5-46ff-89f8-9642a5ad0632" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA084DE5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c5-801f-00ab-3ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "3758c9fb-97f5-46ff-89f8-9642a5ad0632" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail0203081671e1c283fa4869a/javapathcreatesubdiracfail1206938dee452bc2004d8/javapathcreatesubdiracfail2454217eb25251bca84ea?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "67e51a3d-de36-4412-bea8-852fbb8e45b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA0FFAAC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c6-801f-00ab-3bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "67e51a3d-de36-4412-bea8-852fbb8e45b3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail0203081671e1c283fa4869a/javapathcreatesubdiracfail1206938dee452bc2004d8%2Fjavapathcreatesubdiracfail2454217eb25251bca84ea", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cfc9d711-6208-420b-9570-f2416c1deb9d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:40 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", + "ETag" : "0x8D75EEACA0FFAAC", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:40 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc702af4-e01e-007c-30d3-90d34f000000", + "x-ms-client-request-id" : "cfc9d711-6208-420b-9570-f2416c1deb9d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail0203081671e1c283fa4869a/javapathcreatesubdiracfail1206938dee452bc2004d8/javapathcreatesubdiracfail2454217eb25251bca84ea?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f32db97-9e51-4381-9f9c-159aef5bfa40" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01c7-801f-00ab-3cd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01c7-801f-00ab-3cd3-909968000000\\nTime:2019-11-01T16:44:40.2639958Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "1f32db97-9e51-4381-9f9c-159aef5bfa40", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fb6c78a-db39-40b8-abfe-fc6b205c3df4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ebe9-a01e-0034-40d3-90e1d2000000", + "Body" : "jtfscreatesubdiracfailjtfscreatesubdiracfail0203081671e1c283fa4869aFri, 01 Nov 2019 16:44:40 GMT\"0x8D75EEAC9FE5D10\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "7fb6c78a-db39-40b8-abfe-fc6b205c3df4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail0203081671e1c283fa4869a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "19433ef1-8b2b-4228-99ed-d665bf5fe59f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702b31-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "19433ef1-8b2b-4228-99ed-d665bf5fe59f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdiracfail0203081671e1c283fa4869a", "javapathcreatesubdiracfail1206938dee452bc2004d8", "javapathcreatesubdiracfail2454217eb25251bca84ea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[4].json new file mode 100644 index 0000000000000..73c9228585d5a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdiracfail[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail0991021e1f7e1077f748649?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cccd2501-a259-4147-be18-07833a305857" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA36DC66", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ec26-a01e-0034-79d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "cccd2501-a259-4147-be18-07833a305857" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail0991021e1f7e1077f748649/javapathcreatesubdiracfail19513210a73cfa97b1424?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cef4a0e5-499c-4e35-be94-b76b38f5de4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA474E58", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c8-801f-00ab-3dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "cef4a0e5-499c-4e35-be94-b76b38f5de4c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail0991021e1f7e1077f748649/javapathcreatesubdiracfail19513210a73cfa97b1424/javapathcreatesubdiracfail2741640dede244a765477?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "254c09f0-eb9e-4f30-a45d-adaf15404eb4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA4EFE75", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01c9-801f-00ab-3ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:39 GMT", + "x-ms-client-request-id" : "254c09f0-eb9e-4f30-a45d-adaf15404eb4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail0991021e1f7e1077f748649/javapathcreatesubdiracfail19513210a73cfa97b1424%2Fjavapathcreatesubdiracfail2741640dede244a765477?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5de2716d-0df6-4236-99f0-62a2cd3d72e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA4EFE75", + "x-ms-lease-id" : "45c6d53e-9914-4110-83d3-44ab895557a9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702bb2-e01e-007c-62d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "5de2716d-0df6-4236-99f0-62a2cd3d72e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdiracfail0991021e1f7e1077f748649/javapathcreatesubdiracfail19513210a73cfa97b1424/javapathcreatesubdiracfail2741640dede244a765477?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec2866d0-5574-4a8f-95d6-354498bc2170" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01ca-801f-00ab-3fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e01ca-801f-00ab-3fd3-909968000000\\nTime:2019-11-01T16:44:40.7163196Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "ec2866d0-5574-4a8f-95d6-354498bc2170", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2f7dcaf-9ae3-48e2-8257-be9c49e2dd7e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ed02-a01e-0034-44d3-90e1d2000000", + "Body" : "jtfscreatesubdiracfailjtfscreatesubdiracfail0991021e1f7e1077f748649Fri, 01 Nov 2019 16:44:40 GMT\"0x8D75EEACA36DC66\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "c2f7dcaf-9ae3-48e2-8257-be9c49e2dd7e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdiracfail0991021e1f7e1077f748649?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db89a133-e02f-42df-94a7-29d97750da1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702bf1-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "db89a133-e02f-42df-94a7-29d97750da1a" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdiracfail0991021e1f7e1077f748649", "javapathcreatesubdiracfail19513210a73cfa97b1424", "javapathcreatesubdiracfail2741640dede244a765477" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirdefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirdefaults.json new file mode 100644 index 0000000000000..ba91f40d075c0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirdefaults.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirdefaults009733ca9321a5fa8641f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d609b4a3-7459-4bc8-a9ca-1ab351d7704d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6F08CD8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702369-e01e-007c-36d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "d609b4a3-7459-4bc8-a9ca-1ab351d7704d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirdefaults009733ca9321a5fa8641f7/javapathcreatesubdirdefaults160796ce1971d21d164f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "67365626-2daf-4416-97fe-ca06206c3318" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6F9C800", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e019c-801f-00ab-11d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "67365626-2daf-4416-97fe-ca06206c3318" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirdefaults009733ca9321a5fa8641f7/javapathcreatesubdirdefaults160796ce1971d21d164f/javapathcreatesubdirdefaults2743891814c549891a48?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3d8277c-5258-4dbe-97ef-9f8470710c65" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC701607F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e019d-801f-00ab-12d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "e3d8277c-5258-4dbe-97ef-9f8470710c65" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirdefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23fa545e-d3b4-4911-8153-812d27f7f3e0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65dfd9-a01e-0034-38d3-90e1d2000000", + "Body" : "jtfscreatesubdirdefaultsjtfscreatesubdirdefaults009733ca9321a5fa8641f7Fri, 01 Nov 2019 16:44:34 GMT\"0x8D75EEAC6F08CD8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "23fa545e-d3b4-4911-8153-812d27f7f3e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirdefaults009733ca9321a5fa8641f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f580be31-1bad-473d-b3fd-45a5de972706" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7023db-e01e-007c-21d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "f580be31-1bad-473d-b3fd-45a5de972706" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirdefaults009733ca9321a5fa8641f7", "javapathcreatesubdirdefaults160796ce1971d21d164f", "javapathcreatesubdirdefaults2743891814c549891a48" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirerror.json new file mode 100644 index 0000000000000..a26a0e021356e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirerror08962060f201390fc04441a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aa17cf79-6ef1-496e-aa59-3abec0688763" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC73790A9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65e08b-a01e-0034-5cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "aa17cf79-6ef1-496e-aa59-3abec0688763" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirerror08962060f201390fc04441a2/javapathcreatesubdirerror1983314af3b976e5914a14?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c592074c-72eb-44b0-8528-c250e391951c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC740C944", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e019e-801f-00ab-13d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "c592074c-72eb-44b0-8528-c250e391951c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirerror08962060f201390fc04441a2/javapathcreatesubdirerror1983314af3b976e5914a14/javapathcreatesubdirerror2539473a30c7940e274863?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a5c251f-eeb0-4606-8c5c-4848b1bcc39f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e019f-801f-00ab-14d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e019f-801f-00ab-14d3-909968000000\\nTime:2019-11-01T16:44:35.4935811Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "0a5c251f-eeb0-4606-8c5c-4848b1bcc39f", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7dd4f2c7-700b-4cd8-9699-ff38a9c52077" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702483-e01e-007c-41d3-90d34f000000", + "Body" : "jtfscreatesubdirerrorjtfscreatesubdirerror08962060f201390fc04441a2Fri, 01 Nov 2019 16:44:35 GMT\"0x8D75EEAC73790A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "7dd4f2c7-700b-4cd8-9699-ff38a9c52077", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirerror08962060f201390fc04441a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82d3dcb9-f48a-4f9e-b3ca-090f12261286" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e0f8-a01e-0034-43d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "82d3dcb9-f48a-4f9e-b3ca-090f12261286" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirerror08962060f201390fc04441a2", "javapathcreatesubdirerror1983314af3b976e5914a14", "javapathcreatesubdirerror2539473a30c7940e274863" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirheaders[0].json new file mode 100644 index 0000000000000..2e0b9b79f31ca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirheaders[0].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirheaders072073287211b9447944a3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9881af7-00a6-42be-9c16-c6d1c8bc4cfe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC75F8F48", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7024a6-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "f9881af7-00a6-42be-9c16-c6d1c8bc4cfe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirheaders072073287211b9447944a3a/javapathcreatesubdirheaders1775669b981c3210eb40e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97c342b7-8478-4de2-8c2c-d0e7f6c34b4a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC768A85C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a0-801f-00ab-15d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "97c342b7-8478-4de2-8c2c-d0e7f6c34b4a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirheaders072073287211b9447944a3a/javapathcreatesubdirheaders1775669b981c3210eb40e/javapathcreatesubdirheaders2290868502222db577494?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8830a5d8-d445-4509-9bdf-21899dae1a69" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC77084A8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a1-801f-00ab-16d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "8830a5d8-d445-4509-9bdf-21899dae1a69" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirheaders072073287211b9447944a3a/javapathcreatesubdirheaders1775669b981c3210eb40e%2Fjavapathcreatesubdirheaders2290868502222db577494", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d471d0f-dc2c-4f4b-9591-d7059688594f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:35 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", + "ETag" : "0x8D75EEAC77084A8", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:35 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65e164-a01e-0034-25d3-90e1d2000000", + "x-ms-client-request-id" : "7d471d0f-dc2c-4f4b-9591-d7059688594f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98f6a4c1-7f4a-4c69-bd3f-cd228bf6d6f3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7024f2-e01e-007c-2cd3-90d34f000000", + "Body" : "jtfscreatesubdirheadersjtfscreatesubdirheaders072073287211b9447944a3aFri, 01 Nov 2019 16:44:35 GMT\"0x8D75EEAC75F8F48\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "98f6a4c1-7f4a-4c69-bd3f-cd228bf6d6f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirheaders072073287211b9447944a3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cff9402b-7c73-48b4-94da-fc2d602b3a55" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e1ae-a01e-0034-69d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "cff9402b-7c73-48b4-94da-fc2d602b3a55" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirheaders072073287211b9447944a3a", "javapathcreatesubdirheaders1775669b981c3210eb40e", "javapathcreatesubdirheaders2290868502222db577494" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirheaders[1].json new file mode 100644 index 0000000000000..97a4fe35dba98 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirheaders[1].json @@ -0,0 +1,142 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirheaders065002dd005eeed88443958?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83ff620c-79f9-453f-b74c-09f45e007c87" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7928F5D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70252a-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "83ff620c-79f9-453f-b74c-09f45e007c87" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirheaders065002dd005eeed88443958/javapathcreatesubdirheaders148692cfda17355925491?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a534b80c-0e5d-4d9f-8e6d-12215ece0b82" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC79BEC49", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a2-801f-00ab-17d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "a534b80c-0e5d-4d9f-8e6d-12215ece0b82" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirheaders065002dd005eeed88443958/javapathcreatesubdirheaders148692cfda17355925491/javapathcreatesubdirheaders290100993ac8ec4816413?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e30eaa2-4443-49a8-bb70-d4cf3855e374" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7A479F5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a3-801f-00ab-18d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "2e30eaa2-4443-49a8-bb70-d4cf3855e374" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirheaders065002dd005eeed88443958/javapathcreatesubdirheaders148692cfda17355925491%2Fjavapathcreatesubdirheaders290100993ac8ec4816413", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7dfe32a8-aa52-45e6-bbdb-ceb8ea0a4805" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:35 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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEAC7A479F5", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:36 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65e21d-a01e-0034-4dd3-90e1d2000000", + "x-ms-client-request-id" : "7dfe32a8-aa52-45e6-bbdb-ceb8ea0a4805", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71717ac1-d3f7-42e6-b438-ae5ed302399d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702574-e01e-007c-21d3-90d34f000000", + "Body" : "jtfscreatesubdirheadersjtfscreatesubdirheaders065002dd005eeed88443958Fri, 01 Nov 2019 16:44:35 GMT\"0x8D75EEAC7928F5D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "71717ac1-d3f7-42e6-b438-ae5ed302399d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirheaders065002dd005eeed88443958?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bbda9dfe-3a32-4230-9aa4-246e09435a94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e23e-a01e-0034-6dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "bbda9dfe-3a32-4230-9aa4-246e09435a94" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirheaders065002dd005eeed88443958", "javapathcreatesubdirheaders148692cfda17355925491", "javapathcreatesubdirheaders290100993ac8ec4816413" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmetadata[0].json new file mode 100644 index 0000000000000..182bb2321c83b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmetadata[0].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmetadata015213813450f8619a405c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ca84601-28e4-4561-8df8-d4b1e4aedcd2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7C47DC8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702592-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "2ca84601-28e4-4561-8df8-d4b1e4aedcd2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirmetadata015213813450f8619a405c/javapathcreatesubdirmetadata130643a0369cf44aae41?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09de9de1-d068-45b8-8bdc-1fba69a9c7af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7CD88AF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a4-801f-00ab-19d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "09de9de1-d068-45b8-8bdc-1fba69a9c7af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirmetadata015213813450f8619a405c/javapathcreatesubdirmetadata130643a0369cf44aae41/javapathcreatesubdirmetadata21568245225dc9098646?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14d66fea-4997-4513-979d-cb8ef0d318e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7D51B77", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a5-801f-00ab-1ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:35 GMT", + "x-ms-client-request-id" : "14d66fea-4997-4513-979d-cb8ef0d318e4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmetadata015213813450f8619a405c/javapathcreatesubdirmetadata130643a0369cf44aae41%2Fjavapathcreatesubdirmetadata21568245225dc9098646", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b07eae98-10e7-4024-879c-cc44df0a5232" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:36 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", + "ETag" : "0x8D75EEAC7D51B77", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:36 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65e298-a01e-0034-3ed3-90e1d2000000", + "x-ms-client-request-id" : "b07eae98-10e7-4024-879c-cc44df0a5232", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5081c546-dcf2-4dcc-8743-80f82a6d19c2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7025d9-e01e-007c-7bd3-90d34f000000", + "Body" : "jtfscreatesubdirmetadatajtfscreatesubdirmetadata015213813450f8619a405cFri, 01 Nov 2019 16:44:36 GMT\"0x8D75EEAC7C47DC8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "5081c546-dcf2-4dcc-8743-80f82a6d19c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmetadata015213813450f8619a405c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "612b0748-f2af-4ee0-8043-dbc8f73ce97b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e2c2-a01e-0034-64d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "612b0748-f2af-4ee0-8043-dbc8f73ce97b" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirmetadata015213813450f8619a405c", "javapathcreatesubdirmetadata130643a0369cf44aae41", "javapathcreatesubdirmetadata21568245225dc9098646" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmetadata[1].json new file mode 100644 index 0000000000000..2941dc00b422e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmetadata[1].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmetadata025278ee57a314560444b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44d7d9cc-1ac8-4501-a221-c34d74fd6f86" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7F5337F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702602-e01e-007c-20d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "44d7d9cc-1ac8-4501-a221-c34d74fd6f86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirmetadata025278ee57a314560444b3/javapathcreatesubdirmetadata170113e6105967adda49?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de995503-7c23-49d2-a6ba-b04562f3668f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC7FE782B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a6-801f-00ab-1bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "de995503-7c23-49d2-a6ba-b04562f3668f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirmetadata025278ee57a314560444b3/javapathcreatesubdirmetadata170113e6105967adda49/javapathcreatesubdirmetadata22307863011c13e5e349?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3aa3b529-213b-4f09-bd53-05394be7f608" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC805E28F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01a7-801f-00ab-1cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "3aa3b529-213b-4f09-bd53-05394be7f608" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmetadata025278ee57a314560444b3/javapathcreatesubdirmetadata170113e6105967adda49%2Fjavapathcreatesubdirmetadata22307863011c13e5e349", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e2f5f22-b69c-458c-b60a-70d5fe216c2d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:36 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEAC805E28F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:36 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65e35a-a01e-0034-71d3-90e1d2000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "8e2f5f22-b69c-458c-b60a-70d5fe216c2d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2fdbd96e-04e2-4c04-91ca-87b18df4943c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70262e-e01e-007c-4ad3-90d34f000000", + "Body" : "jtfscreatesubdirmetadatajtfscreatesubdirmetadata025278ee57a314560444b3Fri, 01 Nov 2019 16:44:36 GMT\"0x8D75EEAC7F5337F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "2fdbd96e-04e2-4c04-91ca-87b18df4943c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmetadata025278ee57a314560444b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1166aca-f086-4be8-ab06-beafea766898" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65e3ab-a01e-0034-36d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:36 GMT", + "x-ms-client-request-id" : "e1166aca-f086-4be8-ab06-beafea766898" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirmetadata025278ee57a314560444b3", "javapathcreatesubdirmetadata170113e6105967adda49", "javapathcreatesubdirmetadata22307863011c13e5e349" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmin.json new file mode 100644 index 0000000000000..5b9222b48dee2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirmin.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmin0directoryapitestcreatesubdirmin70e0330589?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df92fbe0-5710-4b7e-8e56-2834a53491d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6C5322E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65def4-a01e-0034-63d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "df92fbe0-5710-4b7e-8e56-2834a53491d3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirmin0directoryapitestcreatesubdirmin70e0330589/javapathcreatesubdirmin131833f3c004e885b74ac38?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e041ca3-634c-451a-8966-07a0326a8a9d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6CED3DC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e019a-801f-00ab-0fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "3e041ca3-634c-451a-8966-07a0326a8a9d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirmin0directoryapitestcreatesubdirmin70e0330589/javapathcreatesubdirmin131833f3c004e885b74ac38/javapathcreatesubdirmin2154000df9a089564745bea?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b082cc4-4b99-4248-85eb-4948ecf6d8d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6D66C45", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e019b-801f-00ab-10d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "6b082cc4-4b99-4248-85eb-4948ecf6d8d2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3313698a-1284-457e-8668-888b55a9cb21" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702319-e01e-007c-6bd3-90d34f000000", + "Body" : "jtfscreatesubdirminjtfscreatesubdirmin0directoryapitestcreatesubdirmin70e0330589Fri, 01 Nov 2019 16:44:34 GMT\"0x8D75EEAC6C5322E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "3313698a-1284-457e-8668-888b55a9cb21", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirmin0directoryapitestcreatesubdirmin70e0330589?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e2b964c-feab-443e-b7b3-96aafea1788f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65df4e-a01e-0034-36d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "1e2b964c-feab-443e-b7b3-96aafea1788f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirmin0directoryapitestcreatesubdirmin70e0330589", "javapathcreatesubdirmin131833f3c004e885b74ac38", "javapathcreatesubdirmin2154000df9a089564745bea" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirpermissionsandumask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirpermissionsandumask.json new file mode 100644 index 0000000000000..0a9eb5a26ae3d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestcreatesubdirpermissionsandumask.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirpermissionsandumask006331c5df69bd452?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36133c1e-104a-4f2d-b1ca-fd4cf1e3880c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA7CCBA9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ed42-a01e-0034-01d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "36133c1e-104a-4f2d-b1ca-fd4cf1e3880c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirpermissionsandumask006331c5df69bd452/javapathcreatesubdirpermissionsandumask195907f484ec57d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f0146dde-35c9-47b9-8e61-1fecb5a68644" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA860DC2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01cb-801f-00ab-40d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "f0146dde-35c9-47b9-8e61-1fecb5a68644" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatesubdirpermissionsandumask006331c5df69bd452/javapathcreatesubdirpermissionsandumask195907f484ec57d/javapathcreatesubdirpermissionsandumask28021912ac11656?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "289a4196-5876-4c11-907d-1a1a07ba29c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACA8D9C25", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01cc-801f-00ab-41d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "289a4196-5876-4c11-907d-1a1a07ba29c9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatesubdirpermissionsandumask&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2add548f-eb2d-4d0a-97df-a6859aeb4f56" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702c50-e01e-007c-71d3-90d34f000000", + "Body" : "jtfscreatesubdirpermissionsandumaskjtfscreatesubdirpermissionsandumask006331c5df69bd452Fri, 01 Nov 2019 16:44:40 GMT\"0x8D75EEACA7CCBA9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "2add548f-eb2d-4d0a-97df-a6859aeb4f56", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatesubdirpermissionsandumask006331c5df69bd452?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df186e7f-1725-458c-8fbf-69fad0cd1e26" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65edbb-a01e-0034-6fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "df186e7f-1725-458c-8fbf-69fad0cd1e26" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatesubdirpermissionsandumask006331c5df69bd452", "javapathcreatesubdirpermissionsandumask195907f484ec57d", "javapathcreatesubdirpermissionsandumask28021912ac11656" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[0].json new file mode 100644 index 0000000000000..46f7f85e136cb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac7e3801853f2d0bfb8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5957df3f-11fc-48f9-a74e-be4f07886087" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB94D6DF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657a7a-a01e-0034-55d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "5957df3f-11fc-48f9-a74e-be4f07886087" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac7e3801853f2d0bfb8/javapathdeleteac1directoryapitestdeleteac7e3268255416621?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4dc447b-42dd-4b25-966f-fca8791fded7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB9E3A9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e004c-801f-00ab-4ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "e4dc447b-42dd-4b25-966f-fca8791fded7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac7e3801853f2d0bfb8/javapathdeleteac1directoryapitestdeleteac7e3268255416621?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9659f882-7bfb-4377-ae53-f684058c8efc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e004d-801f-00ab-4bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "9659f882-7bfb-4377-ae53-f684058c8efc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d24eef96-481f-4f8f-b466-148d0337f5e3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe331-e01e-007c-64d3-90d34f000000", + "Body" : "jtfsdeleteacjtfsdeleteac0directoryapitestdeleteac7e3801853f2d0bfb8Fri, 01 Nov 2019 16:43:49 GMT\"0x8D75EEAAB94D6DF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "d24eef96-481f-4f8f-b466-148d0337f5e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac7e3801853f2d0bfb8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db2ccda4-a5d1-455e-83b1-e4edbe307aa6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657aed-a01e-0034-39d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "db2ccda4-a5d1-455e-83b1-e4edbe307aa6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0directoryapitestdeleteac7e3801853f2d0bfb8", "javapathdeleteac1directoryapitestdeleteac7e3268255416621" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[1].json new file mode 100644 index 0000000000000..6e9290908fab1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac32e47897f92c14c88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1bc6b093-e85d-4437-ba72-505874580b45" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAABBCB9B1", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe349-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "1bc6b093-e85d-4437-ba72-505874580b45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac32e47897f92c14c88/javapathdeleteac1directoryapitestdeleteac32e658381f5d3af?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1ec86c9-bc6c-4413-9486-e77efd109914" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAABC6476A", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e004f-801f-00ab-4cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "d1ec86c9-bc6c-4413-9486-e77efd109914" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac32e47897f92c14c88/javapathdeleteac1directoryapitestdeleteac32e658381f5d3af?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9b2863f-960a-457b-a04a-3ceeafdd6d50" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0050-801f-00ab-4dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "f9b2863f-960a-457b-a04a-3ceeafdd6d50" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7afa4f4-6b5d-4558-ba13-a8b368d896b3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657b58-a01e-0034-1ad3-90e1d2000000", + "Body" : "jtfsdeleteacjtfsdeleteac0directoryapitestdeleteac32e47897f92c14c88Fri, 01 Nov 2019 16:43:49 GMT\"0x8D75EEAABBCB9B1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "b7afa4f4-6b5d-4558-ba13-a8b368d896b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac32e47897f92c14c88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70015ae0-94df-4d54-b890-920b80c84a94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe388-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "70015ae0-94df-4d54-b890-920b80c84a94" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0directoryapitestdeleteac32e47897f92c14c88", "javapathdeleteac1directoryapitestdeleteac32e658381f5d3af" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[2].json new file mode 100644 index 0000000000000..3d8d794a20e6f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteacc9625676bb7188456?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1097702-df90-49ae-9e03-f5195e9748e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAABE80EFD", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657b94-a01e-0034-51d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "d1097702-df90-49ae-9e03-f5195e9748e5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteacc9625676bb7188456/javapathdeleteac1directoryapitestdeleteacc96181969d21401?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c283472-32ee-4c76-b3e3-0bdd83996495" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAABF15A7F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0051-801f-00ab-4ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "6c283472-32ee-4c76-b3e3-0bdd83996495" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteacc9625676bb7188456/javapathdeleteac1directoryapitestdeleteacc96181969d21401?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61e567cd-d4b8-4253-adeb-d3d8f50925d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0052-801f-00ab-4fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "61e567cd-d4b8-4253-adeb-d3d8f50925d5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ee7ea9a-c3b3-401c-bffc-e2365f6640d8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe3cc-e01e-007c-6fd3-90d34f000000", + "Body" : "jtfsdeleteacjtfsdeleteac0directoryapitestdeleteacc9625676bb7188456Fri, 01 Nov 2019 16:43:49 GMT\"0x8D75EEAABE80EFD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "5ee7ea9a-c3b3-401c-bffc-e2365f6640d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteacc9625676bb7188456?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "425c0f72-42ef-45f8-86a4-65fdf1ea9cf0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657bd6-a01e-0034-0fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "425c0f72-42ef-45f8-86a4-65fdf1ea9cf0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0directoryapitestdeleteacc9625676bb7188456", "javapathdeleteac1directoryapitestdeleteacc96181969d21401" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[3].json new file mode 100644 index 0000000000000..139bc2027d503 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac697826042125f6e22?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14608b38-cfc2-46e2-b87b-c2ba2031bbd3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC106705", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe3e3-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "14608b38-cfc2-46e2-b87b-c2ba2031bbd3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac697826042125f6e22/javapathdeleteac1directoryapitestdeleteac697898005b9e825?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b4b20b0-42ad-4262-848b-e568a2370973" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC1992E9", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0053-801f-00ab-50d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "2b4b20b0-42ad-4262-848b-e568a2370973" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac697826042125f6e22/javapathdeleteac1directoryapitestdeleteac697898005b9e825", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "11fba2ad-4d54-4450-8dc4-cf8d68a0dfaa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:49 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", + "ETag" : "0x8D75EEAAC1992E9", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:49 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a657c3c-a01e-0034-6ed3-90e1d2000000", + "x-ms-client-request-id" : "11fba2ad-4d54-4450-8dc4-cf8d68a0dfaa", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac697826042125f6e22/javapathdeleteac1directoryapitestdeleteac697898005b9e825?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93e5c51b-22a6-43e2-a0c1-995dbaf88245" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0054-801f-00ab-51d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "93e5c51b-22a6-43e2-a0c1-995dbaf88245" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63d0d3db-2d4c-4948-9081-66d5a8a300c8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe43e-e01e-007c-57d3-90d34f000000", + "Body" : "jtfsdeleteacjtfsdeleteac0directoryapitestdeleteac697826042125f6e22Fri, 01 Nov 2019 16:43:49 GMT\"0x8D75EEAAC106705\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "63d0d3db-2d4c-4948-9081-66d5a8a300c8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac697826042125f6e22?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b80a89e9-ac12-4a72-a8fc-87407903b13e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657c78-a01e-0034-29d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "b80a89e9-ac12-4a72-a8fc-87407903b13e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0directoryapitestdeleteac697826042125f6e22", "javapathdeleteac1directoryapitestdeleteac697898005b9e825" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[4].json new file mode 100644 index 0000000000000..4be5ae6d51e69 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[4].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac43e312105e5abeba9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f705ce5-f859-4b54-9f6e-6014f559ea46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC47113F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe469-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "6f705ce5-f859-4b54-9f6e-6014f559ea46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac43e312105e5abeba9/javapathdeleteac1directoryapitestdeleteac43e80798288fc28?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5bbe7205-d51b-4512-ada2-bd7daf4a7a2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC50238C", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0055-801f-00ab-52d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "5bbe7205-d51b-4512-ada2-bd7daf4a7a2a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac43e312105e5abeba9/javapathdeleteac1directoryapitestdeleteac43e80798288fc28?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7b62ad1-c5a6-48ec-af8a-5532433a7b51" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0056-801f-00ab-53d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "f7b62ad1-c5a6-48ec-af8a-5532433a7b51" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30c9a9aa-5420-4fc9-beee-7e1213ab396c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657cd9-a01e-0034-7cd3-90e1d2000000", + "Body" : "jtfsdeleteacjtfsdeleteac0directoryapitestdeleteac43e312105e5abeba9Fri, 01 Nov 2019 16:43:50 GMT\"0x8D75EEAAC47113F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "30c9a9aa-5420-4fc9-beee-7e1213ab396c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac43e312105e5abeba9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b24944ea-1690-493f-a02b-ca856e586727" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe498-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "b24944ea-1690-493f-a02b-ca856e586727" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0directoryapitestdeleteac43e312105e5abeba9", "javapathdeleteac1directoryapitestdeleteac43e80798288fc28" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[5].json new file mode 100644 index 0000000000000..5e5628ec0c90b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteac[5].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac4be60963394f9f721?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2885cb5c-c50e-4ce7-9707-8a5b160431f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC721870", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657d1a-a01e-0034-39d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "2885cb5c-c50e-4ce7-9707-8a5b160431f0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac4be60963394f9f721/javapathdeleteac1directoryapitestdeleteac4be720705033549?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0e50e05-169b-4a9f-83dd-f96b608cd40a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC7B51C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0057-801f-00ab-54d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:49 GMT", + "x-ms-client-request-id" : "c0e50e05-169b-4a9f-83dd-f96b608cd40a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac4be60963394f9f721/javapathdeleteac1directoryapitestdeleteac4be720705033549?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45157fc2-b9ca-4e98-8d94-0df1fee90a48" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAC7B51C2", + "x-ms-lease-id" : "93000d72-805c-4ab1-b79e-6b6806a36fa4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe4c5-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "45157fc2-b9ca-4e98-8d94-0df1fee90a48" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0directoryapitestdeleteac4be60963394f9f721/javapathdeleteac1directoryapitestdeleteac4be720705033549?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4da36a4-e10e-4137-829c-e4feeccee9dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0058-801f-00ab-55d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "b4da36a4-e10e-4137-829c-e4feeccee9dd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de2f4ef7-8c4b-4d95-a9ce-7f106499ed4d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657d8e-a01e-0034-21d3-90e1d2000000", + "Body" : "jtfsdeleteacjtfsdeleteac0directoryapitestdeleteac4be60963394f9f721Fri, 01 Nov 2019 16:43:50 GMT\"0x8D75EEAAC721870\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "de2f4ef7-8c4b-4d95-a9ce-7f106499ed4d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0directoryapitestdeleteac4be60963394f9f721?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "35dfe276-1eae-44d3-8a0c-ea260ede4051" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe4f2-e01e-007c-79d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "35dfe276-1eae-44d3-8a0c-ea260ede4051" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0directoryapitestdeleteac4be60963394f9f721", "javapathdeleteac1directoryapitestdeleteac4be720705033549" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[0].json new file mode 100644 index 0000000000000..6df2c16567beb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail62576459cd7d1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b867cf8-7688-438c-9b8b-c647b3356f97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAACA73BC6", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657db9-a01e-0034-4ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "5b867cf8-7688-438c-9b8b-c647b3356f97" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail62576459cd7d1/javapathdeleteacfail1directoryapitestdeleteacfail62583445d6d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f56862d4-6c48-467e-937a-b9e16eb7a6d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAACB09D36", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0059-801f-00ab-56d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "f56862d4-6c48-467e-937a-b9e16eb7a6d5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail62576459cd7d1/javapathdeleteacfail1directoryapitestdeleteacfail62583445d6d?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "58c66f0d-123c-4f8f-854f-ed5446e92209" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e005a-801f-00ab-57d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e005a-801f-00ab-57d3-909968000000\\nTime:2019-11-01T16:43:50.9296942Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "58c66f0d-123c-4f8f-854f-ed5446e92209", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "011b9fc7-88ea-4358-afb4-876aead29142" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe53d-e01e-007c-3fd3-90d34f000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0directoryapitestdeleteacfail62576459cd7d1Fri, 01 Nov 2019 16:43:50 GMT\"0x8D75EEAACA73BC6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "011b9fc7-88ea-4358-afb4-876aead29142", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail62576459cd7d1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f776413-2b75-4f64-8b09-3dec9711c018" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657e0d-a01e-0034-14d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "1f776413-2b75-4f64-8b09-3dec9711c018" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0directoryapitestdeleteacfail62576459cd7d1", "javapathdeleteacfail1directoryapitestdeleteacfail62583445d6d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[1].json new file mode 100644 index 0000000000000..4f43c9fbf5291 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailef51445166dbc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16706163-da12-4dd6-bc0e-68311271a92d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAACCF4585", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe55f-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "16706163-da12-4dd6-bc0e-68311271a92d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailef51445166dbc/javapathdeleteacfail1directoryapitestdeleteacfailef539682170?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d094712-7cdc-44e9-a23e-a5099fef05a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAACD89134", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e005b-801f-00ab-58d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "6d094712-7cdc-44e9-a23e-a5099fef05a6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailef51445166dbc/javapathdeleteacfail1directoryapitestdeleteacfailef539682170?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4216af6-7be9-49e2-a3ac-03e9c27d5288" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e005c-801f-00ab-59d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e005c-801f-00ab-59d3-909968000000\\nTime:2019-11-01T16:43:51.1928834Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "e4216af6-7be9-49e2-a3ac-03e9c27d5288", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62ce4e15-edcd-4398-a6b2-d93e627a017c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657e91-a01e-0034-0dd3-90e1d2000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0directoryapitestdeleteacfailef51445166dbcFri, 01 Nov 2019 16:43:51 GMT\"0x8D75EEAACCF4585\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "62ce4e15-edcd-4398-a6b2-d93e627a017c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailef51445166dbc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c3b0a03-c013-49dc-a07f-61d72ad538f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe586-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "2c3b0a03-c013-49dc-a07f-61d72ad538f7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0directoryapitestdeleteacfailef51445166dbc", "javapathdeleteacfail1directoryapitestdeleteacfailef539682170" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[2].json new file mode 100644 index 0000000000000..b2fda6c104fae --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail36788097723b2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61275160-089a-41d3-b04b-f452bd21d5bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAACF6F0CE", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a657ec5-a01e-0034-3dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "61275160-089a-41d3-b04b-f452bd21d5bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail36788097723b2/javapathdeleteacfail1directoryapitestdeleteacfail36756336a19?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db760a35-11f4-42cf-8b64-ab1b0109977b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD007A96", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e005d-801f-00ab-5ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "db760a35-11f4-42cf-8b64-ab1b0109977b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail36788097723b2/javapathdeleteacfail1directoryapitestdeleteacfail36756336a19?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90597692-cef4-40f8-b800-bf1fcc1c8e24" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e005e-801f-00ab-5bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e005e-801f-00ab-5bd3-909968000000\\nTime:2019-11-01T16:43:51.4510686Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:50 GMT", + "x-ms-client-request-id" : "90597692-cef4-40f8-b800-bf1fcc1c8e24", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9269ec32-fea2-43a8-83e6-b7310089d8ad" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe5c2-e01e-007c-3ad3-90d34f000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0directoryapitestdeleteacfail36788097723b2Fri, 01 Nov 2019 16:43:51 GMT\"0x8D75EEAACF6F0CE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "9269ec32-fea2-43a8-83e6-b7310089d8ad", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail36788097723b2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ef124e4-e0c5-4217-978c-83c4b476b68f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657f2b-a01e-0034-1ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "3ef124e4-e0c5-4217-978c-83c4b476b68f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0directoryapitestdeleteacfail36788097723b2", "javapathdeleteacfail1directoryapitestdeleteacfail36756336a19" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[3].json new file mode 100644 index 0000000000000..d440d7f8b128a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c1ffb53b-f9d6-4d95-bdd2-1b05b2cf2d4d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD21BA29", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe5e8-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "c1ffb53b-f9d6-4d95-bdd2-1b05b2cf2d4d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baa/javapathdeleteacfail1directoryapitestdeleteacfail1ea7564023d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb0da90c-f861-4980-9e1a-5b9cf9762cca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD320091", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e005f-801f-00ab-5cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "eb0da90c-f861-4980-9e1a-5b9cf9762cca" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baa/javapathdeleteacfail1directoryapitestdeleteacfail1ea7564023d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "225e5cba-3c24-4a1b-9beb-be9ee0e0c0e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43: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", + "ETag" : "0x8D75EEAAD320091", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:51 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a657f83-a01e-0034-69d3-90e1d2000000", + "x-ms-client-request-id" : "225e5cba-3c24-4a1b-9beb-be9ee0e0c0e3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baa/javapathdeleteacfail1directoryapitestdeleteacfail1ea7564023d?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be546c6d-fb71-4008-8006-329c085141fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0060-801f-00ab-5dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0060-801f-00ab-5dd3-909968000000\\nTime:2019-11-01T16:43:51.8273371Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "be546c6d-fb71-4008-8006-329c085141fe", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b565e42-b36a-48c2-9f4b-5eaf9c5ef587" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe62a-e01e-007c-1cd3-90d34f000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baaFri, 01 Nov 2019 16:43:51 GMT\"0x8D75EEAAD21BA29\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "8b565e42-b36a-48c2-9f4b-5eaf9c5ef587", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "008ab864-d399-46d4-b773-0a5b6ab07224" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a657fc1-a01e-0034-22d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "008ab864-d399-46d4-b773-0a5b6ab07224" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0directoryapitestdeleteacfail1ea2239085baa", "javapathdeleteacfail1directoryapitestdeleteacfail1ea7564023d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[4].json new file mode 100644 index 0000000000000..1016c0bb78b3f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleteacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99f108d1-3796-416c-a1ec-7870495f9197" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD5900BB", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe64b-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "99f108d1-3796-416c-a1ec-7870495f9197" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1a/javapathdeleteacfail1directoryapitestdeleteacfailc6674963dac?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0bc7cea0-f523-4498-9aed-8f1bf7c62773" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD61FB9F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0061-801f-00ab-5ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "0bc7cea0-f523-4498-9aed-8f1bf7c62773" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1a/javapathdeleteacfail1directoryapitestdeleteacfailc6674963dac?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7cd032d6-8196-4ac0-85a1-c70c662d2e4f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD61FB9F", + "x-ms-lease-id" : "7052e3b9-cb59-4c24-8ef8-1f1aa7f4e64b", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65801e-a01e-0034-6ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "7cd032d6-8196-4ac0-85a1-c70c662d2e4f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1a/javapathdeleteacfail1directoryapitestdeleteacfailc6674963dac?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4b30552-72d8-480b-8e92-8bddf960e328" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0062-801f-00ab-5fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e0062-801f-00ab-5fd3-909968000000\\nTime:2019-11-01T16:43:52.1425628Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "d4b30552-72d8-480b-8e92-8bddf960e328", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "124b1059-f5bd-411a-87c0-2a15f1f42a81" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe696-e01e-007c-7ed3-90d34f000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1aFri, 01 Nov 2019 16:43:51 GMT\"0x8D75EEAAD5900BB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "124b1059-f5bd-411a-87c0-2a15f1f42a81", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "469e4bd9-937b-4ae2-9532-2d33ec6b45d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65805f-a01e-0034-26d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "469e4bd9-937b-4ae2-9532-2d33ec6b45d8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0directoryapitestdeleteacfailc667785036b1a", "javapathdeleteacfail1directoryapitestdeleteacfailc6674963dac" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletedirdoesnotexistanymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletedirdoesnotexistanymore.json new file mode 100644 index 0000000000000..ff3b2415ef6e3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletedirdoesnotexistanymore.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirdoesnotexistanymore01070284852acd46db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "342e5664-7972-4291-94d8-ec0182c476b9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB616182", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6579df-a01e-0034-41d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "342e5664-7972-4291-94d8-ec0182c476b9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirdoesnotexistanymore01070284852acd46db/javapathdeletedirdoesnotexistanymore100250a6d4ea2465?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1fa488b0-ff9d-4a75-8ac1-d058db778fb1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB6B208A", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e004a-801f-00ab-48d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "1fa488b0-ff9d-4a75-8ac1-d058db778fb1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirdoesnotexistanymore01070284852acd46db/javapathdeletedirdoesnotexistanymore100250a6d4ea2465?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7161bfb4-a235-41d6-8762-3ff21b304c2f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e004b-801f-00ab-49d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "7161bfb4-a235-41d6-8762-3ff21b304c2f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirdoesnotexistanymore01070284852acd46db/javapathdeletedirdoesnotexistanymore100250a6d4ea2465", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f19e186-ad71-4174-8190-81af3ab7e6d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "dc6fe2cb-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "9f19e186-ad71-4174-8190-81af3ab7e6d5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirdoesnotexistanymore&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66fceb7c-8bba-43ca-bc6b-118680c51633" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a657a3c-a01e-0034-1bd3-90e1d2000000", + "Body" : "jtfsdeletedirdoesnotexistanymorejtfsdeletedirdoesnotexistanymore01070284852acd46dbFri, 01 Nov 2019 16:43:48 GMT\"0x8D75EEAAB616182\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "66fceb7c-8bba-43ca-bc6b-118680c51633", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirdoesnotexistanymore01070284852acd46db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4e00a4e-08a5-4383-8c9a-2b703c171bb4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe2e0-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "c4e00a4e-08a5-4383-8c9a-2b703c171bb4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirdoesnotexistanymore01070284852acd46db", "javapathdeletedirdoesnotexistanymore100250a6d4ea2465" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[0].json new file mode 100644 index 0000000000000..e0e3342d6b488 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[0].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac462263839867f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a15ab2b-6deb-443d-91fd-e294b45e9c7b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4582C32", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701d8e-e01e-007c-60d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "2a15ab2b-6deb-443d-91fd-e294b45e9c7b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac462263839867f/javapathdeletefileac1directoryapitestdeletefileac4625954291e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "719a5b6f-a8f7-4529-9ffa-fee9d4fe24e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC461A6F9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0179-801f-00ab-6ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "719a5b6f-a8f7-4529-9ffa-fee9d4fe24e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac462263839867f/javapathdeletefileac1directoryapitestdeletefileac4625954291e/javapathdeletefileac2directoryapitestdeletefileac46299368718?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2709a67f-bd99-429a-9e44-b3db5545cf5a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC46F96C7", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e017a-801f-00ab-6fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "2709a67f-bd99-429a-9e44-b3db5545cf5a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac462263839867f/javapathdeletefileac1directoryapitestdeletefileac4625954291e/javapathdeletefileac2directoryapitestdeletefileac46299368718", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "009ecf8c-4564-497f-a599-1b782b5bcef6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e017b-801f-00ab-70d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "009ecf8c-4564-497f-a599-1b782b5bcef6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d4426f4-136b-4f42-85e0-d35cc261a4ee" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65d5bf-a01e-0034-5fd3-90e1d2000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0directoryapitestdeletefileac462263839867fFri, 01 Nov 2019 16:44:30 GMT\"0x8D75EEAC4582C32\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "6d4426f4-136b-4f42-85e0-d35cc261a4ee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac462263839867f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "326c43a8-2ec6-440f-abc1-8aaed4977cd8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701de9-e01e-007c-36d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "326c43a8-2ec6-440f-abc1-8aaed4977cd8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0directoryapitestdeletefileac462263839867f", "javapathdeletefileac1directoryapitestdeletefileac4625954291e", "javapathdeletefileac2directoryapitestdeletefileac46299368718" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[1].json new file mode 100644 index 0000000000000..fd78fd00854da --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[1].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac984612158fe59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86ce99c3-e26b-4bac-915f-3e6e3440894d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC490D52E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65d60c-a01e-0034-23d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "86ce99c3-e26b-4bac-915f-3e6e3440894d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac984612158fe59/javapathdeletefileac1directoryapitestdeletefileac984858246d9?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8e2a69d-c690-4ab7-a79b-0e7a1d5da0aa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC49A0945", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e017c-801f-00ab-71d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "f8e2a69d-c690-4ab7-a79b-0e7a1d5da0aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac984612158fe59/javapathdeletefileac1directoryapitestdeletefileac984858246d9/javapathdeletefileac2directoryapitestdeletefileac984000275bd?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba558eb1-5549-416b-a70b-1c2ccd6a1ffc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4A4079D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e017d-801f-00ab-72d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "ba558eb1-5549-416b-a70b-1c2ccd6a1ffc" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac984612158fe59/javapathdeletefileac1directoryapitestdeletefileac984858246d9/javapathdeletefileac2directoryapitestdeletefileac984000275bd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d459036-47ea-4f43-aada-2c85c3eaa87f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e017e-801f-00ab-73d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "1d459036-47ea-4f43-aada-2c85c3eaa87f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36df4db9-5b08-4d8a-95c4-75bcbe877787" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701e21-e01e-007c-6ad3-90d34f000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0directoryapitestdeletefileac984612158fe59Fri, 01 Nov 2019 16:44:30 GMT\"0x8D75EEAC490D52E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "36df4db9-5b08-4d8a-95c4-75bcbe877787", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac984612158fe59?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b3768ce-09a3-45ca-b066-352c518d9574" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65d69c-a01e-0034-28d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "3b3768ce-09a3-45ca-b066-352c518d9574" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0directoryapitestdeletefileac984612158fe59", "javapathdeletefileac1directoryapitestdeletefileac984858246d9", "javapathdeletefileac2directoryapitestdeletefileac984000275bd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[2].json new file mode 100644 index 0000000000000..744cd910fc126 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[2].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac15e7767615af3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a47f94fa-26b9-4306-a085-a58bc9bab244" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4C50B60", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701e3c-e01e-007c-01d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "a47f94fa-26b9-4306-a085-a58bc9bab244" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac15e7767615af3/javapathdeletefileac1directoryapitestdeletefileac15e44944932?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0a589f6-25e8-4459-835d-a3d03252b736" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4CE7413", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e017f-801f-00ab-74d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "e0a589f6-25e8-4459-835d-a3d03252b736" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac15e7767615af3/javapathdeletefileac1directoryapitestdeletefileac15e44944932/javapathdeletefileac2directoryapitestdeletefileac15e003815b0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "075be8eb-34b9-41f0-a3b5-f7db61a3aba8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4D6AC23", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0180-801f-00ab-75d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "075be8eb-34b9-41f0-a3b5-f7db61a3aba8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac15e7767615af3/javapathdeletefileac1directoryapitestdeletefileac15e44944932/javapathdeletefileac2directoryapitestdeletefileac15e003815b0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba8bbd57-8f7e-48df-8076-0c3883e74ae2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0181-801f-00ab-76d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "ba8bbd57-8f7e-48df-8076-0c3883e74ae2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8083cab8-aae5-429e-b4cd-3b4de9869864" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65d727-a01e-0034-2dd3-90e1d2000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0directoryapitestdeletefileac15e7767615af3Fri, 01 Nov 2019 16:44:31 GMT\"0x8D75EEAC4C50B60\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "8083cab8-aae5-429e-b4cd-3b4de9869864", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac15e7767615af3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cfeec744-a5ed-4fbc-9de1-efd0b24b82f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701e7d-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "cfeec744-a5ed-4fbc-9de1-efd0b24b82f4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0directoryapitestdeletefileac15e7767615af3", "javapathdeletefileac1directoryapitestdeletefileac15e44944932", "javapathdeletefileac2directoryapitestdeletefileac15e003815b0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[3].json new file mode 100644 index 0000000000000..6e49974edaa86 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[3].json @@ -0,0 +1,156 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaccf34494255432?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ae00d97-3272-47b4-b27b-a2efc54282c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4F66018", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65d75e-a01e-0034-63d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "8ae00d97-3272-47b4-b27b-a2efc54282c0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaccf34494255432/javapathdeletefileac1directoryapitestdeletefileaccf327496498?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e71fe04-e083-4c07-95a0-05b9da5bfb08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC4FFDE3A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0182-801f-00ab-77d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "3e71fe04-e083-4c07-95a0-05b9da5bfb08" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaccf34494255432/javapathdeletefileac1directoryapitestdeletefileaccf327496498/javapathdeletefileac2directoryapitestdeletefileaccf377769a51?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "773e0801-b977-43e1-8f76-10e22e55e4e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC50C1D5E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0183-801f-00ab-78d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "773e0801-b977-43e1-8f76-10e22e55e4e7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaccf34494255432/javapathdeletefileac1directoryapitestdeletefileaccf327496498%2Fjavapathdeletefileac2directoryapitestdeletefileaccf377769a51", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28531792-16ab-4c1d-a3d5-766d5016237c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:31 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:31 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", + "ETag" : "0x8D75EEAC50C1D5E", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:31 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc701ece-e01e-007c-01d3-90d34f000000", + "x-ms-client-request-id" : "28531792-16ab-4c1d-a3d5-766d5016237c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaccf34494255432/javapathdeletefileac1directoryapitestdeletefileaccf327496498/javapathdeletefileac2directoryapitestdeletefileaccf377769a51", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1890c9f-0034-4b6f-b28d-9bfd1270c0d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0184-801f-00ab-79d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "d1890c9f-0034-4b6f-b28d-9bfd1270c0d1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed79a311-5547-4c4c-8176-412382215236" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65d7fc-a01e-0034-70d3-90e1d2000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0directoryapitestdeletefileaccf34494255432Fri, 01 Nov 2019 16:44:31 GMT\"0x8D75EEAC4F66018\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "ed79a311-5547-4c4c-8176-412382215236", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaccf34494255432?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8cb9bad9-a2b1-4c8f-8069-7a859e33c20c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701ef9-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "8cb9bad9-a2b1-4c8f-8069-7a859e33c20c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0directoryapitestdeletefileaccf34494255432", "javapathdeletefileac1directoryapitestdeletefileaccf327496498", "javapathdeletefileac2directoryapitestdeletefileaccf377769a51" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[4].json new file mode 100644 index 0000000000000..e61ad5d357267 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[4].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d181366a-927e-4e8b-8c0b-976d3fe7ffc0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5343795", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65d85a-a01e-0034-45d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "d181366a-927e-4e8b-8c0b-976d3fe7ffc0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8/javapathdeletefileac1directoryapitestdeletefileac17640299d9e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65534a29-0309-460b-bc2c-16eaa2153bb2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC53DAAEE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0185-801f-00ab-7ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "65534a29-0309-460b-bc2c-16eaa2153bb2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8/javapathdeletefileac1directoryapitestdeletefileac17640299d9e/javapathdeletefileac2directoryapitestdeletefileac1764090170c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9393db57-5ffe-4e6c-950f-363bb01a0f64" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5461C72", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0186-801f-00ab-7bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "9393db57-5ffe-4e6c-950f-363bb01a0f64" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8/javapathdeletefileac1directoryapitestdeletefileac17640299d9e/javapathdeletefileac2directoryapitestdeletefileac1764090170c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73bf4c32-8525-4152-97e4-66b605771162" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0187-801f-00ab-7cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "73bf4c32-8525-4152-97e4-66b605771162" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbe60147-5033-4db8-a95f-78a88b41f883" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701f61-e01e-007c-06d3-90d34f000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8Fri, 01 Nov 2019 16:44:32 GMT\"0x8D75EEAC5343795\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "dbe60147-5033-4db8-a95f-78a88b41f883", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f6345f9-42d6-4820-a8b2-d9a0c6e03aa5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65d92d-a01e-0034-0dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "9f6345f9-42d6-4820-a8b2-d9a0c6e03aa5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0directoryapitestdeletefileac17618265a8ec8", "javapathdeletefileac1directoryapitestdeletefileac17640299d9e", "javapathdeletefileac2directoryapitestdeletefileac1764090170c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[5].json new file mode 100644 index 0000000000000..4963da021ab45 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileac[5].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74966bc9-b170-4b17-8c73-ec755737cfea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC564EA9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701f8a-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "74966bc9-b170-4b17-8c73-ec755737cfea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4/javapathdeletefileac1directoryapitestdeletefileaceea330373e0?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e464de57-1062-4bfc-8b6b-bbd87d93fddc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC56DF523", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0188-801f-00ab-7dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "e464de57-1062-4bfc-8b6b-bbd87d93fddc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4/javapathdeletefileac1directoryapitestdeletefileaceea330373e0/javapathdeletefileac2directoryapitestdeletefileaceea22949e37?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff458c3d-2ded-46cb-ae40-d416bdc3aff8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5799BC2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0189-801f-00ab-7ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "ff458c3d-2ded-46cb-ae40-d416bdc3aff8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4/javapathdeletefileac1directoryapitestdeletefileaceea330373e0%2Fjavapathdeletefileac2directoryapitestdeletefileaceea22949e37?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "521530a6-82f7-4c1f-8667-7d1a57004f05" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5799BC2", + "x-ms-lease-id" : "04bd4187-bdbf-466f-8504-958323cf7a08", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65d9d3-a01e-0034-21d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "521530a6-82f7-4c1f-8667-7d1a57004f05" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4/javapathdeletefileac1directoryapitestdeletefileaceea330373e0/javapathdeletefileac2directoryapitestdeletefileaceea22949e37", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d0ab668d-5069-48c0-9f40-82f2e1f57716" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e018a-801f-00ab-7fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:31 GMT", + "x-ms-client-request-id" : "d0ab668d-5069-48c0-9f40-82f2e1f57716" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d778945e-bfbe-4b34-8f5d-8cba684161a2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701ff5-e01e-007c-0ad3-90d34f000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4Fri, 01 Nov 2019 16:44:32 GMT\"0x8D75EEAC564EA9E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "d778945e-bfbe-4b34-8f5d-8cba684161a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2778a8f7-e8fc-4ddb-818d-bc0f6eef3f97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65da40-a01e-0034-02d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "2778a8f7-e8fc-4ddb-818d-bc0f6eef3f97" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0directoryapitestdeletefileaceea28150b47c4", "javapathdeletefileac1directoryapitestdeletefileaceea330373e0", "javapathdeletefileac2directoryapitestdeletefileaceea22949e37" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[0].json new file mode 100644 index 0000000000000..e14819bd91f90 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25166b1e-8518-4486-aab9-f6b337497f2f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5A3D3B8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702009-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "25166b1e-8518-4486-aab9-f6b337497f2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646c/javapathdeletefileacfail197668d95cafa9860d48b1?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "333d893e-917f-4bec-a772-562dbcf7aeff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5B27EC3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e018b-801f-00ab-80d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "333d893e-917f-4bec-a772-562dbcf7aeff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646c/javapathdeletefileacfail197668d95cafa9860d48b1/javapathdeletefileacfail27134973c1526bc5244669?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1db71246-9d3c-4113-9765-fc68ffd4ff1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5BB2105", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e018c-801f-00ab-01d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "1db71246-9d3c-4113-9765-fc68ffd4ff1c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646c/javapathdeletefileacfail197668d95cafa9860d48b1/javapathdeletefileacfail27134973c1526bc5244669", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fa2d82b-9ff2-460a-946c-9ab3ab3e29db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e018d-801f-00ab-02d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e018d-801f-00ab-02d3-909968000000\\nTime:2019-11-01T16:44:32.9447566Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "7fa2d82b-9ff2-460a-946c-9ab3ab3e29db", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f7e0276-9d31-4a75-8422-fbd9a7358021" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65dae1-a01e-0034-16d3-90e1d2000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646cFri, 01 Nov 2019 16:44:32 GMT\"0x8D75EEAC5A3D3B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "8f7e0276-9d31-4a75-8422-fbd9a7358021", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68c96984-41cd-419f-afff-609dde292a81" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702075-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "68c96984-41cd-419f-afff-609dde292a81" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0directoryapitestdeletefileacfailf9b05646c", "javapathdeletefileacfail197668d95cafa9860d48b1", "javapathdeletefileacfail27134973c1526bc5244669" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[1].json new file mode 100644 index 0000000000000..c5d8124e7b8b7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[1].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4480bd22-9da6-4ad2-851a-566e3efefb5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5DFD8DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65db46-a01e-0034-73d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "4480bd22-9da6-4ad2-851a-566e3efefb5d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753/javapathdeletefileacfail1435783d9bcda8cdd148dc?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23175bfb-e9a6-4309-ba78-0e591f31c201" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5E92527", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e018e-801f-00ab-03d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "23175bfb-e9a6-4309-ba78-0e591f31c201" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753/javapathdeletefileacfail1435783d9bcda8cdd148dc/javapathdeletefileacfail235026101055b2b0b74091?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "408969fc-d15b-48c8-80c9-fc5798367cc7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC5F4024F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e018f-801f-00ab-04d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "408969fc-d15b-48c8-80c9-fc5798367cc7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753/javapathdeletefileacfail1435783d9bcda8cdd148dc/javapathdeletefileacfail235026101055b2b0b74091", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5944e3ac-8c01-4f52-a883-0cb2b34e340b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0190-801f-00ab-05d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0190-801f-00ab-05d3-909968000000\\nTime:2019-11-01T16:44:33.3140205Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "5944e3ac-8c01-4f52-a883-0cb2b34e340b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a4837fb-cb60-48fa-9dff-707026d9c1b5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7020f1-e01e-007c-66d3-90d34f000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753Fri, 01 Nov 2019 16:44:33 GMT\"0x8D75EEAC5DFD8DA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "6a4837fb-cb60-48fa-9dff-707026d9c1b5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41702ea8-23c7-4937-b8bd-7d9207cb4a00" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65dbd4-a01e-0034-7ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "41702ea8-23c7-4937-b8bd-7d9207cb4a00" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0directoryapitestdeletefileacfailf89777753", "javapathdeletefileacfail1435783d9bcda8cdd148dc", "javapathdeletefileacfail235026101055b2b0b74091" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[2].json new file mode 100644 index 0000000000000..6f048c0983f7e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[2].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d153607e-d5c7-4fd3-828c-470967b001f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC612D624", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70211f-e01e-007c-12d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "d153607e-d5c7-4fd3-828c-470967b001f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188f/javapathdeletefileacfail10843082bb7c9853304c9f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f81ff0e6-d23d-45bf-bd74-757aada06780" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC61CB581", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0191-801f-00ab-06d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "f81ff0e6-d23d-45bf-bd74-757aada06780" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188f/javapathdeletefileacfail10843082bb7c9853304c9f/javapathdeletefileacfail291647e5a613a40f6b4229?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "687c4e5e-fcd5-4a41-8bf5-bfb1434bb365" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC624DB86", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0192-801f-00ab-07d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:32 GMT", + "x-ms-client-request-id" : "687c4e5e-fcd5-4a41-8bf5-bfb1434bb365" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188f/javapathdeletefileacfail10843082bb7c9853304c9f/javapathdeletefileacfail291647e5a613a40f6b4229", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "673a914b-40d4-4f01-b706-78cb5176bce3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0193-801f-00ab-08d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0193-801f-00ab-08d3-909968000000\\nTime:2019-11-01T16:44:33.6332490Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "673a914b-40d4-4f01-b706-78cb5176bce3", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc7ff727-6380-4450-99d3-c97190993c6c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65dc72-a01e-0034-12d3-90e1d2000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188fFri, 01 Nov 2019 16:44:33 GMT\"0x8D75EEAC612D624\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "bc7ff727-6380-4450-99d3-c97190993c6c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e38cd3cf-5cdc-40fc-8cd4-fd50c81dcf22" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70216f-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "e38cd3cf-5cdc-40fc-8cd4-fd50c81dcf22" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0directoryapitestdeletefileacfail8f336188f", "javapathdeletefileacfail10843082bb7c9853304c9f", "javapathdeletefileacfail291647e5a613a40f6b4229" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[3].json new file mode 100644 index 0000000000000..584f5a2d60c31 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "613b41f8-7f3a-4255-956f-baa74a1463f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC647D53A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65dcd9-a01e-0034-75d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "613b41f8-7f3a-4255-956f-baa74a1463f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469/javapathdeletefileacfail17433420d03d2c5092420c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bea64d93-dc84-47c4-8f3f-7718b9eb00df" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC65410DC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0194-801f-00ab-09d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "bea64d93-dc84-47c4-8f3f-7718b9eb00df" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469/javapathdeletefileacfail17433420d03d2c5092420c/javapathdeletefileacfail283201b7afe35fb6374548?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50713466-e67d-44d9-87f3-356151b407c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC65CC529", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0195-801f-00ab-0ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "50713466-e67d-44d9-87f3-356151b407c3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469/javapathdeletefileacfail17433420d03d2c5092420c%2Fjavapathdeletefileacfail283201b7afe35fb6374548", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "47c1f1be-8edc-4ae5-8bf1-cd9bacfb776a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:33 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:33 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", + "ETag" : "0x8D75EEAC65CC529", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:33 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7021be-e01e-007c-20d3-90d34f000000", + "x-ms-client-request-id" : "47c1f1be-8edc-4ae5-8bf1-cd9bacfb776a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469/javapathdeletefileacfail17433420d03d2c5092420c/javapathdeletefileacfail283201b7afe35fb6374548", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "64579924-455f-419b-b9c7-e0e364a8b1d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0196-801f-00ab-0bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0196-801f-00ab-0bd3-909968000000\\nTime:2019-11-01T16:44:34.0515489Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "64579924-455f-419b-b9c7-e0e364a8b1d5", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d7cf061b-05bc-4539-a261-3d4eaa998214" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65dd94-a01e-0034-26d3-90e1d2000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469Fri, 01 Nov 2019 16:44:33 GMT\"0x8D75EEAC647D53A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "d7cf061b-05bc-4539-a261-3d4eaa998214", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b7324de-ebbc-4d24-8a6b-10f561ed860e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7021f7-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "4b7324de-ebbc-4d24-8a6b-10f561ed860e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0directoryapitestdeletefileacfailfbe006469", "javapathdeletefileacfail17433420d03d2c5092420c", "javapathdeletefileacfail283201b7afe35fb6374548" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[4].json new file mode 100644 index 0000000000000..fc4252a7b2de7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefileacfail[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "269457e3-454e-4e87-a62b-5257d335e299" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC687CFF5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ddd1-a01e-0034-5ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "269457e3-454e-4e87-a62b-5257d335e299" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839/javapathdeletefileacfail11173618ab554f8868430f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5f79f7d-0451-4fee-99ab-e771adfc868f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC690ED76", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0197-801f-00ab-0cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "f5f79f7d-0451-4fee-99ab-e771adfc868f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839/javapathdeletefileacfail11173618ab554f8868430f/javapathdeletefileacfail258791b9ed69b027d04b7c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "58fef467-001a-4adb-942b-983cab9208ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6995CD2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0198-801f-00ab-0dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "58fef467-001a-4adb-942b-983cab9208ef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839/javapathdeletefileacfail11173618ab554f8868430f%2Fjavapathdeletefileacfail258791b9ed69b027d04b7c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ce8c76b-e674-4315-8c49-dc4eed7ea3c6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC6995CD2", + "x-ms-lease-id" : "428de4ab-dfef-4517-8c9b-d650441f6e14", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702262-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "5ce8c76b-e674-4315-8c49-dc4eed7ea3c6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839/javapathdeletefileacfail11173618ab554f8868430f/javapathdeletefileacfail258791b9ed69b027d04b7c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c7ce5f98-34d9-44f7-a831-174fe8ada0f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0199-801f-00ab-0ed3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e0199-801f-00ab-0ed3-909968000000\\nTime:2019-11-01T16:44:34.4488333Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:33 GMT", + "x-ms-client-request-id" : "c7ce5f98-34d9-44f7-a831-174fe8ada0f1", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a878afe-8e83-47f1-839c-a633ecdba4fd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65de92-a01e-0034-06d3-90e1d2000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0directoryapitestdeletefileacfail102329839Fri, 01 Nov 2019 16:44:34 GMT\"0x8D75EEAC687CFF5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "7a878afe-8e83-47f1-839c-a633ecdba4fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06b800f9-5557-4a5c-a604-94852263ab86" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70229f-e01e-007c-74d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:34 GMT", + "x-ms-client-request-id" : "06b800f9-5557-4a5c-a604-94852263ab86" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0directoryapitestdeletefileacfail102329839", "javapathdeletefileacfail11173618ab554f8868430f", "javapathdeletefileacfail258791b9ed69b027d04b7c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefilefiledoesnotexistanymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefilefiledoesnotexistanymore.json new file mode 100644 index 0000000000000..adb12b857f6c0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefilefiledoesnotexistanymore.json @@ -0,0 +1,145 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilefiledoesnotexistanymore03032755d02194a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb585ab4-9429-4fbd-b77c-179aff9eacdc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC41F1087", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701d10-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "cb585ab4-9429-4fbd-b77c-179aff9eacdc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilefiledoesnotexistanymore03032755d02194a7/javapathdeletefilefiledoesnotexistanymore1764862c5400ec?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39bb95a6-359b-40e0-a9cf-7e0410f689a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC42876A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0176-801f-00ab-6bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "39bb95a6-359b-40e0-a9cf-7e0410f689a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilefiledoesnotexistanymore03032755d02194a7/javapathdeletefilefiledoesnotexistanymore1764862c5400ec/javapathdeletefilefiledoesnotexistanymore224005c44cc1fa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cfbfc0d-c325-4ddc-b4a4-42d9c7efa7dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC430E011", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0177-801f-00ab-6cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "0cfbfc0d-c325-4ddc-b4a4-42d9c7efa7dd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilefiledoesnotexistanymore03032755d02194a7/javapathdeletefilefiledoesnotexistanymore1764862c5400ec/javapathdeletefilefiledoesnotexistanymore224005c44cc1fa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6347cfda-2697-41fe-89fa-a5caea647081" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0178-801f-00ab-6dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "6347cfda-2697-41fe-89fa-a5caea647081" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilefiledoesnotexistanymore03032755d02194a7/javapathdeletefilefiledoesnotexistanymore1764862c5400ec%2Fjavapathdeletefilefiledoesnotexistanymore224005c44cc1fa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7158adc2-c487-48b2-a6b2-da66c138420a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "3a65d4ac-a01e-0034-64d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "7158adc2-c487-48b2-a6b2-da66c138420a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefilefiledoesnotexistanymore&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e805fe74-1ebe-48b8-9857-c03c437d801f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701d69-e01e-007c-3bd3-90d34f000000", + "Body" : "jtfsdeletefilefiledoesnotexistanymorejtfsdeletefilefiledoesnotexistanymore03032755d02194a7Fri, 01 Nov 2019 16:44:30 GMT\"0x8D75EEAC41F1087\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "e805fe74-1ebe-48b8-9857-c03c437d801f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilefiledoesnotexistanymore03032755d02194a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37e3772e-d883-4980-b7a1-56f5ff0c8682" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65d4dd-a01e-0034-12d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:30 GMT", + "x-ms-client-request-id" : "37e3772e-d883-4980-b7a1-56f5ff0c8682" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefilefiledoesnotexistanymore03032755d02194a7", "javapathdeletefilefiledoesnotexistanymore1764862c5400ec", "javapathdeletefilefiledoesnotexistanymore224005c44cc1fa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefilemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefilemin.json new file mode 100644 index 0000000000000..d13ecf1a1061b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletefilemin.json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilemin0directoryapitestdeletefilemin24285366b72f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f991282b-d03b-4df7-babc-7c23079c50f2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3EC6125", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65d2f8-a01e-0034-49d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "f991282b-d03b-4df7-babc-7c23079c50f2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilemin0directoryapitestdeletefilemin24285366b72f/javapathdeletefilemin1directoryapitestdeletefilemin242423261d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6327783-56ee-4e33-9293-dd2e2837dbe6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3F5A5BB", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0171-801f-00ab-66d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "f6327783-56ee-4e33-9293-dd2e2837dbe6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilemin0directoryapitestdeletefilemin24285366b72f/javapathdeletefilemin1directoryapitestdeletefilemin242423261d/javapathdeletefilemin2directoryapitestdeletefilemin2427811382?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7164419-2c30-4430-803d-635eedc9f01d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC3FDC544", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0173-801f-00ab-68d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "a7164419-2c30-4430-803d-635eedc9f01d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilemin0directoryapitestdeletefilemin24285366b72f/javapathdeletefilemin1directoryapitestdeletefilemin242423261d/javapathdeletefilemin2directoryapitestdeletefilemin2427811382", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d53cf6da-f3c2-49be-a003-bac54587132c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0175-801f-00ab-6ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "d53cf6da-f3c2-49be-a003-bac54587132c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefilemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2eb6049-723f-4231-be48-dc51a1404216" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701cf0-e01e-007c-4dd3-90d34f000000", + "Body" : "jtfsdeletefileminjtfsdeletefilemin0directoryapitestdeletefilemin24285366b72fFri, 01 Nov 2019 16:44:29 GMT\"0x8D75EEAC3EC6125\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "a2eb6049-723f-4231-be48-dc51a1404216", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilemin0directoryapitestdeletefilemin24285366b72f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d03f58cb-b8c9-4cde-99db-1b245b65266a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65d3ca-a01e-0034-0fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:29 GMT", + "x-ms-client-request-id" : "d03f58cb-b8c9-4cde-99db-1b245b65266a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefilemin0directoryapitestdeletefilemin24285366b72f", "javapathdeletefilemin1directoryapitestdeletefilemin242423261d", "javapathdeletefilemin2directoryapitestdeletefilemin2427811382" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletemin.json new file mode 100644 index 0000000000000..e288ead5c599c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletemin.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0directoryapitestdeletemindbc56165a41d94e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1df7879d-675f-404f-9c21-554792adcaaf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB0AF483", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6578e3-a01e-0034-5dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "1df7879d-675f-404f-9c21-554792adcaaf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletemin0directoryapitestdeletemindbc56165a41d94e4/javapathdeletemin1directoryapitestdeletemindbc9843468797c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23c6e927-f6e3-49a8-bffe-c0e9e7c0e0b5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB183DDA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0046-801f-00ab-44d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "23c6e927-f6e3-49a8-bffe-c0e9e7c0e0b5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletemin0directoryapitestdeletemindbc56165a41d94e4/javapathdeletemin1directoryapitestdeletemindbc9843468797c?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb1ec36c-8834-4bd4-b3ae-85ac53e5aa42" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0047-801f-00ab-45d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "cb1ec36c-8834-4bd4-b3ae-85ac53e5aa42" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "564c6630-507a-4617-8e82-195b7d677234" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe241-e01e-007c-07d3-90d34f000000", + "Body" : "jtfsdeleteminjtfsdeletemin0directoryapitestdeletemindbc56165a41d94e4Fri, 01 Nov 2019 16:43:48 GMT\"0x8D75EEAAB0AF483\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "564c6630-507a-4617-8e82-195b7d677234", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0directoryapitestdeletemindbc56165a41d94e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57e5ca32-b34f-4a54-a742-212acf27d4eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65795a-a01e-0034-44d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "57e5ca32-b34f-4a54-a742-212acf27d4eb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletemin0directoryapitestdeletemindbc56165a41d94e4", "javapathdeletemin1directoryapitestdeletemindbc9843468797c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleterecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleterecursive.json new file mode 100644 index 0000000000000..6232ada47ad89 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeleterecursive.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleterecursive0directoryapitestdeleterecursivecaa0126365?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c049d9f9-f8bd-440d-95c5-c962b56fb868" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB398F63", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe261-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "c049d9f9-f8bd-440d-95c5-c962b56fb868" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleterecursive0directoryapitestdeleterecursivecaa0126365/javapathdeleterecursive1818048f801a35706a46f3a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42992644-21e9-4436-b0dd-cac1dfa63224" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAB42C9D2", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0048-801f-00ab-46d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "42992644-21e9-4436-b0dd-cac1dfa63224" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleterecursive0directoryapitestdeleterecursivecaa0126365/javapathdeleterecursive1818048f801a35706a46f3a?recursive=true", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fdab0584-39d7-402b-90b2-240850e83298" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0049-801f-00ab-47d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:47 GMT", + "x-ms-client-request-id" : "fdab0584-39d7-402b-90b2-240850e83298" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleterecursive&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2bbbffd2-b35f-4932-8e05-6388a3af9876" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6579b2-a01e-0034-16d3-90e1d2000000", + "Body" : "jtfsdeleterecursivejtfsdeleterecursive0directoryapitestdeleterecursivecaa0126365Fri, 01 Nov 2019 16:43:48 GMT\"0x8D75EEAAB398F63\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "2bbbffd2-b35f-4932-8e05-6388a3af9876", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleterecursive0directoryapitestdeleterecursivecaa0126365?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afd415f4-bfd9-42b0-a218-d280cf606b77" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe297-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:48 GMT", + "x-ms-client-request-id" : "afd415f4-bfd9-42b0-a218-d280cf606b77" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleterecursive0directoryapitestdeleterecursivecaa0126365", "javapathdeleterecursive1818048f801a35706a46f3a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[0].json new file mode 100644 index 0000000000000..91b83a33df97c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[0].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fa52f025-ffa5-4a58-94bb-f19968cc9575" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB4AC4CF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702de5-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "fa52f025-ffa5-4a58-94bb-f19968cc9575" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0d/javapathdeletesubdirac1directoryapitestdeletesubdiraca4b09399e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "915bebcf-3c19-4247-b120-133e94f7d757" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB541928", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d6-801f-00ab-4bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "915bebcf-3c19-4247-b120-133e94f7d757" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0d/javapathdeletesubdirac1directoryapitestdeletesubdiraca4b09399e/javapathdeletesubdirac2directoryapitestdeletesubdiraca4b17389a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be3d883e-ac3d-4ba0-bcfe-92f0b27543e6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB5B92EE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d7-801f-00ab-4cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "be3d883e-ac3d-4ba0-bcfe-92f0b27543e6" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0d/javapathdeletesubdirac1directoryapitestdeletesubdiraca4b09399e/javapathdeletesubdirac2directoryapitestdeletesubdiraca4b17389a?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "134ab6d2-6103-41bd-b6d4-3cbe1ea85975" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01d8-801f-00ab-4dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "134ab6d2-6103-41bd-b6d4-3cbe1ea85975" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0286bd70-27ff-4bfc-b66c-f10441dc77ee" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f147-a01e-0034-44d3-90e1d2000000", + "Body" : "jtfsdeletesubdiracjtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0dFri, 01 Nov 2019 16:44:42 GMT\"0x8D75EEACB4AC4CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "0286bd70-27ff-4bfc-b66c-f10441dc77ee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "969c5968-7ae2-49d8-830d-a18e49420afb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702e3a-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "969c5968-7ae2-49d8-830d-a18e49420afb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirac0directoryapitestdeletesubdiraca4b97944d0d", "javapathdeletesubdirac1directoryapitestdeletesubdiraca4b09399e", "javapathdeletesubdirac2directoryapitestdeletesubdiraca4b17389a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[1].json new file mode 100644 index 0000000000000..5c75562f4f7e4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[1].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1ae2ebb-820a-41e5-91d5-6d48b49ff910" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB7E1697", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f17d-a01e-0034-76d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "f1ae2ebb-820a-41e5-91d5-6d48b49ff910" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124/javapathdeletesubdirac1directoryapitestdeletesubdiracf5b510911?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "737c4526-0f14-4a11-979d-e30a777c692b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB884F5B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d9-801f-00ab-4ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "737c4526-0f14-4a11-979d-e30a777c692b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124/javapathdeletesubdirac1directoryapitestdeletesubdiracf5b510911/javapathdeletesubdirac2directoryapitestdeletesubdiracf5b457009?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9bfc2cba-9894-4888-aca1-a29fd2d639d7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB90216C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01da-801f-00ab-4fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "9bfc2cba-9894-4888-aca1-a29fd2d639d7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124/javapathdeletesubdirac1directoryapitestdeletesubdiracf5b510911/javapathdeletesubdirac2directoryapitestdeletesubdiracf5b457009?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98206f6d-06a5-4ada-9f45-05a9b9b6465a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01db-801f-00ab-50d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "98206f6d-06a5-4ada-9f45-05a9b9b6465a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70c8857d-e3d8-497a-bacc-ba76eebb6a6d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702eb7-e01e-007c-21d3-90d34f000000", + "Body" : "jtfsdeletesubdiracjtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124Fri, 01 Nov 2019 16:44:42 GMT\"0x8D75EEACB7E1697\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "70c8857d-e3d8-497a-bacc-ba76eebb6a6d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "181fb50a-aad5-4842-80a9-e7d57a324837" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f1ec-a01e-0034-59d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "181fb50a-aad5-4842-80a9-e7d57a324837" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirac0directoryapitestdeletesubdiracf5b86094124", "javapathdeletesubdirac1directoryapitestdeletesubdiracf5b510911", "javapathdeletesubdirac2directoryapitestdeletesubdiracf5b457009" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[2].json new file mode 100644 index 0000000000000..d37a9038f5108 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[2].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d17086e-64f1-49b7-b87d-0815fdb2a654" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACBB1AF93", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702ef2-e01e-007c-5ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "3d17086e-64f1-49b7-b87d-0815fdb2a654" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162/javapathdeletesubdirac1directoryapitestdeletesubdirac65c479149?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "acea5f6a-20d2-41f6-9d04-0e637cd6c6b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACBBB04EC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01dc-801f-00ab-51d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "acea5f6a-20d2-41f6-9d04-0e637cd6c6b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162/javapathdeletesubdirac1directoryapitestdeletesubdirac65c479149/javapathdeletesubdirac2directoryapitestdeletesubdirac65c35802e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9cdd1e6a-ca44-4c61-9bfa-3772cb4a5913" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACBC2A8AE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01dd-801f-00ab-52d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "9cdd1e6a-ca44-4c61-9bfa-3772cb4a5913" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162/javapathdeletesubdirac1directoryapitestdeletesubdirac65c479149/javapathdeletesubdirac2directoryapitestdeletesubdirac65c35802e?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "acdaffc1-9c2e-4a8e-b7bf-0c1c2d7b4b7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01de-801f-00ab-53d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "acdaffc1-9c2e-4a8e-b7bf-0c1c2d7b4b7a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d3e5b010-4853-4276-b0f3-b98d24053a8c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f266-a01e-0034-44d3-90e1d2000000", + "Body" : "jtfsdeletesubdiracjtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162Fri, 01 Nov 2019 16:44:42 GMT\"0x8D75EEACBB1AF93\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "d3e5b010-4853-4276-b0f3-b98d24053a8c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d017297-b01d-44af-a70a-974f6ab5b19b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702f6f-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "4d017297-b01d-44af-a70a-974f6ab5b19b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirac0directoryapitestdeletesubdirac65c73549162", "javapathdeletesubdirac1directoryapitestdeletesubdirac65c479149", "javapathdeletesubdirac2directoryapitestdeletesubdirac65c35802e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[3].json new file mode 100644 index 0000000000000..11aebc1eac62b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[3].json @@ -0,0 +1,157 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ddfdc848-e283-4da2-bb89-fb9a5249e551" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACBE093D2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f293-a01e-0034-6dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "ddfdc848-e283-4da2-bb89-fb9a5249e551" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d/javapathdeletesubdirac1directoryapitestdeletesubdiracf1598418f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c99f1d7-d1f1-4f28-9171-34683de13b6c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACBE9BA91", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01df-801f-00ab-54d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "1c99f1d7-d1f1-4f28-9171-34683de13b6c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d/javapathdeletesubdirac1directoryapitestdeletesubdiracf1598418f/javapathdeletesubdirac2directoryapitestdeletesubdiracf1512679e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e75e193-6b75-48b0-a20d-a75ee732fc4d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACBF1342C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e0-801f-00ab-55d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "8e75e193-6b75-48b0-a20d-a75ee732fc4d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d/javapathdeletesubdirac1directoryapitestdeletesubdiracf1598418f%2Fjavapathdeletesubdirac2directoryapitestdeletesubdiracf1512679e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08fc726a-02f8-4327-87ca-84a2e41d6c69" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:43 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", + "ETag" : "0x8D75EEACBF1342C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:43 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc702fa9-e01e-007c-04d3-90d34f000000", + "x-ms-client-request-id" : "08fc726a-02f8-4327-87ca-84a2e41d6c69", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d/javapathdeletesubdirac1directoryapitestdeletesubdiracf1598418f/javapathdeletesubdirac2directoryapitestdeletesubdiracf1512679e?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8026f4b0-6d4d-449b-b2e9-46fc79548492" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01e1-801f-00ab-56d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:42 GMT", + "x-ms-client-request-id" : "8026f4b0-6d4d-449b-b2e9-46fc79548492" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c7e5f9f-fefb-41b4-b9fc-172c8492cfd2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f2f9-a01e-0034-45d3-90e1d2000000", + "Body" : "jtfsdeletesubdiracjtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390dFri, 01 Nov 2019 16:44:43 GMT\"0x8D75EEACBE093D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "2c7e5f9f-fefb-41b4-b9fc-172c8492cfd2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "549b7d13-29e5-4f1d-934e-02aea535fa2d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702ff5-e01e-007c-47d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "549b7d13-29e5-4f1d-934e-02aea535fa2d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirac0directoryapitestdeletesubdiracf156522390d", "javapathdeletesubdirac1directoryapitestdeletesubdiracf1598418f", "javapathdeletesubdirac2directoryapitestdeletesubdiracf1512679e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[4].json new file mode 100644 index 0000000000000..6b515eec1042d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[4].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86e45f6b-1937-4df8-a9f9-868785c0f5b8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC1AE83D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f337-a01e-0034-7bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "86e45f6b-1937-4df8-a9f9-868785c0f5b8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798a/javapathdeletesubdirac1directoryapitestdeletesubdirac524265410?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "814d14bd-e00f-4199-9b85-3e1c6b569e0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC309687", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e2-801f-00ab-57d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "814d14bd-e00f-4199-9b85-3e1c6b569e0c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798a/javapathdeletesubdirac1directoryapitestdeletesubdirac524265410/javapathdeletesubdirac2directoryapitestdeletesubdirac52482625b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "efa00d05-2886-4883-9910-c3bb55bd96f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC388A90", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e3-801f-00ab-58d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "efa00d05-2886-4883-9910-c3bb55bd96f4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798a/javapathdeletesubdirac1directoryapitestdeletesubdirac524265410/javapathdeletesubdirac2directoryapitestdeletesubdirac52482625b?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b795db5-0330-4b15-9f1b-880c4a084618" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01e4-801f-00ab-59d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "7b795db5-0330-4b15-9f1b-880c4a084618" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed722e7b-1016-4cb2-bec4-a95b49320fc8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703088-e01e-007c-4ed3-90d34f000000", + "Body" : "jtfsdeletesubdiracjtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798aFri, 01 Nov 2019 16:44:43 GMT\"0x8D75EEACC1AE83D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "ed722e7b-1016-4cb2-bec4-a95b49320fc8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc97292f-46e3-4517-be34-6ecbdb3d0ffd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f3c3-a01e-0034-80d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "dc97292f-46e3-4517-be34-6ecbdb3d0ffd" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirac0directoryapitestdeletesubdirac5246029798a", "javapathdeletesubdirac1directoryapitestdeletesubdirac524265410", "javapathdeletesubdirac2directoryapitestdeletesubdirac52482625b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[5].json new file mode 100644 index 0000000000000..f3ca0b9d6af14 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirac[5].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "10920b36-a693-48fc-a565-bd5e3438e71e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC5F25D4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7030c4-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "10920b36-a693-48fc-a565-bd5e3438e71e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb/javapathdeletesubdirac1directoryapitestdeletesubdirac9e501363e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d859d5e-a801-4e66-9d8d-8bd6ae40bc4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC710418", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e5-801f-00ab-5ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "0d859d5e-a801-4e66-9d8d-8bd6ae40bc4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb/javapathdeletesubdirac1directoryapitestdeletesubdirac9e501363e/javapathdeletesubdirac2directoryapitestdeletesubdirac9e596512a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b6bdb66-2c55-4bb9-829d-cfe16b0c030d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC79CF9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e6-801f-00ab-5bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "8b6bdb66-2c55-4bb9-829d-cfe16b0c030d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb/javapathdeletesubdirac1directoryapitestdeletesubdirac9e501363e%2Fjavapathdeletesubdirac2directoryapitestdeletesubdirac9e596512a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "19d6fe0f-be18-417f-8f20-a9379342a68f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACC79CF9E", + "x-ms-lease-id" : "add4ea1e-59ea-40a2-ad0d-7b0de158b40a", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f48f-a01e-0034-32d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "19d6fe0f-be18-417f-8f20-a9379342a68f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb/javapathdeletesubdirac1directoryapitestdeletesubdirac9e501363e/javapathdeletesubdirac2directoryapitestdeletesubdirac9e596512a?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0c577d30-5c53-4902-972b-7813027dbac7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01e7-801f-00ab-5cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "0c577d30-5c53-4902-972b-7813027dbac7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7702647b-8a78-43a8-bea2-addd60abf78a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703149-e01e-007c-7ad3-90d34f000000", + "Body" : "jtfsdeletesubdiracjtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861ebFri, 01 Nov 2019 16:44:44 GMT\"0x8D75EEACC5F25D4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "7702647b-8a78-43a8-bea2-addd60abf78a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5aee5406-9376-4ef1-bf78-0951686b2ec0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f4d2-a01e-0034-6bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "5aee5406-9376-4ef1-bf78-0951686b2ec0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirac0directoryapitestdeletesubdirac9e5998861eb", "javapathdeletesubdirac1directoryapitestdeletesubdirac9e501363e", "javapathdeletesubdirac2directoryapitestdeletesubdirac9e596512a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[0].json new file mode 100644 index 0000000000000..d498e81cac082 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail025368cec7edfde7f24998b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba73d4c5-259c-430b-8e15-d80a95b8908f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACCAABB62", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703166-e01e-007c-15d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "ba73d4c5-259c-430b-8e15-d80a95b8908f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail025368cec7edfde7f24998b/javapathdeletesubdiracfail1782108362acd8e5174fc?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ebdc19c-8d43-4be0-a0d9-03f957b8f21d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACCB42AF5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e8-801f-00ab-5dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:43 GMT", + "x-ms-client-request-id" : "9ebdc19c-8d43-4be0-a0d9-03f957b8f21d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail025368cec7edfde7f24998b/javapathdeletesubdiracfail1782108362acd8e5174fc/javapathdeletesubdiracfail29445745e1b8b0d76244f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d43e0f1-73c7-4913-a1db-76d462a3f499" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACCBCBDF2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01e9-801f-00ab-5ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "0d43e0f1-73c7-4913-a1db-76d462a3f499" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail025368cec7edfde7f24998b/javapathdeletesubdiracfail1782108362acd8e5174fc/javapathdeletesubdiracfail29445745e1b8b0d76244f?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "07e47d59-bcba-4290-beec-8568479cb31d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01ea-801f-00ab-5fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01ea-801f-00ab-5fd3-909968000000\\nTime:2019-11-01T16:44:44.7001653Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "07e47d59-bcba-4290-beec-8568479cb31d", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc9e9f09-a7bd-4f05-89c2-27267bfdb32b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f56b-a01e-0034-74d3-90e1d2000000", + "Body" : "jtfsdeletesubdiracfailjtfsdeletesubdiracfail025368cec7edfde7f24998bFri, 01 Nov 2019 16:44:44 GMT\"0x8D75EEACCAABB62\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "dc9e9f09-a7bd-4f05-89c2-27267bfdb32b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail025368cec7edfde7f24998b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af292f3a-6d08-41c2-a046-662255cf92ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7031ba-e01e-007c-62d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "af292f3a-6d08-41c2-a046-662255cf92ea" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdiracfail025368cec7edfde7f24998b", "javapathdeletesubdiracfail1782108362acd8e5174fc", "javapathdeletesubdiracfail29445745e1b8b0d76244f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[1].json new file mode 100644 index 0000000000000..71b5eba614503 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[1].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e0dfe29-6e04-4074-bff3-069c2e6bd7b8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACCDE3475", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f5b6-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "1e0dfe29-6e04-4074-bff3-069c2e6bd7b8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9/javapathdeletesubdiracfail176803bada96f6ed3b4b8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4bfda085-89ee-4805-ad78-f2ef7b6abed2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACCE75EAE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01eb-801f-00ab-60d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "4bfda085-89ee-4805-ad78-f2ef7b6abed2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9/javapathdeletesubdiracfail176803bada96f6ed3b4b8/javapathdeletesubdiracfail203888d7fd24faf4424d3?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0b83836-2b5b-4cf9-bd50-b2ec8fa9dfae" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACCEEFE2C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ec-801f-00ab-61d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "c0b83836-2b5b-4cf9-bd50-b2ec8fa9dfae" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9/javapathdeletesubdiracfail176803bada96f6ed3b4b8/javapathdeletesubdiracfail203888d7fd24faf4424d3?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4e202feb-80d7-4224-93da-452c24856be7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01ed-801f-00ab-62d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01ed-801f-00ab-62d3-909968000000\\nTime:2019-11-01T16:44:45.0294001Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "4e202feb-80d7-4224-93da-452c24856be7", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "440fb542-13d4-45ae-afff-4276de554e0f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7031f5-e01e-007c-17d3-90d34f000000", + "Body" : "jtfsdeletesubdiracfailjtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9Fri, 01 Nov 2019 16:44:44 GMT\"0x8D75EEACCDE3475\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "440fb542-13d4-45ae-afff-4276de554e0f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbdbc7c0-9f4d-4b43-a82a-619fc1c19ee9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f655-a01e-0034-46d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "fbdbc7c0-9f4d-4b43-a82a-619fc1c19ee9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdiracfail051843bdf8398b2e6c4f9f9", "javapathdeletesubdiracfail176803bada96f6ed3b4b8", "javapathdeletesubdiracfail203888d7fd24faf4424d3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[2].json new file mode 100644 index 0000000000000..3c004dfa28e9c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[2].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail078692de72b6aa8cd84c36b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ddb5dfb-9eaa-493d-a313-cb7f6f0dff14" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD0DD4D2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70321c-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "0ddb5dfb-9eaa-493d-a313-cb7f6f0dff14" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail078692de72b6aa8cd84c36b/javapathdeletesubdiracfail185744b81936a78bc04f8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "198f17e5-f194-4344-8cf7-77490ff0f236" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD16E857", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ee-801f-00ab-63d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "198f17e5-f194-4344-8cf7-77490ff0f236" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail078692de72b6aa8cd84c36b/javapathdeletesubdiracfail185744b81936a78bc04f8/javapathdeletesubdiracfail201922c90e522e2e57446?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28f39b12-83ff-4434-9bb7-b6bd61e04aae" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD1E6581", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ef-801f-00ab-64d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "28f39b12-83ff-4434-9bb7-b6bd61e04aae" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail078692de72b6aa8cd84c36b/javapathdeletesubdiracfail185744b81936a78bc04f8/javapathdeletesubdiracfail201922c90e522e2e57446?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "10740ee9-53e5-4863-be6c-07f29bbd2481" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01f0-801f-00ab-65d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01f0-801f-00ab-65d3-909968000000\\nTime:2019-11-01T16:44:45.3496298Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "10740ee9-53e5-4863-be6c-07f29bbd2481", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f0d6e00-c6c7-4e54-b862-0bc0b056f76a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f717-a01e-0034-6ed3-90e1d2000000", + "Body" : "jtfsdeletesubdiracfailjtfsdeletesubdiracfail078692de72b6aa8cd84c36bFri, 01 Nov 2019 16:44:45 GMT\"0x8D75EEACD0DD4D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "2f0d6e00-c6c7-4e54-b862-0bc0b056f76a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail078692de72b6aa8cd84c36b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62241939-c544-407b-81e0-a293c6091260" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703282-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "62241939-c544-407b-81e0-a293c6091260" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdiracfail078692de72b6aa8cd84c36b", "javapathdeletesubdiracfail185744b81936a78bc04f8", "javapathdeletesubdiracfail201922c90e522e2e57446" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[3].json new file mode 100644 index 0000000000000..a411810323039 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "10db3f6a-43d0-4cf4-869f-3bb6e7a4e8a1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD3E190E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f75b-a01e-0034-2cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "10db3f6a-43d0-4cf4-869f-3bb6e7a4e8a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b/javapathdeletesubdiracfail1943790501969de9b04e0?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06f6a549-bebb-40fb-a73e-05476a1f1622" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD485358", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01f1-801f-00ab-66d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:44 GMT", + "x-ms-client-request-id" : "06f6a549-bebb-40fb-a73e-05476a1f1622" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b/javapathdeletesubdiracfail1943790501969de9b04e0/javapathdeletesubdiracfail289852fcb91c49af424b7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1dba20d-203c-469c-8419-9141cb58ace1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD513F35", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01f2-801f-00ab-67d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "a1dba20d-203c-469c-8419-9141cb58ace1" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b/javapathdeletesubdiracfail1943790501969de9b04e0%2Fjavapathdeletesubdiracfail289852fcb91c49af424b7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5548f871-97cd-4136-a7b8-65890e24927d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:45 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", + "ETag" : "0x8D75EEACD513F35", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:45 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7032e3-e01e-007c-6fd3-90d34f000000", + "x-ms-client-request-id" : "5548f871-97cd-4136-a7b8-65890e24927d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b/javapathdeletesubdiracfail1943790501969de9b04e0/javapathdeletesubdiracfail289852fcb91c49af424b7?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33450c21-d11a-4cfd-aa9f-5e4250dbbf34" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01f3-801f-00ab-68d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e01f3-801f-00ab-68d3-909968000000\\nTime:2019-11-01T16:44:45.7218963Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "33450c21-d11a-4cfd-aa9f-5e4250dbbf34", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8d2fddf-fb0a-47cd-a3b6-a7f2a3f159d4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f7c3-a01e-0034-12d3-90e1d2000000", + "Body" : "jtfsdeletesubdiracfailjtfsdeletesubdiracfail01279068a58c2ebd3e4ad1bFri, 01 Nov 2019 16:44:45 GMT\"0x8D75EEACD3E190E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "a8d2fddf-fb0a-47cd-a3b6-a7f2a3f159d4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fed5a3d6-939e-4a7e-aeb7-83a547a93daf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70330a-e01e-007c-0fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "fed5a3d6-939e-4a7e-aeb7-83a547a93daf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdiracfail01279068a58c2ebd3e4ad1b", "javapathdeletesubdiracfail1943790501969de9b04e0", "javapathdeletesubdiracfail289852fcb91c49af424b7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[4].json new file mode 100644 index 0000000000000..5faa643b47048 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdiracfail[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail08005239e242ed64ee48648?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ada763d2-6d5a-47ed-b0e3-b70fb9d276c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD7ADEEA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f7fe-a01e-0034-47d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "ada763d2-6d5a-47ed-b0e3-b70fb9d276c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail08005239e242ed64ee48648/javapathdeletesubdiracfail1829210d0711c5bcd4450?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2997861f-28e1-43c7-9ca8-c3770be72d8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD83FBC9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01f4-801f-00ab-69d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "2997861f-28e1-43c7-9ca8-c3770be72d8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail08005239e242ed64ee48648/javapathdeletesubdiracfail1829210d0711c5bcd4450/javapathdeletesubdiracfail217806829be580f9aa409?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ec2d6bb-5beb-4468-8cdd-fc9c39a97da2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD8B820E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01f5-801f-00ab-6ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "2ec2d6bb-5beb-4468-8cdd-fc9c39a97da2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail08005239e242ed64ee48648/javapathdeletesubdiracfail1829210d0711c5bcd4450%2Fjavapathdeletesubdiracfail217806829be580f9aa409?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d04f9827-4b1c-4fa5-b5fb-e1863c8fc736" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACD8B820E", + "x-ms-lease-id" : "823c1a36-b8bb-4460-bdf7-865659de0f94", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703374-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "d04f9827-4b1c-4fa5-b5fb-e1863c8fc736" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdiracfail08005239e242ed64ee48648/javapathdeletesubdiracfail1829210d0711c5bcd4450/javapathdeletesubdiracfail217806829be580f9aa409?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eac46d25-5841-4a08-b8d2-72b330762e27" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e01f6-801f-00ab-6bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e01f6-801f-00ab-6bd3-909968000000\\nTime:2019-11-01T16:44:46.1121752Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "eac46d25-5841-4a08-b8d2-72b330762e27", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdiracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4a7b36e-48c8-4b80-879c-f5b33b8df66c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f870-a01e-0034-28d3-90e1d2000000", + "Body" : "jtfsdeletesubdiracfailjtfsdeletesubdiracfail08005239e242ed64ee48648Fri, 01 Nov 2019 16:44:45 GMT\"0x8D75EEACD7ADEEA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "e4a7b36e-48c8-4b80-879c-f5b33b8df66c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdiracfail08005239e242ed64ee48648?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63b9166e-71eb-40cb-9659-e6d2ae014359" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7033bd-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "63b9166e-71eb-40cb-9659-e6d2ae014359" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdiracfail08005239e242ed64ee48648", "javapathdeletesubdiracfail1829210d0711c5bcd4450", "javapathdeletesubdiracfail217806829be580f9aa409" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirdirdoesnotexistanymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirdirdoesnotexistanymore.json new file mode 100644 index 0000000000000..9e554c4331d44 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirdirdoesnotexistanymore.json @@ -0,0 +1,145 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3a95af1-e41d-4053-86d5-65d692979eb0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB13F36E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702d6d-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "a3a95af1-e41d-4053-86d5-65d692979eb0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b/javapathdeletesubdirdirdoesnotexistanymore1950723dd78b4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "47ce58d7-e3c9-4beb-b96b-30cd266c1d45" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB1D5247", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d3-801f-00ab-48d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "47ce58d7-e3c9-4beb-b96b-30cd266c1d45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b/javapathdeletesubdirdirdoesnotexistanymore1950723dd78b4/javapathdeletesubdirdirdoesnotexistanymore2340326ea2e09?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d217a8f2-d027-4fd8-82cf-6b0358e57f31" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACB2550A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d4-801f-00ab-49d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "d217a8f2-d027-4fd8-82cf-6b0358e57f31" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b/javapathdeletesubdirdirdoesnotexistanymore1950723dd78b4/javapathdeletesubdirdirdoesnotexistanymore2340326ea2e09?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4fb36865-b5ec-429c-8975-0ee741f4c90b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01d5-801f-00ab-4ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "4fb36865-b5ec-429c-8975-0ee741f4c90b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b/javapathdeletesubdirdirdoesnotexistanymore1950723dd78b4%2Fjavapathdeletesubdirdirdoesnotexistanymore2340326ea2e09", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "13100819-7d0c-4d25-add3-4f7910d54e2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "3a65f05c-a01e-0034-65d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "13100819-7d0c-4d25-add3-4f7910d54e2a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirdirdoesnotexistanymore&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2fc3d67-6e02-4dc5-b53a-62be1e1b73a0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702dcc-e01e-007c-48d3-90d34f000000", + "Body" : "jtfsdeletesubdirdirdoesnotexistanymorejtfsdeletesubdirdirdoesnotexistanymore08301973e15851bFri, 01 Nov 2019 16:44:41 GMT\"0x8D75EEACB13F36E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "b2fc3d67-6e02-4dc5-b53a-62be1e1b73a0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80a14148-407a-40fc-8e52-4a4ca32c0a99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f0a9-a01e-0034-2cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "80a14148-407a-40fc-8e52-4a4ca32c0a99" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirdirdoesnotexistanymore08301973e15851b", "javapathdeletesubdirdirdoesnotexistanymore1950723dd78b4", "javapathdeletesubdirdirdoesnotexistanymore2340326ea2e09" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirmin.json new file mode 100644 index 0000000000000..17ca276928d97 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirmin.json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c30bff88-e4c4-4bc2-b869-a32ba9230595" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACAA4F0EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc702c82-e01e-007c-1dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "c30bff88-e4c4-4bc2-b869-a32ba9230595" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703d/javapathdeletesubdirmin15066884df5ac398794fde9?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9df0aa3c-07d2-4083-9762-dcaf476713d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACAAF0F8D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01cd-801f-00ab-42d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "9df0aa3c-07d2-4083-9762-dcaf476713d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703d/javapathdeletesubdirmin15066884df5ac398794fde9/javapathdeletesubdirmin2481108b17cf445c594ea0a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0c1adb10-5aab-40bd-99bb-da6ec2189628" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACAB9DDC1", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01ce-801f-00ab-43d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "0c1adb10-5aab-40bd-99bb-da6ec2189628" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703d/javapathdeletesubdirmin15066884df5ac398794fde9/javapathdeletesubdirmin2481108b17cf445c594ea0a?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a73c7237-af57-460e-b833-ead9aed245c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01cf-801f-00ab-44d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "a73c7237-af57-460e-b833-ead9aed245c9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "52980275-1927-410a-b336-1850fc40c819" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ee6d-a01e-0034-0ed3-90e1d2000000", + "Body" : "jtfsdeletesubdirminjtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703dFri, 01 Nov 2019 16:44:41 GMT\"0x8D75EEACAA4F0EA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "52980275-1927-410a-b336-1850fc40c819", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "abdcfc6f-12c2-44cf-96f6-09f6856d592e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc702ce5-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "abdcfc6f-12c2-44cf-96f6-09f6856d592e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirmin0directoryapitestdeletesubdirmin439673703d", "javapathdeletesubdirmin15066884df5ac398794fde9", "javapathdeletesubdirmin2481108b17cf445c594ea0a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirrecursive.json new file mode 100644 index 0000000000000..31b3152224128 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestdeletesubdirrecursive.json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirrecursive0498048409d7021dec4b76?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25e06183-d4b5-4168-89a9-65f2c6fc84c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACAE25694", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65eedd-a01e-0034-7dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "25e06183-d4b5-4168-89a9-65f2c6fc84c1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirrecursive0498048409d7021dec4b76/javapathdeletesubdirrecursive191517c80a1b13d12745?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b91d9c59-0c99-419d-8218-6be72f7e312a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACAEB68E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d0-801f-00ab-45d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:40 GMT", + "x-ms-client-request-id" : "b91d9c59-0c99-419d-8218-6be72f7e312a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirrecursive0498048409d7021dec4b76/javapathdeletesubdirrecursive191517c80a1b13d12745/javapathdeletesubdirrecursive233299943a23e8253e4f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2cd7c269-6d2a-4b75-b9cd-e0c93160aea0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACAF44962", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e01d1-801f-00ab-46d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "2cd7c269-6d2a-4b75-b9cd-e0c93160aea0" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletesubdirrecursive0498048409d7021dec4b76/javapathdeletesubdirrecursive191517c80a1b13d12745/javapathdeletesubdirrecursive233299943a23e8253e4f?recursive=true", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9c7c70f-2867-40b5-b18e-9c79cc59f659" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e01d2-801f-00ab-47d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "e9c7c70f-2867-40b5-b18e-9c79cc59f659" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletesubdirrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d93a50b-d449-4ee5-97b3-50f85a5b85d5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc702d4d-e01e-007c-57d3-90d34f000000", + "Body" : "jtfsdeletesubdirrecursivejtfsdeletesubdirrecursive0498048409d7021dec4b76Fri, 01 Nov 2019 16:44:41 GMT\"0x8D75EEACAE25694\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "6d93a50b-d449-4ee5-97b3-50f85a5b85d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletesubdirrecursive0498048409d7021dec4b76?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7cf22b88-1586-4483-bfca-4191b01bb8c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ef96-a01e-0034-30d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:41 GMT", + "x-ms-client-request-id" : "7cf22b88-1586-4483-bfca-4191b01bb8c8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletesubdirrecursive0498048409d7021dec4b76", "javapathdeletesubdirrecursive191517c80a1b13d12745", "javapathdeletesubdirrecursive233299943a23e8253e4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[0].json new file mode 100644 index 0000000000000..84130f5bd05ce --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[0].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac054846425b74211fce4bd0a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9afc84f-d49d-40c7-939a-12a83b7d30a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0BEBABA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6589b7-a01e-0034-7ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "f9afc84f-d49d-40c7-939a-12a83b7d30a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac054846425b74211fce4bd0a/javapathgetaccesscontrolac129221e3af985a2eb94d8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "441f719c-b320-4076-b25c-c14b9236a78c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0CD60EE", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e008b-801f-00ab-08d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "441f719c-b320-4076-b25c-c14b9236a78c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac054846425b74211fce4bd0a/javapathgetaccesscontrolac129221e3af985a2eb94d8?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ef06cc2-5067-4f5d-bf6d-24b4b971042e" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "ETag" : "0x8D75EEAB0CD60EE", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e008c-801f-00ab-09d3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "4ef06cc2-5067-4f5d-bf6d-24b4b971042e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31af0cea-67b2-43df-9a27-ee9591fcf8d5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fef2c-e01e-007c-55d3-90d34f000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac054846425b74211fce4bd0aFri, 01 Nov 2019 16:43:57 GMT\"0x8D75EEAB0BEBABA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "31af0cea-67b2-43df-9a27-ee9591fcf8d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac054846425b74211fce4bd0a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d2775e81-c051-4241-9499-97c87daa80b8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658a37-a01e-0034-69d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "d2775e81-c051-4241-9499-97c87daa80b8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac054846425b74211fce4bd0a", "javapathgetaccesscontrolac129221e3af985a2eb94d8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[1].json new file mode 100644 index 0000000000000..984a6aa83b481 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[1].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac094858d90a452d7a954bb9b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bee5580b-78bc-4dcd-af9e-4cd132c58d4e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0ED7AFD", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fef57-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "bee5580b-78bc-4dcd-af9e-4cd132c58d4e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac094858d90a452d7a954bb9b/javapathgetaccesscontrolac109079665ac29225604b2?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad8a8a82-2bfb-4093-9a76-2ab67a1939bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0F6CF86", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e008d-801f-00ab-0ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "ad8a8a82-2bfb-4093-9a76-2ab67a1939bd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac094858d90a452d7a954bb9b/javapathgetaccesscontrolac109079665ac29225604b2?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a600b717-b8ba-4824-8a41-c76e5ebe5a8f" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "ETag" : "0x8D75EEAB0F6CF86", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e008e-801f-00ab-0bd3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "a600b717-b8ba-4824-8a41-c76e5ebe5a8f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7d5338e-774e-4dcd-bee3-ee73020e37bc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658af8-a01e-0034-16d3-90e1d2000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac094858d90a452d7a954bb9bFri, 01 Nov 2019 16:43:57 GMT\"0x8D75EEAB0ED7AFD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "b7d5338e-774e-4dcd-bee3-ee73020e37bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac094858d90a452d7a954bb9b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff0b43f6-7c92-40ba-83dd-82c3caad3d9b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fefab-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "ff0b43f6-7c92-40ba-83dd-82c3caad3d9b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac094858d90a452d7a954bb9b", "javapathgetaccesscontrolac109079665ac29225604b2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[2].json new file mode 100644 index 0000000000000..018f9c51fb4e7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[2].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac039171301a21ee8faa4fd78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad58ac8d-aa2b-457d-985d-5c40be1ded56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB119BC82", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a658b4b-a01e-0034-62d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "ad58ac8d-aa2b-457d-985d-5c40be1ded56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac039171301a21ee8faa4fd78/javapathgetaccesscontrolac1775695f2b8899d1ea41c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4785835f-2295-4807-8abc-4a355a4f9031" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB122E153", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e008f-801f-00ab-0cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "4785835f-2295-4807-8abc-4a355a4f9031" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac039171301a21ee8faa4fd78/javapathgetaccesscontrolac1775695f2b8899d1ea41c?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f91314e7-f5d6-4e78-bbcf-d1882c657013" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "ETag" : "0x8D75EEAB122E153", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e0090-801f-00ab-0dd3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "f91314e7-f5d6-4e78-bbcf-d1882c657013" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f74aa7c8-658a-4228-b285-e258c90d7016" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fefee-e01e-007c-0ed3-90d34f000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac039171301a21ee8faa4fd78Fri, 01 Nov 2019 16:43:58 GMT\"0x8D75EEAB119BC82\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "f74aa7c8-658a-4228-b285-e258c90d7016", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac039171301a21ee8faa4fd78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25cb510c-b8d6-44c3-a7bc-ea01a331d3e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658bb8-a01e-0034-47d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "25cb510c-b8d6-44c3-a7bc-ea01a331d3e4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac039171301a21ee8faa4fd78", "javapathgetaccesscontrolac1775695f2b8899d1ea41c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[3].json new file mode 100644 index 0000000000000..23272b07496f0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[3].json @@ -0,0 +1,141 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac034510892a464da55a4a30a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b05c755a-7570-4e1d-aae3-9b9da70f47d4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB140DA1F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff019-e01e-007c-34d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "b05c755a-7570-4e1d-aae3-9b9da70f47d4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac034510892a464da55a4a30a/javapathgetaccesscontrolac114023d645d573e333437?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee854af7-c6fe-4f63-8d32-a9b26a3a6a6a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB14A7BE9", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0091-801f-00ab-0ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "ee854af7-c6fe-4f63-8d32-a9b26a3a6a6a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac034510892a464da55a4a30a/javapathgetaccesscontrolac114023d645d573e333437", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23c5f635-3c4b-4093-bd80-79aa86cd84ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43: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", + "ETag" : "0x8D75EEAB14A7BE9", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a658c07-a01e-0034-0ed3-90e1d2000000", + "x-ms-client-request-id" : "23c5f635-3c4b-4093-bd80-79aa86cd84ba", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac034510892a464da55a4a30a/javapathgetaccesscontrolac114023d645d573e333437?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89c715df-2366-414c-b570-3fb417d269d9" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "ETag" : "0x8D75EEAB14A7BE9", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e0092-801f-00ab-0fd3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "89c715df-2366-414c-b570-3fb417d269d9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c191040-25e7-4a7e-a4e9-51e2cabd52d7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff058-e01e-007c-6bd3-90d34f000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac034510892a464da55a4a30aFri, 01 Nov 2019 16:43:58 GMT\"0x8D75EEAB140DA1F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "4c191040-25e7-4a7e-a4e9-51e2cabd52d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac034510892a464da55a4a30a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d7585d73-5a42-4908-a5cb-06edaa5c4eed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658c57-a01e-0034-55d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "d7585d73-5a42-4908-a5cb-06edaa5c4eed" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac034510892a464da55a4a30a", "javapathgetaccesscontrolac114023d645d573e333437" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[4].json new file mode 100644 index 0000000000000..b8646b94bb350 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[4].json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac033336949c3bede7e64fab8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e93fce7a-9939-407f-8dd1-675f677da08a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB17168C3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff07f-e01e-007c-11d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "e93fce7a-9939-407f-8dd1-675f677da08a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac033336949c3bede7e64fab8/javapathgetaccesscontrolac175746eed40c38355b474?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c48dad4-b64c-4244-aae9-1cdb9d531ce7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB17BAF3C", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0095-801f-00ab-12d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "2c48dad4-b64c-4244-aae9-1cdb9d531ce7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac033336949c3bede7e64fab8/javapathgetaccesscontrolac175746eed40c38355b474?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0fc3bdf9-4c4e-40db-8608-a609adfe5755" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "ETag" : "0x8D75EEAB17BAF3C", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e0098-801f-00ab-15d3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "0fc3bdf9-4c4e-40db-8608-a609adfe5755" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57fa5a5d-58c3-4bd7-91c2-a27c6b8d553e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658cd9-a01e-0034-49d3-90e1d2000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac033336949c3bede7e64fab8Fri, 01 Nov 2019 16:43:58 GMT\"0x8D75EEAB17168C3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "57fa5a5d-58c3-4bd7-91c2-a27c6b8d553e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac033336949c3bede7e64fab8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0377a47b-fec9-4cf6-9ea3-6ab0479c2ce2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff0cd-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "0377a47b-fec9-4cf6-9ea3-6ab0479c2ce2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac033336949c3bede7e64fab8", "javapathgetaccesscontrolac175746eed40c38355b474" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[5].json new file mode 100644 index 0000000000000..14837a9a010ad --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolac[5].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac039183869debaa05354d258?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96686a84-7d6c-42dc-afbe-174f5f0d05bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB19C98BC", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a658d36-a01e-0034-1ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "96686a84-7d6c-42dc-afbe-174f5f0d05bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac039183869debaa05354d258/javapathgetaccesscontrolac102261810beb0462734d7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf83e9c5-910f-42d3-aad4-4f0736c33150" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB1A6CE9C", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00a0-801f-00ab-1dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "bf83e9c5-910f-42d3-aad4-4f0736c33150" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac039183869debaa05354d258/javapathgetaccesscontrolac102261810beb0462734d7?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0dd63db-1848-4e96-a974-27fa612f5923" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB1A6CE9C", + "x-ms-lease-id" : "cc78fa0c-1a72-43a1-9355-be8c39983ea3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff113-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "a0dd63db-1848-4e96-a974-27fa612f5923" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac039183869debaa05354d258/javapathgetaccesscontrolac102261810beb0462734d7?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1c2de65-155d-4c8f-a347-f645f98b00f8" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "ETag" : "0x8D75EEAB1A6CE9C", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e00a3-801f-00ab-20d3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "d1c2de65-155d-4c8f-a347-f645f98b00f8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "445b0d6e-e689-4038-a0e5-0ae06d5a8b2f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658da6-a01e-0034-7dd3-90e1d2000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac039183869debaa05354d258Fri, 01 Nov 2019 16:43:59 GMT\"0x8D75EEAB19C98BC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "445b0d6e-e689-4038-a0e5-0ae06d5a8b2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac039183869debaa05354d258?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99be5063-68bc-4da9-a6eb-29fdceeedcbf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff14c-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "99be5063-68bc-4da9-a6eb-29fdceeedcbf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac039183869debaa05354d258", "javapathgetaccesscontrolac102261810beb0462734d7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[0].json new file mode 100644 index 0000000000000..e7658ef43bd87 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0513568cbfb91d97434e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aaa9941a-b049-4ff4-8022-79985cb4e1c4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB1CBEEA6", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a658dd1-a01e-0034-24d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "aaa9941a-b049-4ff4-8022-79985cb4e1c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0513568cbfb91d97434e4/javapathgetaccesscontrolacfail145054a740875239fa4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9982bc1f-adb5-4fb1-a251-f6d94a23f23c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB1D5550F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00a4-801f-00ab-21d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:58 GMT", + "x-ms-client-request-id" : "9982bc1f-adb5-4fb1-a251-f6d94a23f23c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0513568cbfb91d97434e4/javapathgetaccesscontrolacfail145054a740875239fa4?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18ccc6f8-acd6-4d5d-a763-817004c08ec1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "aa8e00a6-801f-00ab-23d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "18ccc6f8-acd6-4d5d-a763-817004c08ec1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "482ef0fa-2950-4d67-8f05-8a16f9b6a524" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff19a-e01e-007c-11d3-90d34f000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail0513568cbfb91d97434e4Fri, 01 Nov 2019 16:43:59 GMT\"0x8D75EEAB1CBEEA6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "482ef0fa-2950-4d67-8f05-8a16f9b6a524", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0513568cbfb91d97434e4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18db08c6-ee34-48cf-8de1-d52a09ff4c4f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658e52-a01e-0034-17d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "18db08c6-ee34-48cf-8de1-d52a09ff4c4f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail0513568cbfb91d97434e4", "javapathgetaccesscontrolacfail145054a740875239fa4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[1].json new file mode 100644 index 0000000000000..4b7ec70aba454 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail03708968fa4794c96e433?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e81ec562-b380-4403-8f58-bbb8bf75ed3b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB1F6682A", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff1dd-e01e-007c-4ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "e81ec562-b380-4403-8f58-bbb8bf75ed3b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail03708968fa4794c96e433/javapathgetaccesscontrolacfail185221623db5f87bbd4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3a178e9-080e-4408-9fc7-1b46b031c66f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB1FF9CA2", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00a9-801f-00ab-26d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "f3a178e9-080e-4408-9fc7-1b46b031c66f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail03708968fa4794c96e433/javapathgetaccesscontrolacfail185221623db5f87bbd4?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e3014d4-c94e-407d-93ba-13e04ef5f996" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00aa-801f-00ab-27d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "0e3014d4-c94e-407d-93ba-13e04ef5f996" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91328408-70af-4f6e-b7b4-d12803bee2a5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658eab-a01e-0034-62d3-90e1d2000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail03708968fa4794c96e433Fri, 01 Nov 2019 16:43:59 GMT\"0x8D75EEAB1F6682A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "91328408-70af-4f6e-b7b4-d12803bee2a5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail03708968fa4794c96e433?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7bacaa5-fe97-4b5b-97fe-05cc4dcf60b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff220-e01e-007c-0ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "a7bacaa5-fe97-4b5b-97fe-05cc4dcf60b3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail03708968fa4794c96e433", "javapathgetaccesscontrolacfail185221623db5f87bbd4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[2].json new file mode 100644 index 0000000000000..b1b07a6c7715c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail050275110959b023b44c3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38f327f8-edce-4512-98b9-fd87a071db1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB21DEE08", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a658ee3-a01e-0034-15d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "38f327f8-edce-4512-98b9-fd87a071db1c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail050275110959b023b44c3/javapathgetaccesscontrolacfail188829402fed7560354?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ae3cc6f-e879-445f-be6a-617a60cb6ac2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB2271DBA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ab-801f-00ab-28d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "1ae3cc6f-e879-445f-be6a-617a60cb6ac2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail050275110959b023b44c3/javapathgetaccesscontrolacfail188829402fed7560354?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1926d2f1-c161-4ed4-813d-cc4c2895d1e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00ac-801f-00ab-29d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "1926d2f1-c161-4ed4-813d-cc4c2895d1e4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d09d94e-e382-4920-8cf9-b42f0dd3b951" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff275-e01e-007c-5ad3-90d34f000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail050275110959b023b44c3Fri, 01 Nov 2019 16:43:59 GMT\"0x8D75EEAB21DEE08\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "2d09d94e-e382-4920-8cf9-b42f0dd3b951", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail050275110959b023b44c3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e16d026-6b8e-43c8-b5f6-739e3887625e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658f48-a01e-0034-70d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "9e16d026-6b8e-43c8-b5f6-739e3887625e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail050275110959b023b44c3", "javapathgetaccesscontrolacfail188829402fed7560354" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[3].json new file mode 100644 index 0000000000000..2212180479526 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolacfail[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0084051fb0a3cdf812423?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ea22499-5574-4de6-8f17-6402f7233408" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB24755DF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff29c-e01e-007c-7ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "5ea22499-5574-4de6-8f17-6402f7233408" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0084051fb0a3cdf812423/javapathgetaccesscontrolacfail120568b43002ae67134?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ea569e4-ecd8-4b5f-9c81-2be842b551b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB2508133", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ae-801f-00ab-2bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "7ea569e4-ecd8-4b5f-9c81-2be842b551b3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0084051fb0a3cdf812423/javapathgetaccesscontrolacfail120568b43002ae67134", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4dedfa8d-b384-415d-a91d-14c4bf2dbc82" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:00 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", + "ETag" : "0x8D75EEAB2508133", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:00 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a658f8d-a01e-0034-2bd3-90e1d2000000", + "x-ms-client-request-id" : "4dedfa8d-b384-415d-a91d-14c4bf2dbc82", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0084051fb0a3cdf812423/javapathgetaccesscontrolacfail120568b43002ae67134?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89cf7d83-3d92-41fa-95a2-fa6386385ba3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "aa8e00b0-801f-00ab-2dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:59 GMT", + "x-ms-client-request-id" : "89cf7d83-3d92-41fa-95a2-fa6386385ba3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "abe276a8-3b23-411e-9c5f-7a85943bce95" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff2e3-e01e-007c-3dd3-90d34f000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail0084051fb0a3cdf812423Fri, 01 Nov 2019 16:44:00 GMT\"0x8D75EEAB24755DF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "abe276a8-3b23-411e-9c5f-7a85943bce95", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0084051fb0a3cdf812423?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "56031633-4f8f-42b0-ad19-be7b4ab49dd1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658fb8-a01e-0034-50d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "56031633-4f8f-42b0-ad19-be7b4ab49dd1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail0084051fb0a3cdf812423", "javapathgetaccesscontrolacfail120568b43002ae67134" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolmin.json new file mode 100644 index 0000000000000..feed68d6aab46 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolmin.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolmin033127ff53e26663f449cd8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff8bc140-5495-45fc-b77f-187ee42d2f63" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0486AB4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fee06-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "ff8bc140-5495-45fc-b77f-187ee42d2f63" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolmin033127ff53e26663f449cd8/javapathgetaccesscontrolmin1565104979f69b0c674fc?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "202384e9-bcf6-40e6-b066-ad4439db440b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB051DDA3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0085-801f-00ab-02d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "202384e9-bcf6-40e6-b066-ad4439db440b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolmin033127ff53e26663f449cd8/javapathgetaccesscontrolmin1565104979f69b0c674fc?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b584b70a-7d84-4605-9093-1d67f0f0e3f9" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "ETag" : "0x8D75EEAB051DDA3", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e0086-801f-00ab-03d3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "b584b70a-7d84-4605-9093-1d67f0f0e3f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5439a65-65d1-4fd0-8546-53026fd86caf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6588b5-a01e-0034-12d3-90e1d2000000", + "Body" : "jtfsgetaccesscontrolminjtfsgetaccesscontrolmin033127ff53e26663f449cd8Fri, 01 Nov 2019 16:43:56 GMT\"0x8D75EEAB0486AB4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "b5439a65-65d1-4fd0-8546-53026fd86caf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolmin033127ff53e26663f449cd8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c03cd7d-7237-4765-8e6c-92a75216077d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fee47-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "9c03cd7d-7237-4765-8e6c-92a75216077d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolmin033127ff53e26663f449cd8", "javapathgetaccesscontrolmin1565104979f69b0c674fc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolreturnupn.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolreturnupn.json new file mode 100644 index 0000000000000..00a75b0ae59f5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolreturnupn.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolreturnupn0104308f5748e9b57548?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f5a3641-d07c-4375-99ab-1cb1e24b5d9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0970E0B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6feeac-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "2f5a3641-d07c-4375-99ab-1cb1e24b5d9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolreturnupn0104308f5748e9b57548/javapathgetaccesscontrolreturnupn1726183965b2407079?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29fb799f-a04d-46ab-96f9-2d3e3dd6e8dc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB0A048BA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0089-801f-00ab-06d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "29fb799f-a04d-46ab-96f9-2d3e3dd6e8dc" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolreturnupn0104308f5748e9b57548/javapathgetaccesscontrolreturnupn1726183965b2407079?action=getAccessControl&upn=true", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2855962-e8ac-4507-a3a4-8a667dcba56c" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "ETag" : "0x8D75EEAB0A048BA", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e008a-801f-00ab-07d3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "b2855962-e8ac-4507-a3a4-8a667dcba56c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolreturnupn&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef79c7f0-8941-4755-a551-4208ade4158b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658988-a01e-0034-54d3-90e1d2000000", + "Body" : "jtfsgetaccesscontrolreturnupnjtfsgetaccesscontrolreturnupn0104308f5748e9b57548Fri, 01 Nov 2019 16:43:57 GMT\"0x8D75EEAB0970E0B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "ef79c7f0-8941-4755-a551-4208ade4158b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolreturnupn0104308f5748e9b57548?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74bc3dd6-202c-4e63-9113-bb744aaee601" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6feee2-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "74bc3dd6-202c-4e63-9113-bb744aaee601" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolreturnupn0104308f5748e9b57548", "javapathgetaccesscontrolreturnupn1726183965b2407079" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolwithresponse.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolwithresponse.json new file mode 100644 index 0000000000000..396014a104986 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetaccesscontrolwithresponse.json @@ -0,0 +1,110 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolwithresponse090097ef1cfcb34e4c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9a04f66-6da1-4d03-9cdd-169733fde361" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB06FF01E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6588f0-a01e-0034-46d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "a9a04f66-6da1-4d03-9cdd-169733fde361" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolwithresponse090097ef1cfcb34e4c/javapathgetaccesscontrolwithresponse1540460cc574213a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a68adae-dedf-4071-9af6-f834e569a43e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB07951A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0087-801f-00ab-04d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "5a68adae-dedf-4071-9af6-f834e569a43e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolwithresponse090097ef1cfcb34e4c/javapathgetaccesscontrolwithresponse1540460cc574213a?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a0bb83d-a09a-431f-87a6-a7ce69c22d90" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rwx,group::r-x,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "ETag" : "0x8D75EEAB07951A7", + "x-ms-permissions" : "rwxr-x---", + "x-ms-request-id" : "aa8e0088-801f-00ab-05d3-909968000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "9a0bb83d-a09a-431f-87a6-a7ce69c22d90" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolwithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d953eee-12ea-4aca-a300-80900fc245c9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fee8a-e01e-007c-43d3-90d34f000000", + "Body" : "jtfsgetaccesscontrolwithresponsejtfsgetaccesscontrolwithresponse090097ef1cfcb34e4cFri, 01 Nov 2019 16:43:57 GMT\"0x8D75EEAB06FF01E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "1d953eee-12ea-4aca-a300-80900fc245c9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolwithresponse090097ef1cfcb34e4c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae1f3bfa-a993-4035-82db-c99687d1d6fc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658937-a01e-0034-09d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:57 GMT", + "x-ms-client-request-id" : "ae1f3bfa-a993-4035-82db-c99687d1d6fc" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolwithresponse090097ef1cfcb34e4c", "javapathgetaccesscontrolwithresponse1540460cc574213a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[0].json new file mode 100644 index 0000000000000..6b76b9f6d03e0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[0].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac1c04639964?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "469019c2-e0ba-4a2f-84d5-c5b711b0eac5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7F435B4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a398-a01e-0034-50d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "469019c2-e0ba-4a2f-84d5-c5b711b0eac5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac1c04639964/javapathgetpropertiesac159693b720785b62b243aca?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73204ee5-6fd4-41a7-98bc-9b42c621624d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7FD94D3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00fc-801f-00ab-73d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "73204ee5-6fd4-41a7-98bc-9b42c621624d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac1c04639964/javapathgetpropertiesac159693b720785b62b243aca", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8526755-1f1b-408d-922b-07a57ee11e98" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:09 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", + "ETag" : "0x8D75EEAB7FD94D3", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:09 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc70022a-e01e-007c-6cd3-90d34f000000", + "x-ms-client-request-id" : "d8526755-1f1b-408d-922b-07a57ee11e98", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09fff280-591a-43da-8a21-9fdcb321dd38" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a3f8-a01e-0034-2bd3-90e1d2000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0directoryapitestgetpropertiesac1c04639964Fri, 01 Nov 2019 16:44:09 GMT\"0x8D75EEAB7F435B4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "09fff280-591a-43da-8a21-9fdcb321dd38", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac1c04639964?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1207512d-f7c3-4ffc-aee2-85976058738c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700263-e01e-007c-22d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "1207512d-f7c3-4ffc-aee2-85976058738c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0directoryapitestgetpropertiesac1c04639964", "javapathgetpropertiesac159693b720785b62b243aca" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[1].json new file mode 100644 index 0000000000000..12aa85c8f3c4f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[1].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac9c89847299?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28a1a2f3-f3fa-45c2-bc90-a42ba371ea4e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB81D9727", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a449-a01e-0034-7ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "28a1a2f3-f3fa-45c2-bc90-a42ba371ea4e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac9c89847299/javapathgetpropertiesac11297248011e3a65874324a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1072fcd-e51b-422e-9e3a-15de14877a43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB827A184", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00fd-801f-00ab-74d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "d1072fcd-e51b-422e-9e3a-15de14877a43" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac9c89847299/javapathgetpropertiesac11297248011e3a65874324a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24e186d6-abcb-49cb-a1a4-712eeb26fe12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:10 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", + "ETag" : "0x8D75EEAB827A184", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7002b3-e01e-007c-6ed3-90d34f000000", + "x-ms-client-request-id" : "24e186d6-abcb-49cb-a1a4-712eeb26fe12", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8539c0cb-1e82-42e8-85ae-b92028739d7c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a4b2-a01e-0034-5cd3-90e1d2000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0directoryapitestgetpropertiesac9c89847299Fri, 01 Nov 2019 16:44:10 GMT\"0x8D75EEAB81D9727\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "8539c0cb-1e82-42e8-85ae-b92028739d7c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac9c89847299?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93f30796-3dde-463b-b87b-d91d0c08dfe1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7002db-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "93f30796-3dde-463b-b87b-d91d0c08dfe1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0directoryapitestgetpropertiesac9c89847299", "javapathgetpropertiesac11297248011e3a65874324a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[2].json new file mode 100644 index 0000000000000..47a1b7dec3c15 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[2].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac05e90045da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92f8b515-3404-4668-8ab9-a101d4b20eda" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB8491BD0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a4db-a01e-0034-01d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "92f8b515-3404-4668-8ab9-a101d4b20eda" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac05e90045da/javapathgetpropertiesac11614547a5fdb8c5984fe0a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6bfef2fc-8653-4e4a-b423-8e52a686b5bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB85270B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00fe-801f-00ab-75d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "6bfef2fc-8653-4e4a-b423-8e52a686b5bb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac05e90045da/javapathgetpropertiesac11614547a5fdb8c5984fe0a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2af91fcf-2ee1-4dbe-9b7a-1fc632d48f5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:10 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", + "ETag" : "0x8D75EEAB85270B9", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700326-e01e-007c-55d3-90d34f000000", + "x-ms-client-request-id" : "2af91fcf-2ee1-4dbe-9b7a-1fc632d48f5d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cda423d6-503a-4942-891d-5d1130969459" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a524-a01e-0034-3ed3-90e1d2000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0directoryapitestgetpropertiesac05e90045daFri, 01 Nov 2019 16:44:10 GMT\"0x8D75EEAB8491BD0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "cda423d6-503a-4942-891d-5d1130969459", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac05e90045da?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b04f368-7ca7-4011-9b22-03cbc140fed1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700345-e01e-007c-73d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "7b04f368-7ca7-4011-9b22-03cbc140fed1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0directoryapitestgetpropertiesac05e90045da", "javapathgetpropertiesac11614547a5fdb8c5984fe0a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[3].json new file mode 100644 index 0000000000000..c45e2b45074e3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[3].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesace299756943?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80d245ee-626a-4660-955a-22971942350d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB87207FA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a558-a01e-0034-70d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "80d245ee-626a-4660-955a-22971942350d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesace299756943/javapathgetpropertiesac1518108f751a90973d4c9bb?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85e7086b-f84b-4fb2-b8b4-66805883582b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB87BC378", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ff-801f-00ab-76d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "85e7086b-f84b-4fb2-b8b4-66805883582b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesace299756943/javapathgetpropertiesac1518108f751a90973d4c9bb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cbcf47f-8a6a-4bf8-8a9b-64c7a0764f1e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:10 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", + "ETag" : "0x8D75EEAB87BC378", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700395-e01e-007c-3cd3-90d34f000000", + "x-ms-client-request-id" : "0cbcf47f-8a6a-4bf8-8a9b-64c7a0764f1e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesace299756943/javapathgetpropertiesac1518108f751a90973d4c9bb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "198439a4-d1a6-4683-abc7-60162d09bdf7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:10 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", + "ETag" : "0x8D75EEAB87BC378", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65a5b1-a01e-0034-40d3-90e1d2000000", + "x-ms-client-request-id" : "198439a4-d1a6-4683-abc7-60162d09bdf7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "873a1dc8-1b08-46af-989c-643b3d8bfc97" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7003c4-e01e-007c-65d3-90d34f000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0directoryapitestgetpropertiesace299756943Fri, 01 Nov 2019 16:44:10 GMT\"0x8D75EEAB87207FA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "873a1dc8-1b08-46af-989c-643b3d8bfc97", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesace299756943?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31f238d2-4404-4df0-92d5-5a4b6236e0f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65a602-a01e-0034-0bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "31f238d2-4404-4df0-92d5-5a4b6236e0f5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0directoryapitestgetpropertiesace299756943", "javapathgetpropertiesac1518108f751a90973d4c9bb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[4].json new file mode 100644 index 0000000000000..7aa0d1f0c5a19 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[4].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesacf274048249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d31f0666-e0f4-48b7-9850-43da3c940c5c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB8A3D4D8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7003ec-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "d31f0666-e0f4-48b7-9850-43da3c940c5c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesacf274048249/javapathgetpropertiesac144473f5e33781f72c40f7a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84a7f9cb-5246-4438-ac20-239002604aa1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB8ACFCBE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0101-801f-00ab-77d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "84a7f9cb-5246-4438-ac20-239002604aa1" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesacf274048249/javapathgetpropertiesac144473f5e33781f72c40f7a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f2a51fb-e85d-498e-a6a5-9a63dd83a3fc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:10 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", + "ETag" : "0x8D75EEAB8ACFCBE", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65a65b-a01e-0034-60d3-90e1d2000000", + "x-ms-client-request-id" : "0f2a51fb-e85d-498e-a6a5-9a63dd83a3fc", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c2cc5bd-fc98-4ace-a8a9-67d9e5fa0e79" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70042e-e01e-007c-44d3-90d34f000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0directoryapitestgetpropertiesacf274048249Fri, 01 Nov 2019 16:44:10 GMT\"0x8D75EEAB8A3D4D8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "9c2cc5bd-fc98-4ace-a8a9-67d9e5fa0e79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesacf274048249?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7b773a0-d9a7-4dc4-96b7-48baf2e7dde9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65a68f-a01e-0034-11d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "f7b773a0-d9a7-4dc4-96b7-48baf2e7dde9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0directoryapitestgetpropertiesacf274048249", "javapathgetpropertiesac144473f5e33781f72c40f7a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[5].json new file mode 100644 index 0000000000000..63e86b4c6d277 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesac[5].json @@ -0,0 +1,140 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac466158361b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3008ef3d-7150-4aaf-ba67-a6fc5d8ec841" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB8CF326D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700464-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "3008ef3d-7150-4aaf-ba67-a6fc5d8ec841" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac466158361b/javapathgetpropertiesac178527190a60f6ea254f228?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "021ffef5-c30b-4e74-8dff-bd70387fc4cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB8D87598", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0102-801f-00ab-78d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "021ffef5-c30b-4e74-8dff-bd70387fc4cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac466158361b/javapathgetpropertiesac178527190a60f6ea254f228?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87c004a0-c71e-4f74-adc1-286a842b5879" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB8D87598", + "x-ms-lease-id" : "8f2ca983-bbd9-48ba-84a2-e8f76ea5af21", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a6de-a01e-0034-5cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:10 GMT", + "x-ms-client-request-id" : "87c004a0-c71e-4f74-adc1-286a842b5879" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac466158361b/javapathgetpropertiesac178527190a60f6ea254f228", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d37c13a-6026-47ef-b2e6-4a79b32d7ce2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:11 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", + "ETag" : "0x8D75EEAB8D87598", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc7004ad-e01e-007c-36d3-90d34f000000", + "x-ms-client-request-id" : "5d37c13a-6026-47ef-b2e6-4a79b32d7ce2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3aec683a-9dea-41ab-9b1c-11bd8e155b50" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a712-a01e-0034-09d3-90e1d2000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0directoryapitestgetpropertiesac466158361bFri, 01 Nov 2019 16:44:11 GMT\"0x8D75EEAB8CF326D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "3aec683a-9dea-41ab-9b1c-11bd8e155b50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0directoryapitestgetpropertiesac466158361b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cae1bb2a-8a47-41bc-95fe-f67516c76668" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7004c9-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "cae1bb2a-8a47-41bc-95fe-f67516c76668" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0directoryapitestgetpropertiesac466158361b", "javapathgetpropertiesac178527190a60f6ea254f228" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[0].json new file mode 100644 index 0000000000000..7bfe873957ccf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail076978efd7d635f2bf410a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b89dae3-461f-40c4-ac0b-dde594487c45" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB90030F5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a730-a01e-0034-27d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "2b89dae3-461f-40c4-ac0b-dde594487c45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail076978efd7d635f2bf410a8/javapathgetpropertiesacfail1933575f7590ed364a473?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3dc0607-4f64-4b63-afe8-4a31f85a35bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB90963BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0103-801f-00ab-79d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "b3dc0607-4f64-4b63-afe8-4a31f85a35bf" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail076978efd7d635f2bf410a8/javapathgetpropertiesacfail1933575f7590ed364a473", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25ca22c4-0037-4bdc-b435-5ea96e525abb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "dc7004f4-e01e-007c-79d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "25ca22c4-0037-4bdc-b435-5ea96e525abb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "499d5e69-9556-45bd-9c7f-5bf35bbe5a1d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a774-a01e-0034-65d3-90e1d2000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail076978efd7d635f2bf410a8Fri, 01 Nov 2019 16:44:11 GMT\"0x8D75EEAB90030F5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "499d5e69-9556-45bd-9c7f-5bf35bbe5a1d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail076978efd7d635f2bf410a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3aa1116f-4ca2-49cf-8af4-e119e69cece4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70050a-e01e-007c-0dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "3aa1116f-4ca2-49cf-8af4-e119e69cece4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail076978efd7d635f2bf410a8", "javapathgetpropertiesacfail1933575f7590ed364a473" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[1].json new file mode 100644 index 0000000000000..19438e924960e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail040621eb85b86caa86451b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e24f3883-ea32-4017-b4a6-7366d7bad535" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB9399AF0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a7e8-a01e-0034-4ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "e24f3883-ea32-4017-b4a6-7366d7bad535" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail040621eb85b86caa86451b8/javapathgetpropertiesacfail199296a539ced9eebc4b6?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c0c328d-6b0a-48ce-95ea-e9e8db2fecea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB94345F8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0105-801f-00ab-7bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "3c0c328d-6b0a-48ce-95ea-e9e8db2fecea" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail040621eb85b86caa86451b8/javapathgetpropertiesacfail199296a539ced9eebc4b6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "910e71e1-0494-4627-a12f-525a24d0e0b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "dc70055c-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "910e71e1-0494-4627-a12f-525a24d0e0b4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08aa5b66-0d0d-4615-9638-3936350977de" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a867-a01e-0034-3fd3-90e1d2000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail040621eb85b86caa86451b8Fri, 01 Nov 2019 16:44:11 GMT\"0x8D75EEAB9399AF0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "08aa5b66-0d0d-4615-9638-3936350977de", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail040621eb85b86caa86451b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8aa12157-24e6-4bbc-9d28-b74d9c8c79d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700585-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "8aa12157-24e6-4bbc-9d28-b74d9c8c79d8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail040621eb85b86caa86451b8", "javapathgetpropertiesacfail199296a539ced9eebc4b6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[2].json new file mode 100644 index 0000000000000..c230a5e891fd8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail06043966bb9e54fb35467d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4045aaba-0989-4e23-bda0-ec831ffc3b62" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB962FD1E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a8d6-a01e-0034-23d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "4045aaba-0989-4e23-bda0-ec831ffc3b62" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail06043966bb9e54fb35467d8/javapathgetpropertiesacfail162529b6f11ffc9ad14e0?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "366e426a-54ad-4823-8aa7-df193c629a0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB96C59BC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0107-801f-00ab-7dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "366e426a-54ad-4823-8aa7-df193c629a0f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail06043966bb9e54fb35467d8/javapathgetpropertiesacfail162529b6f11ffc9ad14e0", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6fb317ee-70b6-447b-9668-f40d1b9a2e8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "dc7005bd-e01e-007c-2fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "6fb317ee-70b6-447b-9668-f40d1b9a2e8d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "748ead5d-1781-4a8f-b310-10c91b6feab1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a933-a01e-0034-78d3-90e1d2000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail06043966bb9e54fb35467d8Fri, 01 Nov 2019 16:44:12 GMT\"0x8D75EEAB962FD1E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "748ead5d-1781-4a8f-b310-10c91b6feab1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail06043966bb9e54fb35467d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad93309d-9b41-4e94-b1d4-81284166c692" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7005e3-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "ad93309d-9b41-4e94-b1d4-81284166c692" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail06043966bb9e54fb35467d8", "javapathgetpropertiesacfail162529b6f11ffc9ad14e0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[3].json new file mode 100644 index 0000000000000..6816a49f1122c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0574099fd3945d65934a43a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4cb5ee3d-d65a-4c24-8260-26c99c405a04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB98AB209", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a981-a01e-0034-3ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "4cb5ee3d-d65a-4c24-8260-26c99c405a04" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0574099fd3945d65934a43a/javapathgetpropertiesacfail13108518404f788ed04c2?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9269ad9a-38e0-4d8d-b675-da0095351979" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB9975421", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0108-801f-00ab-7ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:11 GMT", + "x-ms-client-request-id" : "9269ad9a-38e0-4d8d-b675-da0095351979" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0574099fd3945d65934a43a/javapathgetpropertiesacfail13108518404f788ed04c2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d2e96a1c-d18e-4a71-beff-1d8879e957ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:12 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", + "ETag" : "0x8D75EEAB9975421", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:12 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700632-e01e-007c-18d3-90d34f000000", + "x-ms-client-request-id" : "d2e96a1c-d18e-4a71-beff-1d8879e957ed", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0574099fd3945d65934a43a/javapathgetpropertiesacfail13108518404f788ed04c2", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f24c3a33-e337-43bb-9752-0426d23dc62e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "3a65a9f5-a01e-0034-28d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "f24c3a33-e337-43bb-9752-0426d23dc62e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3838dbf7-3047-468a-893f-af29efc35e22" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70066b-e01e-007c-4ed3-90d34f000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0574099fd3945d65934a43aFri, 01 Nov 2019 16:44:12 GMT\"0x8D75EEAB98AB209\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "3838dbf7-3047-468a-893f-af29efc35e22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0574099fd3945d65934a43a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4cc10515-3b78-40aa-a5cc-89664bde998d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65aa34-a01e-0034-63d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "4cc10515-3b78-40aa-a5cc-89664bde998d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0574099fd3945d65934a43a", "javapathgetpropertiesacfail13108518404f788ed04c2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[4].json new file mode 100644 index 0000000000000..31f0a06ecd53b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesacfail[4].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0476855301e3c4599847509?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45668d11-cea8-4a9a-b54c-178b3dcbc574" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB9BD66DD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700685-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "45668d11-cea8-4a9a-b54c-178b3dcbc574" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0476855301e3c4599847509/javapathgetpropertiesacfail194782e27af71e53934ef?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1dde1460-ac47-48c8-a982-3972af069cb1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB9CF53B2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0109-801f-00ab-7fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "1dde1460-ac47-48c8-a982-3972af069cb1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0476855301e3c4599847509/javapathgetpropertiesacfail194782e27af71e53934ef?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fca73613-5dd0-464b-bc1b-70c8d35a0065" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB9CF53B2", + "x-ms-lease-id" : "1d146b06-959d-4bb3-a9cd-2bc7625cb9a4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65aaa3-a01e-0034-4ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "fca73613-5dd0-464b-bc1b-70c8d35a0065" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0476855301e3c4599847509/javapathgetpropertiesacfail194782e27af71e53934ef", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8c46ad7-43ef-46f3-bbf6-da1f1525b698" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "dc7006d4-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "a8c46ad7-43ef-46f3-bbf6-da1f1525b698" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b47d832-72b3-42f1-8120-5f53c141447c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65aad1-a01e-0034-73d3-90e1d2000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0476855301e3c4599847509Fri, 01 Nov 2019 16:44:12 GMT\"0x8D75EEAB9BD66DD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "0b47d832-72b3-42f1-8120-5f53c141447c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0476855301e3c4599847509?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7a2bf40-bac8-4dca-8615-0140bdfdcbb6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7006f6-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "a7a2bf40-bac8-4dca-8615-0140bdfdcbb6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0476855301e3c4599847509", "javapathgetpropertiesacfail194782e27af71e53934ef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesdefault.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesdefault.json new file mode 100644 index 0000000000000..4a1a1e9654e1a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesdefault.json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesdefault054268f212ee9a0b534d4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80414064-318a-45c4-8295-bf9dac5a40da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7A14BCC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a256-a01e-0034-2cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "80414064-318a-45c4-8295-bf9dac5a40da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesdefault054268f212ee9a0b534d4e/javapathgetpropertiesdefault14266304056064a4e247?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce6935c1-544a-4dde-8172-a2409ccfb478" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7AAFDD4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00fa-801f-00ab-71d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "ce6935c1-544a-4dde-8172-a2409ccfb478" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesdefault054268f212ee9a0b534d4e/javapathgetpropertiesdefault14266304056064a4e247", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0914301d-4c0b-4601-8080-e4dd8aace7af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:09 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", + "ETag" : "0x8D75EEAB7AAFDD4", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:09 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc70014e-e01e-007c-20d3-90d34f000000", + "x-ms-client-request-id" : "0914301d-4c0b-4601-8080-e4dd8aace7af", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesdefault&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "657a1968-7db1-420f-a1fc-1b567e2aa404" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a2b6-a01e-0034-07d3-90e1d2000000", + "Body" : "jtfsgetpropertiesdefaultjtfsgetpropertiesdefault054268f212ee9a0b534d4eFri, 01 Nov 2019 16:44:09 GMT\"0x8D75EEAB7A14BCC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "657a1968-7db1-420f-a1fc-1b567e2aa404", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesdefault054268f212ee9a0b534d4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff4d4565-277d-4b36-b30d-9cadb61b8928" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700166-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "ff4d4565-277d-4b36-b30d-9cadb61b8928" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesdefault054268f212ee9a0b534d4e", "javapathgetpropertiesdefault14266304056064a4e247" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertieserror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertieserror.json new file mode 100644 index 0000000000000..4fe57b2362e89 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertieserror.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror065624fb50836aa45540b7a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "07b5d5db-3e0d-42e4-8372-42eb067379ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB9F8A674", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ab0c-a01e-0034-2ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "07b5d5db-3e0d-42e4-8372-42eb067379ec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertieserror065624fb50836aa45540b7a/javapathgetpropertieserror141655db85a30c3a764b5?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c42eb4bd-7073-4bf2-90e9-3330e1ef6466" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA024FA8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e010a-801f-00ab-80d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "c42eb4bd-7073-4bf2-90e9-3330e1ef6466" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror065624fb50836aa45540b7a/javapathgetpropertieserror2752514e83e4f10ba84bf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "67ef8170-f5c5-4c04-83b7-71a337a04cbf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "dc700749-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "67ef8170-f5c5-4c04-83b7-71a337a04cbf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertieserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9ef317f-f038-4c3c-8aa2-9c521111a5fc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ab47-a01e-0034-5fd3-90e1d2000000", + "Body" : "jtfsgetpropertieserrorjtfsgetpropertieserror065624fb50836aa45540b7aFri, 01 Nov 2019 16:44:13 GMT\"0x8D75EEAB9F8A674\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "e9ef317f-f038-4c3c-8aa2-9c521111a5fc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror065624fb50836aa45540b7a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4427591d-2423-476f-a76f-d18e647a2600" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70077b-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "4427591d-2423-476f-a76f-d18e647a2600" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertieserror065624fb50836aa45540b7a", "javapathgetpropertieserror141655db85a30c3a764b5", "javapathgetpropertieserror2752514e83e4f10ba84bf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesmin.json new file mode 100644 index 0000000000000..707fa11d50344 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestgetpropertiesmin.json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0directoryapitestgetpropertiesmin2cf04326d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6e639a1-e99f-433a-b40e-011b05abb418" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7CC8250", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a307-a01e-0034-55d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "a6e639a1-e99f-433a-b40e-011b05abb418" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesmin0directoryapitestgetpropertiesmin2cf04326d/javapathgetpropertiesmin179912e3e351ee5dcd45a7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b272f3a-4652-4535-94c7-5c6a4a55afc4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7D5AE03", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00fb-801f-00ab-72d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "6b272f3a-4652-4535-94c7-5c6a4a55afc4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0directoryapitestgetpropertiesmin2cf04326d/javapathgetpropertiesmin179912e3e351ee5dcd45a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "618ad0fe-be24-469e-b007-4d341506a814" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:09 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", + "ETag" : "0x8D75EEAB7D5AE03", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:09 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7001be-e01e-007c-06d3-90d34f000000", + "x-ms-client-request-id" : "618ad0fe-be24-469e-b007-4d341506a814", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f07fc519-7241-4cb4-acf3-61c29934442c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a34e-a01e-0034-10d3-90e1d2000000", + "Body" : "jtfsgetpropertiesminjtfsgetpropertiesmin0directoryapitestgetpropertiesmin2cf04326dFri, 01 Nov 2019 16:44:09 GMT\"0x8D75EEAB7CC8250\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "f07fc519-7241-4cb4-acf3-61c29934442c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0directoryapitestgetpropertiesmin2cf04326d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03127a94-f76a-46b0-85c8-ac8ca1e88bb7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7001e6-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "03127a94-f76a-46b0-85c8-ac8ca1e88bb7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesmin0directoryapitestgetpropertiesmin2cf04326d", "javapathgetpropertiesmin179912e3e351ee5dcd45a7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[0].json new file mode 100644 index 0000000000000..6348bc82afdf0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[0].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestacdb13965131585?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d999177-70a2-48fd-98bf-f1c71ac5f77e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB533B206", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ffb3b-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "2d999177-70a2-48fd-98bf-f1c71ac5f77e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestacdb13965131585/javapathrenamedestac1directoryapitestrenamedestacdb1288247d6?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8bd7f588-bdb9-420c-b9cd-b2e8882ec91b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB53D091A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00d9-801f-00ab-50d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "8bd7f588-bdb9-420c-b9cd-b2e8882ec91b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestacdb13965131585/javapathrenamedestac2directoryapitestrenamedestacdb1289930ba?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c43779e9-9b7c-4c04-bebe-e3428752bc2f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB544C01A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00da-801f-00ab-51d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "c43779e9-9b7c-4c04-bebe-e3428752bc2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestacdb13965131585/javapathrenamedestac2directoryapitestrenamedestacdb1289930ba?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc08a6a5-4837-4af5-ba03-7a671629c69e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00db-801f-00ab-52d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "dc08a6a5-4837-4af5-ba03-7a671629c69e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad9fa139-1f16-4980-8f2d-e41566534012" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659a85-a01e-0034-1fd3-90e1d2000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0directoryapitestrenamedestacdb13965131585Fri, 01 Nov 2019 16:44:05 GMT\"0x8D75EEAB533B206\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "ad9fa139-1f16-4980-8f2d-e41566534012", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestacdb13965131585?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2625562f-5797-4ddc-81e6-3ad361c74535" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ffb8b-e01e-007c-36d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "2625562f-5797-4ddc-81e6-3ad361c74535" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0directoryapitestrenamedestacdb13965131585", "javapathrenamedestac1directoryapitestrenamedestacdb1288247d6", "javapathrenamedestac2directoryapitestrenamedestacdb1289930ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[1].json new file mode 100644 index 0000000000000..104fbd124e5a1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[1].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac154769646d597?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90ef39ca-e4df-4d52-a880-9e4b333244a3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5674877", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659aa5-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "90ef39ca-e4df-4d52-a880-9e4b333244a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac154769646d597/javapathrenamedestac1directoryapitestrenamedestac15447872951?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ac9583c-277a-4b2b-86d9-8be786212ee7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5718D15", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00dc-801f-00ab-53d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "2ac9583c-277a-4b2b-86d9-8be786212ee7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac154769646d597/javapathrenamedestac2directoryapitestrenamedestac15490821d41?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3284300b-5e14-4635-8b9b-c236642e0ec7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB57959CC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00dd-801f-00ab-54d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "3284300b-5e14-4635-8b9b-c236642e0ec7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac154769646d597/javapathrenamedestac2directoryapitestrenamedestac15490821d41?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "706752ff-7270-4ba1-a02d-f21363136496" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00de-801f-00ab-55d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "706752ff-7270-4ba1-a02d-f21363136496" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48b55311-d693-40be-831c-ff4a555b70ba" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ffbfb-e01e-007c-26d3-90d34f000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0directoryapitestrenamedestac154769646d597Fri, 01 Nov 2019 16:44:05 GMT\"0x8D75EEAB5674877\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "48b55311-d693-40be-831c-ff4a555b70ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac154769646d597?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbdaa0cf-19bb-4378-a6f6-f95ef8c0b85b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a659b0d-a01e-0034-19d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "dbdaa0cf-19bb-4378-a6f6-f95ef8c0b85b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0directoryapitestrenamedestac154769646d597", "javapathrenamedestac1directoryapitestrenamedestac15447872951", "javapathrenamedestac2directoryapitestrenamedestac15490821d41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[2].json new file mode 100644 index 0000000000000..dc0717a92eb67 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[2].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac86520946b045d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b1566ad-164f-470d-84e8-49b68a931428" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB59D8367", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ffc1f-e01e-007c-49d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "9b1566ad-164f-470d-84e8-49b68a931428" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac86520946b045d/javapathrenamedestac1directoryapitestrenamedestac86572496fb5?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70758966-badf-4259-83c6-1fcfc195ac7c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5A72A4F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00df-801f-00ab-56d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "70758966-badf-4259-83c6-1fcfc195ac7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac86520946b045d/javapathrenamedestac2directoryapitestrenamedestac86523069a79?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1a2628d-7a29-4c7b-bde6-d150bc23c60e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5AED4DD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e0-801f-00ab-57d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "a1a2628d-7a29-4c7b-bde6-d150bc23c60e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac86520946b045d/javapathrenamedestac2directoryapitestrenamedestac86523069a79?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "560b27a5-459a-4e47-97d0-de29e7b1b70e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e1-801f-00ab-58d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "560b27a5-459a-4e47-97d0-de29e7b1b70e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8d6a206-c94e-4d1f-9ab5-75fbc6bfeb46" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659b94-a01e-0034-17d3-90e1d2000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0directoryapitestrenamedestac86520946b045dFri, 01 Nov 2019 16:44:05 GMT\"0x8D75EEAB59D8367\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "e8d6a206-c94e-4d1f-9ab5-75fbc6bfeb46", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac86520946b045d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee5a56ef-74dd-4504-82cc-140998064d1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ffcb0-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "ee5a56ef-74dd-4504-82cc-140998064d1c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0directoryapitestrenamedestac86520946b045d", "javapathrenamedestac1directoryapitestrenamedestac86572496fb5", "javapathrenamedestac2directoryapitestrenamedestac86523069a79" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[3].json new file mode 100644 index 0000000000000..f3ff7c12598d3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[3].json @@ -0,0 +1,157 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac4729566774610?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f83ab5d3-cec6-4017-876a-156cbeebafa2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5D1B643", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659bcb-a01e-0034-42d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "f83ab5d3-cec6-4017-876a-156cbeebafa2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac4729566774610/javapathrenamedestac1directoryapitestrenamedestac47204382d88?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61ebbf75-5a12-4d7e-9950-d9fb3601ff9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5DB4875", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e2-801f-00ab-59d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "61ebbf75-5a12-4d7e-9950-d9fb3601ff9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac4729566774610/javapathrenamedestac2directoryapitestrenamedestac472770854b5?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef4e7e51-86d5-44c4-bfbb-1c47ac96af8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5E2BAD0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e3-801f-00ab-5ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "ef4e7e51-86d5-44c4-bfbb-1c47ac96af8a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac4729566774610/javapathrenamedestac2directoryapitestrenamedestac472770854b5", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84065c23-f81e-4547-9cf4-c4ad200cde44" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:06 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", + "ETag" : "0x8D75EEAB5E2BAD0", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:06 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6ffcff-e01e-007c-0ad3-90d34f000000", + "x-ms-client-request-id" : "84065c23-f81e-4547-9cf4-c4ad200cde44", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac4729566774610/javapathrenamedestac2directoryapitestrenamedestac472770854b5?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96ef3038-f919-4a3c-ac7f-2a17b4a6c002" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e4-801f-00ab-5bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:05 GMT", + "x-ms-client-request-id" : "96ef3038-f919-4a3c-ac7f-2a17b4a6c002" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "941c41bc-08b7-4604-a436-71cb986dc001" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659c6b-a01e-0034-50d3-90e1d2000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0directoryapitestrenamedestac4729566774610Fri, 01 Nov 2019 16:44:06 GMT\"0x8D75EEAB5D1B643\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "941c41bc-08b7-4604-a436-71cb986dc001", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac4729566774610?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f2dc3d3-39a4-485e-bcd5-72cccb253a08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ffd34-e01e-007c-39d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "0f2dc3d3-39a4-485e-bcd5-72cccb253a08" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0directoryapitestrenamedestac4729566774610", "javapathrenamedestac1directoryapitestrenamedestac47204382d88", "javapathrenamedestac2directoryapitestrenamedestac472770854b5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[4].json new file mode 100644 index 0000000000000..dd24852031e3b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[4].json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac1e34449560d0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c2c04d3-81a3-4761-97e6-f11762920952" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB60E5508", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659cab-a01e-0034-0dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "7c2c04d3-81a3-4761-97e6-f11762920952" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac1e34449560d0e/javapathrenamedestac1directoryapitestrenamedestac1e304738bf0?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "654d6b11-a909-48c0-adc5-50361db723f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6178A73", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e5-801f-00ab-5cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "654d6b11-a909-48c0-adc5-50361db723f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac1e34449560d0e/javapathrenamedestac2directoryapitestrenamedestac1e375104979?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c9e1b27-e1b7-48e9-983f-6184b68d179f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB61F0833", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e6-801f-00ab-5dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "3c9e1b27-e1b7-48e9-983f-6184b68d179f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac1e34449560d0e/javapathrenamedestac2directoryapitestrenamedestac1e375104979?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cd598dde-11fc-4e6c-87a8-18ac2aae0114" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e7-801f-00ab-5ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "cd598dde-11fc-4e6c-87a8-18ac2aae0114" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53f06b69-5c44-4b1f-a5eb-7f8424505853" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ffd87-e01e-007c-08d3-90d34f000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0directoryapitestrenamedestac1e34449560d0eFri, 01 Nov 2019 16:44:06 GMT\"0x8D75EEAB60E5508\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "53f06b69-5c44-4b1f-a5eb-7f8424505853", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac1e34449560d0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d2fc52e-8040-4193-9ec3-a22e7c80aa20" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a659d29-a01e-0034-7bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "6d2fc52e-8040-4193-9ec3-a22e7c80aa20" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0directoryapitestrenamedestac1e34449560d0e", "javapathrenamedestac1directoryapitestrenamedestac1e304738bf0", "javapathrenamedestac2directoryapitestrenamedestac1e375104979" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[5].json new file mode 100644 index 0000000000000..d672ad742ac5b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestac[5].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac44144153c8725?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0bd2bd50-0c55-40cd-a57f-b6052ea95615" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB641A92B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ffd9d-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "0bd2bd50-0c55-40cd-a57f-b6052ea95615" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac44144153c8725/javapathrenamedestac1directoryapitestrenamedestac441584794d0?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9737ca6e-6902-4fb8-b92a-64a2e76d91ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB64F0744", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e8-801f-00ab-5fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "9737ca6e-6902-4fb8-b92a-64a2e76d91ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac44144153c8725/javapathrenamedestac2directoryapitestrenamedestac4415247196c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8cd07c4-2861-4701-8332-dc5fc964a652" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB65A55F8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00e9-801f-00ab-60d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "e8cd07c4-2861-4701-8332-dc5fc964a652" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac44144153c8725/javapathrenamedestac2directoryapitestrenamedestac4415247196c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f28dca4-0d10-4037-b2d3-fa0066c7506b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB65A55F8", + "x-ms-lease-id" : "df98788c-776e-494e-8d56-185d35632622", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659dd2-a01e-0034-14d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "0f28dca4-0d10-4037-b2d3-fa0066c7506b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac44144153c8725/javapathrenamedestac2directoryapitestrenamedestac4415247196c?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e571926b-5705-4070-9014-4cb3b8b0568a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ea-801f-00ab-61d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "e571926b-5705-4070-9014-4cb3b8b0568a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80567979-bc7d-4051-b346-32b00517774e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ffe13-e01e-007c-0ad3-90d34f000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0directoryapitestrenamedestac44144153c8725Fri, 01 Nov 2019 16:44:06 GMT\"0x8D75EEAB641A92B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "80567979-bc7d-4051-b346-32b00517774e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0directoryapitestrenamedestac44144153c8725?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "040d094b-88ef-4f71-9171-1086aa52d16d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a659e33-a01e-0034-69d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "040d094b-88ef-4f71-9171-1086aa52d16d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0directoryapitestrenamedestac44144153c8725", "javapathrenamedestac1directoryapitestrenamedestac441584794d0", "javapathrenamedestac2directoryapitestrenamedestac4415247196c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[0].json new file mode 100644 index 0000000000000..26f9dea01eec5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f15c834-3dc3-4673-912e-5426030c5aee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6899491", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ffe34-e01e-007c-28d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "0f15c834-3dc3-4673-912e-5426030c5aee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894e/javapathrenamedestacfail1933379166420b5cfb42b6?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d784b394-a7e0-4ea4-a707-e9ce93ded91c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB693148E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00eb-801f-00ab-62d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "d784b394-a7e0-4ea4-a707-e9ce93ded91c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894e/javapathrenamedestacfail259561c600db84aec9463c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c126ccf1-41fe-4911-a141-8ab35d179bdb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB69ACC5C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ec-801f-00ab-63d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:06 GMT", + "x-ms-client-request-id" : "c126ccf1-41fe-4911-a141-8ab35d179bdb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894e/javapathrenamedestacfail259561c600db84aec9463c?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6fb2c06a-e0ba-4bd5-b1a5-702c9e410552" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00ed-801f-00ab-64d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00ed-801f-00ab-64d3-909968000000\\nTime:2019-11-01T16:44:07.5886128Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "6fb2c06a-e0ba-4bd5-b1a5-702c9e410552", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f988cb7-3427-4e72-bed1-c2455f0d0e4e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659ef6-a01e-0034-19d3-90e1d2000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894eFri, 01 Nov 2019 16:44:07 GMT\"0x8D75EEAB6899491\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "0f988cb7-3427-4e72-bed1-c2455f0d0e4e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d3f3abf-47fa-4e77-959f-2d1d7fa6b552" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ffe94-e01e-007c-7fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "9d3f3abf-47fa-4e77-959f-2d1d7fa6b552" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0directoryapitestrenamedestacfail9c705894e", "javapathrenamedestacfail1933379166420b5cfb42b6", "javapathrenamedestacfail259561c600db84aec9463c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[1].json new file mode 100644 index 0000000000000..153989d913e39 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[1].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "675e3695-6033-427f-b51b-a3f9359abc80" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6BCDD03", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659f2a-a01e-0034-48d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "675e3695-6033-427f-b51b-a3f9359abc80" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820/javapathrenamedestacfail193264fe816c4f346c4e11?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53c105bc-ec8a-4df6-b948-133d6727de85" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6C70D89", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ee-801f-00ab-65d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "53c105bc-ec8a-4df6-b948-133d6727de85" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820/javapathrenamedestacfail24785364911d0fbb3f4cd9?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ce6cbb5-f6cd-436f-b9eb-d4905a7b8f20" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6CF152B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ef-801f-00ab-66d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "3ce6cbb5-f6cd-436f-b9eb-d4905a7b8f20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820/javapathrenamedestacfail24785364911d0fbb3f4cd9?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8615af9-58ae-40c5-9cf0-f28d850a9da2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00f0-801f-00ab-67d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00f0-801f-00ab-67d3-909968000000\\nTime:2019-11-01T16:44:07.9278561Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "e8615af9-58ae-40c5-9cf0-f28d850a9da2", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2d4de79-79dc-45f6-9755-cd3a163a0f2f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fff22-e01e-007c-0bd3-90d34f000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820Fri, 01 Nov 2019 16:44:07 GMT\"0x8D75EEAB6BCDD03\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "f2d4de79-79dc-45f6-9755-cd3a163a0f2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0c8f96ec-f6a0-45cd-8b67-4732d6d98fdf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a659fa8-a01e-0034-39d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "0c8f96ec-f6a0-45cd-8b67-4732d6d98fdf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0directoryapitestrenamedestacfail74b339820", "javapathrenamedestacfail193264fe816c4f346c4e11", "javapathrenamedestacfail24785364911d0fbb3f4cd9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[2].json new file mode 100644 index 0000000000000..5623ff24dbf2a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[2].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "459fb5e3-1d3b-4580-917c-7f5024168228" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6F365F2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fff50-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "459fb5e3-1d3b-4580-917c-7f5024168228" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341a/javapathrenamedestacfail167136546d92244fcc4805?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3662450d-594e-450f-baca-1b9f5115fd9e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB6FCFEEB", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00f1-801f-00ab-68d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "3662450d-594e-450f-baca-1b9f5115fd9e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341a/javapathrenamedestacfail2148354aa53f2474d74287?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78528e3c-791a-4e29-839e-051efd6357b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB707F194", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00f2-801f-00ab-69d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "78528e3c-791a-4e29-839e-051efd6357b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341a/javapathrenamedestacfail2148354aa53f2474d74287?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a021ea89-3f1d-4778-97a9-689c023006de" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00f3-801f-00ab-6ad3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00f3-801f-00ab-6ad3-909968000000\\nTime:2019-11-01T16:44:08.2791071Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "a021ea89-3f1d-4778-97a9-689c023006de", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "662c7414-aa48-4f67-b2eb-a143b2448f39" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a052-a01e-0034-4dd3-90e1d2000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341aFri, 01 Nov 2019 16:44:08 GMT\"0x8D75EEAB6F365F2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "662c7414-aa48-4f67-b2eb-a143b2448f39", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba5a9e60-4361-41dd-a685-9d59ec13bf17" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ffff6-e01e-007c-55d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "ba5a9e60-4361-41dd-a685-9d59ec13bf17" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0directoryapitestrenamedestacfail1c353341a", "javapathrenamedestacfail167136546d92244fcc4805", "javapathrenamedestacfail2148354aa53f2474d74287" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[3].json new file mode 100644 index 0000000000000..3e36bfdc037ba --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9bb140b2-0cf9-4679-9416-13c4e0f18db8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB725EB04", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a083-a01e-0034-7cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "9bb140b2-0cf9-4679-9416-13c4e0f18db8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e/javapathrenamedestacfail113863c79e56c052a14fb7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9e4302a-5637-468e-9dc2-d04e7f350a56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB72FF00E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00f4-801f-00ab-6bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "e9e4302a-5637-468e-9dc2-d04e7f350a56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e/javapathrenamedestacfail270379d2d388bc706942aa?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28103b67-ccab-45de-b01a-47a9d8ed8e46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB7378A4F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00f5-801f-00ab-6cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:07 GMT", + "x-ms-client-request-id" : "28103b67-ccab-45de-b01a-47a9d8ed8e46" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e/javapathrenamedestacfail270379d2d388bc706942aa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a866eb3-b4d3-4735-8f87-2475ebb9c02d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:08 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", + "ETag" : "0x8D75EEAB7378A4F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:08 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700023-e01e-007c-80d3-90d34f000000", + "x-ms-client-request-id" : "0a866eb3-b4d3-4735-8f87-2475ebb9c02d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e/javapathrenamedestacfail270379d2d388bc706942aa?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17994888-e898-4064-a796-cde8e4d76373" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00f6-801f-00ab-6dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00f6-801f-00ab-6dd3-909968000000\\nTime:2019-11-01T16:44:08.6603800Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "17994888-e898-4064-a796-cde8e4d76373", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe8d27cb-bf17-4dbe-bd78-39a21763c42a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a107-a01e-0034-76d3-90e1d2000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210eFri, 01 Nov 2019 16:44:08 GMT\"0x8D75EEAB725EB04\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "fe8d27cb-bf17-4dbe-bd78-39a21763c42a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24faff9b-be5c-4d58-80fb-6a023d7affa7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700069-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "24faff9b-be5c-4d58-80fb-6a023d7affa7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0directoryapitestrenamedestacfail8c671210e", "javapathrenamedestacfail113863c79e56c052a14fb7", "javapathrenamedestacfail270379d2d388bc706942aa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[4].json new file mode 100644 index 0000000000000..8208a4787c506 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamedestacfail[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c501c58-6183-42d2-a5f0-ab789021f69d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB763E994", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65a155-a01e-0034-43d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "7c501c58-6183-42d2-a5f0-ab789021f69d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e/javapathrenamedestacfail113906aa59f888ad7d4b50?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6feb6849-44a0-4df5-9a36-42f8f1c0f5b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB76D653A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00f7-801f-00ab-6ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "6feb6849-44a0-4df5-9a36-42f8f1c0f5b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e/javapathrenamedestacfail2538680a16f6835cb1463d?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a312827f-06e3-4c0d-bab6-174bbfe17f97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB774EE34", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00f8-801f-00ab-6fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "a312827f-06e3-4c0d-bab6-174bbfe17f97" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e/javapathrenamedestacfail2538680a16f6835cb1463d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26a6ad8e-f356-4ae5-b409-1b7bd6d98eed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB774EE34", + "x-ms-lease-id" : "7f0d00b2-e148-4e06-a1c4-f951f8318284", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7000bf-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "26a6ad8e-f356-4ae5-b409-1b7bd6d98eed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e/javapathrenamedestacfail2538680a16f6835cb1463d?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7adc414d-cb7c-4812-bad0-ce71b22f56bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00f9-801f-00ab-70d3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e00f9-801f-00ab-70d3-909968000000\\nTime:2019-11-01T16:44:09.0816812Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "7adc414d-cb7c-4812-bad0-ce71b22f56bd", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c178970-ca9c-4783-a000-8ae9c3442d01" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65a21f-a01e-0034-7fd3-90e1d2000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524eFri, 01 Nov 2019 16:44:08 GMT\"0x8D75EEAB763E994\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:08 GMT", + "x-ms-client-request-id" : "7c178970-ca9c-4783-a000-8ae9c3442d01", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1751cad-b88a-4a52-b08d-9f61b8a1e75f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700112-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:09 GMT", + "x-ms-client-request-id" : "d1751cad-b88a-4a52-b08d-9f61b8a1e75f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0directoryapitestrenamedestacfailb4a45524e", "javapathrenamedestacfail113906aa59f888ad7d4b50", "javapathrenamedestacfail2538680a16f6835cb1463d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenameerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenameerror.json new file mode 100644 index 0000000000000..a9211863ebd50 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenameerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenameerror0directoryapitestrenameerror1f534755b7525a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d2bdf2a-fc76-4b00-97a7-dde4a95f2c41" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB2E698C5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff43d-e01e-007c-73d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "8d2bdf2a-fc76-4b00-97a7-dde4a95f2c41" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenameerror0directoryapitestrenameerror1f534755b7525a/javapathrenameerror1directoryapitestrenameerror1f5026282cba?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4949d6ac-c239-41f8-a766-2113a88903b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB2EFCBC8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00bb-801f-00ab-32d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "4949d6ac-c239-41f8-a766-2113a88903b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenameerror0directoryapitestrenameerror1f534755b7525a/javapathrenameerror3directoryapitestrenameerror1f5271800fce?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "51907ede-1c9c-42c4-8360-96f08f21527b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourcePathNotFound", + "retry-after" : "0", + "Content-Length" : "189", + "StatusCode" : "404", + "x-ms-request-id" : "aa8e00bc-801f-00ab-33d3-909968000000", + "Body" : "{\"error\":{\"code\":\"SourcePathNotFound\",\"message\":\"The source path for a rename operation does not exist.\\nRequestId:aa8e00bc-801f-00ab-33d3-909968000000\\nTime:2019-11-01T16:44:01.5042640Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "51907ede-1c9c-42c4-8360-96f08f21527b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenameerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bab6cb56-2c79-4ff9-9492-a4087592e3a4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6591f2-a01e-0034-51d3-90e1d2000000", + "Body" : "jtfsrenameerrorjtfsrenameerror0directoryapitestrenameerror1f534755b7525aFri, 01 Nov 2019 16:44:01 GMT\"0x8D75EEAB2E698C5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "bab6cb56-2c79-4ff9-9492-a4087592e3a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenameerror0directoryapitestrenameerror1f534755b7525a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41e23d06-bab0-470e-a1aa-dd7e40b64086" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff4c4-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "41e23d06-bab0-470e-a1aa-dd7e40b64086" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenameerror0directoryapitestrenameerror1f534755b7525a", "javapathrenameerror1directoryapitestrenameerror1f5026282cba", "javapathrenameerror2directoryapitestrenameerror1f533620eaa7", "javapathrenameerror3directoryapitestrenameerror1f5271800fce" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamemin.json new file mode 100644 index 0000000000000..6093c7505f7cb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamemin.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamemin0directoryapitestrenamemin33a97591db79aac2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80e25b95-6ca1-4fed-85e8-339e1eb4356e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB275E84F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff305-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "80e25b95-6ca1-4fed-85e8-339e1eb4356e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamemin0directoryapitestrenamemin33a97591db79aac2/javapathrenamemin1directoryapitestrenamemin33a39392578736?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a896b53-7ba1-4f20-8d55-c6ae36d0409a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB27ED970", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00b7-801f-00ab-2ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "8a896b53-7ba1-4f20-8d55-c6ae36d0409a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamemin0directoryapitestrenamemin33a97591db79aac2/javapathrenamemin2directoryapitestrenamemin33a35649c901a3?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff316aa1-39e5-44ac-bcde-872fbeaae1f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00b8-801f-00ab-2fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "ff316aa1-39e5-44ac-bcde-872fbeaae1f5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5137e826-9586-4c1a-a9cd-9df3abad3d76" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659022-a01e-0034-32d3-90e1d2000000", + "Body" : "jtfsrenameminjtfsrenamemin0directoryapitestrenamemin33a97591db79aac2Fri, 01 Nov 2019 16:44:00 GMT\"0x8D75EEAB275E84F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "5137e826-9586-4c1a-a9cd-9df3abad3d76", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamemin0directoryapitestrenamemin33a97591db79aac2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49c04475-2ef8-480b-9699-8ab5cacf4ba3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff35b-e01e-007c-2dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "49c04475-2ef8-480b-9699-8ab5cacf4ba3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamemin0directoryapitestrenamemin33a97591db79aac2", "javapathrenamemin1directoryapitestrenamemin33a39392578736", "javapathrenamemin2directoryapitestrenamemin33a35649c901a3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[0].json new file mode 100644 index 0000000000000..731c97bfe229f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacdb091613d37?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ffa9a15a-d801-40e9-9359-94ea9ee498dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB31C5226", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659223-a01e-0034-7dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "ffa9a15a-d801-40e9-9359-94ea9ee498dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacdb091613d37/javapathrenamesourceac1directoryapitestrenamesourceacdb0097981?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "922d263c-61a0-4164-8f88-3e16387d7d8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB325954B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00bd-801f-00ab-34d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "922d263c-61a0-4164-8f88-3e16387d7d8c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacdb091613d37/javapathrenamesourceac2directoryapitestrenamesourceacdb0984189?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36f293e6-ebce-4226-bcff-ba3547e3c3d7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00be-801f-00ab-35d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "36f293e6-ebce-4226-bcff-ba3547e3c3d7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c3f6116-bbdc-4a55-9ea0-9b6a7b4067c2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff540-e01e-007c-5cd3-90d34f000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0directoryapitestrenamesourceacdb091613d37Fri, 01 Nov 2019 16:44:01 GMT\"0x8D75EEAB31C5226\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "4c3f6116-bbdc-4a55-9ea0-9b6a7b4067c2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacdb091613d37?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "741f61f1-42fa-40dd-a681-a983b7cfbd65" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6592a2-a01e-0034-72d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "741f61f1-42fa-40dd-a681-a983b7cfbd65" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0directoryapitestrenamesourceacdb091613d37", "javapathrenamesourceac1directoryapitestrenamesourceacdb0097981", "javapathrenamesourceac2directoryapitestrenamesourceacdb0984189" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[1].json new file mode 100644 index 0000000000000..1b323b01efd66 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd4e75802e4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1da46cc8-ac42-4844-8d21-8e30abba0b82" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB34A759F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff56f-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "1da46cc8-ac42-4844-8d21-8e30abba0b82" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd4e75802e4f/javapathrenamesourceac1directoryapitestrenamesourceacd4e914997?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63db10ac-0630-43ad-9884-41dae87ad8df" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB3541D48", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00bf-801f-00ab-36d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "63db10ac-0630-43ad-9884-41dae87ad8df" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd4e75802e4f/javapathrenamesourceac2directoryapitestrenamesourceacd4e932468?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "faacc389-a3cb-4861-8358-56d3151265da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c0-801f-00ab-37d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "faacc389-a3cb-4861-8358-56d3151265da" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2175b75-fe64-4541-86c0-00fb13975368" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659318-a01e-0034-5bd3-90e1d2000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0directoryapitestrenamesourceacd4e75802e4fFri, 01 Nov 2019 16:44:01 GMT\"0x8D75EEAB34A759F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "b2175b75-fe64-4541-86c0-00fb13975368", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd4e75802e4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2a0baa2-bd85-4408-89c7-c68b47b4bf32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff5f2-e01e-007c-7fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "a2a0baa2-bd85-4408-89c7-c68b47b4bf32" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0directoryapitestrenamesourceacd4e75802e4f", "javapathrenamesourceac1directoryapitestrenamesourceacd4e914997", "javapathrenamesourceac2directoryapitestrenamesourceacd4e932468" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[2].json new file mode 100644 index 0000000000000..b0fc3157c4e7d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac89758249b9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7ee806f-9946-4c64-beaa-70564e04f6bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB37D6F6F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65933b-a01e-0034-7cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "a7ee806f-9946-4c64-beaa-70564e04f6bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac89758249b9a/javapathrenamesourceac1directoryapitestrenamesourceac897514745?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d685afe4-b763-43d6-a9e5-f0699c5d7936" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB3868BB3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c1-801f-00ab-38d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "d685afe4-b763-43d6-a9e5-f0699c5d7936" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac89758249b9a/javapathrenamesourceac2directoryapitestrenamesourceac89718390a?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7210be0-5a74-4382-9791-a44dcab34391" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c2-801f-00ab-39d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:01 GMT", + "x-ms-client-request-id" : "a7210be0-5a74-4382-9791-a44dcab34391" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6aaedf2-443e-4b19-9f3f-97b10d0fbf20" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff670-e01e-007c-76d3-90d34f000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0directoryapitestrenamesourceac89758249b9aFri, 01 Nov 2019 16:44:02 GMT\"0x8D75EEAB37D6F6F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "d6aaedf2-443e-4b19-9f3f-97b10d0fbf20", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac89758249b9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a91ff026-3bcf-4a3a-87ab-8e8f7df85a1d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6593c5-a01e-0034-77d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "a91ff026-3bcf-4a3a-87ab-8e8f7df85a1d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0directoryapitestrenamesourceac89758249b9a", "javapathrenamesourceac1directoryapitestrenamesourceac897514745", "javapathrenamesourceac2directoryapitestrenamesourceac89718390a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[3].json new file mode 100644 index 0000000000000..b2fd6e853fe11 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd24011414ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bff24b93-a77a-4764-86be-66f99d5910e9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB3A8AC29", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff6a5-e01e-007c-2ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "bff24b93-a77a-4764-86be-66f99d5910e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd24011414ae/javapathrenamesourceac1directoryapitestrenamesourceacd24963923?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bb8a8998-14ff-4bc4-9bc2-ca5cfa387ae4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB3B247C4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c3-801f-00ab-3ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "bb8a8998-14ff-4bc4-9bc2-ca5cfa387ae4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd24011414ae/javapathrenamesourceac1directoryapitestrenamesourceacd24963923", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "43f5af9e-eef8-4af3-b078-c4f16d3e89e6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:02 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", + "ETag" : "0x8D75EEAB3B247C4", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:02 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a659438-a01e-0034-5ed3-90e1d2000000", + "x-ms-client-request-id" : "43f5af9e-eef8-4af3-b078-c4f16d3e89e6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd24011414ae/javapathrenamesourceac2directoryapitestrenamesourceacd24140498?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "feb2ded2-8920-4c02-abaf-8b767a8edb4a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c4-801f-00ab-3bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "feb2ded2-8920-4c02-abaf-8b767a8edb4a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49e5eebd-ef53-4e26-a353-d0fb061806b1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff716-e01e-007c-15d3-90d34f000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0directoryapitestrenamesourceacd24011414aeFri, 01 Nov 2019 16:44:02 GMT\"0x8D75EEAB3A8AC29\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "49e5eebd-ef53-4e26-a353-d0fb061806b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceacd24011414ae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc3d6751-4c29-4aaf-893b-b3a6118a89c5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6594ad-a01e-0034-49d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "fc3d6751-4c29-4aaf-893b-b3a6118a89c5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0directoryapitestrenamesourceacd24011414ae", "javapathrenamesourceac1directoryapitestrenamesourceacd24963923", "javapathrenamesourceac2directoryapitestrenamesourceacd24140498" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[4].json new file mode 100644 index 0000000000000..c301a74cf9300 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[4].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac1e68809594b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a70d072e-7aa3-4f65-a66d-e3c7745ccc43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB3DF5667", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff75a-e01e-007c-59d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "a70d072e-7aa3-4f65-a66d-e3c7745ccc43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac1e68809594b/javapathrenamesourceac1directoryapitestrenamesourceac1e663984e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41b26e8b-8c12-45c3-8200-a96dc413f2d0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB3E89CAF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c6-801f-00ab-3dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "41b26e8b-8c12-45c3-8200-a96dc413f2d0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac1e68809594b/javapathrenamesourceac2directoryapitestrenamesourceac1e6006382?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57b2ba85-6000-419a-82e5-b29064a6547f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c8-801f-00ab-3fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "57b2ba85-6000-419a-82e5-b29064a6547f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26831faa-2468-4b9c-9b19-ebfd00fea34c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659576-a01e-0034-80d3-90e1d2000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0directoryapitestrenamesourceac1e68809594bFri, 01 Nov 2019 16:44:02 GMT\"0x8D75EEAB3DF5667\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "26831faa-2468-4b9c-9b19-ebfd00fea34c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac1e68809594b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "650f1619-10fc-4edd-b688-37a0b38e43e1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff7fd-e01e-007c-77d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "650f1619-10fc-4edd-b688-37a0b38e43e1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0directoryapitestrenamesourceac1e68809594b", "javapathrenamesourceac1directoryapitestrenamesourceac1e663984e", "javapathrenamesourceac2directoryapitestrenamesourceac1e6006382" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[5].json new file mode 100644 index 0000000000000..9fb2dfc69513f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceac[5].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f92e1fc-208f-44ea-b1c6-8e24b1bf4dad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB40ECD39", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6595ad-a01e-0034-34d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "2f92e1fc-208f-44ea-b1c6-8e24b1bf4dad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23/javapathrenamesourceac1directoryapitestrenamesourceac24c56125b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cea4b1c1-7032-48cb-8db3-c3b8b3b00c53" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB420DE67", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00c9-801f-00ab-40d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "cea4b1c1-7032-48cb-8db3-c3b8b3b00c53" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23/javapathrenamesourceac1directoryapitestrenamesourceac24c56125b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49e9ca01-8e35-4a12-a1be-b28cb3766cd6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB420DE67", + "x-ms-lease-id" : "b9da0225-2387-414b-97fa-2b80e746e89e", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff855-e01e-007c-3ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "49e9ca01-8e35-4a12-a1be-b28cb3766cd6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23/javapathrenamesourceac2directoryapitestrenamesourceac24c594358?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "835616eb-d5e2-409e-91d8-b050b9d792ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ca-801f-00ab-41d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:02 GMT", + "x-ms-client-request-id" : "835616eb-d5e2-409e-91d8-b050b9d792ea" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29273a09-4f60-472a-a09a-22f3aa88a000" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659666-a01e-0034-5cd3-90e1d2000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23Fri, 01 Nov 2019 16:44:03 GMT\"0x8D75EEAB40ECD39\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "29273a09-4f60-472a-a09a-22f3aa88a000", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1aed879-aa68-4cf0-936c-3c4db041a464" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff899-e01e-007c-7bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "a1aed879-aa68-4cf0-936c-3c4db041a464" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0directoryapitestrenamesourceac24c38655d23", "javapathrenamesourceac1directoryapitestrenamesourceac24c56125b", "javapathrenamesourceac2directoryapitestrenamesourceac24c594358" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[0].json new file mode 100644 index 0000000000000..0c8a6bbafd955 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail063449982c0748f12c4ba7b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0869670c-2d9c-4809-84b6-3e8ec0284f24" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB44C5684", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659699-a01e-0034-07d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "0869670c-2d9c-4809-84b6-3e8ec0284f24" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail063449982c0748f12c4ba7b/javapathrenamesourceacfail176181f6f6cd04e281446?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5f57fcfc-c027-4375-96b3-8dfa39166093" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB4557822", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00cc-801f-00ab-43d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "5f57fcfc-c027-4375-96b3-8dfa39166093" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail063449982c0748f12c4ba7b/javapathrenamesourceacfail29309128a5ec58cf6f4a0?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0e4237b-8add-4cf7-83b9-d5e1b5bf4bf3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00ce-801f-00ab-45d3-909968000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00ce-801f-00ab-45d3-909968000000\\nTime:2019-11-01T16:44:03.7838898Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "c0e4237b-8add-4cf7-83b9-d5e1b5bf4bf3", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9eff0c59-5f8d-4407-bf9e-fc21a742209c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff8ea-e01e-007c-49d3-90d34f000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail063449982c0748f12c4ba7bFri, 01 Nov 2019 16:44:03 GMT\"0x8D75EEAB44C5684\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "9eff0c59-5f8d-4407-bf9e-fc21a742209c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail063449982c0748f12c4ba7b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44623b55-dd53-4b64-9149-157b14359298" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6596fd-a01e-0034-63d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "44623b55-dd53-4b64-9149-157b14359298" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail063449982c0748f12c4ba7b", "javapathrenamesourceacfail176181f6f6cd04e281446", "javapathrenamesourceacfail29309128a5ec58cf6f4a0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[1].json new file mode 100644 index 0000000000000..42271d32afa8c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0570657cd8a55a2cfa42a18?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c04add30-e290-4d62-b701-dff36cbbc43a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB47B3D4A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ff917-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "c04add30-e290-4d62-b701-dff36cbbc43a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0570657cd8a55a2cfa42a18/javapathrenamesourceacfail114372fac0fc55b86d4ac?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba731119-48a5-4dcf-804e-d27575c9f49e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB484DA24", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00d1-801f-00ab-48d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "ba731119-48a5-4dcf-804e-d27575c9f49e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0570657cd8a55a2cfa42a18/javapathrenamesourceacfail2030274578d8b9035240b?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c92620eb-2f10-4a22-8e8f-a28c1517ce85" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00d2-801f-00ab-49d3-909968000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00d2-801f-00ab-49d3-909968000000\\nTime:2019-11-01T16:44:04.0750974Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "c92620eb-2f10-4a22-8e8f-a28c1517ce85", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b37e0ff3-4237-4de2-ba85-97607458eed5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a659786-a01e-0034-5dd3-90e1d2000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0570657cd8a55a2cfa42a18Fri, 01 Nov 2019 16:44:03 GMT\"0x8D75EEAB47B3D4A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "b37e0ff3-4237-4de2-ba85-97607458eed5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0570657cd8a55a2cfa42a18?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "847a5ce9-1d78-4eb9-bac7-37f37b17aefe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6ff96f-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "847a5ce9-1d78-4eb9-bac7-37f37b17aefe" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0570657cd8a55a2cfa42a18", "javapathrenamesourceacfail114372fac0fc55b86d4ac", "javapathrenamesourceacfail2030274578d8b9035240b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[2].json new file mode 100644 index 0000000000000..6c870a9fdc1f9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0021282f428d1a75dd4a6e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94ed90e1-a83d-4acb-a47a-01e288cb14bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB4A47181", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6597c0-a01e-0034-13d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "94ed90e1-a83d-4acb-a47a-01e288cb14bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0021282f428d1a75dd4a6e8/javapathrenamesourceacfail16922668fbb70aa940455?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8ce608f-f0b8-490e-8fad-bbf9a71b9b28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB4ADBA53", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00d3-801f-00ab-4ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "e8ce608f-f0b8-490e-8fad-bbf9a71b9b28" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0021282f428d1a75dd4a6e8/javapathrenamesourceacfail2350912582277addd14b8?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aaa9d577-9b80-470f-becc-f147cdb2462d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00d4-801f-00ab-4bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00d4-801f-00ab-4bd3-909968000000\\nTime:2019-11-01T16:44:04.3302805Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:03 GMT", + "x-ms-client-request-id" : "aaa9d577-9b80-470f-becc-f147cdb2462d", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09c6daff-29ba-4140-ba91-464a7506b536" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff9d3-e01e-007c-23d3-90d34f000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0021282f428d1a75dd4a6e8Fri, 01 Nov 2019 16:44:04 GMT\"0x8D75EEAB4A47181\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "09c6daff-29ba-4140-ba91-464a7506b536", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0021282f428d1a75dd4a6e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea3f557e-fea5-4820-b6ab-3f87b188115a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a659840-a01e-0034-0bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "ea3f557e-fea5-4820-b6ab-3f87b188115a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0021282f428d1a75dd4a6e8", "javapathrenamesourceacfail16922668fbb70aa940455", "javapathrenamesourceacfail2350912582277addd14b8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[3].json new file mode 100644 index 0000000000000..acbd3a044771d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0369234b6a34741cb44d56b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e879e394-e733-479d-9652-9d1d6424ae46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB4CF38D4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ffa04-e01e-007c-4fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "e879e394-e733-479d-9652-9d1d6424ae46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0369234b6a34741cb44d56b/javapathrenamesourceacfail102267ddb6698f05a94a4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23497db8-226b-44a9-863e-5dfa159198e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB4D9DC4C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00d5-801f-00ab-4cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "23497db8-226b-44a9-863e-5dfa159198e4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0369234b6a34741cb44d56b/javapathrenamesourceacfail102267ddb6698f05a94a4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f95c3903-dd46-4c47-baf3-d86b6bcfa109" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:04 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", + "ETag" : "0x8D75EEAB4D9DC4C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:04 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a6598d2-a01e-0034-12d3-90e1d2000000", + "x-ms-client-request-id" : "f95c3903-dd46-4c47-baf3-d86b6bcfa109", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0369234b6a34741cb44d56b/javapathrenamesourceacfail283027a7e2b910d88e424?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4430ff6-a015-47c8-a486-9c6c6a401dcc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00d6-801f-00ab-4dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e00d6-801f-00ab-4dd3-909968000000\\nTime:2019-11-01T16:44:04.6815319Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "e4430ff6-a015-47c8-a486-9c6c6a401dcc", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0fcd12eb-e565-42dc-b19e-309981ad33ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ffa5d-e01e-007c-22d3-90d34f000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0369234b6a34741cb44d56bFri, 01 Nov 2019 16:44:04 GMT\"0x8D75EEAB4CF38D4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "0fcd12eb-e565-42dc-b19e-309981ad33ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0369234b6a34741cb44d56b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "746b72c2-495f-4190-89f3-1aeba9866247" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a659921-a01e-0034-5cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "746b72c2-495f-4190-89f3-1aeba9866247" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0369234b6a34741cb44d56b", "javapathrenamesourceacfail102267ddb6698f05a94a4", "javapathrenamesourceacfail283027a7e2b910d88e424" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[4].json new file mode 100644 index 0000000000000..fad40dbdc3782 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamesourceacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail055680a64b8913a78c4e438?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dfecabd2-5f33-4dd0-9616-83fac4fc107c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB5017569", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6ffa96-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "dfecabd2-5f33-4dd0-9616-83fac4fc107c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail055680a64b8913a78c4e438/javapathrenamesourceacfail1087623b01cc3a30da464?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ffb9170-8763-48bf-b465-15632eb3cfd0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB50AA122", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00d7-801f-00ab-4ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "1ffb9170-8763-48bf-b465-15632eb3cfd0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail055680a64b8913a78c4e438/javapathrenamesourceacfail1087623b01cc3a30da464?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de7733e8-5ac3-4488-8498-621c7f448d34" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB50AA122", + "x-ms-lease-id" : "1e01fbc9-491a-43af-a08f-6604f28660ef", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a659981-a01e-0034-34d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "de7733e8-5ac3-4488-8498-621c7f448d34" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail055680a64b8913a78c4e438/javapathrenamesourceacfail2646089c6dbae7bc7c4ae?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86fe4dee-38d3-4001-a206-18ecfd46f1aa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e00d8-801f-00ab-4fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e00d8-801f-00ab-4fd3-909968000000\\nTime:2019-11-01T16:44:05.0007604Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "86fe4dee-38d3-4001-a206-18ecfd46f1aa", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "613e0d64-e806-4d8a-92cc-cf51fdd3cbd2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ffafd-e01e-007c-36d3-90d34f000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail055680a64b8913a78c4e438Fri, 01 Nov 2019 16:44:04 GMT\"0x8D75EEAB5017569\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "613e0d64-e806-4d8a-92cc-cf51fdd3cbd2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail055680a64b8913a78c4e438?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "385d9240-d735-432e-9ead-a60a79d68963" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6599e6-a01e-0034-0ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:04 GMT", + "x-ms-client-request-id" : "385d9240-d735-432e-9ead-a60a79d68963" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail055680a64b8913a78c4e438", "javapathrenamesourceacfail1087623b01cc3a30da464", "javapathrenamesourceacfail2646089c6dbae7bc7c4ae" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamewithresponse.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamewithresponse.json new file mode 100644 index 0000000000000..faa266476c777 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestrenamewithresponse.json @@ -0,0 +1,155 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse078581ff1dc587bf6c40daa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe897eea-8d1d-43e5-b99c-e3654963ef12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB2A0A32C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65906a-a01e-0034-77d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "fe897eea-8d1d-43e5-b99c-e3654963ef12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamewithresponse078581ff1dc587bf6c40daa/javapathrenamewithresponse1243619e26cc99a6b445f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e2c5041-241a-4ef3-8529-1e8f6253a71b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB2AA2AFB", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00b9-801f-00ab-30d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "8e2c5041-241a-4ef3-8529-1e8f6253a71b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamewithresponse078581ff1dc587bf6c40daa/javapathrenamewithresponse2010233545200870d3420?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f0486bcf-af9b-456c-9487-f0859cf12714" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e00ba-801f-00ab-31d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "f0486bcf-af9b-456c-9487-f0859cf12714" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse078581ff1dc587bf6c40daa/javapathrenamewithresponse2010233545200870d3420", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23e19c8b-0f48-4a9c-9052-afec8ee8ce8b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:00 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", + "ETag" : "0x8D75EEAB2AA2AFB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:00 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6ff3b6-e01e-007c-7dd3-90d34f000000", + "x-ms-client-request-id" : "23e19c8b-0f48-4a9c-9052-afec8ee8ce8b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse078581ff1dc587bf6c40daa/javapathrenamewithresponse1243619e26cc99a6b445f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d7a8b0c-39b8-4828-a1d2-ac6bc30cc6a0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "3a659111-a01e-0034-13d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "8d7a8b0c-39b8-4828-a1d2-ac6bc30cc6a0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamewithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "094b4690-1578-47a5-b903-c2c9a197ba65" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6ff3f3-e01e-007c-35d3-90d34f000000", + "Body" : "jtfsrenamewithresponsejtfsrenamewithresponse078581ff1dc587bf6c40daaFri, 01 Nov 2019 16:44:00 GMT\"0x8D75EEAB2A0A32C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "094b4690-1578-47a5-b903-c2c9a197ba65", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse078581ff1dc587bf6c40daa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb6ccb2d-7d9c-4c6d-a9be-d2284f9e8b8e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65914a-a01e-0034-45d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:00 GMT", + "x-ms-client-request-id" : "eb6ccb2d-7d9c-4c6d-a9be-d2284f9e8b8e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamewithresponse078581ff1dc587bf6c40daa", "javapathrenamewithresponse1243619e26cc99a6b445f", "javapathrenamewithresponse2010233545200870d3420" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[0].json new file mode 100644 index 0000000000000..2c9df91399d58 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0558836083545d7a4a42c3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af917a59-a414-47d2-8bf7-03263cb9ad46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE3FB9BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe857-e01e-007c-1ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "af917a59-a414-47d2-8bf7-03263cb9ad46" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0558836083545d7a4a42c3a/javapathsetaccesscontrolac19063824ff89d04f7641e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bfa26059-b0c7-434a-9af6-4658dc93fa5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE48B985", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e006b-801f-00ab-68d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "bfa26059-b0c7-434a-9af6-4658dc93fa5d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0558836083545d7a4a42c3a/javapathsetaccesscontrolac19063824ff89d04f7641e?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a9e0d69-3c13-4387-b42e-3f927b7609b7" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE48B985", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e006c-801f-00ab-69d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "8a9e0d69-3c13-4387-b42e-3f927b7609b7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ebc3f452-ac65-44b4-93ed-ed2409c9a346" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65828c-a01e-0034-17d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0558836083545d7a4a42c3aFri, 01 Nov 2019 16:43:53 GMT\"0x8D75EEAAE3FB9BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "ebc3f452-ac65-44b4-93ed-ed2409c9a346", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0558836083545d7a4a42c3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96cb7b03-6570-4604-85a8-2fd3c690097e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe890-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "96cb7b03-6570-4604-85a8-2fd3c690097e" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0558836083545d7a4a42c3a", "javapathsetaccesscontrolac19063824ff89d04f7641e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[1].json new file mode 100644 index 0000000000000..d6fcba734f5d0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac030951769f3919da7c41838?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39086b4c-e98e-4948-a979-ddb3f5094aa7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE671707", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6582af-a01e-0034-37d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "39086b4c-e98e-4948-a979-ddb3f5094aa7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac030951769f3919da7c41838/javapathsetaccesscontrolac1797756ada7328c0764d9?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afde7589-552f-4a12-9076-084f70cb674a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE702711", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e006d-801f-00ab-6ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "afde7589-552f-4a12-9076-084f70cb674a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac030951769f3919da7c41838/javapathsetaccesscontrolac1797756ada7328c0764d9?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3f3bff6c-24b9-431b-8d9f-1385a373d495" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE702711", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e006e-801f-00ab-6bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "3f3bff6c-24b9-431b-8d9f-1385a373d495" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bffc745a-c2eb-46ea-8e52-bf9c430db2e2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe8f8-e01e-007c-2fd3-90d34f000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac030951769f3919da7c41838Fri, 01 Nov 2019 16:43:53 GMT\"0x8D75EEAAE671707\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "bffc745a-c2eb-46ea-8e52-bf9c430db2e2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac030951769f3919da7c41838?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23c772f4-0cc2-48c1-9f27-ae445d92e029" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658318-a01e-0034-12d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "23c772f4-0cc2-48c1-9f27-ae445d92e029" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac030951769f3919da7c41838", "javapathsetaccesscontrolac1797756ada7328c0764d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[2].json new file mode 100644 index 0000000000000..20b95815d58ac --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac093087288425ab98bc4980a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3fcf385-67e0-4ba1-b849-9869c59d89dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE8F6EBA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe91a-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "b3fcf385-67e0-4ba1-b849-9869c59d89dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac093087288425ab98bc4980a/javapathsetaccesscontrolac160813bbaddcba3732489?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "194ca34d-fe7c-48ca-8017-1721fd69b97f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE989D17", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0071-801f-00ab-6ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "194ca34d-fe7c-48ca-8017-1721fd69b97f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac093087288425ab98bc4980a/javapathsetaccesscontrolac160813bbaddcba3732489?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d90180ab-7de2-447c-adfc-89a83a23879e" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE989D17", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0072-801f-00ab-6fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "d90180ab-7de2-447c-adfc-89a83a23879e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e712110-8839-4ebe-bc59-838bda6917d2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6583ad-a01e-0034-0fd3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac093087288425ab98bc4980aFri, 01 Nov 2019 16:43:54 GMT\"0x8D75EEAAE8F6EBA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "8e712110-8839-4ebe-bc59-838bda6917d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac093087288425ab98bc4980a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "baa840bb-3124-4e74-b4a8-bbe7d21c49dc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe94f-e01e-007c-01d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "baa840bb-3124-4e74-b4a8-bbe7d21c49dc" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac093087288425ab98bc4980a", "javapathsetaccesscontrolac160813bbaddcba3732489" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[3].json new file mode 100644 index 0000000000000..044519d5eec31 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0857483ccb255ead074c2ca?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "657d42e8-3faf-4077-8333-14b45af832a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAEBA4F22", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6583ed-a01e-0034-47d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "657d42e8-3faf-4077-8333-14b45af832a7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0857483ccb255ead074c2ca/javapathsetaccesscontrolac182108ff1d4cfec239439?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18332b41-bd38-4678-8e36-ecd3fab40f90" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAEC340BB", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0073-801f-00ab-70d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "18332b41-bd38-4678-8e36-ecd3fab40f90" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0857483ccb255ead074c2ca/javapathsetaccesscontrolac182108ff1d4cfec239439", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e22f483-ac7f-41a1-bdb6-da2181a2ce56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:54 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", + "ETag" : "0x8D75EEAAEC340BB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:54 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fe98c-e01e-007c-39d3-90d34f000000", + "x-ms-client-request-id" : "0e22f483-ac7f-41a1-bdb6-da2181a2ce56", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0857483ccb255ead074c2ca/javapathsetaccesscontrolac182108ff1d4cfec239439?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "284f1e3b-650c-4575-bf30-323c2f1f7a0a" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAEC340BB", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0074-801f-00ab-71d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "284f1e3b-650c-4575-bf30-323c2f1f7a0a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6342786e-9a28-4a05-9180-2556d3aa7043" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658445-a01e-0034-12d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0857483ccb255ead074c2caFri, 01 Nov 2019 16:43:54 GMT\"0x8D75EEAAEBA4F22\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "6342786e-9a28-4a05-9180-2556d3aa7043", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0857483ccb255ead074c2ca?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cca7d219-d91a-4550-8ced-49bd67726fbc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe9c1-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "cca7d219-d91a-4550-8ced-49bd67726fbc" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0857483ccb255ead074c2ca", "javapathsetaccesscontrolac182108ff1d4cfec239439" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[4].json new file mode 100644 index 0000000000000..2c17c14598dd6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[4].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac091043d0aa4be1e68f40d4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94091cf3-076b-4848-a2dc-f1247ae4fc0e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAEE84540", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65846c-a01e-0034-37d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "94091cf3-076b-4848-a2dc-f1247ae4fc0e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac091043d0aa4be1e68f40d4b/javapathsetaccesscontrolac18141923a3bee73cd34c5?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f8c46c6-03a5-4e28-9805-202cf95241b6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAEF17E14", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0075-801f-00ab-72d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "8f8c46c6-03a5-4e28-9805-202cf95241b6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac091043d0aa4be1e68f40d4b/javapathsetaccesscontrolac18141923a3bee73cd34c5?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4681c7da-6595-46db-b7a6-c9cb74de8f4f" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAEF17E14", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0076-801f-00ab-73d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "4681c7da-6595-46db-b7a6-c9cb74de8f4f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c7192f1-7390-4426-b6fe-3d8be3dcf810" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe9f2-e01e-007c-16d3-90d34f000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac091043d0aa4be1e68f40d4bFri, 01 Nov 2019 16:43:54 GMT\"0x8D75EEAAEE84540\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "1c7192f1-7390-4426-b6fe-3d8be3dcf810", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac091043d0aa4be1e68f40d4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ad971a3-3468-4719-ae1d-452bb4642902" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6584c0-a01e-0034-80d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "6ad971a3-3468-4719-ae1d-452bb4642902" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac091043d0aa4be1e68f40d4b", "javapathsetaccesscontrolac18141923a3bee73cd34c5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[5].json new file mode 100644 index 0000000000000..298f9464900a2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolac[5].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0011147c3694ac75334770b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afdae879-e33e-4308-82ce-ad396020cc18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF0F15FA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fea1d-e01e-007c-3cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "afdae879-e33e-4308-82ce-ad396020cc18" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0011147c3694ac75334770b/javapathsetaccesscontrolac1758986d29c42a00a34cd?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bfcfa1de-9e35-4996-9e39-c8e66877054d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF182533", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0077-801f-00ab-74d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "bfcfa1de-9e35-4996-9e39-c8e66877054d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0011147c3694ac75334770b/javapathsetaccesscontrolac1758986d29c42a00a34cd?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e4bb3bb-321f-4b34-8ecd-08a2d284d38f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF182533", + "x-ms-lease-id" : "8c594074-b41c-479a-aabf-2e53b7366942", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a658509-a01e-0034-43d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "1e4bb3bb-321f-4b34-8ecd-08a2d284d38f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0011147c3694ac75334770b/javapathsetaccesscontrolac1758986d29c42a00a34cd?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "009c5070-a646-4a9e-a40f-027b3332885a" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF182533", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0078-801f-00ab-75d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "009c5070-a646-4a9e-a40f-027b3332885a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "973f24b2-4117-4edf-9aa5-d309edf2b5a4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fea82-e01e-007c-1cd3-90d34f000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0011147c3694ac75334770bFri, 01 Nov 2019 16:43:54 GMT\"0x8D75EEAAF0F15FA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "973f24b2-4117-4edf-9aa5-d309edf2b5a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0011147c3694ac75334770b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "305e5bfd-6da2-4c51-9863-8da1b070979f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658561-a01e-0034-12d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "305e5bfd-6da2-4c51-9863-8da1b070979f" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0011147c3694ac75334770b", "javapathsetaccesscontrolac1758986d29c42a00a34cd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[0].json new file mode 100644 index 0000000000000..b6c7f5eff429f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail013125d01f677b1798468?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc5a38ac-15ea-4db9-9470-fc6af86a7780" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF4019DF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6feac3-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "bc5a38ac-15ea-4db9-9470-fc6af86a7780" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail013125d01f677b1798468/javapathsetaccesscontrolacfail1955896e296cb8c94b4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86809052-4021-441e-a866-12b62d209376" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF494741", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0079-801f-00ab-76d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "86809052-4021-441e-a866-12b62d209376" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail013125d01f677b1798468/javapathsetaccesscontrolacfail1955896e296cb8c94b4?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c5a2f9c-43db-44f9-bafa-e2c5db817741" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e007a-801f-00ab-77d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e007a-801f-00ab-77d3-909968000000\\nTime:2019-11-01T16:43:55.2858136Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "6c5a2f9c-43db-44f9-bafa-e2c5db817741", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "56325eee-661d-402a-b098-6254351eb49f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6585cc-a01e-0034-73d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail013125d01f677b1798468Fri, 01 Nov 2019 16:43:55 GMT\"0x8D75EEAAF4019DF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "56325eee-661d-402a-b098-6254351eb49f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail013125d01f677b1798468?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be4d4dca-596e-42ba-a36f-68bd1c23b324" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6feb00-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "be4d4dca-596e-42ba-a36f-68bd1c23b324" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail013125d01f677b1798468", "javapathsetaccesscontrolacfail1955896e296cb8c94b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[1].json new file mode 100644 index 0000000000000..6e9e08faf33ca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail028358843d14eb5d65498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6157e87-5db9-4678-b435-10c467f26c28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF675036", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6585f2-a01e-0034-15d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "a6157e87-5db9-4678-b435-10c467f26c28" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail028358843d14eb5d65498/javapathsetaccesscontrolacfail16705134ad17b6c0664?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90e63b4c-746c-480b-88dd-27554b4ac16d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF7060E4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e007b-801f-00ab-78d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "90e63b4c-746c-480b-88dd-27554b4ac16d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail028358843d14eb5d65498/javapathsetaccesscontrolacfail16705134ad17b6c0664?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d76f44dc-d366-4f6e-94cc-20bd1d6661b6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e007c-801f-00ab-79d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e007c-801f-00ab-79d3-909968000000\\nTime:2019-11-01T16:43:55.5409954Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:54 GMT", + "x-ms-client-request-id" : "d76f44dc-d366-4f6e-94cc-20bd1d6661b6", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "322b1d13-3e72-4334-893b-317d2a0e712a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6feb46-e01e-007c-48d3-90d34f000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail028358843d14eb5d65498Fri, 01 Nov 2019 16:43:55 GMT\"0x8D75EEAAF675036\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "322b1d13-3e72-4334-893b-317d2a0e712a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail028358843d14eb5d65498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae19269d-ede9-40b0-b6f4-8729f0a2d487" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65864e-a01e-0034-66d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "ae19269d-ede9-40b0-b6f4-8729f0a2d487" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail028358843d14eb5d65498", "javapathsetaccesscontrolacfail16705134ad17b6c0664" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[2].json new file mode 100644 index 0000000000000..d338f93677663 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail057334c0fb042237df4f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5fdbe4e-7827-4e3d-8e10-69280f85a4a3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF928E7B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6febb1-e01e-007c-2fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "b5fdbe4e-7827-4e3d-8e10-69280f85a4a3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail057334c0fb042237df4f9/javapathsetaccesscontrolacfail12098583b05d0120b04?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b34e776f-4be7-49d7-8c4d-c24a28683585" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAF9BB728", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e007d-801f-00ab-7ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "b34e776f-4be7-49d7-8c4d-c24a28683585" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail057334c0fb042237df4f9/javapathsetaccesscontrolacfail12098583b05d0120b04?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ecc13119-11cc-465e-9322-36de6e675589" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e007e-801f-00ab-7bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e007e-801f-00ab-7bd3-909968000000\\nTime:2019-11-01T16:43:55.8231970Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "ecc13119-11cc-465e-9322-36de6e675589", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "818d22d1-e57a-4028-8448-b6946ce87761" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6586ab-a01e-0034-34d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail057334c0fb042237df4f9Fri, 01 Nov 2019 16:43:55 GMT\"0x8D75EEAAF928E7B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "818d22d1-e57a-4028-8448-b6946ce87761", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail057334c0fb042237df4f9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a164005-5b3d-4217-9a4f-bd908b71c992" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6febf0-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "8a164005-5b3d-4217-9a4f-bd908b71c992" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail057334c0fb042237df4f9", "javapathsetaccesscontrolacfail12098583b05d0120b04" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[3].json new file mode 100644 index 0000000000000..12161c5649d36 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail031987ae21d54925364fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de733427-e622-4859-852b-25976fb9877b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAFBAD67F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6586d9-a01e-0034-5ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "de733427-e622-4859-852b-25976fb9877b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail031987ae21d54925364fa/javapathsetaccesscontrolacfail186845c67f400bf22e4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4548526-48e6-4fe8-a988-c1c1559ae967" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAFC40262", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e007f-801f-00ab-7cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "a4548526-48e6-4fe8-a988-c1c1559ae967" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail031987ae21d54925364fa/javapathsetaccesscontrolacfail186845c67f400bf22e4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99b71e9f-9453-4065-a61e-b028ecf39353" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:55 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", + "ETag" : "0x8D75EEAAFC40262", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:43:56 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fec32-e01e-007c-1dd3-90d34f000000", + "x-ms-client-request-id" : "99b71e9f-9453-4065-a61e-b028ecf39353", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail031987ae21d54925364fa/javapathsetaccesscontrolacfail186845c67f400bf22e4?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "953c99ff-f014-4079-9847-31eafcaa5d14" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0080-801f-00ab-7dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0080-801f-00ab-7dd3-909968000000\\nTime:2019-11-01T16:43:56.1684441Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "953c99ff-f014-4079-9847-31eafcaa5d14", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ceff05b8-83b5-438f-ae1e-929f94387a87" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a658738-a01e-0034-32d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail031987ae21d54925364faFri, 01 Nov 2019 16:43:55 GMT\"0x8D75EEAAFBAD67F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "ceff05b8-83b5-438f-ae1e-929f94387a87", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail031987ae21d54925364fa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f1e4eb0-d93b-4ee1-8cea-d5c7ee4a82ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fec93-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "2f1e4eb0-d93b-4ee1-8cea-d5c7ee4a82ea" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail031987ae21d54925364fa", "javapathsetaccesscontrolacfail186845c67f400bf22e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[4].json new file mode 100644 index 0000000000000..08b4ef04a12bc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail042706e3863a6913244c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbe56440-6c5e-4fad-b2fe-13b28b7ec20d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAFF0BD85", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65876f-a01e-0034-64d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "fbe56440-6c5e-4fad-b2fe-13b28b7ec20d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail042706e3863a6913244c4/javapathsetaccesscontrolacfail196107bfaac260f6944?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "258c5c08-ffe0-4d54-8214-83a761f1f73f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAFFA0D48", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0081-801f-00ab-7ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "258c5c08-ffe0-4d54-8214-83a761f1f73f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail042706e3863a6913244c4/javapathsetaccesscontrolacfail196107bfaac260f6944?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "891b4335-3154-489c-87bc-af4b3dce0674" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAFFA0D48", + "x-ms-lease-id" : "ae8e6898-6bbc-4048-ab86-083b5d49d8c4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fed22-e01e-007c-7ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "891b4335-3154-489c-87bc-af4b3dce0674" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail042706e3863a6913244c4/javapathsetaccesscontrolacfail196107bfaac260f6944?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5ef5bf7-8f0d-46d7-9a5c-f691ee57e390" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0082-801f-00ab-7fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e0082-801f-00ab-7fd3-909968000000\\nTime:2019-11-01T16:43:56.4936778Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:55 GMT", + "x-ms-client-request-id" : "d5ef5bf7-8f0d-46d7-9a5c-f691ee57e390", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70d64c0e-3845-45fd-a628-6f192b3e12b7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6587b8-a01e-0034-27d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail042706e3863a6913244c4Fri, 01 Nov 2019 16:43:56 GMT\"0x8D75EEAAFF0BD85\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "70d64c0e-3845-45fd-a628-6f192b3e12b7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail042706e3863a6913244c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2405033-dde6-441d-8352-7c51ee222e5b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fed61-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "f2405033-dde6-441d-8352-7c51ee222e5b" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail042706e3863a6913244c4", "javapathsetaccesscontrolacfail196107bfaac260f6944" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolbadpermission.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolbadpermission.json new file mode 100644 index 0000000000000..d30eef388bd90 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolbadpermission.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolbadpermission0145728649b970a588?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f878ff45-d769-4b0c-9cd0-8184a153f6e8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAADBB9CDA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a658100-a01e-0034-34d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "f878ff45-d769-4b0c-9cd0-8184a153f6e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolbadpermission0145728649b970a588/javapathsetaccesscontrolbadpermission199815589cc8374b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "475b9fa1-603b-4b5e-9bdd-db21b2953e27" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAADC52F2E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0065-801f-00ab-62d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "475b9fa1-603b-4b5e-9bdd-db21b2953e27" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolbadpermission0145728649b970a588/javapathsetaccesscontrolbadpermission199815589cc8374b?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d2a41d11-4d6f-4501-b59c-407e0e0ef5ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidPermission", + "retry-after" : "0", + "Content-Length" : "166", + "StatusCode" : "400", + "x-ms-request-id" : "aa8e0066-801f-00ab-63d3-909968000000", + "Body" : "{\"error\":{\"code\":\"InvalidPermission\",\"message\":\"The permission value is invalid.\\nRequestId:aa8e0066-801f-00ab-63d3-909968000000\\nTime:2019-11-01T16:43:52.8180463Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "d2a41d11-4d6f-4501-b59c-407e0e0ef5ab", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolbadpermission&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f810f2f-ee33-4665-9692-1ae491f74777" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe752-e01e-007c-2ad3-90d34f000000", + "Body" : "jtfssetaccesscontrolbadpermissionjtfssetaccesscontrolbadpermission0145728649b970a588Fri, 01 Nov 2019 16:43:52 GMT\"0x8D75EEAADBB9CDA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "6f810f2f-ee33-4665-9692-1ae491f74777", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolbadpermission0145728649b970a588?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06f85c27-ae86-4cba-b350-13bd90003b3d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658155-a01e-0034-02d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "06f85c27-ae86-4cba-b350-13bd90003b3d" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolbadpermission0145728649b970a588", "javapathsetaccesscontrolbadpermission199815589cc8374b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolerror.json new file mode 100644 index 0000000000000..68df5e72467a8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolerror02497475f9cfb022ba4bfb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8aa0e142-fea5-467e-9867-14be0fa7050b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB01F7751", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6587d8-a01e-0034-46d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "8aa0e142-fea5-467e-9867-14be0fa7050b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolerror02497475f9cfb022ba4bfb/javapathsetaccesscontrolerror1506265d582065a7794f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c12712db-2d6d-4174-bebc-01848c117faa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAB028DD1D", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0083-801f-00ab-80d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "c12712db-2d6d-4174-bebc-01848c117faa" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolerror02497475f9cfb022ba4bfb/javapathsetaccesscontrolerror2227073ef89c0198f245?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aac90b9f-a07d-45b4-ac32-8bfbdc580923" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "aa8e0084-801f-00ab-01d3-909968000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:aa8e0084-801f-00ab-01d3-909968000000\\nTime:2019-11-01T16:43:56.7518626Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "aac90b9f-a07d-45b4-ac32-8bfbdc580923", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0fe8d92e-e4ba-420f-9dc1-4af40a08e7d8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fedbc-e01e-007c-01d3-90d34f000000", + "Body" : "jtfssetaccesscontrolerrorjtfssetaccesscontrolerror02497475f9cfb022ba4bfbFri, 01 Nov 2019 16:43:56 GMT\"0x8D75EEAB01F7751\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "0fe8d92e-e4ba-420f-9dc1-4af40a08e7d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolerror02497475f9cfb022ba4bfb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a442d61-98f6-4904-8788-c4d4ed5ccd9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65882a-a01e-0034-0ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:56 GMT", + "x-ms-client-request-id" : "7a442d61-98f6-4904-8788-c4d4ed5ccd9f" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolerror02497475f9cfb022ba4bfb", "javapathsetaccesscontrolerror1506265d582065a7794f", "javapathsetaccesscontrolerror2227073ef89c0198f245" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolmin.json new file mode 100644 index 0000000000000..a9581763bdb40 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolmin.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolmin0314431f0968b044c74603b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31659ed3-5f9f-4c70-90cf-4cf15c77f1c4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD8CEB51", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe6c5-e01e-007c-28d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "31659ed3-5f9f-4c70-90cf-4cf15c77f1c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolmin0314431f0968b044c74603b/javapathsetaccesscontrolmin1296868297f3cde6324d4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9d60f04-4b86-4792-94d4-574c69d42ed1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD9D744E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0063-801f-00ab-60d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "d9d60f04-4b86-4792-94d4-574c69d42ed1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolmin0314431f0968b044c74603b/javapathsetaccesscontrolmin1296868297f3cde6324d4?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85a51bd6-b793-4549-8d2f-916f63ab9536" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAD9D744E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0064-801f-00ab-61d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:51 GMT", + "x-ms-client-request-id" : "85a51bd6-b793-4549-8d2f-916f63ab9536" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "72f34708-50e3-46e6-a348-a521687f4bf3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6580dc-a01e-0034-16d3-90e1d2000000", + "Body" : "jtfssetaccesscontrolminjtfssetaccesscontrolmin0314431f0968b044c74603bFri, 01 Nov 2019 16:43:52 GMT\"0x8D75EEAAD8CEB51\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "72f34708-50e3-46e6-a348-a521687f4bf3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolmin0314431f0968b044c74603b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e3ed57e-b2e2-4bfd-95db-9672df931f77" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe6f4-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "5e3ed57e-b2e2-4bfd-95db-9672df931f77" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolmin0314431f0968b044c74603b", "javapathsetaccesscontrolmin1296868297f3cde6324d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolwithresponse[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolwithresponse[0].json new file mode 100644 index 0000000000000..5f3dafce90770 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolwithresponse[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolwithresponse0591816794dafe0e51?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3666c5f-66ee-47a2-9f50-f6ca872dbd2d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAADEECC0C", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fe76a-e01e-007c-40d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "e3666c5f-66ee-47a2-9f50-f6ca872dbd2d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse0591816794dafe0e51/javapathsetaccesscontrolwithresponse1055948bb9088d74?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42be0d65-a7cb-48e1-8da0-63f3ac845b19" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAADF828DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0067-801f-00ab-64d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "42be0d65-a7cb-48e1-8da0-63f3ac845b19" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse0591816794dafe0e51/javapathsetaccesscontrolwithresponse1055948bb9088d74?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14af40d5-177a-4ddf-ac62-d0a6d02a38c3" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAADF828DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0068-801f-00ab-65d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "14af40d5-177a-4ddf-ac62-d0a6d02a38c3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolwithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0896ed6f-24dd-40f3-8abf-59e18d95f5b8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6581b2-a01e-0034-5bd3-90e1d2000000", + "Body" : "jtfssetaccesscontrolwithresponsejtfssetaccesscontrolwithresponse0591816794dafe0e51Fri, 01 Nov 2019 16:43:52 GMT\"0x8D75EEAADEECC0C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "0896ed6f-24dd-40f3-8abf-59e18d95f5b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolwithresponse0591816794dafe0e51?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d38d0945-6bd9-4663-ad63-6221a8418ae3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fe7b7-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "d38d0945-6bd9-4663-ad63-6221a8418ae3" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolwithresponse0591816794dafe0e51", "javapathsetaccesscontrolwithresponse1055948bb9088d74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolwithresponse[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolwithresponse[1].json new file mode 100644 index 0000000000000..13afce12bff38 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetaccesscontrolwithresponse[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolwithresponse04880954ce13681a4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2e462f4-e0b7-4899-a4e7-b58a24ff727e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE167775", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6581d3-a01e-0034-73d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "f2e462f4-e0b7-4899-a4e7-b58a24ff727e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse04880954ce13681a4a/javapathsetaccesscontrolwithresponse111040b8771f665f?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b0996992-734f-4c68-9cc5-e30cb7bae5a1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE1F9F78", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0069-801f-00ab-66d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "b0996992-734f-4c68-9cc5-e30cb7bae5a1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse04880954ce13681a4a/javapathsetaccesscontrolwithresponse111040b8771f665f?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "affd1400-5f46-4d0a-a7a5-1d04a430a3ee" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAAE1F9F78", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e006a-801f-00ab-67d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:43:52 GMT", + "x-ms-client-request-id" : "affd1400-5f46-4d0a-a7a5-1d04a430a3ee" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolwithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ba5b803-1a9d-4b6e-9d77-638736488815" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fe835-e01e-007c-7ed3-90d34f000000", + "Body" : "jtfssetaccesscontrolwithresponsejtfssetaccesscontrolwithresponse04880954ce13681a4aFri, 01 Nov 2019 16:43:53 GMT\"0x8D75EEAAE167775\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "5ba5b803-1a9d-4b6e-9d77-638736488815", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolwithresponse04880954ce13681a4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89c4cee9-f0a9-413e-a9ae-ea6579fb4c09" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a658233-a01e-0034-46d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:53 GMT", + "x-ms-client-request-id" : "89c4cee9-f0a9-413e-a9ae-ea6579fb4c09" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolwithresponse04880954ce13681a4a", "javapathsetaccesscontrolwithresponse111040b8771f665f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[0].json new file mode 100644 index 0000000000000..7ce5a87cf242a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersacb5a34522b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a99a9614-e7c8-47c3-8a34-d6a256bec403" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABAF535AE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65aee9-a01e-0034-36d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "a99a9614-e7c8-47c3-8a34-d6a256bec403" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersacb5a34522b/javapathsethttpheadersac151705bddc070a56664301?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d09cd733-aa62-4277-9871-2cc03d62e3b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABAFEDFF4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e010f-801f-00ab-05d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "d09cd733-aa62-4277-9871-2cc03d62e3b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersacb5a34522b/javapathsethttpheadersac151705bddc070a56664301?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c443107a-fd18-4db9-8883-2f82a406d929" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB06AD16", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70097d-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "c443107a-fd18-4db9-8883-2f82a406d929" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25fd7b5b-d604-48bc-a667-193d4cde8215" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65af5b-a01e-0034-1bd3-90e1d2000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0directoryapitestsethttpheadersacb5a34522bFri, 01 Nov 2019 16:44:14 GMT\"0x8D75EEABAF535AE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "25fd7b5b-d604-48bc-a667-193d4cde8215", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersacb5a34522b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "445f67c2-f387-4772-a63e-b6f7951a6743" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7009a3-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "445f67c2-f387-4772-a63e-b6f7951a6743" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0directoryapitestsethttpheadersacb5a34522b", "javapathsethttpheadersac151705bddc070a56664301" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[1].json new file mode 100644 index 0000000000000..5732006454aff --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac25a38424f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff92bbec-018d-4141-8df6-a1db7236b795" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB20E173", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65afd5-a01e-0034-0ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "ff92bbec-018d-4141-8df6-a1db7236b795" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac25a38424f/javapathsethttpheadersac111089e638867ce85748cd?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0da5c13a-7ed0-4a80-a1d8-7f0ed0926f55" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB2A5EEF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0110-801f-00ab-06d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "0da5c13a-7ed0-4a80-a1d8-7f0ed0926f55" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac25a38424f/javapathsethttpheadersac111089e638867ce85748cd?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "929ae32d-c942-4a65-8d4c-3e937a7f7129" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB32170C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7009f4-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "929ae32d-c942-4a65-8d4c-3e937a7f7129" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96a74eaf-645d-4978-8fe5-6fb4e4ef440c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b036-a01e-0034-61d3-90e1d2000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0directoryapitestsethttpheadersac25a38424fFri, 01 Nov 2019 16:44:15 GMT\"0x8D75EEABB20E173\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "96a74eaf-645d-4978-8fe5-6fb4e4ef440c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac25a38424f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adc9f3d8-cbbd-44c2-ab13-6db543f83d71" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700a10-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "adc9f3d8-cbbd-44c2-ab13-6db543f83d71" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0directoryapitestsethttpheadersac25a38424f", "javapathsethttpheadersac111089e638867ce85748cd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[2].json new file mode 100644 index 0000000000000..3e8153afa4d39 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersace9085937d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04db05b6-dcc8-4ac1-a558-2d7ef98cd845" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB4C3F05", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b08d-a01e-0034-33d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "04db05b6-dcc8-4ac1-a558-2d7ef98cd845" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersace9085937d/javapathsethttpheadersac197344825593d4a58246bc?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65f8a08e-1245-46fe-a3e7-f79bfff2a627" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB594303", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0111-801f-00ab-07d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "65f8a08e-1245-46fe-a3e7-f79bfff2a627" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersace9085937d/javapathsethttpheadersac197344825593d4a58246bc?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95d5432a-a916-4174-a2c3-2d47e8cfda30" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB615409", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700a3a-e01e-007c-5ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "95d5432a-a916-4174-a2c3-2d47e8cfda30" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "051fa01e-34f9-4547-89bb-db93db5061fe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b0ec-a01e-0034-08d3-90e1d2000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0directoryapitestsethttpheadersace9085937dFri, 01 Nov 2019 16:44:15 GMT\"0x8D75EEABB4C3F05\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "051fa01e-34f9-4547-89bb-db93db5061fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersace9085937d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab616e07-4596-4bd1-9e15-5b9132b4a76d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700a4f-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "ab616e07-4596-4bd1-9e15-5b9132b4a76d" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0directoryapitestsethttpheadersace9085937d", "javapathsethttpheadersac197344825593d4a58246bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[3].json new file mode 100644 index 0000000000000..0cde0315123c8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac05d142833?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "140f41f9-b268-404c-a82e-44ab3b79e3b5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB78872A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b12e-a01e-0034-42d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "140f41f9-b268-404c-a82e-44ab3b79e3b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac05d142833/javapathsethttpheadersac165644a52614fa4ec1428e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "793f85e5-33ab-4742-bced-59f2561a0bb3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB81E890", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0112-801f-00ab-08d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "793f85e5-33ab-4742-bced-59f2561a0bb3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac05d142833/javapathsethttpheadersac165644a52614fa4ec1428e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48e9f8c5-86e8-4ed5-bfed-fb346d090f1f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:15 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", + "ETag" : "0x8D75EEABB81E890", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:15 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700a81-e01e-007c-1fd3-90d34f000000", + "x-ms-client-request-id" : "48e9f8c5-86e8-4ed5-bfed-fb346d090f1f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac05d142833/javapathsethttpheadersac165644a52614fa4ec1428e?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8358dc3-0275-46c5-9333-f3548809459e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABB90BD8E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b19b-a01e-0034-25d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "d8358dc3-0275-46c5-9333-f3548809459e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cbe8a590-a5dc-432d-ba02-69dec6b0e3ff" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700a9b-e01e-007c-36d3-90d34f000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0directoryapitestsethttpheadersac05d142833Fri, 01 Nov 2019 16:44:15 GMT\"0x8D75EEABB78872A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "cbe8a590-a5dc-432d-ba02-69dec6b0e3ff", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac05d142833?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "471e1684-2cec-468f-bf3f-82f610cadcdf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65b1d2-a01e-0034-5cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "471e1684-2cec-468f-bf3f-82f610cadcdf" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0directoryapitestsethttpheadersac05d142833", "javapathsethttpheadersac165644a52614fa4ec1428e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[4].json new file mode 100644 index 0000000000000..984a28e940077 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac20674786c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46826c61-0412-40c6-b9ae-298fcc35db66" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABBAA264E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700ac7-e01e-007c-5dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "46826c61-0412-40c6-b9ae-298fcc35db66" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac20674786c/javapathsethttpheadersac153756602280928d3b4073?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5eb5ba46-46f2-4881-ab1f-7748ed06b017" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABBB3D019", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0113-801f-00ab-09d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "5eb5ba46-46f2-4881-ab1f-7748ed06b017" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac20674786c/javapathsethttpheadersac153756602280928d3b4073?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5590eb2f-66f1-463a-94bb-3b5e7b87fbad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABBBCA9A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b23e-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "5590eb2f-66f1-463a-94bb-3b5e7b87fbad" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71824454-e69d-4b1a-97cc-4f2030849b07" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700b03-e01e-007c-15d3-90d34f000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0directoryapitestsethttpheadersac20674786cFri, 01 Nov 2019 16:44:16 GMT\"0x8D75EEABBAA264E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "71824454-e69d-4b1a-97cc-4f2030849b07", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac20674786c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e07bff02-b0a1-4943-8e7e-91e8f46f84b9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65b27b-a01e-0034-74d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "e07bff02-b0a1-4943-8e7e-91e8f46f84b9" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0directoryapitestsethttpheadersac20674786c", "javapathsethttpheadersac153756602280928d3b4073" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[5].json new file mode 100644 index 0000000000000..267a80f31cfbb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersac[5].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac6be760822?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c96220fd-7505-4b34-af38-6687258d256d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABBD4E78A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700b38-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "c96220fd-7505-4b34-af38-6687258d256d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac6be760822/javapathsethttpheadersac186472ee062bf7c27c475c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "19a9013e-f3f4-4e46-8cff-8f4eb9a28fad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABBF0FFA4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0114-801f-00ab-0ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:15 GMT", + "x-ms-client-request-id" : "19a9013e-f3f4-4e46-8cff-8f4eb9a28fad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac6be760822/javapathsethttpheadersac186472ee062bf7c27c475c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff301b99-ba9b-486e-a9a3-b07c2582293c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABBF0FFA4", + "x-ms-lease-id" : "6e07c31b-b37f-4a07-b5f4-c87c668e4081", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b350-a01e-0034-3dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "ff301b99-ba9b-486e-a9a3-b07c2582293c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac6be760822/javapathsethttpheadersac186472ee062bf7c27c475c?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cff5c1e1-34b7-4975-ad9d-0c1c95042e6c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC00751F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700ba1-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "cff5c1e1-34b7-4975-ad9d-0c1c95042e6c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2073d4c-74dd-49f6-815a-c52a8c17613f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b37d-a01e-0034-66d3-90e1d2000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0directoryapitestsethttpheadersac6be760822Fri, 01 Nov 2019 16:44:16 GMT\"0x8D75EEABBD4E78A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "a2073d4c-74dd-49f6-815a-c52a8c17613f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0directoryapitestsethttpheadersac6be760822?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "078d16d5-fa34-4267-b62f-6e202d024162" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700bc3-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "078d16d5-fa34-4267-b62f-6e202d024162" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0directoryapitestsethttpheadersac6be760822", "javapathsethttpheadersac186472ee062bf7c27c475c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[0].json new file mode 100644 index 0000000000000..ed4f596663e51 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0448427e5c73ca857f423e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "498b49e3-cef6-4cfc-8bb0-e13c6b283a7c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC1A1478", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b3bc-a01e-0034-20d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "498b49e3-cef6-4cfc-8bb0-e13c6b283a7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0448427e5c73ca857f423e/javapathsethttpheadersacfail1754400c80674570fe4b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f48bc16-f9f8-4e12-b688-eefb07531603" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC23BEAE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0115-801f-00ab-0bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "1f48bc16-f9f8-4e12-b688-eefb07531603" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0448427e5c73ca857f423e/javapathsethttpheadersacfail1754400c80674570fe4b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f494446-9edb-4c26-98f6-107c3ed35dd8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc700c10-e01e-007c-7fd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc700c10-e01e-007c-7fd3-90d34f000000\nTime:2019-11-01T16:44:16.8529017Z", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "9f494446-9edb-4c26-98f6-107c3ed35dd8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ecbecf59-840a-46c2-9047-40d7565b163f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b423-a01e-0034-78d3-90e1d2000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail0448427e5c73ca857f423eFri, 01 Nov 2019 16:44:16 GMT\"0x8D75EEABC1A1478\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "ecbecf59-840a-46c2-9047-40d7565b163f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0448427e5c73ca857f423e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c44d78e-622e-4118-a66d-beeaeaf32f31" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700c35-e01e-007c-22d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "4c44d78e-622e-4118-a66d-beeaeaf32f31" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail0448427e5c73ca857f423e", "javapathsethttpheadersacfail1754400c80674570fe4b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[1].json new file mode 100644 index 0000000000000..ce065ebfbd45a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0960703dcb76cc20744e94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41040198-aa77-40f2-abcf-ccd1470db4ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC439CFE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b47d-a01e-0034-4bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "41040198-aa77-40f2-abcf-ccd1470db4ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0960703dcb76cc20744e94/javapathsethttpheadersacfail15867349553d57a28242?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66095be7-2b6a-48aa-a242-9ee4fbbca598" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC4D2188", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0116-801f-00ab-0cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "66095be7-2b6a-48aa-a242-9ee4fbbca598" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0960703dcb76cc20744e94/javapathsethttpheadersacfail15867349553d57a28242?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70e936bf-13b1-47d8-8a1d-ef5c47ecb933" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc700c74-e01e-007c-5bd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc700c74-e01e-007c-5bd3-90d34f000000\nTime:2019-11-01T16:44:17.1240925Z", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "70e936bf-13b1-47d8-8a1d-ef5c47ecb933", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6257b30e-98fe-43f9-86b5-97de83f40481" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b503-a01e-0034-45d3-90e1d2000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail0960703dcb76cc20744e94Fri, 01 Nov 2019 16:44:17 GMT\"0x8D75EEABC439CFE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "6257b30e-98fe-43f9-86b5-97de83f40481", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0960703dcb76cc20744e94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7ca4ff6-d042-4d95-a1e6-3e881ded33cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700c9a-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "f7ca4ff6-d042-4d95-a1e6-3e881ded33cd" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail0960703dcb76cc20744e94", "javapathsethttpheadersacfail15867349553d57a28242" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[2].json new file mode 100644 index 0000000000000..78442f8ec8fd1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail033496e968580222d64fa6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5c99643-5842-4d6c-b88f-444cc4df9889" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC6F48C7", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b571-a01e-0034-31d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "b5c99643-5842-4d6c-b88f-444cc4df9889" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail033496e968580222d64fa6/javapathsethttpheadersacfail124049528636f3b5ab4a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48c7e685-956d-411d-afc6-9fc28c8368de" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC78AE13", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0117-801f-00ab-0dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:16 GMT", + "x-ms-client-request-id" : "48c7e685-956d-411d-afc6-9fc28c8368de" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail033496e968580222d64fa6/javapathsethttpheadersacfail124049528636f3b5ab4a?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4d4137b-c5b5-4b41-a3e6-cbaff0d0bda5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc700ce2-e01e-007c-41d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc700ce2-e01e-007c-41d3-90d34f000000\nTime:2019-11-01T16:44:17.4052904Z", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "d4d4137b-c5b5-4b41-a3e6-cbaff0d0bda5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c278378c-4239-47b2-a492-bf1f43319899" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b5b8-a01e-0034-75d3-90e1d2000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail033496e968580222d64fa6Fri, 01 Nov 2019 16:44:17 GMT\"0x8D75EEABC6F48C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "c278378c-4239-47b2-a492-bf1f43319899", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail033496e968580222d64fa6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18627a4d-d091-4390-bd9b-22a134b73775" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700d0c-e01e-007c-69d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "18627a4d-d091-4390-bd9b-22a134b73775" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail033496e968580222d64fa6", "javapathsethttpheadersacfail124049528636f3b5ab4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[3].json new file mode 100644 index 0000000000000..149112b5daee3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0992979df811058eca4160?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ea333e2-57cc-444f-9753-88aa34726423" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABC9834E8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b5f6-a01e-0034-2ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "7ea333e2-57cc-444f-9753-88aa34726423" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0992979df811058eca4160/javapathsethttpheadersacfail141323dfc8da5ea02444?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50c65d06-dcd9-4cdb-9d00-62f08c6f1c6c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABCA222AF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0118-801f-00ab-0ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "50c65d06-dcd9-4cdb-9d00-62f08c6f1c6c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0992979df811058eca4160/javapathsethttpheadersacfail141323dfc8da5ea02444", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc3609b3-54eb-47d1-a498-1da896172de8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:17 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", + "ETag" : "0x8D75EEABCA222AF", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:17 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700d48-e01e-007c-21d3-90d34f000000", + "x-ms-client-request-id" : "fc3609b3-54eb-47d1-a498-1da896172de8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0992979df811058eca4160/javapathsethttpheadersacfail141323dfc8da5ea02444?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0774e996-3813-42ae-b2d7-1027c475f45f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "3a65b658-a01e-0034-0ad3-90e1d2000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:3a65b658-a01e-0034-0ad3-90e1d2000000\nTime:2019-11-01T16:44:17.7285505Z", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "0774e996-3813-42ae-b2d7-1027c475f45f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "410b6b19-9bfe-48d4-8ee1-6a9ab6e36bd5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700d67-e01e-007c-3dd3-90d34f000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail0992979df811058eca4160Fri, 01 Nov 2019 16:44:17 GMT\"0x8D75EEABC9834E8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "410b6b19-9bfe-48d4-8ee1-6a9ab6e36bd5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0992979df811058eca4160?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54efc929-b23b-4865-b1a9-623302ea9d95" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65b6a0-a01e-0034-52d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "54efc929-b23b-4865-b1a9-623302ea9d95" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail0992979df811058eca4160", "javapathsethttpheadersacfail141323dfc8da5ea02444" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[4].json new file mode 100644 index 0000000000000..93620ca414cde --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail01851822695dfde442419e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8cb0a341-4688-4b76-9240-18e06435b0f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABCCAE58D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700d88-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "8cb0a341-4688-4b76-9240-18e06435b0f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail01851822695dfde442419e/javapathsethttpheadersacfail198356345f80e6d67443?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ae4218a-522b-479b-a771-cf2b6a58f16c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABCD496E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0119-801f-00ab-0fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "9ae4218a-522b-479b-a771-cf2b6a58f16c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail01851822695dfde442419e/javapathsethttpheadersacfail198356345f80e6d67443?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b3d0e85-118a-4938-87c0-6b6bbaedce2f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABCD496E6", + "x-ms-lease-id" : "2de0aed6-8006-4d01-b6bc-878fa04ddcaa", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b701-a01e-0034-2cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "4b3d0e85-118a-4938-87c0-6b6bbaedce2f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail01851822695dfde442419e/javapathsethttpheadersacfail198356345f80e6d67443?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c72e37c1-3a91-417f-9f1c-de58cb527fd1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "dc700dc3-e01e-007c-11d3-90d34f000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:dc700dc3-e01e-007c-11d3-90d34f000000\nTime:2019-11-01T16:44:18.0607518Z", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "c72e37c1-3a91-417f-9f1c-de58cb527fd1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5bef3fc-2eb1-4366-b693-a2dd26e2cd12" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b757-a01e-0034-7ad3-90e1d2000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail01851822695dfde442419eFri, 01 Nov 2019 16:44:17 GMT\"0x8D75EEABCCAE58D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "b5bef3fc-2eb1-4366-b693-a2dd26e2cd12", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail01851822695dfde442419e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f58770f3-5455-47cb-8be3-fc458dbe45f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700de6-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "f58770f3-5455-47cb-8be3-fc458dbe45f7" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail01851822695dfde442419e", "javapathsethttpheadersacfail198356345f80e6d67443" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheaderserror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheaderserror.json new file mode 100644 index 0000000000000..1484c94a0c7b7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheaderserror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheaderserror036892dd1d6e2d854b4c2c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22b27ba7-cf13-474f-a47d-fa9fbd393ea7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABCFCFC5F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b77e-a01e-0034-20d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "22b27ba7-cf13-474f-a47d-fa9fbd393ea7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheaderserror036892dd1d6e2d854b4c2c9/javapathsethttpheaderserror120354d5ebc74d72574cc?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "533fbcfb-cb72-4d73-9fd0-aef07878f6ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD06A00C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e011a-801f-00ab-10d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "533fbcfb-cb72-4d73-9fd0-aef07878f6ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheaderserror036892dd1d6e2d854b4c2c9/javapathsethttpheaderserror25527522a813ecc55348d?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8d30d46-9fca-4462-a5df-3c243dc21789" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "dc700e24-e01e-007c-6bd3-90d34f000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:dc700e24-e01e-007c-6bd3-90d34f000000\nTime:2019-11-01T16:44:18.3399487Z", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "f8d30d46-9fca-4462-a5df-3c243dc21789", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheaderserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "864ce6e8-cb4e-4c71-a686-8793c333f206" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b7d1-a01e-0034-6ed3-90e1d2000000", + "Body" : "jtfssethttpheaderserrorjtfssethttpheaderserror036892dd1d6e2d854b4c2c9Fri, 01 Nov 2019 16:44:18 GMT\"0x8D75EEABCFCFC5F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "864ce6e8-cb4e-4c71-a686-8793c333f206", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheaderserror036892dd1d6e2d854b4c2c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "56842763-ba91-43ac-82d3-e92a4cb7dd13" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700e3e-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "56842763-ba91-43ac-82d3-e92a4cb7dd13" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheaderserror036892dd1d6e2d854b4c2c9", "javapathsethttpheaderserror120354d5ebc74d72574cc", "javapathsethttpheaderserror25527522a813ecc55348d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersheaders[0].json new file mode 100644 index 0000000000000..fae502f22cf69 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersheaders[0].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders028124bededd403f7f4c01?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f76006f4-02f6-4bf2-b3aa-04a4830e3864" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA8F83AD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ad4d-a01e-0034-41d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "f76006f4-02f6-4bf2-b3aa-04a4830e3864" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders028124bededd403f7f4c01/javapathsethttpheadersheaders1290720f043b63d3384b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76902b77-52f5-4a6d-86bf-7164d6efafd9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA9B6779", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e010d-801f-00ab-03d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "76902b77-52f5-4a6d-86bf-7164d6efafd9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders028124bededd403f7f4c01/javapathsethttpheadersheaders1290720f043b63d3384b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f138d52-b9c6-4a3c-a467-e733456a5782" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABAA32ADE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7008c3-e01e-007c-02d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "7f138d52-b9c6-4a3c-a467-e733456a5782" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders028124bededd403f7f4c01/javapathsethttpheadersheaders1290720f043b63d3384b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70a08223-d8d4-49d9-91bb-2239afa19577" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:13 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", + "ETag" : "0x8D75EEABAA32ADE", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:14 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65adbd-a01e-0034-27d3-90e1d2000000", + "x-ms-client-request-id" : "70a08223-d8d4-49d9-91bb-2239afa19577" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d4376d9-606e-4330-891a-265bd65fe102" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7008dd-e01e-007c-1ad3-90d34f000000", + "Body" : "jtfssethttpheadersheadersjtfssethttpheadersheaders028124bededd403f7f4c01Fri, 01 Nov 2019 16:44:14 GMT\"0x8D75EEABA8F83AD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "3d4376d9-606e-4330-891a-265bd65fe102", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders028124bededd403f7f4c01?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e26d57e8-531f-4d95-90bd-531df6b13652" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65adf4-a01e-0034-5cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "e26d57e8-531f-4d95-90bd-531df6b13652" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersheaders028124bededd403f7f4c01", "javapathsethttpheadersheaders1290720f043b63d3384b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersheaders[1].json new file mode 100644 index 0000000000000..06ead48daee9d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersheaders[1].json @@ -0,0 +1,142 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders063924eb2adac55be84527?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b0de4ca-ee0f-4944-9091-36cafab3a499" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABAC3E290", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700905-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "0b0de4ca-ee0f-4944-9091-36cafab3a499" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders063924eb2adac55be84527/javapathsethttpheadersheaders140129781bbdc76e7b45?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4935b63d-fdc5-4c9a-a22f-f01b11665aeb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABACD23C7", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e010e-801f-00ab-04d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "4935b63d-fdc5-4c9a-a22f-f01b11665aeb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders063924eb2adac55be84527/javapathsethttpheadersheaders140129781bbdc76e7b45?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88ecd4c6-c3ed-4347-a4a0-e5881189d247" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABAD5050F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ae61-a01e-0034-3dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "88ecd4c6-c3ed-4347-a4a0-e5881189d247" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders063924eb2adac55be84527/javapathsethttpheadersheaders140129781bbdc76e7b45", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2083c72d-c6c4-485a-9dea-6d61cd72175e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:14 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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEABAD5050F", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:14 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700924-e01e-007c-5cd3-90d34f000000", + "x-ms-client-request-id" : "2083c72d-c6c4-485a-9dea-6d61cd72175e", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53bb93e5-398e-4d32-abe1-7fcb83a179e3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65aeae-a01e-0034-7fd3-90e1d2000000", + "Body" : "jtfssethttpheadersheadersjtfssethttpheadersheaders063924eb2adac55be84527Fri, 01 Nov 2019 16:44:14 GMT\"0x8D75EEABAC3E290\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "53bb93e5-398e-4d32-abe1-7fcb83a179e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders063924eb2adac55be84527?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9cf11a71-dce7-4838-8f2d-cbdc58cbddb0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700943-e01e-007c-78d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:14 GMT", + "x-ms-client-request-id" : "9cf11a71-dce7-4838-8f2d-cbdc58cbddb0" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersheaders063924eb2adac55be84527", "javapathsethttpheadersheaders140129781bbdc76e7b45" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersmin.json new file mode 100644 index 0000000000000..5a531534746f1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersmin.json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin036477258d380f26104c3192?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95594876-b3bb-4911-b23e-b0893f16f91e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA56B614", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ac59-a01e-0034-5fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "95594876-b3bb-4911-b23e-b0893f16f91e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersmin036477258d380f26104c3192/javapathsethttpheadersmin147770533bea37acab4f7c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a419b7f-cf29-478e-b826-7037a520e52d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA5FFCBD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e010c-801f-00ab-02d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "4a419b7f-cf29-478e-b826-7037a520e52d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin036477258d380f26104c3192/javapathsethttpheadersmin147770533bea37acab4f7c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "393533e2-0d45-43c0-9d5e-83d0d32daa8b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:13 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", + "ETag" : "0x8D75EEABA5FFCBD", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:13 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc70081f-e01e-007c-68d3-90d34f000000", + "x-ms-client-request-id" : "393533e2-0d45-43c0-9d5e-83d0d32daa8b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin036477258d380f26104c3192/javapathsethttpheadersmin147770533bea37acab4f7c?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1951c71f-03eb-40d3-a704-f75e1c437643" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA702CD5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65acca-a01e-0034-4cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "1951c71f-03eb-40d3-a704-f75e1c437643" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin036477258d380f26104c3192/javapathsethttpheadersmin147770533bea37acab4f7c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18d031f2-5147-4ff7-bd43-45308f8ac1b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:13 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", + "ETag" : "0x8D75EEABA702CD5", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:13 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc70084d-e01e-007c-14d3-90d34f000000", + "Body" : "", + "x-ms-client-request-id" : "18d031f2-5147-4ff7-bd43-45308f8ac1b7", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b6d5698-1a7a-4ec2-8cf5-efaa6cd06886" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65acff-a01e-0034-7dd3-90e1d2000000", + "Body" : "jtfssethttpheadersminjtfssethttpheadersmin036477258d380f26104c3192Fri, 01 Nov 2019 16:44:13 GMT\"0x8D75EEABA56B614\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "6b6d5698-1a7a-4ec2-8cf5-efaa6cd06886", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin036477258d380f26104c3192?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec569f30-418f-4918-bdef-0964c7deb660" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc700875-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "ec569f30-418f-4918-bdef-0964c7deb660" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersmin036477258d380f26104c3192", "javapathsethttpheadersmin147770533bea37acab4f7c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersnull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersnull.json new file mode 100644 index 0000000000000..3ea74faf2d95e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsethttpheadersnull.json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersnull00543835c30d49aeb34f20a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94f7939a-1921-4683-a188-57248ae21b72" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA264E76", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65ab9b-a01e-0034-2fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "94f7939a-1921-4683-a188-57248ae21b72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersnull00543835c30d49aeb34f20a/javapathsethttpheadersnull14294068def43c4dda4ab?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f0be4fd4-6aab-463c-a255-2477aafb087c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA35F721", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e010b-801f-00ab-01d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:12 GMT", + "x-ms-client-request-id" : "f0be4fd4-6aab-463c-a255-2477aafb087c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersnull00543835c30d49aeb34f20a/javapathsethttpheadersnull14294068def43c4dda4ab?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0fdd0f55-7a3d-4c14-8e45-2ed903fb4357" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABA3EB638", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7007c3-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "0fdd0f55-7a3d-4c14-8e45-2ed903fb4357" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e10ba3d-2ecf-44d7-b031-f3f4fd374ccd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ac1f-a01e-0034-2ad3-90e1d2000000", + "Body" : "jtfssethttpheadersnulljtfssethttpheadersnull00543835c30d49aeb34f20aFri, 01 Nov 2019 16:44:13 GMT\"0x8D75EEABA264E76\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "8e10ba3d-2ecf-44d7-b031-f3f4fd374ccd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersnull00543835c30d49aeb34f20a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4c13231-804b-4f1c-9277-760b0107726d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7007d6-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:13 GMT", + "x-ms-client-request-id" : "c4c13231-804b-4f1c-9277-760b0107726d" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersnull00543835c30d49aeb34f20a", "javapathsethttpheadersnull14294068def43c4dda4ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[0].json new file mode 100644 index 0000000000000..99163db3b99d4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac8bd2637936bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39c26346-d80c-4648-84db-b85eb8e48a99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE0F5FD0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701079-e01e-007c-01d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "39c26346-d80c-4648-84db-b85eb8e48a99" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac8bd2637936bf/javapathsetmetadataac1directoryapitestsetmetadataac8bd5164206?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fafd3b4-5d1a-4cbc-b47a-4c494e02ac7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE1896A2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0120-801f-00ab-15d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "7fafd3b4-5d1a-4cbc-b47a-4c494e02ac7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac8bd2637936bf/javapathsetmetadataac1directoryapitestsetmetadataac8bd5164206?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc846142-6b95-40ca-a82b-1192edcc03a3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE208675", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65bc8c-a01e-0034-23d3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "bc846142-6b95-40ca-a82b-1192edcc03a3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad99f95a-9675-403e-929c-4d9835a4feea" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7010b4-e01e-007c-37d3-90d34f000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0directoryapitestsetmetadataac8bd2637936bfFri, 01 Nov 2019 16:44:20 GMT\"0x8D75EEABE0F5FD0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "ad99f95a-9675-403e-929c-4d9835a4feea", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac8bd2637936bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b9ff3c1b-4536-4ea8-ab46-552274b16651" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65bcf3-a01e-0034-03d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "b9ff3c1b-4536-4ea8-ab46-552274b16651" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0directoryapitestsetmetadataac8bd2637936bf", "javapathsetmetadataac1directoryapitestsetmetadataac8bd5164206" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[1].json new file mode 100644 index 0000000000000..d20736744842b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacf6727424cfd7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53b727ba-3072-4224-a9ca-159443fc7afa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE376166", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7010e6-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "53b727ba-3072-4224-a9ca-159443fc7afa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacf6727424cfd7/javapathsetmetadataac1directoryapitestsetmetadataacf675581769?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2e755ac-04aa-40db-be6c-7b4349130c25" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE41D99C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0121-801f-00ab-16d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "c2e755ac-04aa-40db-be6c-7b4349130c25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacf6727424cfd7/javapathsetmetadataac1directoryapitestsetmetadataacf675581769?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3a9dc091-5fe0-41dc-bba3-33061c1a65cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE49E7A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65bd7b-a01e-0034-03d3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "3a9dc091-5fe0-41dc-bba3-33061c1a65cf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3cf4986c-9950-4905-9b2f-b02f536fb966" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701110-e01e-007c-08d3-90d34f000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0directoryapitestsetmetadataacf6727424cfd7Fri, 01 Nov 2019 16:44:20 GMT\"0x8D75EEABE376166\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "3cf4986c-9950-4905-9b2f-b02f536fb966", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacf6727424cfd7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d9247b7-8044-4547-be8c-f49d2712cf56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65bdc6-a01e-0034-47d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "8d9247b7-8044-4547-be8c-f49d2712cf56" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0directoryapitestsetmetadataacf6727424cfd7", "javapathsetmetadataac1directoryapitestsetmetadataacf675581769" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[2].json new file mode 100644 index 0000000000000..fbc7edfd9f10f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac979425392b38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95280bac-058b-416a-8cf3-efb3cd739773" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE6270C8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70112c-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "95280bac-058b-416a-8cf3-efb3cd739773" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac979425392b38/javapathsetmetadataac1directoryapitestsetmetadataac9794571405?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3c48de2-1b4e-4f80-96ed-4eb78f11d454" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE6B929C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0122-801f-00ab-17d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "a3c48de2-1b4e-4f80-96ed-4eb78f11d454" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac979425392b38/javapathsetmetadataac1directoryapitestsetmetadataac9794571405?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c3e595f-d6c9-4dfd-8347-11a627ca6437" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE733571", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65be2d-a01e-0034-29d3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "4c3e595f-d6c9-4dfd-8347-11a627ca6437" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61559339-38b8-4659-b924-74360375fbee" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701152-e01e-007c-44d3-90d34f000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0directoryapitestsetmetadataac979425392b38Fri, 01 Nov 2019 16:44:20 GMT\"0x8D75EEABE6270C8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "61559339-38b8-4659-b924-74360375fbee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac979425392b38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "653eb912-6cdb-4418-a350-45969bb0cae6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65be5f-a01e-0034-5ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "653eb912-6cdb-4418-a350-45969bb0cae6" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0directoryapitestsetmetadataac979425392b38", "javapathsetmetadataac1directoryapitestsetmetadataac9794571405" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[3].json new file mode 100644 index 0000000000000..e93bd96ed4f73 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacc4508145a72e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91fc1657-c6af-4512-82fa-c3e645f40ea3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE8A4B4A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70116a-e01e-007c-57d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "91fc1657-c6af-4512-82fa-c3e645f40ea3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacc4508145a72e/javapathsetmetadataac1directoryapitestsetmetadataacc4586836b8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "79612e8f-84c9-435a-b6d5-3b6d7f987fbf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABE9417DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0123-801f-00ab-18d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "79612e8f-84c9-435a-b6d5-3b6d7f987fbf" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacc4508145a72e/javapathsetmetadataac1directoryapitestsetmetadataacc4586836b8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be1c6c8f-d08b-4ed9-a73a-342c510d092c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:20 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", + "ETag" : "0x8D75EEABE9417DA", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:20 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65bec5-a01e-0034-37d3-90e1d2000000", + "x-ms-client-request-id" : "be1c6c8f-d08b-4ed9-a73a-342c510d092c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacc4508145a72e/javapathsetmetadataac1directoryapitestsetmetadataacc4586836b8?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5acf21a6-03be-4eb7-a106-0532f2bec6f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABEA2BB73", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701199-e01e-007c-05d3-90d34f000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "5acf21a6-03be-4eb7-a106-0532f2bec6f7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b777ea4c-017e-4769-8aaf-da79228b618b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65bef4-a01e-0034-62d3-90e1d2000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0directoryapitestsetmetadataacc4508145a72eFri, 01 Nov 2019 16:44:20 GMT\"0x8D75EEABE8A4B4A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "b777ea4c-017e-4769-8aaf-da79228b618b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataacc4508145a72e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1baf917-43b3-44ab-82a2-1eb9e838e75b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7011c7-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "a1baf917-43b3-44ab-82a2-1eb9e838e75b" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0directoryapitestsetmetadataacc4508145a72e", "javapathsetmetadataac1directoryapitestsetmetadataacc4586836b8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[4].json new file mode 100644 index 0000000000000..393e36962d898 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[4].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac88e678656754?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0640ea17-bf53-4488-b451-43faba27af48" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABEBA8D42", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65bf38-a01e-0034-1fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "0640ea17-bf53-4488-b451-43faba27af48" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac88e678656754/javapathsetmetadataac1directoryapitestsetmetadataac88e99905ef?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b15ceb8e-5dd1-42d4-b418-56b14146c2ca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABEC3C72A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0126-801f-00ab-1bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "b15ceb8e-5dd1-42d4-b418-56b14146c2ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac88e678656754/javapathsetmetadataac1directoryapitestsetmetadataac88e99905ef?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eed5e02b-970f-4672-b0a7-ed8659a9137f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABECB4692", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70120b-e01e-007c-66d3-90d34f000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "eed5e02b-970f-4672-b0a7-ed8659a9137f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "683fed40-da2a-46f0-86ee-d4b4c8031661" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65bf8d-a01e-0034-6ed3-90e1d2000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0directoryapitestsetmetadataac88e678656754Fri, 01 Nov 2019 16:44:21 GMT\"0x8D75EEABEBA8D42\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "683fed40-da2a-46f0-86ee-d4b4c8031661", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataac88e678656754?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd9ec7f7-bc96-4ec2-905c-dea63c160e4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70122a-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "dd9ec7f7-bc96-4ec2-905c-dea63c160e4c" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0directoryapitestsetmetadataac88e678656754", "javapathsetmetadataac1directoryapitestsetmetadataac88e99905ef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[5].json new file mode 100644 index 0000000000000..fbe5a8d8af5a5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataac[5].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataace3865236c995?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "203f197f-02dc-426c-bf28-d737af622877" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABEE3041E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65bfa9-a01e-0034-08d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "203f197f-02dc-426c-bf28-d737af622877" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataace3865236c995/javapathsetmetadataac1directoryapitestsetmetadataace380118920?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afd81a78-46c3-4620-95d1-99080efa3a8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABEF27F7A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0127-801f-00ab-1cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:20 GMT", + "x-ms-client-request-id" : "afd81a78-46c3-4620-95d1-99080efa3a8c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataace3865236c995/javapathsetmetadataac1directoryapitestsetmetadataace380118920?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8cf08cd-d94f-4a3d-a44d-f01f39ee5c9c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABEF27F7A", + "x-ms-lease-id" : "4982d266-824d-4392-975e-0725b686b61a", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701271-e01e-007c-46d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "a8cf08cd-d94f-4a3d-a44d-f01f39ee5c9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataace3865236c995/javapathsetmetadataac1directoryapitestsetmetadataace380118920?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48d23e66-e7dc-48cf-aa69-7d248638a0a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF01DCB8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c018-a01e-0034-6ed3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "48d23e66-e7dc-48cf-aa69-7d248638a0a7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f038dfbc-79bc-4042-a363-2367c88b9f4d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701290-e01e-007c-60d3-90d34f000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0directoryapitestsetmetadataace3865236c995Fri, 01 Nov 2019 16:44:21 GMT\"0x8D75EEABEE3041E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "f038dfbc-79bc-4042-a363-2367c88b9f4d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0directoryapitestsetmetadataace3865236c995?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60d9cd36-5699-4894-b072-c19865672838" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c04f-a01e-0034-21d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "60d9cd36-5699-4894-b072-c19865672838" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0directoryapitestsetmetadataace3865236c995", "javapathsetmetadataac1directoryapitestsetmetadataace380118920" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[0].json new file mode 100644 index 0000000000000..f8f24abb84fa9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0365490e162251057940efaf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a632391-c53c-419e-b313-474564dae50a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF212839", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7012bc-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "5a632391-c53c-419e-b313-474564dae50a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0365490e162251057940efaf/javapathsetmetadataacfail138354f7e6a069fae54d4c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a56fbd2-917b-4ab4-8038-f8cc4f7169f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF2A5A60", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0128-801f-00ab-1dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "7a56fbd2-917b-4ab4-8038-f8cc4f7169f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0365490e162251057940efaf/javapathsetmetadataacfail138354f7e6a069fae54d4c?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cd92e68-87e0-4382-9ff9-1229603749e8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "3a65c0a7-a01e-0034-75d3-90e1d2000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:3a65c0a7-a01e-0034-75d3-90e1d2000000\nTime:2019-11-01T16:44:21.9285151Z", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "0cd92e68-87e0-4382-9ff9-1229603749e8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eee8629d-71a3-4387-85c0-3bea8862a921" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70130f-e01e-007c-57d3-90d34f000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0365490e162251057940efafFri, 01 Nov 2019 16:44:21 GMT\"0x8D75EEABF212839\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "eee8629d-71a3-4387-85c0-3bea8862a921", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0365490e162251057940efaf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec1d88ed-1b12-4520-98ab-1315d5f5ca93" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c0f1-a01e-0034-3ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "ec1d88ed-1b12-4520-98ab-1315d5f5ca93" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0365490e162251057940efaf", "javapathsetmetadataacfail138354f7e6a069fae54d4c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[1].json new file mode 100644 index 0000000000000..f9d102f2462f5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail025934df71f07eaf634fc185?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74d89693-7848-4aa9-9a56-ce4e3fcc01f8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF4A1450", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70132c-e01e-007c-72d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "74d89693-7848-4aa9-9a56-ce4e3fcc01f8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail025934df71f07eaf634fc185/javapathsetmetadataacfail166707c06b9fafb2b54ca2?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6d791ae-591b-4428-adb1-0f59885628d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF531DED", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0129-801f-00ab-1ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "b6d791ae-591b-4428-adb1-0f59885628d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail025934df71f07eaf634fc185/javapathsetmetadataacfail166707c06b9fafb2b54ca2?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "854a0d4e-9004-408d-84a3-dbd6f8ad38d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "3a65c164-a01e-0034-25d3-90e1d2000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:3a65c164-a01e-0034-25d3-90e1d2000000\nTime:2019-11-01T16:44:22.1957038Z", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "854a0d4e-9004-408d-84a3-dbd6f8ad38d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6ae33da-f891-4f68-a619-cc5d86e6bb0d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701358-e01e-007c-1bd3-90d34f000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail025934df71f07eaf634fc185Fri, 01 Nov 2019 16:44:22 GMT\"0x8D75EEABF4A1450\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "c6ae33da-f891-4f68-a619-cc5d86e6bb0d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail025934df71f07eaf634fc185?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e98add5a-9828-4763-81c2-977a1bcbcc47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c1a2-a01e-0034-60d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "e98add5a-9828-4763-81c2-977a1bcbcc47" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail025934df71f07eaf634fc185", "javapathsetmetadataacfail166707c06b9fafb2b54ca2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[2].json new file mode 100644 index 0000000000000..a0ad331c4f4a9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail070152fc6d2038eba94fe28f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c2b2612-67ab-43c4-8c19-fbc7c3e31b99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF7215EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701373-e01e-007c-31d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "5c2b2612-67ab-43c4-8c19-fbc7c3e31b99" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail070152fc6d2038eba94fe28f/javapathsetmetadataacfail1272876404b48bbd01482c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9c05c25-1df9-44af-af29-de769b835ca5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF7B6234", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e012a-801f-00ab-1fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:21 GMT", + "x-ms-client-request-id" : "c9c05c25-1df9-44af-af29-de769b835ca5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail070152fc6d2038eba94fe28f/javapathsetmetadataacfail1272876404b48bbd01482c?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97513e1d-e871-49a5-ba25-50dfe39d797f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "3a65c1df-a01e-0034-1ad3-90e1d2000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:3a65c1df-a01e-0034-1ad3-90e1d2000000\nTime:2019-11-01T16:44:22.4558875Z", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "97513e1d-e871-49a5-ba25-50dfe39d797f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8dd580db-4002-48d3-bc46-dc385c9be7d9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70139f-e01e-007c-59d3-90d34f000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail070152fc6d2038eba94fe28fFri, 01 Nov 2019 16:44:22 GMT\"0x8D75EEABF7215EA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "8dd580db-4002-48d3-bc46-dc385c9be7d9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail070152fc6d2038eba94fe28f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0802d791-5ef6-40dc-80fc-b7dcbeecda04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c213-a01e-0034-49d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "0802d791-5ef6-40dc-80fc-b7dcbeecda04" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail070152fc6d2038eba94fe28f", "javapathsetmetadataacfail1272876404b48bbd01482c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[3].json new file mode 100644 index 0000000000000..a9169d69d4e4d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail090120525a4c3dceb246c68e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d895fa11-3819-4dca-8c6d-f978f6182260" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABF9E5E05", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7013b6-e01e-007c-6dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "d895fa11-3819-4dca-8c6d-f978f6182260" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail090120525a4c3dceb246c68e/javapathsetmetadataacfail14620547f906b698744ae7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd62f859-3e91-4a8a-9c6d-dfbb4a37633b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABFA8106E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e012b-801f-00ab-20d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "dd62f859-3e91-4a8a-9c6d-dfbb4a37633b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail090120525a4c3dceb246c68e/javapathsetmetadataacfail14620547f906b698744ae7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c1c15beb-bc48-43e9-a94a-72974506921d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:22 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", + "ETag" : "0x8D75EEABFA8106E", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:22 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65c285-a01e-0034-2dd3-90e1d2000000", + "x-ms-client-request-id" : "c1c15beb-bc48-43e9-a94a-72974506921d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail090120525a4c3dceb246c68e/javapathsetmetadataacfail14620547f906b698744ae7?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15a15476-b637-458b-9892-96f0c8af2170" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc7013e8-e01e-007c-18d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc7013e8-e01e-007c-18d3-90d34f000000\nTime:2019-11-01T16:44:22.7980857Z", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "15a15476-b637-458b-9892-96f0c8af2170", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "695df6a2-a754-4e92-a716-755832e2c320" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65c2b5-a01e-0034-5ad3-90e1d2000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail090120525a4c3dceb246c68eFri, 01 Nov 2019 16:44:22 GMT\"0x8D75EEABF9E5E05\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "695df6a2-a754-4e92-a716-755832e2c320", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail090120525a4c3dceb246c68e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "02220573-d5e6-4491-8a5d-92dc59e5d295" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc701400-e01e-007c-2dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "02220573-d5e6-4491-8a5d-92dc59e5d295" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail090120525a4c3dceb246c68e", "javapathsetmetadataacfail14620547f906b698744ae7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[4].json new file mode 100644 index 0000000000000..d555e5424cecc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail08040250aeee85ffbb4a879c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d7df9d8-65a5-4a7c-bc2b-fae87271a175" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABFD0753C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65c2e1-a01e-0034-7fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "3d7df9d8-65a5-4a7c-bc2b-fae87271a175" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail08040250aeee85ffbb4a879c/javapathsetmetadataacfail157421b4c716240fec47f1?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "020f29d9-7bac-40c9-a4f6-37abb5a114f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABFD9C319", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e012c-801f-00ab-21d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "020f29d9-7bac-40c9-a4f6-37abb5a114f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail08040250aeee85ffbb4a879c/javapathsetmetadataacfail157421b4c716240fec47f1?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6a41f69-8dc8-4939-8067-b417760d3e14" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABFD9C319", + "x-ms-lease-id" : "4e685ea3-25eb-41ec-8be0-c12ed47d5a0a", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc701437-e01e-007c-5fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "d6a41f69-8dc8-4939-8067-b417760d3e14" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail08040250aeee85ffbb4a879c/javapathsetmetadataacfail157421b4c716240fec47f1?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aee9822f-0ab4-47eb-95e9-4c2c30e90326" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "3a65c349-a01e-0034-5ed3-90e1d2000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:3a65c349-a01e-0034-5ed3-90e1d2000000\nTime:2019-11-01T16:44:23.1253605Z", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "aee9822f-0ab4-47eb-95e9-4c2c30e90326", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e596ac46-b39b-4014-bac9-4099f05f87c1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70144e-e01e-007c-72d3-90d34f000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail08040250aeee85ffbb4a879cFri, 01 Nov 2019 16:44:22 GMT\"0x8D75EEABFD0753C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "e596ac46-b39b-4014-bac9-4099f05f87c1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail08040250aeee85ffbb4a879c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d936b46-c5f4-4676-af54-12d2bbb50445" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c375-a01e-0034-08d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "5d936b46-c5f4-4676-af54-12d2bbb50445" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail08040250aeee85ffbb4a879c", "javapathsetmetadataacfail157421b4c716240fec47f1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataallnull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataallnull.json new file mode 100644 index 0000000000000..c9170afc9e7f6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataallnull.json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataallnull088506d4da68e168d948898?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88d40714-3194-4db0-a87b-fa4fb26f053a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD28A81F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65b7fe-a01e-0034-15d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "88d40714-3194-4db0-a87b-fa4fb26f053a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataallnull088506d4da68e168d948898/javapathsetmetadataallnull161889150a4bb1ea11494?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6306f3b1-be7e-4a0a-9ccb-b6c8046b4471" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD33F5C3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e011b-801f-00ab-11d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:17 GMT", + "x-ms-client-request-id" : "6306f3b1-be7e-4a0a-9ccb-b6c8046b4471" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataallnull088506d4da68e168d948898/javapathsetmetadataallnull161889150a4bb1ea11494?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91ef11f6-3660-4782-bb87-d2b1eda68f85" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD3C3327", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700e7c-e01e-007c-3bd3-90d34f000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "91ef11f6-3660-4782-bb87-d2b1eda68f85" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataallnull088506d4da68e168d948898/javapathsetmetadataallnull161889150a4bb1ea11494", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29d8c436-1644-42a1-8580-73fdc89efcac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:18 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", + "ETag" : "0x8D75EEABD3C3327", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:18 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65b885-a01e-0034-0fd3-90e1d2000000", + "x-ms-client-request-id" : "29d8c436-1644-42a1-8580-73fdc89efcac", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b11e6ac6-e399-4ff0-a9c6-2209f5a459bc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700e91-e01e-007c-4ed3-90d34f000000", + "Body" : "jtfssetmetadataallnulljtfssetmetadataallnull088506d4da68e168d948898Fri, 01 Nov 2019 16:44:18 GMT\"0x8D75EEABD28A81F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "b11e6ac6-e399-4ff0-a9c6-2209f5a459bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataallnull088506d4da68e168d948898?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ceb355c-d11e-4570-a5c1-eb65bbae4c14" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65b8c4-a01e-0034-4bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "8ceb355c-d11e-4570-a5c1-eb65bbae4c14" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataallnull088506d4da68e168d948898", "javapathsetmetadataallnull161889150a4bb1ea11494" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataerror.json new file mode 100644 index 0000000000000..d765c9d09090c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadataerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0directoryapitestsetmetadataerror77b636905?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3760c1f-f167-4894-ae2d-3cb8d512626a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABFFF05FF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70146e-e01e-007c-10d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "b3760c1f-f167-4894-ae2d-3cb8d512626a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataerror0directoryapitestsetmetadataerror77b636905/javapathsetmetadataerror1273238681eeacb6364358?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53fadbf1-d52d-4837-b048-bcf6851084fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAC0082450", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e012d-801f-00ab-22d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:22 GMT", + "x-ms-client-request-id" : "53fadbf1-d52d-4837-b048-bcf6851084fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0directoryapitestsetmetadataerror77b636905/javapathsetmetadataerror20802333921e9a86af442c?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "77f920f0-b5c3-4beb-a1a8-8e2a0b3f5d28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "3a65c3b4-a01e-0034-41d3-90e1d2000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:3a65c3b4-a01e-0034-41d3-90e1d2000000\nTime:2019-11-01T16:44:23.3825417Z", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "77f920f0-b5c3-4beb-a1a8-8e2a0b3f5d28", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17775873-b4bd-42fc-be45-cacb111453c6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701496-e01e-007c-32d3-90d34f000000", + "Body" : "jtfssetmetadataerrorjtfssetmetadataerror0directoryapitestsetmetadataerror77b636905Fri, 01 Nov 2019 16:44:23 GMT\"0x8D75EEABFFF05FF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "17775873-b4bd-42fc-be45-cacb111453c6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0directoryapitestsetmetadataerror77b636905?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5dbc2323-9f11-495b-9dd6-3064c86ddceb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65c3e8-a01e-0034-71d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:23 GMT", + "x-ms-client-request-id" : "5dbc2323-9f11-495b-9dd6-3064c86ddceb" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataerror0directoryapitestsetmetadataerror77b636905", "javapathsetmetadataerror1273238681eeacb6364358", "javapathsetmetadataerror20802333921e9a86af442c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatametadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatametadata[0].json new file mode 100644 index 0000000000000..16b212387f303 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatametadata[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata097757491f1fd6953344bea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9144f0b2-082e-4059-a09a-3d65678ccc6c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD967086", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700f5a-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "9144f0b2-082e-4059-a09a-3d65678ccc6c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata097757491f1fd6953344bea/javapathsetmetadatametadata137370aaf6abe7645543a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f24d6c0a-438b-409f-a538-f4c286ec061e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABDA64104", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e011e-801f-00ab-13d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "f24d6c0a-438b-409f-a538-f4c286ec061e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata097757491f1fd6953344bea/javapathsetmetadatametadata137370aaf6abe7645543a?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6aaa1810-a50b-4ccb-9b22-468cd9324d57" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABDAE7316", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65ba7b-a01e-0034-4fd3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "6aaa1810-a50b-4ccb-9b22-468cd9324d57" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "969cf307-9e66-4ebd-833a-cc6c4cb0e3b1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700fb2-e01e-007c-52d3-90d34f000000", + "Body" : "jtfssetmetadatametadatajtfssetmetadatametadata097757491f1fd6953344beaFri, 01 Nov 2019 16:44:19 GMT\"0x8D75EEABD967086\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "969cf307-9e66-4ebd-833a-cc6c4cb0e3b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata097757491f1fd6953344bea?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88634521-a887-49dd-a3c9-606368a8d51e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65babf-a01e-0034-10d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "88634521-a887-49dd-a3c9-606368a8d51e" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatametadata097757491f1fd6953344bea", "javapathsetmetadatametadata137370aaf6abe7645543a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatametadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatametadata[1].json new file mode 100644 index 0000000000000..1d8a0e9da50a5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatametadata[1].json @@ -0,0 +1,240 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "558683fa-3184-4f78-b8c1-ee5be294f8ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABDC614A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700fdf-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "558683fa-3184-4f78-b8c1-ee5be294f8ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19/javapathsetmetadatametadata129199bcace075b3dc47e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe6cd4db-1dc5-4d9b-909c-12fe26cb4465" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABDCF96F0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e011f-801f-00ab-14d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "fe6cd4db-1dc5-4d9b-909c-12fe26cb4465" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19/javapathsetmetadatametadata129199bcace075b3dc47e?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7183707-581c-453d-9c6c-13028d032f2c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABDD712AB", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65bb1d-a01e-0034-62d3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "a7183707-581c-453d-9c6c-13028d032f2c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19/javapathsetmetadatametadata129199bcace075b3dc47e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d8fdb02-2948-4e77-ab22-b2cb718e8ea1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEABDD712AB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:19 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc70101a-e01e-007c-32d3-90d34f000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "4d8fdb02-2948-4e77-ab22-b2cb718e8ea1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19/javapathsetmetadatametadata129199bcace075b3dc47e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "510f802b-cb96-4c4c-9b29-50e3f44a70c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEABDD712AB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:19 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65bb5b-a01e-0034-1bd3-90e1d2000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "510f802b-cb96-4c4c-9b29-50e3f44a70c8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19/javapathsetmetadatametadata129199bcace075b3dc47e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e6bceea-8d96-4791-a996-d0ce9001243e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEABDD712AB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:19 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc701035-e01e-007c-48d3-90d34f000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "3e6bceea-8d96-4791-a996-d0ce9001243e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19/javapathsetmetadatametadata129199bcace075b3dc47e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3755ce92-0c46-464a-a762-f511aba079cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEABDD712AB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:19 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65bb8a-a01e-0034-43d3-90e1d2000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "3755ce92-0c46-464a-a762-f511aba079cf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66d8c759-ee1c-490d-96ba-2834819e34bd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc701058-e01e-007c-65d3-90d34f000000", + "Body" : "jtfssetmetadatametadatajtfssetmetadatametadata02118541a4d05bb4284cf19Fri, 01 Nov 2019 16:44:19 GMT\"0x8D75EEABDC614A0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "66d8c759-ee1c-490d-96ba-2834819e34bd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata02118541a4d05bb4284cf19?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73c32f7d-2c9f-4f8f-afc3-62558e447798" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65bbd9-a01e-0034-05d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:19 GMT", + "x-ms-client-request-id" : "73c32f7d-2c9f-4f8f-afc3-62558e447798" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatametadata02118541a4d05bb4284cf19", "javapathsetmetadatametadata129199bcace075b3dc47e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatamin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatamin.json new file mode 100644 index 0000000000000..79272545f25d6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/DirectoryAPITestsetmetadatamin.json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d486a16-346b-4d72-997e-52c8b8ed0f5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD5D7BEE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc700eab-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "6d486a16-346b-4d72-997e-52c8b8ed0f5d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2/javapathsetmetadatamin1directoryapitestsetmetadataminfa647888e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15329a67-ed73-4089-aef5-80d39366dc10" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD66A06F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e011c-801f-00ab-12d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "15329a67-ed73-4089-aef5-80d39366dc10" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2/javapathsetmetadatamin1directoryapitestsetmetadataminfa647888e?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c4464df-cfb0-4cb6-a8cd-9ee42ce60a15" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEABD6EFD96", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65b92b-a01e-0034-25d3-90e1d2000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "9c4464df-cfb0-4cb6-a8cd-9ee42ce60a15" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2/javapathsetmetadatamin1directoryapitestsetmetadataminfa647888e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5295ba95-51dd-405c-b7de-10f067bc2a56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEABD6EFD96", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:18 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc700eef-e01e-007c-24d3-90d34f000000", + "x-ms-client-request-id" : "5295ba95-51dd-405c-b7de-10f067bc2a56", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2/javapathsetmetadatamin1directoryapitestsetmetadataminfa647888e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86df2ecb-ee8b-4857-a8a4-7db66c9065d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEABD6EFD96", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:18 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a65b976-a01e-0034-68d3-90e1d2000000", + "x-ms-client-request-id" : "86df2ecb-ee8b-4857-a8a4-7db66c9065d5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e160d9ea-c8e8-45e3-b49e-1a7a0e4601bb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc700f25-e01e-007c-57d3-90d34f000000", + "Body" : "jtfssetmetadataminjtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2Fri, 01 Nov 2019 16:44:18 GMT\"0x8D75EEABD5D7BEE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "e160d9ea-c8e8-45e3-b49e-1a7a0e4601bb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d2ee7df2-259d-468d-a223-51f22ecd7610" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65b9b9-a01e-0034-25d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:18 GMT", + "x-ms-client-request-id" : "d2ee7df2-259d-468d-a223-51f22ecd7610" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatamin0directoryapitestsetmetadataminfa6277099d2", "javapathsetmetadatamin1directoryapitestsetmetadataminfa647888e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddata.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddata.json new file mode 100644 index 0000000000000..b2a44f1183fab --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddata.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddata0fileapitestappenddata0e141498316449373?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d258f02-900a-45a9-885e-f75da453c6d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5BE8F76B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762551-501e-0003-01d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "8d258f02-900a-45a9-885e-f75da453c6d2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddata0fileapitestappenddata0e141498316449373/javapathappenddata1fileapitestappenddata0e18465909c1567?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "016a579c-7d77-4703-ba96-ea89bdbcf795" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5BF3E35E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8463-201f-006a-4cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "016a579c-7d77-4703-ba96-ea89bdbcf795" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddata0fileapitestappenddata0e141498316449373/javapathappenddata1fileapitestappenddata0e18465909c1567?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d7e9250-df5d-4504-bc43-80a242d1f70b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8464-201f-006a-4dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "4d7e9250-df5d-4504-bc43-80a242d1f70b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddata0fileapitestappenddata0e141498316449373/javapathappenddata1fileapitestappenddata0e18465909c1567?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1cccc830-4892-4737-bef0-5f1e6e645b5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C06384E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8465-201f-006a-4ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "1cccc830-4892-4737-bef0-5f1e6e645b5f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddata0fileapitestappenddata0e141498316449373/javapathappenddata1fileapitestappenddata0e18465909c1567?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ec705c6-4f76-4c8d-ba5f-96b5044e0fb8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8466-201f-006a-4fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "2ec705c6-4f76-4c8d-ba5f-96b5044e0fb8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fd47997c-8355-4f30-ad65-b98b0fc72613" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257625c9-501e-0003-69d4-904d7d000000", + "Body" : "jtfsappenddatajtfsappenddata0fileapitestappenddata0e141498316449373Fri, 01 Nov 2019 16:48:44 GMT\"0x8D75EEB5BE8F76B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "fd47997c-8355-4f30-ad65-b98b0fc72613", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddata0fileapitestappenddata0e141498316449373?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f26aab27-fe31-43ce-8c1b-187f7376a7d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257625e5-501e-0003-03d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "f26aab27-fe31-43ce-8c1b-187f7376a7d2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddata0fileapitestappenddata0e141498316449373", "javapathappenddata1fileapitestappenddata0e18465909c1567" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataemptybody.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataemptybody.json new file mode 100644 index 0000000000000..737451901c3cb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataemptybody.json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3cfa20b5-2ac5-4618-9ea2-e9e875a835d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D3C428B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762856-501e-0003-32d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "3cfa20b5-2ac5-4618-9ea2-e9e875a835d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385/javapathappenddataemptybody109449cc861687ba52424?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ce15112-6834-4b75-8c28-01eee1b839bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D5C711D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b1d-501f-008b-22d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "8ce15112-6834-4b75-8c28-01eee1b839bb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385/javapathappenddataemptybody109449cc861687ba52424?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6b1f93a-98f0-401f-84a1-c226a9ca3d5a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b1e-501f-008b-23d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "b6b1f93a-98f0-401f-84a1-c226a9ca3d5a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385/javapathappenddataemptybody109449cc861687ba52424?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5aada5ab-03f3-49d9-8aae-eab64c5e3443" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D74BF90", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b1f-501f-008b-24d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "5aada5ab-03f3-49d9-8aae-eab64c5e3443" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385/javapathappenddataemptybody2615521321685400fe41c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eafeae9a-2615-41fa-8ae6-8d4eefc9ec1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D7CD7CE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b20-501f-008b-25d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "eafeae9a-2615-41fa-8ae6-8d4eefc9ec1a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385/javapathappenddataemptybody2615521321685400fe41c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee1e5566-9679-444d-9d45-85517b555ba1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "202", + "StatusCode" : "400", + "x-ms-request-id" : "adc32b21-501f-008b-26d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"InvalidHeaderValue\",\"message\":\"The value for one of the HTTP headers is not in the correct format.\\nRequestId:adc32b21-501f-008b-26d4-90f5a4000000\\nTime:2019-11-01T16:48:47.5461429Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "ee1e5566-9679-444d-9d45-85517b555ba1", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddataemptybody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "face942d-d484-4dc4-8e1b-9ed0d455e29d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257628d4-501e-0003-28d4-904d7d000000", + "Body" : "jtfsappenddataemptybodyjtfsappenddataemptybody0fileapitestappenddataemptybody50655385Fri, 01 Nov 2019 16:48:47 GMT\"0x8D75EEB5D3C428B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "face942d-d484-4dc4-8e1b-9ed0d455e29d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataemptybody0fileapitestappenddataemptybody50655385?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "269833b2-730b-42f1-a58c-60624e1b60cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257628db-501e-0003-2fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "269833b2-730b-42f1-a58c-60624e1b60cf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddataemptybody0fileapitestappenddataemptybody50655385", "javapathappenddataemptybody109449cc861687ba52424", "javapathappenddataemptybody2615521321685400fe41c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataerror.json new file mode 100644 index 0000000000000..5398093697b18 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataerror.json @@ -0,0 +1,152 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataerror0fileapitestappenddataerror3cd668888b10?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3383b035-74d5-4fcc-8be4-8baac5e367ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E76A9E9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762ab0-501e-0003-54d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "3383b035-74d5-4fcc-8be4-8baac5e367ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataerror0fileapitestappenddataerror3cd668888b10/javapathappenddataerror1fileapitestappenddataerror3cd4290910?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f01d4a46-f770-4b6c-855a-9da191f66bd9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E80C625", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b2e-501f-008b-33d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "f01d4a46-f770-4b6c-855a-9da191f66bd9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataerror0fileapitestappenddataerror3cd668888b10/javapathappenddataerror1fileapitestappenddataerror3cd4290910?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c02b083a-65d0-4af9-a529-614f11d3e463", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b2f-501f-008b-34d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "c02b083a-65d0-4af9-a529-614f11d3e463" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataerror0fileapitestappenddataerror3cd668888b10/javapathappenddataerror1fileapitestappenddataerror3cd4290910?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b24d4ae-9e91-4288-98a6-e413b5d5c1a8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E927408", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b30-501f-008b-35d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "8b24d4ae-9e91-4288-98a6-e413b5d5c1a8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataerror0fileapitestappenddataerror3cd668888b10/javapathappenddataerror2fileapitestappenddataerror3cd5967066?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e0d5894-e4a7-4fc7-8145-3edfb8acc729", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "adc32b31-501f-008b-36d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:adc32b31-501f-008b-36d4-90f5a4000000\\nTime:2019-11-01T16:48:49.3684239Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "6e0d5894-e4a7-4fc7-8145-3edfb8acc729", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddataerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "445552b9-4c18-48d0-83d0-8a4a1ba9e14e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762af4-501e-0003-12d4-904d7d000000", + "Body" : "jtfsappenddataerrorjtfsappenddataerror0fileapitestappenddataerror3cd668888b10Fri, 01 Nov 2019 16:48:49 GMT\"0x8D75EEB5E76A9E9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "445552b9-4c18-48d0-83d0-8a4a1ba9e14e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataerror0fileapitestappenddataerror3cd668888b10?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "329e5d25-0f26-4634-99cb-40441795b62d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762b08-501e-0003-25d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "329e5d25-0f26-4634-99cb-40441795b62d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddataerror0fileapitestappenddataerror3cd668888b10", "javapathappenddataerror1fileapitestappenddataerror3cd4290910", "javapathappenddataerror2fileapitestappenddataerror3cd5967066" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[0].json new file mode 100644 index 0000000000000..5f8e383935f5b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataillegalarguments03134717ffcbd0a0554?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c244baf-5514-4637-bd76-3e39a26047d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C81A9F3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257626e2-501e-0003-64d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "9c244baf-5514-4637-bd76-3e39a26047d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments03134717ffcbd0a0554/javapathappenddataillegalarguments170609eff97b928dc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "748303eb-5a85-4896-97db-fb60771541b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C8B8516", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e846c-201f-006a-55d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "748303eb-5a85-4896-97db-fb60771541b1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments03134717ffcbd0a0554/javapathappenddataillegalarguments170609eff97b928dc?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af27c769-d132-48c9-b4ab-e7f4bf72c224", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e846d-201f-006a-56d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "af27c769-d132-48c9-b4ab-e7f4bf72c224" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments03134717ffcbd0a0554/javapathappenddataillegalarguments170609eff97b928dc?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b1c1d1c-9481-4a42-840b-5c4191d0bfbc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C9F6D16", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e846e-201f-006a-57d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "6b1c1d1c-9481-4a42-840b-5c4191d0bfbc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddataillegalarguments&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be6a7a50-e270-4ff6-be82-906a90186862" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576274b-501e-0003-3ad4-904d7d000000", + "Body" : "jtfsappenddataillegalargumentsjtfsappenddataillegalarguments03134717ffcbd0a0554Fri, 01 Nov 2019 16:48:45 GMT\"0x8D75EEB5C81A9F3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "be6a7a50-e270-4ff6-be82-906a90186862", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataillegalarguments03134717ffcbd0a0554?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60d48ffc-54f1-4a8b-af03-8c101273e199" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576275d-501e-0003-49d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "60d48ffc-54f1-4a8b-af03-8c101273e199" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddataillegalarguments03134717ffcbd0a0554", "javapathappenddataillegalarguments170609eff97b928dc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[1].json new file mode 100644 index 0000000000000..7ac265133d2da --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[1].json @@ -0,0 +1,143 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataillegalarguments084252a4ce90897ff74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1cc0429-edc6-4b54-b750-5f43ef008d8b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5CB8A284", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762771-501e-0003-5dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "d1cc0429-edc6-4b54-b750-5f43ef008d8b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments084252a4ce90897ff74/javapathappenddataillegalarguments182348e263474aed2?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f2740f4-308f-4eff-bec4-17144ac03523" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5CC25EC3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e846f-201f-006a-58d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "4f2740f4-308f-4eff-bec4-17144ac03523" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments084252a4ce90897ff74/javapathappenddataillegalarguments182348e263474aed2?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45d1002d-a978-4b8b-a4f1-d392289ee2cb", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8470-201f-006a-59d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "45d1002d-a978-4b8b-a4f1-d392289ee2cb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments084252a4ce90897ff74/javapathappenddataillegalarguments182348e263474aed2?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "610fcb0d-39d7-4413-8e82-3bc70cfb5634" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5CD3C263", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8471-201f-006a-5ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "610fcb0d-39d7-4413-8e82-3bc70cfb5634" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments084252a4ce90897ff74/javapathappenddataillegalarguments182348e263474aed2?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "505b48fe-4d8b-4a9a-801b-b52c87a8c389", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "ClassName" : "com.azure.core.exception.UnexpectedLengthException", + "ErrorMessage" : "Request body emitted 7 bytes, less than the expected 8 bytes." + } + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddataillegalarguments&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4cfd31ad-79f7-4407-9da1-492d418e2100" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257627ba-501e-0003-21d4-904d7d000000", + "Body" : "jtfsappenddataillegalargumentsjtfsappenddataillegalarguments084252a4ce90897ff74Fri, 01 Nov 2019 16:48:46 GMT\"0x8D75EEB5CB8A284\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "4cfd31ad-79f7-4407-9da1-492d418e2100", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataillegalarguments084252a4ce90897ff74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5fa5fdaa-b31f-4ea2-972d-351a42fa2955" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257627c0-501e-0003-27d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "5fa5fdaa-b31f-4ea2-972d-351a42fa2955" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddataillegalarguments084252a4ce90897ff74", "javapathappenddataillegalarguments182348e263474aed2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[2].json new file mode 100644 index 0000000000000..300edf99bac36 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataillegalarguments[2].json @@ -0,0 +1,143 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataillegalarguments09364045757807e1764?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97dfef92-581f-4e37-8b6d-93a9feb6c825" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5CEF25D5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257627cd-501e-0003-32d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "97dfef92-581f-4e37-8b6d-93a9feb6c825" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments09364045757807e1764/javapathappenddataillegalarguments110175468378c547e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4114a74-5033-49f9-8600-399d0a718073" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D10243F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "525cd40e-101f-00c3-29d4-90c739000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "f4114a74-5033-49f9-8600-399d0a718073" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments09364045757807e1764/javapathappenddataillegalarguments110175468378c547e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "651108d7-ea8e-45c1-a015-e99ec452a108", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "525cd40f-101f-00c3-2ad4-90c739000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "651108d7-ea8e-45c1-a015-e99ec452a108" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments09364045757807e1764/javapathappenddataillegalarguments110175468378c547e?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "55584207-fa56-434f-a17b-6ad9e6d3a762" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D22D5A2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "525cd410-101f-00c3-2bd4-90c739000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "55584207-fa56-434f-a17b-6ad9e6d3a762" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataillegalarguments09364045757807e1764/javapathappenddataillegalarguments110175468378c547e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "155eccf1-25ae-43b0-964e-396bcbd477d0", + "Content-Type" : "application/octet-stream" + }, + "Response" : null, + "Exception" : { + "ClassName" : "com.azure.core.exception.UnexpectedLengthException", + "ErrorMessage" : "Request body emitted 7 bytes, more than the expected 6 bytes." + } + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddataillegalarguments&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5f74dee0-9668-417b-ba4e-31f8206eca70" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762830-501e-0003-0ed4-904d7d000000", + "Body" : "jtfsappenddataillegalargumentsjtfsappenddataillegalarguments09364045757807e1764Fri, 01 Nov 2019 16:48:46 GMT\"0x8D75EEB5CEF25D5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "5f74dee0-9668-417b-ba4e-31f8206eca70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataillegalarguments09364045757807e1764?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c64a8ca-8801-4f82-84de-6313b8ca293d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576283d-501e-0003-1bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "9c64a8ca-8801-4f82-84de-6313b8ca293d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddataillegalarguments09364045757807e1764", "javapathappenddataillegalarguments110175468378c547e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatalease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatalease.json new file mode 100644 index 0000000000000..3103567b3870d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatalease.json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82c2d704-61be-469c-9c30-531fb000640d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DD51C26", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762966-501e-0003-2dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "82c2d704-61be-469c-9c30-531fb000640d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b/javapathappenddatalease1fileapitestappenddataleasefab215293b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c2e967a-2927-494d-b5ab-450a23774e99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DE5E0E5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b26-501f-008b-2bd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "9c2e967a-2927-494d-b5ab-450a23774e99" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b/javapathappenddatalease1fileapitestappenddataleasefab215293b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6189264b-3a71-4a2e-8b5e-00d090333679", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b27-501f-008b-2cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "6189264b-3a71-4a2e-8b5e-00d090333679" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b/javapathappenddatalease1fileapitestappenddataleasefab215293b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d461ae72-a479-42a4-9ebd-932541a33e7c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DF5E5A6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b28-501f-008b-2dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "d461ae72-a479-42a4-9ebd-932541a33e7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b/javapathappenddatalease1fileapitestappenddataleasefab215293b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7304a86b-0bc5-4d66-880f-a063020a7224" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DF5E5A6", + "x-ms-lease-id" : "9930ad89-43a2-4855-868b-740ce4d297bd", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257629bf-501e-0003-7fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "7304a86b-0bc5-4d66-880f-a063020a7224" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b/javapathappenddatalease1fileapitestappenddataleasefab215293b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4222e1a-1716-4cee-ad5e-c331e02de781", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b29-501f-008b-2ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "a4222e1a-1716-4cee-ad5e-c331e02de781" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddatalease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b34b9b7-f2a5-42ec-82ae-b8e0039109de" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257629fe-501e-0003-3cd4-904d7d000000", + "Body" : "jtfsappenddataleasejtfsappenddatalease0fileapitestappenddataleasefab118820e5bFri, 01 Nov 2019 16:48:48 GMT\"0x8D75EEB5DD51C26\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "4b34b9b7-f2a5-42ec-82ae-b8e0039109de", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatalease0fileapitestappenddataleasefab118820e5b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "403ed0df-5d4b-4df2-a11a-8d73130106d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762a12-501e-0003-4dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "403ed0df-5d4b-4df2-a11a-8d73130106d9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddatalease0fileapitestappenddataleasefab118820e5b", "javapathappenddatalease1fileapitestappenddataleasefab215293b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataleasefail.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataleasefail.json new file mode 100644 index 0000000000000..47e6f8335efa8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddataleasefail.json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5b85c0d-7e17-45a3-b107-bc91a35131ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E36FD2B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762a31-501e-0003-68d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "d5b85c0d-7e17-45a3-b107-bc91a35131ef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383/javapathappenddataleasefail151357cdd8d2b828354ae?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38a011ae-a31a-40ac-8bc4-22be6f7302eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E40EBDA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b2a-501f-008b-2fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "38a011ae-a31a-40ac-8bc4-22be6f7302eb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383/javapathappenddataleasefail151357cdd8d2b828354ae?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dfee79ae-87de-442d-8980-f079c0421f9e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b2b-501f-008b-30d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "dfee79ae-87de-442d-8980-f079c0421f9e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383/javapathappenddataleasefail151357cdd8d2b828354ae?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e252fb2-1045-433e-902e-0858f9331460" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E5101A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b2c-501f-008b-31d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "8e252fb2-1045-433e-902e-0858f9331460" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383/javapathappenddataleasefail151357cdd8d2b828354ae?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3505c59b-1e69-4935-b661-a804e5abc9b2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5E5101A4", + "x-ms-lease-id" : "c0856bc2-81af-4729-9481-a2578c08b6e5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762a6a-501e-0003-17d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "3505c59b-1e69-4935-b661-a804e5abc9b2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383/javapathappenddataleasefail151357cdd8d2b828354ae?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "123e7e9c-7979-4e23-980f-8befeaae7936", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "adc32b2d-501f-008b-32d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:adc32b2d-501f-008b-32d4-90f5a4000000\\nTime:2019-11-01T16:48:48.9881566Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "123e7e9c-7979-4e23-980f-8befeaae7936", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddataleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c3d454c1-8084-443e-85ae-0a78fa1b7590" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762a7a-501e-0003-24d4-904d7d000000", + "Body" : "jtfsappenddataleasefailjtfsappenddataleasefail0fileapitestappenddataleasefail49027383Fri, 01 Nov 2019 16:48:48 GMT\"0x8D75EEB5E36FD2B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "c3d454c1-8084-443e-85ae-0a78fa1b7590", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddataleasefail0fileapitestappenddataleasefail49027383?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61c77328-c084-4eeb-96ac-659e16a2248a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762a96-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "61c77328-c084-4eeb-96ac-659e16a2248a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddataleasefail0fileapitestappenddataleasefail49027383", "javapathappenddataleasefail151357cdd8d2b828354ae" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatamd5.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatamd5.json new file mode 100644 index 0000000000000..496ef38771485 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatamd5.json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f28425f-3a12-42f1-85db-5a50e7b7da42" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C26CF13", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257625f6-501e-0003-12d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "6f28425f-3a12-42f1-85db-5a50e7b7da42" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552/javapathappenddatamd51fileapitestappenddatamd596d966927dba?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df432bf2-b33d-409f-804d-24317c7009ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C38317F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8467-201f-006a-50d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "df432bf2-b33d-409f-804d-24317c7009ad" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552/javapathappenddatamd51fileapitestappenddatamd596d966927dba?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7690532-5384-4ff7-b333-10f3302c28e7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8468-201f-006a-51d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "f7690532-5384-4ff7-b333-10f3302c28e7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552/javapathappenddatamd51fileapitestappenddatamd596d966927dba?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "111532fb-948c-4bb6-8e07-7a809ca9a744" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C499B4E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8469-201f-006a-52d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "111532fb-948c-4bb6-8e07-7a809ca9a744" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552/javapathappenddatamd52fileapitestappenddatamd596d59653428f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a362255-75c8-4c8a-a255-d8643f9cb218" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5C51C0D7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e846a-201f-006a-53d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "8a362255-75c8-4c8a-a255-d8643f9cb218" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552/javapathappenddatamd52fileapitestappenddatamd596d59653428f?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e6847b5-f790-4e44-8606-4ffdf206b799", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e846b-201f-006a-54d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "0e6847b5-f790-4e44-8606-4ffdf206b799", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddatamd5&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92946606-93a4-42de-ae08-22c1630cde5c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257626aa-501e-0003-34d4-904d7d000000", + "Body" : "jtfsappenddatamd5jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552Fri, 01 Nov 2019 16:48:45 GMT\"0x8D75EEB5C26CF13\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "92946606-93a4-42de-ae08-22c1630cde5c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ead1a990-ae0b-425c-96fb-ff868b4cefd7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257626b4-501e-0003-3ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:45 GMT", + "x-ms-client-request-id" : "ead1a990-ae0b-425c-96fb-ff868b4cefd7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddatamd50fileapitestappenddatamd596d90769bf0552", "javapathappenddatamd51fileapitestappenddatamd596d966927dba", "javapathappenddatamd52fileapitestappenddatamd596d59653428f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatamin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatamin.json new file mode 100644 index 0000000000000..30cdf573062d1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatamin.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57698d5e-81ca-42d3-a344-f2e732ee25a9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5BACA6B2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257624d5-501e-0003-14d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "57698d5e-81ca-42d3-a344-f2e732ee25a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4/javapathappenddatamin1fileapitestappenddataminbe99028986eb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad5c50ce-fce1-4509-9bfe-230dd83cf8e0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5BB6CF03", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e845f-201f-006a-48d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "ad5c50ce-fce1-4509-9bfe-230dd83cf8e0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4/javapathappenddatamin1fileapitestappenddataminbe99028986eb?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca3a8f2c-ad19-492b-a4cf-0d6fbb4f8e31", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8460-201f-006a-49d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "ca3a8f2c-ad19-492b-a4cf-0d6fbb4f8e31" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4/javapathappenddatamin1fileapitestappenddataminbe99028986eb?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49fb7e9c-9536-42da-8856-d6d55860fc5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5BC6F162", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8461-201f-006a-4ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "49fb7e9c-9536-42da-8856-d6d55860fc5f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4/javapathappenddatamin1fileapitestappenddataminbe99028986eb?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "063a2151-f7dd-47f9-b81d-ec621c925492", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8462-201f-006a-4bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "063a2151-f7dd-47f9-b81d-ec621c925492" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0a4a6ab-7da2-458e-a7e2-87f0ca1209f4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762528-501e-0003-5ed4-904d7d000000", + "Body" : "jtfsappenddataminjtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4Fri, 01 Nov 2019 16:48:44 GMT\"0x8D75EEB5BACA6B2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "c0a4a6ab-7da2-458e-a7e2-87f0ca1209f4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "72dbba28-0cf1-4a19-aa28-de87db1f3efa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762533-501e-0003-66d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:44 GMT", + "x-ms-client-request-id" : "72dbba28-0cf1-4a19-aa28-de87db1f3efa" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddatamin0fileapitestappenddataminbe9009463bc0a4", "javapathappenddatamin1fileapitestappenddataminbe99028986eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatanullbody.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatanullbody.json new file mode 100644 index 0000000000000..f2916d32fc8fa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestappenddatanullbody.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bffe5362-5d6f-4f6d-a0fd-421b03828a3a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5D9AEEA9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257628e8-501e-0003-3cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:46 GMT", + "x-ms-client-request-id" : "bffe5362-5d6f-4f6d-a0fd-421b03828a3a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365/javapathappenddatanullbody1554628d531736041d42d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d01d8f50-62f6-4b74-83cb-ab4fcd7f6f50" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DA4BFBB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b22-501f-008b-27d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "d01d8f50-62f6-4b74-83cb-ab4fcd7f6f50" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365/javapathappenddatanullbody1554628d531736041d42d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6bb6b7db-f3c7-426d-95ea-48770371daf6", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b23-501f-008b-28d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "6bb6b7db-f3c7-426d-95ea-48770371daf6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365/javapathappenddatanullbody1554628d531736041d42d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1cc00a9e-f864-41c8-8004-f5ba7d1970f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DB493EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b24-501f-008b-29d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "1cc00a9e-f864-41c8-8004-f5ba7d1970f0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365/javapathappenddatanullbody29476880691130cfb94a0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5796847d-e6b0-47eb-a02a-3ffbf417c4c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5DBCC543", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b25-501f-008b-2ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "5796847d-e6b0-47eb-a02a-3ffbf417c4c1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsappenddatanullbody&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0264bd50-0e49-4fbd-b06c-ea24c6b287fe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762931-501e-0003-7dd4-904d7d000000", + "Body" : "jtfsappenddatanullbodyjtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365Fri, 01 Nov 2019 16:48:47 GMT\"0x8D75EEB5D9AEEA9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "0264bd50-0e49-4fbd-b06c-ea24c6b287fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bb8c8805-212f-4c4b-9208-09404676363d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762942-501e-0003-0cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:47 GMT", + "x-ms-client-request-id" : "bb8c8805-212f-4c4b-9208-09404676363d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsappenddatanullbody0fileapitestappenddatanullbody4e0992365", "javapathappenddatanullbody1554628d531736041d42d", "javapathappenddatanullbody29476880691130cfb94a0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[0].json new file mode 100644 index 0000000000000..c9599aa0b5748 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[0].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac3f321620a398efea624?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15801ff0-c9d6-4dc3-8bbe-d3d684d75b84" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB357EB400", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d31f-501e-0003-60d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "15801ff0-c9d6-4dc3-8bbe-d3d684d75b84" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac3f321620a398efea624/javapathcreateac1fileapitestcreateac3f333179edb2a8a0c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a6ef687-e993-4b26-9a50-6364cca7a2bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35893352", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8237-201f-006a-2ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "7a6ef687-e993-4b26-9a50-6364cca7a2bd" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac3f321620a398efea624/javapathcreateac1fileapitestcreateac3f333179edb2a8a0c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37df36d8-a532-4c3d-b8d0-24ae96d0d4f0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8238-201f-006a-2bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "37df36d8-a532-4c3d-b8d0-24ae96d0d4f0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac3f321620a398efea624/javapathcreateac1fileapitestcreateac3f333179edb2a8a0c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5fb517fd-6eed-4ec2-8546-e023135941ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB359A11EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8239-201f-006a-2cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "5fb517fd-6eed-4ec2-8546-e023135941ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac3f321620a398efea624/javapathcreateac1fileapitestcreateac3f333179edb2a8a0c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3950f69c-b339-404a-9ab5-0b54575a8425" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35A32E8E", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e823a-201f-006a-2dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "3950f69c-b339-404a-9ab5-0b54575a8425" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "27f8d6a1-33ea-452f-a802-98295c6ee6e3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d388-501e-0003-3ad4-904d7d000000", + "Body" : "jtfscreateacjtfscreateac0fileapitestcreateac3f321620a398efea624Fri, 01 Nov 2019 16:47:40 GMT\"0x8D75EEB357EB400\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "27f8d6a1-33ea-452f-a802-98295c6ee6e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac3f321620a398efea624?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37e1aa35-a3b3-46a8-82ec-ee4885ddcdff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d3a1-501e-0003-51d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "37e1aa35-a3b3-46a8-82ec-ee4885ddcdff" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0fileapitestcreateac3f321620a398efea624", "javapathcreateac1fileapitestcreateac3f333179edb2a8a0c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[1].json new file mode 100644 index 0000000000000..2664a73e243fd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[1].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "baf13fdb-35bc-4423-8672-aadb60de6c6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35C36B4C", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d3d1-501e-0003-7dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "baf13fdb-35bc-4423-8672-aadb60de6c6b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb/javapathcreateac1fileapitestcreateac5c155097876da2ff1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "155150b0-50a1-4d3b-bd70-ccbcdc1f99bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35CE3808", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e823b-201f-006a-2ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "155150b0-50a1-4d3b-bd70-ccbcdc1f99bf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb/javapathcreateac1fileapitestcreateac5c155097876da2ff1?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fda29284-f046-4133-861a-6925300de677", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e823c-201f-006a-2fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "fda29284-f046-4133-861a-6925300de677" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb/javapathcreateac1fileapitestcreateac5c155097876da2ff1?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eff065f9-f455-488a-b4f0-ee79f10822ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35DFA87F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e823d-201f-006a-30d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "eff065f9-f455-488a-b4f0-ee79f10822ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb/javapathcreateac1fileapitestcreateac5c155097876da2ff1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93f5a094-a747-4cb1-95a2-2b7afc866845" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35E895C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e823e-201f-006a-31d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "93f5a094-a747-4cb1-95a2-2b7afc866845" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c5cf0bf3-a4fb-4c56-9811-506067542e81" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d44e-501e-0003-73d4-904d7d000000", + "Body" : "jtfscreateacjtfscreateac0fileapitestcreateac5c1590648b1c72d46ebFri, 01 Nov 2019 16:47:40 GMT\"0x8D75EEB35C36B4C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "c5cf0bf3-a4fb-4c56-9811-506067542e81", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "967090fa-b862-492f-98ba-40d192394552" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d45d-501e-0003-01d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "967090fa-b862-492f-98ba-40d192394552" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0fileapitestcreateac5c1590648b1c72d46eb", "javapathcreateac1fileapitestcreateac5c155097876da2ff1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[2].json new file mode 100644 index 0000000000000..6e1f9e3773653 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[2].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac8d1031587634eb42542?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e54c770-d777-4afb-a701-1fc3f35b107f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3602F174", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d47a-501e-0003-1bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "2e54c770-d777-4afb-a701-1fc3f35b107f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac8d1031587634eb42542/javapathcreateac1fileapitestcreateac8d1240335d1ace8e0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "457609dd-3fb9-4e9a-b1b0-c9900505183d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB360D2CAB", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8240-201f-006a-32d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "457609dd-3fb9-4e9a-b1b0-c9900505183d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac8d1031587634eb42542/javapathcreateac1fileapitestcreateac8d1240335d1ace8e0?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f28120a0-604f-4e95-8d80-5c77be9c4a2e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8241-201f-006a-33d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "f28120a0-604f-4e95-8d80-5c77be9c4a2e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac8d1031587634eb42542/javapathcreateac1fileapitestcreateac8d1240335d1ace8e0?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "02514647-65cb-4f54-95f3-2ffa7e866d0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB361D658C", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8242-201f-006a-34d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "02514647-65cb-4f54-95f3-2ffa7e866d0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac8d1031587634eb42542/javapathcreateac1fileapitestcreateac8d1240335d1ace8e0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7e5517a-46f9-4f0a-b23d-16742a4745d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36265F53", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8243-201f-006a-35d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "f7e5517a-46f9-4f0a-b23d-16742a4745d8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca6d0d33-afb9-4023-bc05-fa3927044592" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d4cf-501e-0003-67d4-904d7d000000", + "Body" : "jtfscreateacjtfscreateac0fileapitestcreateac8d1031587634eb42542Fri, 01 Nov 2019 16:47:41 GMT\"0x8D75EEB3602F174\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "ca6d0d33-afb9-4023-bc05-fa3927044592", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac8d1031587634eb42542?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "69d1588e-393a-402c-ab60-31ddaa0f873c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d4da-501e-0003-72d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:40 GMT", + "x-ms-client-request-id" : "69d1588e-393a-402c-ab60-31ddaa0f873c" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0fileapitestcreateac8d1031587634eb42542", "javapathcreateac1fileapitestcreateac8d1240335d1ace8e0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[3].json new file mode 100644 index 0000000000000..2c8d8935ed636 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[3].json @@ -0,0 +1,180 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04e071a1-b767-4213-a2f1-474e8179343f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB363F90E3", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d4e5-501e-0003-7cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "04e071a1-b767-4213-a2f1-474e8179343f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54/javapathcreateac1fileapitestcreateac43e32701ef2a13eb9?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff177cdc-c73c-4fc7-a48b-fa233c583870" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36499D27", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8244-201f-006a-36d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "ff177cdc-c73c-4fc7-a48b-fa233c583870" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54/javapathcreateac1fileapitestcreateac43e32701ef2a13eb9?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "660eb8e3-bcb0-430f-86eb-cd37a93879c8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8245-201f-006a-37d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "660eb8e3-bcb0-430f-86eb-cd37a93879c8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54/javapathcreateac1fileapitestcreateac43e32701ef2a13eb9?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd9b8c86-457f-4aeb-8890-17b3226cbff8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB365A97ED", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8246-201f-006a-38d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "dd9b8c86-457f-4aeb-8890-17b3226cbff8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54/javapathcreateac1fileapitestcreateac43e32701ef2a13eb9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc34147c-65a9-49d0-8345-dd863bac5cca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:41 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", + "ETag" : "0x8D75EEB365A97ED", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:41 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575d524-501e-0003-35d4-904d7d000000", + "x-ms-client-request-id" : "fc34147c-65a9-49d0-8345-dd863bac5cca", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54/javapathcreateac1fileapitestcreateac43e32701ef2a13eb9?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b62ac6e9-dcc2-40bc-85e7-2e21f9e96da2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB366B0CAB", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8247-201f-006a-39d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "b62ac6e9-dcc2-40bc-85e7-2e21f9e96da2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9a88bae-cd2b-43ba-8c67-555fda10efaf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d558-501e-0003-67d4-904d7d000000", + "Body" : "jtfscreateacjtfscreateac0fileapitestcreateac43e7042604aa429db54Fri, 01 Nov 2019 16:47:41 GMT\"0x8D75EEB363F90E3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "e9a88bae-cd2b-43ba-8c67-555fda10efaf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac43e7042604aa429db54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90072699-5116-4a28-b2f6-4c93909b06e8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d581-501e-0003-0fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "90072699-5116-4a28-b2f6-4c93909b06e8" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0fileapitestcreateac43e7042604aa429db54", "javapathcreateac1fileapitestcreateac43e32701ef2a13eb9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[4].json new file mode 100644 index 0000000000000..18304b27e6910 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[4].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a5878ea-4774-441a-ab84-00664ef323a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB368384B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d5b1-501e-0003-39d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "9a5878ea-4774-441a-ab84-00664ef323a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0/javapathcreateac1fileapitestcreateacfcf14361c4fd1e7db?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b23322c3-e6b2-455c-9fc1-5aee8ba36e68" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB368D8984", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8248-201f-006a-3ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "b23322c3-e6b2-455c-9fc1-5aee8ba36e68" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0/javapathcreateac1fileapitestcreateacfcf14361c4fd1e7db?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5b3a623-73dc-4f02-820d-ad899392ccf9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8249-201f-006a-3bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "b5b3a623-73dc-4f02-820d-ad899392ccf9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0/javapathcreateac1fileapitestcreateacfcf14361c4fd1e7db?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9dbdc7c2-7ef0-4b8e-b14b-0f1374f83dbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB369E33F1", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e824a-201f-006a-3cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "9dbdc7c2-7ef0-4b8e-b14b-0f1374f83dbe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0/javapathcreateac1fileapitestcreateacfcf14361c4fd1e7db?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "69fa4b1e-e952-466d-8629-f004b7bcf7bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36A66B52", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e824b-201f-006a-3dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "69fa4b1e-e952-466d-8629-f004b7bcf7bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8fa35252-448b-44f9-90d7-16d5e3e898f8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d648-501e-0003-41d4-904d7d000000", + "Body" : "jtfscreateacjtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0Fri, 01 Nov 2019 16:47:42 GMT\"0x8D75EEB368384B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "8fa35252-448b-44f9-90d7-16d5e3e898f8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adcb58f9-b2cb-47da-a3a8-695e8c4ef647" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d65b-501e-0003-51d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "adcb58f9-b2cb-47da-a3a8-695e8c4ef647" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0fileapitestcreateacfcf71169e44b4e1dba0", "javapathcreateac1fileapitestcreateacfcf14361c4fd1e7db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[5].json new file mode 100644 index 0000000000000..3f481dc5663b1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateac[5].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5bcddcc1-f2e1-476d-ab19-c87d1e220a59" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36BF1282", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d67f-501e-0003-71d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:41 GMT", + "x-ms-client-request-id" : "5bcddcc1-f2e1-476d-ab19-c87d1e220a59" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c/javapathcreateac1fileapitestcreateac4c3051852381beb34?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5415c41d-3e95-45d6-8742-492442870dd8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36CF71B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e824c-201f-006a-3ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "5415c41d-3e95-45d6-8742-492442870dd8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c/javapathcreateac1fileapitestcreateac4c3051852381beb34?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee1f2c89-b496-4627-94eb-0f635929d489", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e824d-201f-006a-3fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "ee1f2c89-b496-4627-94eb-0f635929d489" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c/javapathcreateac1fileapitestcreateac4c3051852381beb34?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca0d6a72-bc9a-4155-bb02-a097f1b7f91e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36E045FF", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e824e-201f-006a-40d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "ca0d6a72-bc9a-4155-bb02-a097f1b7f91e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c/javapathcreateac1fileapitestcreateac4c3051852381beb34?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b3da5e2-940b-458c-9378-736d057c69e9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36E045FF", + "x-ms-lease-id" : "3030fce3-7fc4-49c9-985c-1ac43a54df1d", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d6fa-501e-0003-59d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "0b3da5e2-940b-458c-9378-736d057c69e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c/javapathcreateac1fileapitestcreateac4c3051852381beb34?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2de3e3f8-8741-4fdc-9f09-366a0656fea4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB36F51FE9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e824f-201f-006a-41d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "2de3e3f8-8741-4fdc-9f09-366a0656fea4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "073537fc-aa3c-4abe-96a8-32e8f82e3e46" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d71d-501e-0003-7cd4-904d7d000000", + "Body" : "jtfscreateacjtfscreateac0fileapitestcreateac4c3324919c4418cf80cFri, 01 Nov 2019 16:47:42 GMT\"0x8D75EEB36BF1282\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "073537fc-aa3c-4abe-96a8-32e8f82e3e46", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateac0fileapitestcreateac4c3324919c4418cf80c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c8c5e96-1eb3-44f4-b431-33b6ab1a0b66" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d731-501e-0003-0fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "8c8c5e96-1eb3-44f4-b431-33b6ab1a0b66" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateac0fileapitestcreateac4c3324919c4418cf80c", "javapathcreateac1fileapitestcreateac4c3051852381beb34" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[0].json new file mode 100644 index 0000000000000..218130082df59 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail38447007026090c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "028cffa9-81bf-4c3b-a651-74dd63fa78ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB370DB69B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d741-501e-0003-1dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "028cffa9-81bf-4c3b-a651-74dd63fa78ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail38447007026090c/javapathcreateacfail1fileapitestcreateacfail38490213cf74b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ae3adff-103f-434d-8eae-f20142c12911" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB37179625", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8250-201f-006a-42d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "3ae3adff-103f-434d-8eae-f20142c12911" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail38447007026090c/javapathcreateacfail1fileapitestcreateacfail38490213cf74b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88b02ea0-a94e-40b7-af64-b1d8eacf5897", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8251-201f-006a-43d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "88b02ea0-a94e-40b7-af64-b1d8eacf5897" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail38447007026090c/javapathcreateacfail1fileapitestcreateacfail38490213cf74b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62fed398-6cb1-4f1c-b22d-a6636d683674" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB372E5575", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8252-201f-006a-44d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "62fed398-6cb1-4f1c-b22d-a6636d683674" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail38447007026090c/javapathcreateacfail1fileapitestcreateacfail38490213cf74b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "105deac7-9193-448a-9b01-b1d2b8cbd40a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8253-201f-006a-45d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8253-201f-006a-45d4-9012d1000000\\nTime:2019-11-01T16:47:43.2858207Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "105deac7-9193-448a-9b01-b1d2b8cbd40a", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2ec13d2-2a39-48c4-8b7f-6abae97cde02" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d7b4-501e-0003-08d4-904d7d000000", + "Body" : "jtfscreateacfailjtfscreateacfail0fileapitestcreateacfail38447007026090cFri, 01 Nov 2019 16:47:43 GMT\"0x8D75EEB370DB69B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "c2ec13d2-2a39-48c4-8b7f-6abae97cde02", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail38447007026090c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "513db264-1aa0-4f96-aec3-9ace48ea0a32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d7bc-501e-0003-10d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "513db264-1aa0-4f96-aec3-9ace48ea0a32" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0fileapitestcreateacfail38447007026090c", "javapathcreateacfail1fileapitestcreateacfail38490213cf74b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[1].json new file mode 100644 index 0000000000000..3fa9f8dc5d730 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3f2338ec-c327-4746-a071-96989bc24569" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB374F8715", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d7c7-501e-0003-1ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:42 GMT", + "x-ms-client-request-id" : "3f2338ec-c327-4746-a071-96989bc24569" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1/javapathcreateacfail1fileapitestcreateacfaila964500642cda?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9c232d6-1db6-42b4-b8d2-4f9bf1987f2f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3759464A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8254-201f-006a-46d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "e9c232d6-1db6-42b4-b8d2-4f9bf1987f2f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1/javapathcreateacfail1fileapitestcreateacfaila964500642cda?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2e7a2bb-a9e2-4f3c-bd8d-e556cd1179d1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8255-201f-006a-47d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "f2e7a2bb-a9e2-4f3c-bd8d-e556cd1179d1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1/javapathcreateacfail1fileapitestcreateacfaila964500642cda?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "110f98ba-dbc1-4411-a7a7-6210924f6437" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB376AADD8", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8256-201f-006a-48d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "110f98ba-dbc1-4411-a7a7-6210924f6437" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1/javapathcreateacfail1fileapitestcreateacfaila964500642cda?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a356723-c413-4290-aa0e-d830361fa000" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8257-201f-006a-49d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8257-201f-006a-49d4-9012d1000000\\nTime:2019-11-01T16:47:43.6810981Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "5a356723-c413-4290-aa0e-d830361fa000", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2996ce84-f875-4906-ab54-e1d11aeb864c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d832-501e-0003-77d4-904d7d000000", + "Body" : "jtfscreateacfailjtfscreateacfail0fileapitestcreateacfaila9685130430b0a1Fri, 01 Nov 2019 16:47:43 GMT\"0x8D75EEB374F8715\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "2996ce84-f875-4906-ab54-e1d11aeb864c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "793734c1-1e97-4bf8-a882-bf7d8621a9d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d83c-501e-0003-01d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "793734c1-1e97-4bf8-a882-bf7d8621a9d8" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0fileapitestcreateacfaila9685130430b0a1", "javapathcreateacfail1fileapitestcreateacfaila964500642cda" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[2].json new file mode 100644 index 0000000000000..97c9906808d56 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail31257944d7638ee?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c893a12-05b9-4ba5-a83a-65ec7ca59c61" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB378D3806", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d849-501e-0003-0ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "4c893a12-05b9-4ba5-a83a-65ec7ca59c61" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail31257944d7638ee/javapathcreateacfail1fileapitestcreateacfail3127867207f67?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c7a02ed-e41a-408d-a1c9-f0a1fe87edf8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB37983CBF", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8258-201f-006a-4ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "8c7a02ed-e41a-408d-a1c9-f0a1fe87edf8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail31257944d7638ee/javapathcreateacfail1fileapitestcreateacfail3127867207f67?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18c6ce17-24cb-4269-9e04-6c5ebfd95a5a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8259-201f-006a-4bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "18c6ce17-24cb-4269-9e04-6c5ebfd95a5a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail31257944d7638ee/javapathcreateacfail1fileapitestcreateacfail3127867207f67?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce7c4709-dfb9-4534-83e0-2f40f6adb2b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB37A9BEF6", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e825a-201f-006a-4cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "ce7c4709-dfb9-4534-83e0-2f40f6adb2b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail31257944d7638ee/javapathcreateacfail1fileapitestcreateacfail3127867207f67?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44aa0263-a47d-45b2-8742-1c30e75d1e93" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e825b-201f-006a-4dd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e825b-201f-006a-4dd4-9012d1000000\\nTime:2019-11-01T16:47:44.0893853Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "44aa0263-a47d-45b2-8742-1c30e75d1e93", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8110305b-d733-42ab-a34a-a4bc3b8e7972" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d8b2-501e-0003-6fd4-904d7d000000", + "Body" : "jtfscreateacfailjtfscreateacfail0fileapitestcreateacfail31257944d7638eeFri, 01 Nov 2019 16:47:43 GMT\"0x8D75EEB378D3806\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "8110305b-d733-42ab-a34a-a4bc3b8e7972", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail31257944d7638ee?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f49d1d9-4685-414e-99b8-3133b576762c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d8c8-501e-0003-02d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "9f49d1d9-4685-414e-99b8-3133b576762c" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0fileapitestcreateacfail31257944d7638ee", "javapathcreateacfail1fileapitestcreateacfail3127867207f67" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[3].json new file mode 100644 index 0000000000000..65b1d90a3f68a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5b3b270-8c16-458b-ba22-b808323fc2f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB37CA4CA6", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d8d4-501e-0003-0ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "f5b3b270-8c16-458b-ba22-b808323fc2f3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b/javapathcreateacfail1fileapitestcreateacfailfc82281411b10?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3a26e337-e547-4882-80d5-6684b99cd6b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB37D46A9A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e825c-201f-006a-4ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "3a26e337-e547-4882-80d5-6684b99cd6b4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b/javapathcreateacfail1fileapitestcreateacfailfc82281411b10?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e2747ec3-6ab7-4f28-8c2b-f849a59dfc81", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e825d-201f-006a-4fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "e2747ec3-6ab7-4f28-8c2b-f849a59dfc81" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b/javapathcreateacfail1fileapitestcreateacfailfc82281411b10?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d549e440-d8a2-4433-982b-8c8684dadfc3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB37E52D18", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e825e-201f-006a-50d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "d549e440-d8a2-4433-982b-8c8684dadfc3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b/javapathcreateacfail1fileapitestcreateacfailfc82281411b10", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ffdba47-3dd0-4e5d-9fd0-9a7f40a47a02" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:43 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", + "ETag" : "0x8D75EEB37E52D18", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:44 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575d91b-501e-0003-4ed4-904d7d000000", + "x-ms-client-request-id" : "3ffdba47-3dd0-4e5d-9fd0-9a7f40a47a02", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b/javapathcreateacfail1fileapitestcreateacfailfc82281411b10?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e99ac06a-e0db-407d-b265-1ad0e1ccb521" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e825f-201f-006a-51d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e825f-201f-006a-51d4-9012d1000000\\nTime:2019-11-01T16:47:44.5517105Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "e99ac06a-e0db-407d-b265-1ad0e1ccb521", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aaa457bc-800b-401b-a901-e0bacfc9c83d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d933-501e-0003-66d4-904d7d000000", + "Body" : "jtfscreateacfailjtfscreateacfail0fileapitestcreateacfailfc8007661d3875bFri, 01 Nov 2019 16:47:44 GMT\"0x8D75EEB37CA4CA6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:43 GMT", + "x-ms-client-request-id" : "aaa457bc-800b-401b-a901-e0bacfc9c83d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29520063-7852-4e05-8049-0ea1bf50707e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d93c-501e-0003-6ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "29520063-7852-4e05-8049-0ea1bf50707e" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0fileapitestcreateacfailfc8007661d3875b", "javapathcreateacfail1fileapitestcreateacfailfc82281411b10" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[4].json new file mode 100644 index 0000000000000..c560f6424bf17 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7e0de9c-b493-4418-93d8-2f09d40bd77f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3821A4FF", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d98c-501e-0003-33d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "b7e0de9c-b493-4418-93d8-2f09d40bd77f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe/javapathcreateacfail1fileapitestcreateacfail7e753476cbf91?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c4d38bb-2fc9-4863-b9ed-5e8415543e73" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB382F89D5", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8260-201f-006a-52d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "7c4d38bb-2fc9-4863-b9ed-5e8415543e73" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe/javapathcreateacfail1fileapitestcreateacfail7e753476cbf91?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "548af2a3-350f-41cf-bb2e-ef0a2b13ce0a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8261-201f-006a-53d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "548af2a3-350f-41cf-bb2e-ef0a2b13ce0a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe/javapathcreateacfail1fileapitestcreateacfail7e753476cbf91?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3dfa0d86-e5db-44aa-9f67-2cb88ea6efdd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38403893", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8262-201f-006a-54d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "3dfa0d86-e5db-44aa-9f67-2cb88ea6efdd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe/javapathcreateacfail1fileapitestcreateacfail7e753476cbf91?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c04f5234-f576-4308-9030-a4997bf69c4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38403893", + "x-ms-lease-id" : "3a7ece42-365b-438d-9744-b190dc41e682", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575da26-501e-0003-3cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "c04f5234-f576-4308-9030-a4997bf69c4c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe/javapathcreateacfail1fileapitestcreateacfail7e753476cbf91?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae829ce9-c8bb-42f3-836a-d23023487206" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "123e8263-201f-006a-55d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:123e8263-201f-006a-55d4-9012d1000000\\nTime:2019-11-01T16:47:45.1321188Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "ae829ce9-c8bb-42f3-836a-d23023487206", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8db6b05-635b-4be3-b495-f4a4cc7994ca" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575da66-501e-0003-70d4-904d7d000000", + "Body" : "jtfscreateacfailjtfscreateacfail0fileapitestcreateacfail7e729338685befeFri, 01 Nov 2019 16:47:44 GMT\"0x8D75EEB3821A4FF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "b8db6b05-635b-4be3-b495-f4a4cc7994ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateacfail0fileapitestcreateacfail7e729338685befe?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d0ac7ca-444e-45a5-974f-d39613c1d188" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575da71-501e-0003-7bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "2d0ac7ca-444e-45a5-974f-d39613c1d188" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateacfail0fileapitestcreateacfail7e729338685befe", "javapathcreateacfail1fileapitestcreateacfail7e753476cbf91" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatedefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatedefaults.json new file mode 100644 index 0000000000000..80dbe925f6d7e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatedefaults.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c9b4edc-c904-46b0-80a4-948eb3b47903" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB33D5E244", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575cf89-501e-0003-18d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "4c9b4edc-c904-46b0-80a4-948eb3b47903" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc/javapathcreatedefaults1fileapitestcreatedefaults5dd610684f6?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "024046b8-09eb-41f7-afa4-cfa9205d9fe7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB33E8C872", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e821d-201f-006a-10d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "024046b8-09eb-41f7-afa4-cfa9205d9fe7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc/javapathcreatedefaults1fileapitestcreatedefaults5dd610684f6?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f1ed419-9633-4b53-b115-7f8ef0e8a458", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e821e-201f-006a-11d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "6f1ed419-9633-4b53-b115-7f8ef0e8a458" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc/javapathcreatedefaults1fileapitestcreatedefaults5dd610684f6?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "543da907-b9f9-44ad-8572-ffe62cc39ff1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB33F91564", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e821f-201f-006a-12d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "543da907-b9f9-44ad-8572-ffe62cc39ff1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc/javapathcreatedefaults2fileapitestcreatedefaults5dd63298523?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9f145c7-8d6f-4cbe-b78c-7f0906cec3f9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34024D24", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8220-201f-006a-13d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "e9f145c7-8d6f-4cbe-b78c-7f0906cec3f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a364909a-160e-4730-8cf2-3097827552d1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d014-501e-0003-15d4-904d7d000000", + "Body" : "jtfscreatedefaultsjtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfcFri, 01 Nov 2019 16:47:37 GMT\"0x8D75EEB33D5E244\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "a364909a-160e-4730-8cf2-3097827552d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3f1df17-3c95-486e-bfad-6b6f95d85a90" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d02e-501e-0003-2dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "e3f1df17-3c95-486e-bfad-6b6f95d85a90" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedefaults0fileapitestcreatedefaults5dd88387a7bfc", "javapathcreatedefaults1fileapitestcreatedefaults5dd610684f6", "javapathcreatedefaults2fileapitestcreatedefaults5dd63298523" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateerror.json new file mode 100644 index 0000000000000..cdd313e1838ab --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateerror.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0fileapitestcreateerror29b527314be642a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c445c91-2cd1-45e9-aaf4-226dcc28a825" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB341B8436", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d04e-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "4c445c91-2cd1-45e9-aaf4-226dcc28a825" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateerror0fileapitestcreateerror29b527314be642a8/javapathcreateerror1fileapitestcreateerror29b25745d9d580?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "900a9bc3-1301-4387-9198-75f152187d5b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3425C177", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8221-201f-006a-14d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "900a9bc3-1301-4387-9198-75f152187d5b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateerror0fileapitestcreateerror29b527314be642a8/javapathcreateerror1fileapitestcreateerror29b25745d9d580?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0355df6-02a3-4fb4-8676-7cec691c6e6e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8222-201f-006a-15d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "a0355df6-02a3-4fb4-8676-7cec691c6e6e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateerror0fileapitestcreateerror29b527314be642a8/javapathcreateerror1fileapitestcreateerror29b25745d9d580?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f527e915-15ae-442c-8b06-cf173d500d0a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3435AFBD", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8223-201f-006a-16d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "f527e915-15ae-442c-8b06-cf173d500d0a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateerror0fileapitestcreateerror29b527314be642a8/javapathcreateerror2fileapitestcreateerror29b236777d92b1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9acc2e27-dded-4799-8239-ea0cee28bbd9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8224-201f-006a-17d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8224-201f-006a-17d4-9012d1000000\\nTime:2019-11-01T16:47:38.3003260Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "9acc2e27-dded-4799-8239-ea0cee28bbd9", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "21bca176-e6e1-49e6-be2b-887ebac65276" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d0af-501e-0003-27d4-904d7d000000", + "Body" : "jtfscreateerrorjtfscreateerror0fileapitestcreateerror29b527314be642a8Fri, 01 Nov 2019 16:47:38 GMT\"0x8D75EEB341B8436\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "21bca176-e6e1-49e6-be2b-887ebac65276", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0fileapitestcreateerror29b527314be642a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b348ecb-4e08-40a0-a242-ec9ae1e09e54" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d0b9-501e-0003-31d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "1b348ecb-4e08-40a0-a242-ec9ae1e09e54" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateerror0fileapitestcreateerror29b527314be642a8", "javapathcreateerror1fileapitestcreateerror29b25745d9d580", "javapathcreateerror2fileapitestcreateerror29b236777d92b1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateheaders[0].json new file mode 100644 index 0000000000000..db1d125249289 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateheaders[0].json @@ -0,0 +1,180 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a051f89-084a-4bf6-b513-78907402afcc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3457AE77", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d0ca-501e-0003-42d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "4a051f89-084a-4bf6-b513-78907402afcc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601/javapathcreateheaders1fileapitestcreateheaders66e648642b14?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0260ab19-f4fc-46b5-bc4d-f7a2293b71c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34642C73", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8225-201f-006a-18d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "0260ab19-f4fc-46b5-bc4d-f7a2293b71c0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601/javapathcreateheaders1fileapitestcreateheaders66e648642b14?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26a155c0-a870-47cd-bd47-921d6dd8565c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8226-201f-006a-19d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "26a155c0-a870-47cd-bd47-921d6dd8565c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601/javapathcreateheaders1fileapitestcreateheaders66e648642b14?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90851524-fdfb-4c07-b77d-a59c740c4833" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3476A99A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8227-201f-006a-1ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "90851524-fdfb-4c07-b77d-a59c740c4833" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601/javapathcreateheaders2fileapitestcreateheaders66e74544b907?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5f12747-80aa-4e61-8b4f-532f06967a16" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB348179E5", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8228-201f-006a-1bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "f5f12747-80aa-4e61-8b4f-532f06967a16" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601/javapathcreateheaders2fileapitestcreateheaders66e74544b907", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b00236ab-68bf-4fea-8434-b3760489cd6f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:38 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:38 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", + "ETag" : "0x8D75EEB348179E5", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:38 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2575d11d-501e-0003-10d4-904d7d000000", + "x-ms-client-request-id" : "b00236ab-68bf-4fea-8434-b3760489cd6f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83469dba-fe5a-4d80-9a16-49c55002ffb8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d135-501e-0003-28d4-904d7d000000", + "Body" : "jtfscreateheadersjtfscreateheaders0fileapitestcreateheaders66e224312d9601Fri, 01 Nov 2019 16:47:38 GMT\"0x8D75EEB3457AE77\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "83469dba-fe5a-4d80-9a16-49c55002ffb8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0fileapitestcreateheaders66e224312d9601?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66913d26-8505-4231-8fde-471b17fa842d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d13f-501e-0003-31d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "66913d26-8505-4231-8fde-471b17fa842d" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateheaders0fileapitestcreateheaders66e224312d9601", "javapathcreateheaders1fileapitestcreateheaders66e648642b14", "javapathcreateheaders2fileapitestcreateheaders66e74544b907" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateheaders[1].json new file mode 100644 index 0000000000000..7083a1d6bf392 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreateheaders[1].json @@ -0,0 +1,184 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6cad54a6-0264-47a2-980c-9b32649dfe94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34A8EB70", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d150-501e-0003-40d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "6cad54a6-0264-47a2-980c-9b32649dfe94" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a/javapathcreateheaders1fileapitestcreateheadersa3313228ebf9?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7b57e5e-9649-4b6d-8b59-76e0afd114a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34B3D670", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8229-201f-006a-1cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "a7b57e5e-9649-4b6d-8b59-76e0afd114a5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a/javapathcreateheaders1fileapitestcreateheadersa3313228ebf9?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "12c85cd5-26b9-4817-af09-d5f9a11af238", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e822a-201f-006a-1dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "12c85cd5-26b9-4817-af09-d5f9a11af238" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a/javapathcreateheaders1fileapitestcreateheadersa3313228ebf9?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de4077ca-bd18-4e77-8925-c3a3af876f72" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34C44111", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e822b-201f-006a-1ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "de4077ca-bd18-4e77-8925-c3a3af876f72" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a/javapathcreateheaders2fileapitestcreateheadersa3388525ab25?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a06eb7f8-d8e1-4df1-ba05-d18014b05959" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34CD41A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e822c-201f-006a-1fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "a06eb7f8-d8e1-4df1-ba05-d18014b05959" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a/javapathcreateheaders2fileapitestcreateheadersa3388525ab25", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b99dde34-fd04-4962-b971-d4c5d8cd5f8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:38 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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEB34CD41A0", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:39 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2575d1c3-501e-0003-26d4-904d7d000000", + "x-ms-client-request-id" : "b99dde34-fd04-4962-b971-d4c5d8cd5f8c", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4be69fc-b03b-4796-a270-fb5e83171209" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d1ce-501e-0003-31d4-904d7d000000", + "Body" : "jtfscreateheadersjtfscreateheaders0fileapitestcreateheadersa339996427e64aFri, 01 Nov 2019 16:47:39 GMT\"0x8D75EEB34A8EB70\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "d4be69fc-b03b-4796-a270-fb5e83171209", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateheaders0fileapitestcreateheadersa339996427e64a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0162ec17-be31-489c-93d2-d9683f2d38c7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d1d5-501e-0003-38d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "0162ec17-be31-489c-93d2-d9683f2d38c7" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateheaders0fileapitestcreateheadersa339996427e64a", "javapathcreateheaders1fileapitestcreateheadersa3313228ebf9", "javapathcreateheaders2fileapitestcreateheadersa3388525ab25" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemetadata[0].json new file mode 100644 index 0000000000000..fb973d738bdba --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemetadata[0].json @@ -0,0 +1,180 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6f09349-0d6c-4295-8f7d-4cb83e501ff4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34ED549E", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d1df-501e-0003-42d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:38 GMT", + "x-ms-client-request-id" : "b6f09349-0d6c-4295-8f7d-4cb83e501ff4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238/javapathcreatemetadata1fileapitestcreatemetadata29a49646cbf?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "859e1c8d-2e42-499d-8f98-08e0dd0723fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB34F93FEE", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e822d-201f-006a-20d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "859e1c8d-2e42-499d-8f98-08e0dd0723fe" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238/javapathcreatemetadata1fileapitestcreatemetadata29a49646cbf?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab3b860c-80ba-4254-b9b2-d0e5ea340e68", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e822e-201f-006a-21d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "ab3b860c-80ba-4254-b9b2-d0e5ea340e68" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238/javapathcreatemetadata1fileapitestcreatemetadata29a49646cbf?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d49a0dc7-5e2c-4d4f-909d-e8a9e0dad648" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3509567B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e822f-201f-006a-22d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "d49a0dc7-5e2c-4d4f-909d-e8a9e0dad648" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238/javapathcreatemetadata1fileapitestcreatemetadata29a49646cbf?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc31a170-afff-4dcd-873b-5e70fd957e1d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35124D8D", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8231-201f-006a-24d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "dc31a170-afff-4dcd-873b-5e70fd957e1d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238/javapathcreatemetadata1fileapitestcreatemetadata29a49646cbf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a99310a3-0560-4d21-abb2-0dc2c80455ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:39 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", + "ETag" : "0x8D75EEB35124D8D", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:39 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2575d235-501e-0003-13d4-904d7d000000", + "x-ms-client-request-id" : "a99310a3-0560-4d21-abb2-0dc2c80455ac", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fa774f6-e77c-4de0-b9e8-40f979733186" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d248-501e-0003-25d4-904d7d000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0fileapitestcreatemetadata29a5503599238Fri, 01 Nov 2019 16:47:39 GMT\"0x8D75EEB34ED549E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "7fa774f6-e77c-4de0-b9e8-40f979733186", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata29a5503599238?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c941f4cf-04c6-4066-8ea1-99b18ba48da7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d25f-501e-0003-39d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "c941f4cf-04c6-4066-8ea1-99b18ba48da7" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0fileapitestcreatemetadata29a5503599238", "javapathcreatemetadata1fileapitestcreatemetadata29a49646cbf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemetadata[1].json new file mode 100644 index 0000000000000..1b03f63735858 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemetadata[1].json @@ -0,0 +1,182 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cec7055a-de2f-432a-8260-25a40ab6287b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35378B3C", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575d27b-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "cec7055a-de2f-432a-8260-25a40ab6287b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741/javapathcreatemetadata1fileapitestcreatemetadata2f7294398a6?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "427a964b-b2f7-4c98-ba21-632ee9ce736d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35423762", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8233-201f-006a-26d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "427a964b-b2f7-4c98-ba21-632ee9ce736d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741/javapathcreatemetadata1fileapitestcreatemetadata2f7294398a6?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b50f7574-2013-4471-b552-309a1717bda2", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8234-201f-006a-27d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "b50f7574-2013-4471-b552-309a1717bda2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741/javapathcreatemetadata1fileapitestcreatemetadata2f7294398a6?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3bcb9c1-74dd-4091-a086-5d088a2518e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB35528458", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8235-201f-006a-28d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "e3bcb9c1-74dd-4091-a086-5d088a2518e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741/javapathcreatemetadata1fileapitestcreatemetadata2f7294398a6?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "097b7f9c-c7cb-4fb9-808f-23d8efd56da6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB355AC677", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8236-201f-006a-29d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "097b7f9c-c7cb-4fb9-808f-23d8efd56da6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741/javapathcreatemetadata1fileapitestcreatemetadata2f7294398a6", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f48027d6-6419-43e4-9539-9f44ac29c9d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D75EEB355AC677", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:40 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2575d2e4-501e-0003-2cd4-904d7d000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "f48027d6-6419-43e4-9539-9f44ac29c9d8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7196057-8cbc-469d-9b89-83c5799574d6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575d2fb-501e-0003-42d4-904d7d000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0fileapitestcreatemetadata2f71622709741Fri, 01 Nov 2019 16:47:39 GMT\"0x8D75EEB35378B3C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "f7196057-8cbc-469d-9b89-83c5799574d6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0fileapitestcreatemetadata2f71622709741?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a15713ca-0e8c-4e33-a463-44b9b9b4e616" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575d30d-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:39 GMT", + "x-ms-client-request-id" : "a15713ca-0e8c-4e33-a463-44b9b9b4e616" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0fileapitestcreatemetadata2f71622709741", "javapathcreatemetadata1fileapitestcreatemetadata2f7294398a6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemin.json new file mode 100644 index 0000000000000..0277412642348 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatemin.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin0fileapitestcreateminbc8131712317f12dbd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "686be304-63aa-47ee-b355-6faf9236a154" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB333FEDE3", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ce0e-501e-0003-43d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:36 GMT", + "x-ms-client-request-id" : "686be304-63aa-47ee-b355-6faf9236a154" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemin0fileapitestcreateminbc8131712317f12dbd/javapathcreatemin1fileapitestcreateminbc829950fdddcc8a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9288b82c-36dc-444c-a089-4cb6523d2e3c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB33846238", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8218-201f-006a-0cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:36 GMT", + "x-ms-client-request-id" : "9288b82c-36dc-444c-a089-4cb6523d2e3c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemin0fileapitestcreateminbc8131712317f12dbd/javapathcreatemin1fileapitestcreateminbc829950fdddcc8a?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1cb4db1-0c68-4d27-ba5d-e13d82fd3a61", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e821a-201f-006a-0dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:36 GMT", + "x-ms-client-request-id" : "f1cb4db1-0c68-4d27-ba5d-e13d82fd3a61" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemin0fileapitestcreateminbc8131712317f12dbd/javapathcreatemin1fileapitestcreateminbc829950fdddcc8a?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8c8ae1d-4dd0-4e7a-8250-346004981157" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB33A1A523", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e821b-201f-006a-0ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "d8c8ae1d-4dd0-4e7a-8250-346004981157" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatemin0fileapitestcreateminbc8131712317f12dbd/javapathcreatemin2fileapitestcreateminbc825114f444dd3a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71a2f5c1-0010-49dc-ae1d-c61db8be679b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB33AB9881", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e821c-201f-006a-0fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:37 GMT", + "x-ms-client-request-id" : "71a2f5c1-0010-49dc-ae1d-c61db8be679b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80a6ba06-e5a5-4506-81d7-77c63b015a3b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575cf29-501e-0003-40d4-904d7d000000", + "Body" : "jtfscreateminjtfscreatemin0fileapitestcreateminbc8131712317f12dbdFri, 01 Nov 2019 16:47:36 GMT\"0x8D75EEB333FEDE3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:36 GMT", + "x-ms-client-request-id" : "80a6ba06-e5a5-4506-81d7-77c63b015a3b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin0fileapitestcreateminbc8131712317f12dbd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2853570-ac85-4000-882e-880ba70af2a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575cf76-501e-0003-07d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:36 GMT", + "x-ms-client-request-id" : "b2853570-ac85-4000-882e-880ba70af2a4" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemin0fileapitestcreateminbc8131712317f12dbd", "javapathcreatemin1fileapitestcreateminbc829950fdddcc8a", "javapathcreatemin2fileapitestcreateminbc825114f444dd3a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatepermissionsandumask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatepermissionsandumask.json new file mode 100644 index 0000000000000..9aa352c3231d1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestcreatepermissionsandumask.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepermissionsandumask021931d8063fa36b8a4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dec8853b-3449-4a9d-ae3b-b6fe1554118c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3868585E", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575daa9-501e-0003-2ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "dec8853b-3449-4a9d-ae3b-b6fe1554118c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatepermissionsandumask021931d8063fa36b8a4f/javapathcreatepermissionsandumask142860e926bd7bb0b1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c5f84687-e3b1-4a36-803f-cb20d1646945" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38731E49", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8264-201f-006a-56d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "c5f84687-e3b1-4a36-803f-cb20d1646945" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatepermissionsandumask021931d8063fa36b8a4f/javapathcreatepermissionsandumask142860e926bd7bb0b1?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98c6112d-1f21-4d0f-925a-1cf76d8def72", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8265-201f-006a-57d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "98c6112d-1f21-4d0f-925a-1cf76d8def72" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatepermissionsandumask021931d8063fa36b8a4f/javapathcreatepermissionsandumask142860e926bd7bb0b1?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6ddf295-d080-4e54-8f5f-624aa090af95" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB388BDF10", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8266-201f-006a-58d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "c6ddf295-d080-4e54-8f5f-624aa090af95" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatepermissionsandumask021931d8063fa36b8a4f/javapathcreatepermissionsandumask142860e926bd7bb0b1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50624e68-08da-4fd0-9ded-ed8c633584fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38942423", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8267-201f-006a-59d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "50624e68-08da-4fd0-9ded-ed8c633584fe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatepermissionsandumask&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ea60ca0-073c-4da6-9034-76ba8b4357ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575db39-501e-0003-30d4-904d7d000000", + "Body" : "jtfscreatepermissionsandumaskjtfscreatepermissionsandumask021931d8063fa36b8a4fFri, 01 Nov 2019 16:47:45 GMT\"0x8D75EEB3868585E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:44 GMT", + "x-ms-client-request-id" : "1ea60ca0-073c-4da6-9034-76ba8b4357ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepermissionsandumask021931d8063fa36b8a4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c423eac-70f6-4465-8f80-18ec525591a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575db46-501e-0003-3cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "2c423eac-70f6-4465-8f80-18ec525591a5" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatepermissionsandumask021931d8063fa36b8a4f", "javapathcreatepermissionsandumask142860e926bd7bb0b1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[0].json new file mode 100644 index 0000000000000..49a36430072e7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[0].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac853770619a67ac43815?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac492531-f40d-4e56-bcd3-4d13db4c579c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39417C66", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575dcaa-501e-0003-7bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "ac492531-f40d-4e56-bcd3-4d13db4c579c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac853770619a67ac43815/javapathdeleteac1fileapitestdeleteac853801170832ab728?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2da7d338-a94f-4beb-bc70-b3e15b075a1f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39503AE4", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8270-201f-006a-62d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "2da7d338-a94f-4beb-bc70-b3e15b075a1f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac853770619a67ac43815/javapathdeleteac1fileapitestdeleteac853801170832ab728?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5032068f-e358-4731-92c8-9265503acc53", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8271-201f-006a-63d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "5032068f-e358-4731-92c8-9265503acc53" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac853770619a67ac43815/javapathdeleteac1fileapitestdeleteac853801170832ab728?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b9bfda06-3367-4538-9ded-630e2c82cf02" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3961DC42", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8272-201f-006a-64d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "b9bfda06-3367-4538-9ded-630e2c82cf02" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac853770619a67ac43815/javapathdeleteac1fileapitestdeleteac853801170832ab728", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a101bcc-9799-41e4-8fe1-2572a45862ae" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e8273-201f-006a-65d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "0a101bcc-9799-41e4-8fe1-2572a45862ae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1087878-0e4b-4ddc-a6c4-52bb67788342" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575dd0e-501e-0003-53d4-904d7d000000", + "Body" : "jtfsdeleteacjtfsdeleteac0fileapitestdeleteac853770619a67ac43815Fri, 01 Nov 2019 16:47:46 GMT\"0x8D75EEB39417C66\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "a1087878-0e4b-4ddc-a6c4-52bb67788342", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac853770619a67ac43815?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da8228c5-42fd-41ed-b288-b51b90dc536e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575dd1d-501e-0003-61d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "da8228c5-42fd-41ed-b288-b51b90dc536e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0fileapitestdeleteac853770619a67ac43815", "javapathdeleteac1fileapitestdeleteac853801170832ab728" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[1].json new file mode 100644 index 0000000000000..b4de290614ce5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[1].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0d6df84-cb0d-451d-80c5-4950ec094d9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3982B05F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575dd2f-501e-0003-72d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "a0d6df84-cb0d-451d-80c5-4950ec094d9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e/javapathdeleteac1fileapitestdeleteac88b3214373a9a9b77?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f7cbd16-9c67-43b2-8158-9a8396512b0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB398D7A94", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8274-201f-006a-66d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "9f7cbd16-9c67-43b2-8158-9a8396512b0c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e/javapathdeleteac1fileapitestdeleteac88b3214373a9a9b77?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c58571fb-6ed8-4d26-b749-85df8901b62e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8275-201f-006a-67d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "c58571fb-6ed8-4d26-b749-85df8901b62e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e/javapathdeleteac1fileapitestdeleteac88b3214373a9a9b77?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f7c45dd-eed8-4484-b9ab-e0e235f7071a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB399DFA44", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8276-201f-006a-68d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "2f7c45dd-eed8-4484-b9ab-e0e235f7071a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e/javapathdeleteac1fileapitestdeleteac88b3214373a9a9b77", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fda617ed-2301-4663-bfeb-26c3eb918d22" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e8277-201f-006a-69d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "fda617ed-2301-4663-bfeb-26c3eb918d22" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6780d3f-92e4-40e6-8626-4efbaf86654d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575dd6b-501e-0003-27d4-904d7d000000", + "Body" : "jtfsdeleteacjtfsdeleteac0fileapitestdeleteac88b824700ff97221f0eFri, 01 Nov 2019 16:47:47 GMT\"0x8D75EEB3982B05F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "b6780d3f-92e4-40e6-8626-4efbaf86654d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57c47c61-3c03-4272-af6c-63aff9cee6ce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575dd75-501e-0003-2fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "57c47c61-3c03-4272-af6c-63aff9cee6ce" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0fileapitestdeleteac88b824700ff97221f0e", "javapathdeleteac1fileapitestdeleteac88b3214373a9a9b77" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[2].json new file mode 100644 index 0000000000000..4acf94db19868 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[2].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac27e513314724fde1977?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "828640f6-f74f-4aec-9cfb-a2086b2ea1fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39BF2887", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575dd8f-501e-0003-44d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "828640f6-f74f-4aec-9cfb-a2086b2ea1fb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac27e513314724fde1977/javapathdeleteac1fileapitestdeleteac27e5087140ba8b89b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8a60144-cdc2-47a6-8beb-8304ac1ff464" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39CA9EF4", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8278-201f-006a-6ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "b8a60144-cdc2-47a6-8beb-8304ac1ff464" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac27e513314724fde1977/javapathdeleteac1fileapitestdeleteac27e5087140ba8b89b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16f4e688-77a4-4770-94a2-ec6c11c73051", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8279-201f-006a-6bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "16f4e688-77a4-4770-94a2-ec6c11c73051" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac27e513314724fde1977/javapathdeleteac1fileapitestdeleteac27e5087140ba8b89b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f38c968c-ee7f-4ee6-a90f-7a2f80a268a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39DC0E90", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e827a-201f-006a-6cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "f38c968c-ee7f-4ee6-a90f-7a2f80a268a7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac27e513314724fde1977/javapathdeleteac1fileapitestdeleteac27e5087140ba8b89b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0c67ed07-40b3-4716-b7da-df920518cf05" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e827b-201f-006a-6dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "0c67ed07-40b3-4716-b7da-df920518cf05" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57657042-578d-497c-b452-4ac1627faf3f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ddf0-501e-0003-18d4-904d7d000000", + "Body" : "jtfsdeleteacjtfsdeleteac0fileapitestdeleteac27e513314724fde1977Fri, 01 Nov 2019 16:47:47 GMT\"0x8D75EEB39BF2887\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "57657042-578d-497c-b452-4ac1627faf3f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac27e513314724fde1977?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "480480aa-1de9-4420-b19c-30916bb256f8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575de17-501e-0003-34d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "480480aa-1de9-4420-b19c-30916bb256f8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0fileapitestdeleteac27e513314724fde1977", "javapathdeleteac1fileapitestdeleteac27e5087140ba8b89b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[3].json new file mode 100644 index 0000000000000..9cd44011e6fb5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[3].json @@ -0,0 +1,178 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eab30c3a-80b6-46ef-aa96-298d2ca3f5a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39FD75C0", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575de28-501e-0003-45d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "eab30c3a-80b6-46ef-aa96-298d2ca3f5a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067/javapathdeleteac1fileapitestdeleteac1257348854e67cf1e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "00cb70ec-ff59-461a-9d18-f99eeacec3f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A0A2682", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e827c-201f-006a-6ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "00cb70ec-ff59-461a-9d18-f99eeacec3f5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067/javapathdeleteac1fileapitestdeleteac1257348854e67cf1e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc73cd54-72cf-417a-af6c-a3a750626e94", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e827d-201f-006a-6fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "bc73cd54-72cf-417a-af6c-a3a750626e94" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067/javapathdeleteac1fileapitestdeleteac1257348854e67cf1e?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30c883b6-dfe4-4c19-afaa-248c9d443b42" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A1EB46D", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e827e-201f-006a-70d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "30c883b6-dfe4-4c19-afaa-248c9d443b42" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067/javapathdeleteac1fileapitestdeleteac1257348854e67cf1e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a49541c4-1874-440d-aa5a-7a6a2be9b378" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:47 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", + "ETag" : "0x8D75EEB3A1EB46D", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:48 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575de8c-501e-0003-1dd4-904d7d000000", + "x-ms-client-request-id" : "a49541c4-1874-440d-aa5a-7a6a2be9b378", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067/javapathdeleteac1fileapitestdeleteac1257348854e67cf1e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86674e35-2e16-4b9c-bb85-9ada1f60a683" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e827f-201f-006a-71d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "86674e35-2e16-4b9c-bb85-9ada1f60a683" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ff014c7-e00c-4581-9555-328753c456c8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575deb4-501e-0003-3ed4-904d7d000000", + "Body" : "jtfsdeleteacjtfsdeleteac0fileapitestdeleteac1259691960d012b2067Fri, 01 Nov 2019 16:47:47 GMT\"0x8D75EEB39FD75C0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "8ff014c7-e00c-4581-9555-328753c456c8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac1259691960d012b2067?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01d7f9e3-f53d-48d9-9798-36d85f36341e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575dec4-501e-0003-4dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "01d7f9e3-f53d-48d9-9798-36d85f36341e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0fileapitestdeleteac1259691960d012b2067", "javapathdeleteac1fileapitestdeleteac1257348854e67cf1e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[4].json new file mode 100644 index 0000000000000..932cc12df9845 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[4].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c54e2d63-7fc9-4d14-bd90-53e427f0a678" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A475DF1", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575dede-501e-0003-60d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:47 GMT", + "x-ms-client-request-id" : "c54e2d63-7fc9-4d14-bd90-53e427f0a678" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805/javapathdeleteac1fileapitestdeleteacebe19073c7a2c160a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22b68c10-5493-4d6c-8f05-843cbd7d8b2e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A514C1A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8280-201f-006a-72d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "22b68c10-5493-4d6c-8f05-843cbd7d8b2e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805/javapathdeleteac1fileapitestdeleteacebe19073c7a2c160a?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c3646023-ae1e-49ea-a69e-6a43042638dc", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8281-201f-006a-73d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "c3646023-ae1e-49ea-a69e-6a43042638dc" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805/javapathdeleteac1fileapitestdeleteacebe19073c7a2c160a?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a675ea3-9f24-4264-9978-49f83cd2edbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A617FE9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8282-201f-006a-74d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "5a675ea3-9f24-4264-9978-49f83cd2edbe" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805/javapathdeleteac1fileapitestdeleteacebe19073c7a2c160a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9624110a-a29f-4e6a-81aa-b566ac1b5f54" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e8284-201f-006a-76d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "9624110a-a29f-4e6a-81aa-b566ac1b5f54" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ebc2ff13-0989-4965-a6ec-5955eb664c30" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575df2a-501e-0003-27d4-904d7d000000", + "Body" : "jtfsdeleteacjtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805Fri, 01 Nov 2019 16:47:48 GMT\"0x8D75EEB3A475DF1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "ebc2ff13-0989-4965-a6ec-5955eb664c30", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0079de75-d30c-409f-abf7-0dfde77b3ed6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575df30-501e-0003-2dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "0079de75-d30c-409f-abf7-0dfde77b3ed6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0fileapitestdeleteacebe07009cf76ddd8805", "javapathdeleteac1fileapitestdeleteacebe19073c7a2c160a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[5].json new file mode 100644 index 0000000000000..121be1c0e2ab0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteac[5].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a78821e-d9ee-40aa-9cc6-825f8ba809a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A822810", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575df3d-501e-0003-3ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "7a78821e-d9ee-40aa-9cc6-825f8ba809a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f/javapathdeleteac1fileapitestdeleteac73a143292751b433c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2bbdd5a-39e0-43d5-b6a1-af6f96b28495" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3A8D2F4D", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8286-201f-006a-78d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "a2bbdd5a-39e0-43d5-b6a1-af6f96b28495" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f/javapathdeleteac1fileapitestdeleteac73a143292751b433c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b5e933f-ec82-49be-92a5-01ffc569a82c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8287-201f-006a-79d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "4b5e933f-ec82-49be-92a5-01ffc569a82c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f/javapathdeleteac1fileapitestdeleteac73a143292751b433c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08a13350-04d7-4584-8b0e-a21eb95f0f64" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3AA12893", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8288-201f-006a-7ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "08a13350-04d7-4584-8b0e-a21eb95f0f64" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f/javapathdeleteac1fileapitestdeleteac73a143292751b433c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "481c9f47-19f2-46b3-b94d-8df89041fd31" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3AA12893", + "x-ms-lease-id" : "e0f90766-3016-4e21-a3f8-e93aee72d64c", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575df8e-501e-0003-7dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "481c9f47-19f2-46b3-b94d-8df89041fd31" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f/javapathdeleteac1fileapitestdeleteac73a143292751b433c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "56aa15f4-9b22-4175-b62e-a593cfa1d781" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e8289-201f-006a-7bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "56aa15f4-9b22-4175-b62e-a593cfa1d781" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fdecfcc7-7a02-4e2e-90da-f41c5949b7cb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575dfb3-501e-0003-1fd4-904d7d000000", + "Body" : "jtfsdeleteacjtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2fFri, 01 Nov 2019 16:47:48 GMT\"0x8D75EEB3A822810\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "fdecfcc7-7a02-4e2e-90da-f41c5949b7cb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b7f1541-8520-49ca-8057-32e87146cecc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575dfc6-501e-0003-30d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "9b7f1541-8520-49ca-8057-32e87146cecc" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0fileapitestdeleteac73a37297b915fe22b2f", "javapathdeleteac1fileapitestdeleteac73a143292751b433c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[0].json new file mode 100644 index 0000000000000..de38672b56c9f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99f5680d-9464-408c-80f7-ead79abd1a6a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3AC99ECA", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575dfe3-501e-0003-47d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "99f5680d-9464-408c-80f7-ead79abd1a6a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d/javapathdeleteacfail1fileapitestdeleteacfailc1033686e5434?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32806c16-c8a5-41d3-b1be-bb202baa0626" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3AD47E9C", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e828a-201f-006a-7cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "32806c16-c8a5-41d3-b1be-bb202baa0626" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d/javapathdeleteacfail1fileapitestdeleteacfailc1033686e5434?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16bef38a-c142-4d1f-b7e0-c2d34c3826a1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e828b-201f-006a-7dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "16bef38a-c142-4d1f-b7e0-c2d34c3826a1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d/javapathdeleteacfail1fileapitestdeleteacfailc1033686e5434?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0e1be4b-2c95-4ebc-ab8d-307456c3db16" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3AE8B4D8", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e828c-201f-006a-7ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "a0e1be4b-2c95-4ebc-ab8d-307456c3db16" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d/javapathdeleteacfail1fileapitestdeleteacfailc1033686e5434", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "000d29e4-7ec7-41a4-9c31-4681e55d558b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e828d-201f-006a-7fd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e828d-201f-006a-7fd4-9012d1000000\\nTime:2019-11-01T16:47:49.5382053Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "000d29e4-7ec7-41a4-9c31-4681e55d558b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "deadb6d1-5200-4239-bda1-f28c5fe9c498" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e04a-501e-0003-2ad4-904d7d000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169dFri, 01 Nov 2019 16:47:49 GMT\"0x8D75EEB3AC99ECA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "deadb6d1-5200-4239-bda1-f28c5fe9c498", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b837349-9e0e-4367-b56b-e7c802a37182" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e059-501e-0003-39d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:48 GMT", + "x-ms-client-request-id" : "2b837349-9e0e-4367-b56b-e7c802a37182" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0fileapitestdeleteacfailc10777790ba169d", "javapathdeleteacfail1fileapitestdeleteacfailc1033686e5434" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[1].json new file mode 100644 index 0000000000000..0b01e2cba350f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c450522-78d1-4597-b471-fa284370cb3a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B08FDA6", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e072-501e-0003-4ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "1c450522-78d1-4597-b471-fa284370cb3a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00/javapathdeleteacfail1fileapitestdeleteacfaila3c0894947575?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "666a8ea6-fbd4-4c17-8712-95a713401fa4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B136809", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e828e-201f-006a-80d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "666a8ea6-fbd4-4c17-8712-95a713401fa4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00/javapathdeleteacfail1fileapitestdeleteacfaila3c0894947575?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9d5c082-fcb8-4775-98c8-eb1c2374b267", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e828f-201f-006a-01d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "d9d5c082-fcb8-4775-98c8-eb1c2374b267" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00/javapathdeleteacfail1fileapitestdeleteacfaila3c0894947575?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bea0bb38-1f42-4c7a-aed2-7e6fc911b40c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B24AED7", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8290-201f-006a-02d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "bea0bb38-1f42-4c7a-aed2-7e6fc911b40c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00/javapathdeleteacfail1fileapitestdeleteacfaila3c0894947575", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "901bde17-5d7e-4121-a0ed-3b3c24dddaec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8291-201f-006a-03d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8291-201f-006a-03d4-9012d1000000\\nTime:2019-11-01T16:47:49.9274791Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "901bde17-5d7e-4121-a0ed-3b3c24dddaec", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3fa0372-6f29-4632-aa21-6e8a6276fee8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e0c6-501e-0003-19d4-904d7d000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00Fri, 01 Nov 2019 16:47:49 GMT\"0x8D75EEB3B08FDA6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "f3fa0372-6f29-4632-aa21-6e8a6276fee8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3cc30ad3-68a6-48a6-91c1-4ed2bce26045" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e0d4-501e-0003-27d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "3cc30ad3-68a6-48a6-91c1-4ed2bce26045" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0fileapitestdeleteacfaila3c62281051fb00", "javapathdeleteacfail1fileapitestdeleteacfaila3c0894947575" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[2].json new file mode 100644 index 0000000000000..f15c6a05ee925 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b416e0e1-100e-424c-9e1b-c47cce567b7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B44D971", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e0f8-501e-0003-48d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "b416e0e1-100e-424c-9e1b-c47cce567b7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf/javapathdeleteacfail1fileapitestdeleteacfail87845175cb2f9?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54b79cca-e8de-4893-83e8-f9e8c82bacd0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B4F3E6F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8292-201f-006a-04d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "54b79cca-e8de-4893-83e8-f9e8c82bacd0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf/javapathdeleteacfail1fileapitestdeleteacfail87845175cb2f9?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb819e43-deb4-49b6-bf00-d9156e800c87", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8293-201f-006a-05d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "eb819e43-deb4-49b6-bf00-d9156e800c87" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf/javapathdeleteacfail1fileapitestdeleteacfail87845175cb2f9?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eaecb8d9-c920-46e7-9b4a-f2e21a1f9b04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B61511A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8294-201f-006a-06d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "eaecb8d9-c920-46e7-9b4a-f2e21a1f9b04" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf/javapathdeleteacfail1fileapitestdeleteacfail87845175cb2f9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d94419f9-3eec-40ce-b75b-79d2d450785b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8295-201f-006a-07d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8295-201f-006a-07d4-9012d1000000\\nTime:2019-11-01T16:47:50.3247582Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "d94419f9-3eec-40ce-b75b-79d2d450785b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df10d822-8e43-447e-8e46-be8a22a2be97" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e14a-501e-0003-13d4-904d7d000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0fileapitestdeleteacfail878749619162adfFri, 01 Nov 2019 16:47:50 GMT\"0x8D75EEB3B44D971\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "df10d822-8e43-447e-8e46-be8a22a2be97", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2cf5b9a6-2ba9-4914-99f8-48f89085e63f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e15a-501e-0003-1fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "2cf5b9a6-2ba9-4914-99f8-48f89085e63f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0fileapitestdeleteacfail878749619162adf", "javapathdeleteacfail1fileapitestdeleteacfail87845175cb2f9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[3].json new file mode 100644 index 0000000000000..02028674cea28 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31b87da9-e707-4eef-a262-6e6961447bf5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B7FCAA8", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e17e-501e-0003-3ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:49 GMT", + "x-ms-client-request-id" : "31b87da9-e707-4eef-a262-6e6961447bf5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d/javapathdeleteacfail1fileapitestdeleteacfail0d4851150e948?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "743ffb40-e8bd-46ce-b206-3ca11a8a5528" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B8A43D7", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8296-201f-006a-08d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "743ffb40-e8bd-46ce-b206-3ca11a8a5528" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d/javapathdeleteacfail1fileapitestdeleteacfail0d4851150e948?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c3c81dab-b845-4a41-93b5-07ba3c5ba71b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8297-201f-006a-09d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "c3c81dab-b845-4a41-93b5-07ba3c5ba71b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d/javapathdeleteacfail1fileapitestdeleteacfail0d4851150e948?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dcfb7304-e9ec-45d1-ac0b-8c2b4a4c8735" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3B9AA6AD", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8298-201f-006a-0ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "dcfb7304-e9ec-45d1-ac0b-8c2b4a4c8735" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d/javapathdeleteacfail1fileapitestdeleteacfail0d4851150e948", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c3244450-71e5-44d6-a6a7-0c48412ac563" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:50 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", + "ETag" : "0x8D75EEB3B9AA6AD", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:50 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575e1dd-501e-0003-12d4-904d7d000000", + "x-ms-client-request-id" : "c3244450-71e5-44d6-a6a7-0c48412ac563", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d/javapathdeleteacfail1fileapitestdeleteacfail0d4851150e948", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a98275d-d403-4b3e-8d59-f9b9d429527d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8299-201f-006a-0bd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8299-201f-006a-0bd4-9012d1000000\\nTime:2019-11-01T16:47:50.7520592Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "2a98275d-d403-4b3e-8d59-f9b9d429527d", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "294fd08b-baf6-4ffa-b434-f74c87931cb7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e201-501e-0003-31d4-904d7d000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16dFri, 01 Nov 2019 16:47:50 GMT\"0x8D75EEB3B7FCAA8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "294fd08b-baf6-4ffa-b434-f74c87931cb7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1fa483ed-19b4-425e-8048-904abf8dc364" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e214-501e-0003-43d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "1fa483ed-19b4-425e-8048-904abf8dc364" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0fileapitestdeleteacfail0d410391df6b16d", "javapathdeleteacfail1fileapitestdeleteacfail0d4851150e948" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[4].json new file mode 100644 index 0000000000000..5da94e5c701ac --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeleteacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84aea3b1-f99f-4363-ad04-c975c5d93717" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3BC321EC", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e231-501e-0003-5dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "84aea3b1-f99f-4363-ad04-c975c5d93717" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d/javapathdeleteacfail1fileapitestdeleteacfail21715804e68f9?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cd1ca232-9541-487b-854c-3bf0d050ddf5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3BD8A798", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e829a-201f-006a-0cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "cd1ca232-9541-487b-854c-3bf0d050ddf5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d/javapathdeleteacfail1fileapitestdeleteacfail21715804e68f9?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "201e9d00-017f-410f-81e5-279b124f0960", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e829b-201f-006a-0dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "201e9d00-017f-410f-81e5-279b124f0960" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d/javapathdeleteacfail1fileapitestdeleteacfail21715804e68f9?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93b28577-91ed-48e9-b968-4d375a63bc0e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3BE8AE85", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e829c-201f-006a-0ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "93b28577-91ed-48e9-b968-4d375a63bc0e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d/javapathdeleteacfail1fileapitestdeleteacfail21715804e68f9?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26de3356-0303-473a-a18c-335cc1f1531a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3BE8AE85", + "x-ms-lease-id" : "be91bb48-22e2-43dc-ab82-decdeae13e4c", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e294-501e-0003-37d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "26de3356-0303-473a-a18c-335cc1f1531a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d/javapathdeleteacfail1fileapitestdeleteacfail21715804e68f9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2c44783-9213-4f79-b1b4-b5b4cbbb0d32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "123e829d-201f-006a-0fd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:123e829d-201f-006a-0fd4-9012d1000000\\nTime:2019-11-01T16:47:51.2654203Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "c2c44783-9213-4f79-b1b4-b5b4cbbb0d32", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4f7b99c-269b-464e-808b-be3b5787b92a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e2b6-501e-0003-58d4-904d7d000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2dFri, 01 Nov 2019 16:47:50 GMT\"0x8D75EEB3BC321EC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "a4f7b99c-269b-464e-808b-be3b5787b92a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49b78f3e-cd6d-4ac4-8c0c-a6fa9c533542" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e2c4-501e-0003-66d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "49b78f3e-cd6d-4ac4-8c0c-a6fa9c533542" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0fileapitestdeleteacfail21769639c0c6f2d", "javapathdeleteacfail1fileapitestdeleteacfail21715804e68f9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeletefiledoesnotexistanymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeletefiledoesnotexistanymore.json new file mode 100644 index 0000000000000..c7ea8359f5282 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeletefiledoesnotexistanymore.json @@ -0,0 +1,167 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54841af0-25dc-4c2e-a261-c8231b5f155f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38FE9A68", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575dc03-501e-0003-68d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "54841af0-25dc-4c2e-a261-c8231b5f155f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54/javapathdeletefiledoesnotexistanymore1210198fe756af6d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c77d140-f6ad-4721-81a9-9fc2a1ea6f61" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39082D83", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e826c-201f-006a-5ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "3c77d140-f6ad-4721-81a9-9fc2a1ea6f61" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54/javapathdeletefiledoesnotexistanymore1210198fe756af6d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5df1b559-3ffb-4a7e-af4f-e1148536a7b7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e826d-201f-006a-5fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "5df1b559-3ffb-4a7e-af4f-e1148536a7b7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54/javapathdeletefiledoesnotexistanymore1210198fe756af6d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "52ee082a-af36-485a-9dd2-df36e6bdd671" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB39184C1B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e826e-201f-006a-60d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "52ee082a-af36-485a-9dd2-df36e6bdd671" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54/javapathdeletefiledoesnotexistanymore1210198fe756af6d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a18c0e2d-2a40-4b73-a161-a4487e53289b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e826f-201f-006a-61d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:46 GMT", + "x-ms-client-request-id" : "a18c0e2d-2a40-4b73-a161-a4487e53289b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54/javapathdeletefiledoesnotexistanymore1210198fe756af6d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1222c759-52a7-432f-bd74-bea7e03f0bac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "2575dc59-501e-0003-31d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "1222c759-52a7-432f-bd74-bea7e03f0bac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefiledoesnotexistanymore&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e6ae2ffb-4f1f-4553-ac57-aebb3be6416e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575dc73-501e-0003-49d4-904d7d000000", + "Body" : "jtfsdeletefiledoesnotexistanymorejtfsdeletefiledoesnotexistanymore024291ea98b744ef54Fri, 01 Nov 2019 16:47:46 GMT\"0x8D75EEB38FE9A68\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "e6ae2ffb-4f1f-4553-ac57-aebb3be6416e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefiledoesnotexistanymore024291ea98b744ef54?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "143cdcae-b4d3-4ba0-a984-c040f44cb1be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575dc85-501e-0003-57d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "143cdcae-b4d3-4ba0-a984-c040f44cb1be" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefiledoesnotexistanymore024291ea98b744ef54", "javapathdeletefiledoesnotexistanymore1210198fe756af6d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeletemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeletemin.json new file mode 100644 index 0000000000000..a33ce9343bce1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestdeletemin.json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b7b03bf-a808-4c16-add8-a025a5951c04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38ADD2FE", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575db54-501e-0003-4ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "0b7b03bf-a808-4c16-add8-a025a5951c04" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48/javapathdeletemin1fileapitestdeletemin33f733810eba6d12?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7b5431a-a350-48c9-9506-6876f1f483d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38C4834F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8268-201f-006a-5ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "b7b5431a-a350-48c9-9506-6876f1f483d2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48/javapathdeletemin1fileapitestdeletemin33f733810eba6d12?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed2cb06b-06e7-4143-aa77-8c5269a3a5e9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8269-201f-006a-5bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "ed2cb06b-06e7-4143-aa77-8c5269a3a5e9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48/javapathdeletemin1fileapitestdeletemin33f733810eba6d12?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6367b77-e380-42f5-9175-88e8c6472daa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB38D8F71B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e826a-201f-006a-5cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "a6367b77-e380-42f5-9175-88e8c6472daa" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48/javapathdeletemin1fileapitestdeletemin33f733810eba6d12", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "747ff64d-bc9f-4b68-b9b6-9b61a3f3ede4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e826b-201f-006a-5dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "747ff64d-bc9f-4b68-b9b6-9b61a3f3ede4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ccb96bc-1713-4d13-89db-195a3aa90be1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575dbdd-501e-0003-43d4-904d7d000000", + "Body" : "jtfsdeleteminjtfsdeletemin0fileapitestdeletemin33f90150766cdddb48Fri, 01 Nov 2019 16:47:45 GMT\"0x8D75EEB38ADD2FE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "8ccb96bc-1713-4d13-89db-195a3aa90be1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7da75901-ab18-4fde-9514-07ebd5f208b8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575dbe6-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:45 GMT", + "x-ms-client-request-id" : "7da75901-ab18-4fde-9514-07ebd5f208b8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletemin0fileapitestdeletemin33f90150766cdddb48", "javapathdeletemin1fileapitestdeletemin33f733810eba6d12" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[0].json new file mode 100644 index 0000000000000..66db270f7a914 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[0].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85df9243-b6eb-4dd7-b911-ebef5edec643" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB608A3403", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762ecc-501e-0003-5cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "85df9243-b6eb-4dd7-b911-ebef5edec643" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf/javapathflushac1fileapitestflushac9c13648477a04fb7b3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83d05716-4d4b-4557-94de-f17fce26f0d7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60947DED", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b57-501f-008b-5cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "83d05716-4d4b-4557-94de-f17fce26f0d7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf/javapathflushac1fileapitestflushac9c13648477a04fb7b3?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9fdea03-8b39-4cb4-b2ed-d63673272037", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b58-501f-008b-5dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "f9fdea03-8b39-4cb4-b2ed-d63673272037" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf/javapathflushac1fileapitestflushac9c13648477a04fb7b3?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e78d26e-e1a9-406d-ba15-7d472e285e32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60A6B8A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b59-501f-008b-5ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "6e78d26e-e1a9-406d-ba15-7d472e285e32" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf/javapathflushac2fileapitestflushac9c1657753a6cebdcb2?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18ae5f08-997d-4b35-b73b-2c1b15a67c71" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60AF630B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b5a-501f-008b-5fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "18ae5f08-997d-4b35-b73b-2c1b15a67c71" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf/javapathflushac2fileapitestflushac9c1657753a6cebdcb2?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65a8d528-feb2-4c79-bfc5-f5d824ffc9f3", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b5b-501f-008b-60d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "65a8d528-feb2-4c79-bfc5-f5d824ffc9f3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf/javapathflushac2fileapitestflushac9c1657753a6cebdcb2?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d330d2e-fd19-4caf-b34c-ed6e76a254bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60C00A09", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b5c-501f-008b-61d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "9d330d2e-fd19-4caf-b34c-ed6e76a254bf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "909689ae-f00f-4b62-b57c-6ab4d1c2f5a1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762f21-501e-0003-28d4-904d7d000000", + "Body" : "jtfsflushacjtfsflushac0fileapitestflushac9c1918594b593edb98bfFri, 01 Nov 2019 16:48:52 GMT\"0x8D75EEB608A3403\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "909689ae-f00f-4b62-b57c-6ab4d1c2f5a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushac9c1918594b593edb98bf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b1aded0-5ac1-4e7f-a59f-af6066a0c2a9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762f39-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "2b1aded0-5ac1-4e7f-a59f-af6066a0c2a9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushac0fileapitestflushac9c1918594b593edb98bf", "javapathflushac1fileapitestflushac9c13648477a04fb7b3", "javapathflushac2fileapitestflushac9c1657753a6cebdcb2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[1].json new file mode 100644 index 0000000000000..3df1931414e32 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[1].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5635142f-47a3-4808-a258-d80c0039fa6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60D973FD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762f60-501e-0003-5dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "5635142f-47a3-4808-a258-d80c0039fa6b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353/javapathflushac1fileapitestflushacd98405085ada78c394?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36446e16-6d65-47f3-9c0c-202833827d05" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60E32EA9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b5d-501f-008b-62d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "36446e16-6d65-47f3-9c0c-202833827d05" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353/javapathflushac1fileapitestflushacd98405085ada78c394?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c63400d-675b-4421-9cb9-cff52d1e143a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b5e-501f-008b-63d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "8c63400d-675b-4421-9cb9-cff52d1e143a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353/javapathflushac1fileapitestflushacd98405085ada78c394?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "655a8116-c1f7-4f36-b15e-a369272d88ca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60F8AD7C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b5f-501f-008b-64d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "655a8116-c1f7-4f36-b15e-a369272d88ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353/javapathflushac2fileapitestflushacd9824149f969b0c013?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09c4a2ae-a937-4a41-935a-af3d771ac3ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB610171B7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b60-501f-008b-65d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "09c4a2ae-a937-4a41-935a-af3d771ac3ab" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353/javapathflushac2fileapitestflushacd9824149f969b0c013?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "503f7b98-5091-4c70-bf74-2793335050a0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b61-501f-008b-66d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "503f7b98-5091-4c70-bf74-2793335050a0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353/javapathflushac2fileapitestflushacd9824149f969b0c013?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c014e305-e3c4-45e7-8226-4610cfee7ff5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB6111E497", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b62-501f-008b-67d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "c014e305-e3c4-45e7-8226-4610cfee7ff5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f0448c0e-984c-4262-97fc-41c18b3e816e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762fd9-501e-0003-43d4-904d7d000000", + "Body" : "jtfsflushacjtfsflushac0fileapitestflushacd9870625b65117641353Fri, 01 Nov 2019 16:48:53 GMT\"0x8D75EEB60D973FD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "f0448c0e-984c-4262-97fc-41c18b3e816e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacd9870625b65117641353?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91ab6d8d-19f3-404c-8b99-172c4100247a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762fe6-501e-0003-4fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "91ab6d8d-19f3-404c-8b99-172c4100247a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushac0fileapitestflushacd9870625b65117641353", "javapathflushac1fileapitestflushacd98405085ada78c394", "javapathflushac2fileapitestflushacd9824149f969b0c013" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[2].json new file mode 100644 index 0000000000000..c3be4e733ae8d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[2].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e334928-986b-48e1-ad26-c904e9071c99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB612B9AAF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762ff0-501e-0003-59d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:52 GMT", + "x-ms-client-request-id" : "6e334928-986b-48e1-ad26-c904e9071c99" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f/javapathflushac1fileapitestflushac6bf677645b243e863d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c426ea3-94ff-4440-b03f-e219b7779b52" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB613568DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b63-501f-008b-68d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "7c426ea3-94ff-4440-b03f-e219b7779b52" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f/javapathflushac1fileapitestflushac6bf677645b243e863d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e77482f9-b33a-405d-bd88-691a40ebdd5b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b64-501f-008b-69d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "e77482f9-b33a-405d-bd88-691a40ebdd5b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f/javapathflushac1fileapitestflushac6bf677645b243e863d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4da6050-93a9-4068-a8f7-3ab2b8d5bd97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61467CB3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b65-501f-008b-6ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "e4da6050-93a9-4068-a8f7-3ab2b8d5bd97" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f/javapathflushac2fileapitestflushac6bf53172d7581e35b3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b9656647-7710-4d28-b023-109a4c7d2095" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB614FC3B2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b66-501f-008b-6bd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "b9656647-7710-4d28-b023-109a4c7d2095" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f/javapathflushac2fileapitestflushac6bf53172d7581e35b3?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88c655b5-6fc1-435b-ab45-b3d8ead4dfe2", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b67-501f-008b-6cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "88c655b5-6fc1-435b-ab45-b3d8ead4dfe2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f/javapathflushac2fileapitestflushac6bf53172d7581e35b3?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c77c65c5-bb8a-4e54-8274-18ce21721ca7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB615FD626", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b68-501f-008b-6dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "c77c65c5-bb8a-4e54-8274-18ce21721ca7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ed09569-3108-4450-940c-aa56a2560a83" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576304d-501e-0003-33d4-904d7d000000", + "Body" : "jtfsflushacjtfsflushac0fileapitestflushac6bf04332a8fd59e6542fFri, 01 Nov 2019 16:48:53 GMT\"0x8D75EEB612B9AAF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "1ed09569-3108-4450-940c-aa56a2560a83", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5993668a-68d9-406f-a5f9-cae083bd9a41" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576305b-501e-0003-40d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "5993668a-68d9-406f-a5f9-cae083bd9a41" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushac0fileapitestflushac6bf04332a8fd59e6542f", "javapathflushac1fileapitestflushac6bf677645b243e863d", "javapathflushac2fileapitestflushac6bf53172d7581e35b3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[3].json new file mode 100644 index 0000000000000..54996d5bcb28e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[3].json @@ -0,0 +1,223 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f97e7103-e1d8-4845-9985-8d3f9befebd7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB6178693B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576306b-501e-0003-4ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "f97e7103-e1d8-4845-9985-8d3f9befebd7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac1fileapitestflushacadc94514749dc7d50a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8621f5c-de1c-4252-a59d-56f71fc0307f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61826D07", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b69-501f-008b-6ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "d8621f5c-de1c-4252-a59d-56f71fc0307f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac1fileapitestflushacadc94514749dc7d50a?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc23863e-9b58-4301-9b6d-133e7b354939", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b6a-501f-008b-6fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "bc23863e-9b58-4301-9b6d-133e7b354939" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac1fileapitestflushacadc94514749dc7d50a?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "faaeea4f-a1d9-41e7-ade7-27217ee70873" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61934A48", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b6b-501f-008b-70d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "faaeea4f-a1d9-41e7-ade7-27217ee70873" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac2fileapitestflushacadc85053ba465fb583?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4ff0325-2523-4d2f-b74e-9b13e5a2811b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB619C2D85", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b6c-501f-008b-71d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "a4ff0325-2523-4d2f-b74e-9b13e5a2811b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac2fileapitestflushacadc85053ba465fb583?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "255f3f81-ebf4-41df-a9ec-ad54e7275acd", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b6d-501f-008b-72d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "255f3f81-ebf4-41df-a9ec-ad54e7275acd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac2fileapitestflushacadc85053ba465fb583", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "150a6dab-7b2b-4f77-b555-0b6c57247bbd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:53 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", + "ETag" : "0x8D75EEB619C2D85", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:54 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "257630bc-501e-0003-0fd4-904d7d000000", + "x-ms-client-request-id" : "150a6dab-7b2b-4f77-b555-0b6c57247bbd", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad/javapathflushac2fileapitestflushacadc85053ba465fb583?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "749e4a03-df8f-4315-8a19-dbd825f8b78c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61B4EF15", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b6e-501f-008b-73d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "749e4a03-df8f-4315-8a19-dbd825f8b78c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d72369b9-3c5d-43e9-a059-576dc2a0c2cc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257630d8-501e-0003-29d4-904d7d000000", + "Body" : "jtfsflushacjtfsflushac0fileapitestflushacadc94561e917177b15adFri, 01 Nov 2019 16:48:54 GMT\"0x8D75EEB6178693B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "d72369b9-3c5d-43e9-a059-576dc2a0c2cc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacadc94561e917177b15ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "562bb350-7da3-4804-a7c9-01966fb759b5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257630e2-501e-0003-32d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "562bb350-7da3-4804-a7c9-01966fb759b5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushac0fileapitestflushacadc94561e917177b15ad", "javapathflushac1fileapitestflushacadc94514749dc7d50a", "javapathflushac2fileapitestflushacadc85053ba465fb583" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[4].json new file mode 100644 index 0000000000000..7d94e047bdbd3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[4].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "357b0e92-5ee0-450d-884c-3e2ed1e310b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61CD9DBD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257630e7-501e-0003-37d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:53 GMT", + "x-ms-client-request-id" : "357b0e92-5ee0-450d-884c-3e2ed1e310b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd/javapathflushac1fileapitestflushacecc5633581e50e7db7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9122f815-b27e-4965-be78-89ed3daa91a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61D7C4CB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b6f-501f-008b-74d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "9122f815-b27e-4965-be78-89ed3daa91a7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd/javapathflushac1fileapitestflushacecc5633581e50e7db7?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "11f08b9c-3317-4a5e-b505-2ffc2488b9ed", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b70-501f-008b-75d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "11f08b9c-3317-4a5e-b505-2ffc2488b9ed" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd/javapathflushac1fileapitestflushacecc5633581e50e7db7?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01c90631-b93b-4d8f-9c69-de5ed203413d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61E867B2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b71-501f-008b-76d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "01c90631-b93b-4d8f-9c69-de5ed203413d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd/javapathflushac2fileapitestflushacecc03019be1b894a20?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "edec2638-481d-4bd2-8bb9-383b3cc4e31e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB61F48A51", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b72-501f-008b-77d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "edec2638-481d-4bd2-8bb9-383b3cc4e31e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd/javapathflushac2fileapitestflushacecc03019be1b894a20?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "12a3da31-b68b-4c2a-b752-7f9d0ea5ce9d", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b73-501f-008b-78d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "12a3da31-b68b-4c2a-b752-7f9d0ea5ce9d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd/javapathflushac2fileapitestflushacecc03019be1b894a20?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d906818-5ee9-496b-926d-aebbe28f7bb1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB6209C03E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b74-501f-008b-79d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "3d906818-5ee9-496b-926d-aebbe28f7bb1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6648f1e4-41b2-48a6-90d9-8d7546f357a0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576316b-501e-0003-2dd4-904d7d000000", + "Body" : "jtfsflushacjtfsflushac0fileapitestflushacecc160158921a413a9bdFri, 01 Nov 2019 16:48:54 GMT\"0x8D75EEB61CD9DBD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "6648f1e4-41b2-48a6-90d9-8d7546f357a0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushacecc160158921a413a9bd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ade675c-f4f6-4690-896a-4fab002673a8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25763176-501e-0003-36d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "1ade675c-f4f6-4690-896a-4fab002673a8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushac0fileapitestflushacecc160158921a413a9bd", "javapathflushac1fileapitestflushacecc5633581e50e7db7", "javapathflushac2fileapitestflushacecc03019be1b894a20" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[5].json new file mode 100644 index 0000000000000..db59de7c1a720 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushac[5].json @@ -0,0 +1,215 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6cf0a72d-8b06-4b52-9154-c3bdf39cfd98" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62212437", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576317d-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "6cf0a72d-8b06-4b52-9154-c3bdf39cfd98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac1fileapitestflushaccee34027a2a56e455d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb63c359-6379-46f1-9d3f-8ce8c9489794" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB622C3F08", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b75-501f-008b-7ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "eb63c359-6379-46f1-9d3f-8ce8c9489794" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac1fileapitestflushaccee34027a2a56e455d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "abe54b03-c92d-4d8b-bf55-2c9cf6346611", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b76-501f-008b-7bd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "abe54b03-c92d-4d8b-bf55-2c9cf6346611" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac1fileapitestflushaccee34027a2a56e455d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b833427f-1652-4c59-b564-b8c931e3b2d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62446050", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b77-501f-008b-7cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "b833427f-1652-4c59-b564-b8c931e3b2d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac2fileapitestflushaccee499447801d53bf0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d10582f9-1c9d-4373-8e05-06dc15c7e9da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB624DD943", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b78-501f-008b-7dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "d10582f9-1c9d-4373-8e05-06dc15c7e9da" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac2fileapitestflushaccee499447801d53bf0?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f70ab25d-6dbe-45a3-81b0-501b9f6aea9a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b79-501f-008b-7ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "f70ab25d-6dbe-45a3-81b0-501b9f6aea9a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac2fileapitestflushaccee499447801d53bf0?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "386b2d16-5052-4738-a31b-d60edbf6548f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB624DD943", + "x-ms-lease-id" : "0e9862dc-7998-4ff6-838d-e8f4c9037035", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257631cd-501e-0003-7fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:54 GMT", + "x-ms-client-request-id" : "386b2d16-5052-4738-a31b-d60edbf6548f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838/javapathflushac2fileapitestflushaccee499447801d53bf0?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9f5e97e-dea6-4f98-ade5-d89e3a1d12f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62662A05", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b7a-501f-008b-7fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "c9f5e97e-dea6-4f98-ade5-d89e3a1d12f5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ead61279-23c9-4251-9c45-0b7ed5d0ffce" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257631e1-501e-0003-11d4-904d7d000000", + "Body" : "jtfsflushacjtfsflushac0fileapitestflushaccee1949135eca5be3838Fri, 01 Nov 2019 16:48:55 GMT\"0x8D75EEB62212437\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "ead61279-23c9-4251-9c45-0b7ed5d0ffce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushac0fileapitestflushaccee1949135eca5be3838?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "320779cd-cb82-4ddb-b945-1e667c3c03af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257631ec-501e-0003-1ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "320779cd-cb82-4ddb-b945-1e667c3c03af" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushac0fileapitestflushaccee1949135eca5be3838", "javapathflushac1fileapitestflushaccee34027a2a56e455d", "javapathflushac2fileapitestflushaccee499447801d53bf0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[0].json new file mode 100644 index 0000000000000..4b71253ff0f83 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[0].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0fce9f5f-93c6-4ddb-82b5-5d7fe95314b5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB628241C9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257631f6-501e-0003-23d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "0fce9f5f-93c6-4ddb-82b5-5d7fe95314b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0/javapathflushacfail1fileapitestflushacfail34c24512b66d69?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0aaba4d1-2342-40e9-af3c-480dc6b1710d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB628C99E8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b7b-501f-008b-80d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "0aaba4d1-2342-40e9-af3c-480dc6b1710d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0/javapathflushacfail1fileapitestflushacfail34c24512b66d69?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a8f672d-a1d1-48cf-9ea8-4e13f6aaac45", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b7c-501f-008b-01d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "6a8f672d-a1d1-48cf-9ea8-4e13f6aaac45" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0/javapathflushacfail1fileapitestflushacfail34c24512b66d69?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5d60d95-8c89-4131-9b4b-45c91bfd51e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB629C578E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b7d-501f-008b-02d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "f5d60d95-8c89-4131-9b4b-45c91bfd51e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0/javapathflushacfail2fileapitestflushacfail34c1847926ffbf?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04f8fdf8-7302-41f8-a108-5df0cf4f67ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62A51A27", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b7e-501f-008b-03d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "04f8fdf8-7302-41f8-a108-5df0cf4f67ff" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0/javapathflushacfail2fileapitestflushacfail34c1847926ffbf?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "712c0522-4736-4171-bf17-9d7de63eaec5", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b7f-501f-008b-04d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "712c0522-4736-4171-bf17-9d7de63eaec5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0/javapathflushacfail2fileapitestflushacfail34c1847926ffbf?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9dd96091-0f92-4ea5-8d9d-fc326878e6cc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "adc32b80-501f-008b-05d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:adc32b80-501f-008b-05d4-90f5a4000000\\nTime:2019-11-01T16:48:56.2552657Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "9dd96091-0f92-4ea5-8d9d-fc326878e6cc", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60a509d7-a77d-43b3-94fe-d50f1cf1caab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25763256-501e-0003-7ad4-904d7d000000", + "Body" : "jtfsflushacfailjtfsflushacfail0fileapitestflushacfail34c60072e3093fc0Fri, 01 Nov 2019 16:48:55 GMT\"0x8D75EEB628241C9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "60a509d7-a77d-43b3-94fe-d50f1cf1caab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6125faa-230a-4511-9b32-4cbf1ff6dba3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576325f-501e-0003-02d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "c6125faa-230a-4511-9b32-4cbf1ff6dba3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushacfail0fileapitestflushacfail34c60072e3093fc0", "javapathflushacfail1fileapitestflushacfail34c24512b66d69", "javapathflushacfail2fileapitestflushacfail34c1847926ffbf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[1].json new file mode 100644 index 0000000000000..aab4620f32024 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[1].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a184fde7-1c9d-46c5-adeb-a78e57cd6cb6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62CD6251", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576326c-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "a184fde7-1c9d-46c5-adeb-a78e57cd6cb6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360/javapathflushacfail1fileapitestflushacfailea78312501198b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d460b370-a608-47aa-93b1-f4967026a521" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62E0D3AB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b81-501f-008b-06d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:55 GMT", + "x-ms-client-request-id" : "d460b370-a608-47aa-93b1-f4967026a521" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360/javapathflushacfail1fileapitestflushacfailea78312501198b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49f8dac3-008c-4ae0-bb8b-d53808d31c7b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b82-501f-008b-07d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "49f8dac3-008c-4ae0-bb8b-d53808d31c7b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360/javapathflushacfail1fileapitestflushacfailea78312501198b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0c41f28-1427-4c15-be26-c87101ec1984" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62F1B006", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b83-501f-008b-08d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "a0c41f28-1427-4c15-be26-c87101ec1984" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360/javapathflushacfail2fileapitestflushacfailea704106347b04?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "81694933-e515-4039-978d-e7c1c2db4b3f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB62F9F120", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b84-501f-008b-09d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "81694933-e515-4039-978d-e7c1c2db4b3f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360/javapathflushacfail2fileapitestflushacfailea704106347b04?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "64f21129-80f2-4d2d-bae7-d28e49c4da11", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b85-501f-008b-0ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "64f21129-80f2-4d2d-bae7-d28e49c4da11" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360/javapathflushacfail2fileapitestflushacfailea704106347b04?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d654ec7-6cce-47ea-8942-80c9e5bc1bf1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "adc32b86-501f-008b-0bd4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:adc32b86-501f-008b-0bd4-90f5a4000000\\nTime:2019-11-01T16:48:56.8116560Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "8d654ec7-6cce-47ea-8942-80c9e5bc1bf1", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd1caaa6-2de6-423f-abed-f1db458c2ac8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257632b2-501e-0003-4ed4-904d7d000000", + "Body" : "jtfsflushacfailjtfsflushacfail0fileapitestflushacfailea75613927424360Fri, 01 Nov 2019 16:48:56 GMT\"0x8D75EEB62CD6251\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "dd1caaa6-2de6-423f-abed-f1db458c2ac8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailea75613927424360?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4074479-5ef4-4272-8fda-a9241a6e0ab4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257632b6-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "f4074479-5ef4-4272-8fda-a9241a6e0ab4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushacfail0fileapitestflushacfailea75613927424360", "javapathflushacfail1fileapitestflushacfailea78312501198b", "javapathflushacfail2fileapitestflushacfailea704106347b04" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[2].json new file mode 100644 index 0000000000000..2d763f0250c66 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[2].json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6e0b568-0ae4-4349-88d5-ec134332893a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB632248A9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257632c8-501e-0003-62d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "d6e0b568-0ae4-4349-88d5-ec134332893a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8/javapathflushacfail1fileapitestflushacfailbd702571ba9798?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8fa29a52-4d6d-4a1d-b8fe-a4a869afc3ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB632E00C1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b87-501f-008b-0cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "8fa29a52-4d6d-4a1d-b8fe-a4a869afc3ba" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8/javapathflushacfail1fileapitestflushacfailbd702571ba9798?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b48b18f3-9d43-4a1f-842b-76c2371c1e64", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b88-501f-008b-0dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "b48b18f3-9d43-4a1f-842b-76c2371c1e64" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8/javapathflushacfail1fileapitestflushacfailbd702571ba9798?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73b688c0-6941-44b3-ad25-27da8a43c719" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB634122B1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b89-501f-008b-0ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "73b688c0-6941-44b3-ad25-27da8a43c719" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8/javapathflushacfail2fileapitestflushacfailbd752060f49391?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d0a623b-492c-4f36-b4b5-2bbe323c94ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB634AD34E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b8a-501f-008b-0fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "7d0a623b-492c-4f36-b4b5-2bbe323c94ee" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8/javapathflushacfail2fileapitestflushacfailbd752060f49391?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "424225f0-3e0a-4cf7-bf98-53d6c7abcde7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b8b-501f-008b-10d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "424225f0-3e0a-4cf7-bf98-53d6c7abcde7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8/javapathflushacfail2fileapitestflushacfailbd752060f49391?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fa48499c-6561-4ff1-ad21-2f1e9795f8b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "adc32b8c-501f-008b-11d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:adc32b8c-501f-008b-11d4-90f5a4000000\\nTime:2019-11-01T16:48:57.3350244Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "fa48499c-6561-4ff1-ad21-2f1e9795f8b3", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad9ceefb-e469-4952-9529-8de371d8931b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576332f-501e-0003-38d4-904d7d000000", + "Body" : "jtfsflushacfailjtfsflushacfail0fileapitestflushacfailbd788582f12a72e8Fri, 01 Nov 2019 16:48:56 GMT\"0x8D75EEB632248A9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "ad9ceefb-e469-4952-9529-8de371d8931b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d55ab586-4106-4c9f-9a28-e57d403e86cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576333e-501e-0003-44d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "d55ab586-4106-4c9f-9a28-e57d403e86cf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushacfail0fileapitestflushacfailbd788582f12a72e8", "javapathflushacfail1fileapitestflushacfailbd702571ba9798", "javapathflushacfail2fileapitestflushacfailbd752060f49391" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[3].json new file mode 100644 index 0000000000000..87b0fb6a9d3fa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[3].json @@ -0,0 +1,223 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bb24c136-0136-4788-b462-f51d5d2d8b41" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB637384CC", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576334f-501e-0003-55d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "bb24c136-0136-4788-b462-f51d5d2d8b41" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail1fileapitestflushacfail3bc603969c0d73?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb036aee-46dc-46f9-aca3-3581bdff4445" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB637D19B5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b8d-501f-008b-12d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:56 GMT", + "x-ms-client-request-id" : "cb036aee-46dc-46f9-aca3-3581bdff4445" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail1fileapitestflushacfail3bc603969c0d73?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87582573-38b7-4632-a586-230cb05db461", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b8e-501f-008b-13d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "87582573-38b7-4632-a586-230cb05db461" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail1fileapitestflushacfail3bc603969c0d73?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7871e317-2c1f-49d6-b901-2d41c49dee8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB63915B9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b8f-501f-008b-14d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "7871e317-2c1f-49d6-b901-2d41c49dee8a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail2fileapitestflushacfail3bc260492caddf?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "81ed7aad-f7a2-44d4-bedd-7339ded00b08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB639AB862", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b90-501f-008b-15d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "81ed7aad-f7a2-44d4-bedd-7339ded00b08" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail2fileapitestflushacfail3bc260492caddf?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c90a61ef-efda-42de-a85d-67722f98b9ec", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b91-501f-008b-16d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "c90a61ef-efda-42de-a85d-67722f98b9ec" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail2fileapitestflushacfail3bc260492caddf", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1449b1c4-5607-459d-867a-c2c69684abea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:57 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", + "ETag" : "0x8D75EEB639AB862", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:57 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2576339e-501e-0003-16d4-904d7d000000", + "x-ms-client-request-id" : "1449b1c4-5607-459d-867a-c2c69684abea", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc/javapathflushacfail2fileapitestflushacfail3bc260492caddf?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a130e2d0-25c7-4337-975e-834fc30f6aba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "adc32b92-501f-008b-17d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:adc32b92-501f-008b-17d4-90f5a4000000\\nTime:2019-11-01T16:48:57.9094282Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "a130e2d0-25c7-4337-975e-834fc30f6aba", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23df8a89-f9c5-4b4f-86e1-3bac377330e5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257633b7-501e-0003-2bd4-904d7d000000", + "Body" : "jtfsflushacfailjtfsflushacfail0fileapitestflushacfail3bc34751822d42ccFri, 01 Nov 2019 16:48:57 GMT\"0x8D75EEB637384CC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "23df8a89-f9c5-4b4f-86e1-3bac377330e5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff4493ef-7206-46c7-ae1f-91bc4810d339" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257633c1-501e-0003-35d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "ff4493ef-7206-46c7-ae1f-91bc4810d339" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushacfail0fileapitestflushacfail3bc34751822d42cc", "javapathflushacfail1fileapitestflushacfail3bc603969c0d73", "javapathflushacfail2fileapitestflushacfail3bc260492caddf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[4].json new file mode 100644 index 0000000000000..7ada4e1ff894d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushacfail[4].json @@ -0,0 +1,215 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5bda0f02-f65e-4386-be8d-cb4d6182618f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB63CA674D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257633e5-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "5bda0f02-f65e-4386-be8d-cb4d6182618f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail1fileapitestflushacfailc9433547d70ec6?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b0d6f4f7-062e-40fc-ba63-834e058216df" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB63D4E058", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b93-501f-008b-18d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "b0d6f4f7-062e-40fc-ba63-834e058216df" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail1fileapitestflushacfailc9433547d70ec6?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82cd1b28-b08f-4d94-a9ee-eb5a5b00e4a1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b94-501f-008b-19d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "82cd1b28-b08f-4d94-a9ee-eb5a5b00e4a1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail1fileapitestflushacfailc9433547d70ec6?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d99a608-af88-4d25-b2dd-983ced6a1a2e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB63E4CD02", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b95-501f-008b-1ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "5d99a608-af88-4d25-b2dd-983ced6a1a2e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail2fileapitestflushacfailc9445190b1f190?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4394cfb5-7c9c-4b11-a5e7-512d33bd0523" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB63ED666D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b96-501f-008b-1bd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "4394cfb5-7c9c-4b11-a5e7-512d33bd0523" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail2fileapitestflushacfailc9445190b1f190?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ba63d37-04ad-4877-993d-05661e30624e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b97-501f-008b-1cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "1ba63d37-04ad-4877-993d-05661e30624e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail2fileapitestflushacfailc9445190b1f190?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "244906a7-628c-498d-b46f-9cf06efefe27" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB63ED666D", + "x-ms-lease-id" : "1516f07e-b7a6-4c57-b7e4-8af24cf8aab6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25763440-501e-0003-23d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "244906a7-628c-498d-b46f-9cf06efefe27" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0/javapathflushacfail2fileapitestflushacfailc9445190b1f190?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c654759-cbc3-4130-9df9-3e322845c799" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "adc32b98-501f-008b-1dd4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:adc32b98-501f-008b-1dd4-90f5a4000000\\nTime:2019-11-01T16:48:58.4718235Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "6c654759-cbc3-4130-9df9-3e322845c799", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0eea2350-f355-4f12-8f6e-54f25d76815f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576345a-501e-0003-3ad4-904d7d000000", + "Body" : "jtfsflushacfailjtfsflushacfail0fileapitestflushacfailc9409874048333f0Fri, 01 Nov 2019 16:48:58 GMT\"0x8D75EEB63CA674D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "0eea2350-f355-4f12-8f6e-54f25d76815f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushacfail0fileapitestflushacfailc9409874048333f0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6467e625-06b4-4ccc-bf78-4adcf41715c2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25763465-501e-0003-43d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "6467e625-06b4-4ccc-bf78-4adcf41715c2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushacfail0fileapitestflushacfailc9409874048333f0", "javapathflushacfail1fileapitestflushacfailc9433547d70ec6", "javapathflushacfail2fileapitestflushacfailc9445190b1f190" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushclose.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushclose.json new file mode 100644 index 0000000000000..f49130b6d325c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushclose.json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20efe957-e754-488a-9698-1a4640c885a0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5EF4073E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762b99-501e-0003-1fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "20efe957-e754-488a-9698-1a4640c885a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913/javapathflushclose1fileapitestflushclosec11731045725f6c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e26679a-f796-43c7-a261-82e09d358bfc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F0517AE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b37-501f-008b-3cd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "1e26679a-f796-43c7-a261-82e09d358bfc" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913/javapathflushclose1fileapitestflushclosec11731045725f6c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d509961d-0057-4782-a2e5-3c640b9595fe", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b38-501f-008b-3dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "d509961d-0057-4782-a2e5-3c640b9595fe" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913/javapathflushclose1fileapitestflushclosec11731045725f6c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25659726-546b-45d0-9ba2-8d205e3fd80c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F14FA0D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b39-501f-008b-3ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "25659726-546b-45d0-9ba2-8d205e3fd80c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913/javapathflushclose2fileapitestflushclosec1109579aab9808?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8eb7b6d-615e-448e-9af0-ad0ad3c523b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F1D2D04", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b3a-501f-008b-3fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "d8eb7b6d-615e-448e-9af0-ad0ad3c523b1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913/javapathflushclose2fileapitestflushclosec1109579aab9808?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f42de4c6-8871-4651-b5f0-c9828e603f65", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b3b-501f-008b-40d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "f42de4c6-8871-4651-b5f0-c9828e603f65" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913/javapathflushclose2fileapitestflushclosec1109579aab9808?position=7&retainUncommittedData=false&close=true&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83013a09-9d56-4373-86b7-73a557931796" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F2E6022", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b3c-501f-008b-41d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "83013a09-9d56-4373-86b7-73a557931796" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushclose&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0a297c7-cb32-4f29-8a93-f1af2c8d8751" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762c43-501e-0003-2dd4-904d7d000000", + "Body" : "jtfsflushclosejtfsflushclose0fileapitestflushclosec1198865f88ec9913Fri, 01 Nov 2019 16:48:49 GMT\"0x8D75EEB5EF4073E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "e0a297c7-cb32-4f29-8a93-f1af2c8d8751", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushclose0fileapitestflushclosec1198865f88ec9913?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f5655c4-db23-4d09-9646-740d30f6aa94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762c50-501e-0003-39d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "2f5655c4-db23-4d09-9646-740d30f6aa94" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushclose0fileapitestflushclosec1198865f88ec9913", "javapathflushclose1fileapitestflushclosec11731045725f6c", "javapathflushclose2fileapitestflushclosec1109579aab9808" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushdatamin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushdatamin.json new file mode 100644 index 0000000000000..2b77109a6801d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushdatamin.json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d10f5dc9-57ce-4575-bc7b-12d3132601ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5EB08937", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762b13-501e-0003-30d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:48 GMT", + "x-ms-client-request-id" : "d10f5dc9-57ce-4575-bc7b-12d3132601ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9/javapathflushdatamin1fileapitestflushdataminec8213174949c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c212139d-f2fe-467e-9b51-9b8b509b8d00" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5EBA0983", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b32-501f-008b-37d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "c212139d-f2fe-467e-9b51-9b8b509b8d00" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9/javapathflushdatamin1fileapitestflushdataminec8213174949c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76820c84-1391-4579-b85e-c695f20e5454", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b33-501f-008b-38d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "76820c84-1391-4579-b85e-c695f20e5454" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9/javapathflushdatamin1fileapitestflushdataminec8213174949c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ec2509e-1486-4bfc-9a03-ced6d7ab7ee0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5EC9E3A6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b34-501f-008b-39d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "6ec2509e-1486-4bfc-9a03-ced6d7ab7ee0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9/javapathflushdatamin1fileapitestflushdataminec8213174949c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fdff95a-0520-435f-9ea1-09223ed48037", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b35-501f-008b-3ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "7fdff95a-0520-435f-9ea1-09223ed48037" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9/javapathflushdatamin1fileapitestflushdataminec8213174949c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9dc27a6-3603-46a8-99e7-37fa59365319" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5EDC21F7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b36-501f-008b-3bd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "f9dc27a6-3603-46a8-99e7-37fa59365319" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushdatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f14f06a0-7acd-4317-a348-f828de00055d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762b7c-501e-0003-09d4-904d7d000000", + "Body" : "jtfsflushdataminjtfsflushdatamin0fileapitestflushdataminec81395313255e9Fri, 01 Nov 2019 16:48:49 GMT\"0x8D75EEB5EB08937\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "f14f06a0-7acd-4317-a348-f828de00055d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushdatamin0fileapitestflushdataminec81395313255e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a07b843-bcb8-441a-b39d-7d356894d05d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762b86-501e-0003-0fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "8a07b843-bcb8-441a-b39d-7d356894d05d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushdatamin0fileapitestflushdataminec81395313255e9", "javapathflushdatamin1fileapitestflushdataminec8213174949c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflusherror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflusherror.json new file mode 100644 index 0000000000000..c810e08eba98e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflusherror.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflusherror0fileapitestflusherrorc8982919d87fca51c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5597f1f7-68e2-4327-b897-8a54530010ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB641E6315", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25763471-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:57 GMT", + "x-ms-client-request-id" : "5597f1f7-68e2-4327-b897-8a54530010ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflusherror0fileapitestflusherrorc8982919d87fca51c/javapathflusherror1fileapitestflusherrorc89880533567e9a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76f7e5d8-2aec-4b0a-9fc1-fdd25654b1e8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB642A2182", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b99-501f-008b-1ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:58 GMT", + "x-ms-client-request-id" : "76f7e5d8-2aec-4b0a-9fc1-fdd25654b1e8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflusherror0fileapitestflusherrorc8982919d87fca51c/javapathflusherror1fileapitestflusherrorc89880533567e9a?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "285915ba-36cf-4f5c-b6b0-fd9f183a6830", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b9a-501f-008b-1fd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:58 GMT", + "x-ms-client-request-id" : "285915ba-36cf-4f5c-b6b0-fd9f183a6830" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflusherror0fileapitestflusherrorc8982919d87fca51c/javapathflusherror1fileapitestflusherrorc89880533567e9a?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8df635b-5cbf-475f-a280-ad09b34f8f42" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB643BAF7C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b9b-501f-008b-20d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:58 GMT", + "x-ms-client-request-id" : "f8df635b-5cbf-475f-a280-ad09b34f8f42" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflusherror0fileapitestflusherrorc8982919d87fca51c/javapathflusherror2fileapitestflusherrorc8901765cb70c23?position=1&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41cb3347-9889-4ddd-a849-311e5ecb4408" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "adc32b9c-501f-008b-21d4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:adc32b9c-501f-008b-21d4-90f5a4000000\\nTime:2019-11-01T16:48:58.8701035Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:58 GMT", + "x-ms-client-request-id" : "41cb3347-9889-4ddd-a849-311e5ecb4408", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflusherror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "12c5d840-07ad-46dd-a6ef-63445f3ff23f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257634b5-501e-0003-03d4-904d7d000000", + "Body" : "jtfsflusherrorjtfsflusherror0fileapitestflusherrorc8982919d87fca51cFri, 01 Nov 2019 16:48:58 GMT\"0x8D75EEB641E6315\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:58 GMT", + "x-ms-client-request-id" : "12c5d840-07ad-46dd-a6ef-63445f3ff23f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflusherror0fileapitestflusherrorc8982919d87fca51c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c1b9dd9-b30f-48ae-992e-1722c370f7b2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257634bf-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:58 GMT", + "x-ms-client-request-id" : "6c1b9dd9-b30f-48ae-992e-1722c370f7b2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflusherror0fileapitestflusherrorc8982919d87fca51c", "javapathflusherror1fileapitestflusherrorc89880533567e9a", "javapathflusherror2fileapitestflusherrorc8901765cb70c23" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushheaders[0].json new file mode 100644 index 0000000000000..5dbbf375fbc89 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushheaders[0].json @@ -0,0 +1,223 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fa55573-ff30-4068-9551-6f59668a1047" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5FDBAB89", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762d91-501e-0003-45d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "7fa55573-ff30-4068-9551-6f59668a1047" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders1fileapitestflushheaders1ff846359301e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98620383-bd29-4a4a-a59a-3a16919cc0a0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5FE56905", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b4b-501f-008b-50d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "98620383-bd29-4a4a-a59a-3a16919cc0a0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders1fileapitestflushheaders1ff846359301e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6828bd6-e15d-4beb-b506-869aef55a545", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b4c-501f-008b-51d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "d6828bd6-e15d-4beb-b506-869aef55a545" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders1fileapitestflushheaders1ff846359301e?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff807a55-ba42-430a-8ea7-992b5578a119" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5FF4FC49", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b4d-501f-008b-52d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "ff807a55-ba42-430a-8ea7-992b5578a119" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders2fileapitestflushheaders1ff365675227d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8060631-84db-4c01-ab11-630cea0233be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5FFF2F19", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b4e-501f-008b-53d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "b8060631-84db-4c01-ab11-630cea0233be" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders2fileapitestflushheaders1ff365675227d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a333ea71-6999-4198-a953-4ab1e3a4a8d9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b4f-501f-008b-54d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "a333ea71-6999-4198-a953-4ab1e3a4a8d9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders2fileapitestflushheaders1ff365675227d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24541346-31a6-43b6-b226-9eedce23638a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60106A6D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b50-501f-008b-55d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "24541346-31a6-43b6-b226-9eedce23638a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5/javapathflushheaders2fileapitestflushheaders1ff365675227d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bfba9168-ccc8-4a49-971b-0da7f8881c4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48: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", + "ETag" : "0x8D75EEB60106A6D", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:51 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25762df2-501e-0003-1ad4-904d7d000000", + "x-ms-client-request-id" : "bfba9168-ccc8-4a49-971b-0da7f8881c4c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7bdc0d66-fed0-4edd-a5dc-8d1d10ab874c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762e03-501e-0003-29d4-904d7d000000", + "Body" : "jtfsflushheadersjtfsflushheaders0fileapitestflushheaders1ff067947a684b5Fri, 01 Nov 2019 16:48:51 GMT\"0x8D75EEB5FDBAB89\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "7bdc0d66-fed0-4edd-a5dc-8d1d10ab874c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushheaders0fileapitestflushheaders1ff067947a684b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "909c6d3d-c64d-4897-9bbb-e33e1fd22137" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762e1c-501e-0003-3fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "909c6d3d-c64d-4897-9bbb-e33e1fd22137" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushheaders0fileapitestflushheaders1ff067947a684b5", "javapathflushheaders1fileapitestflushheaders1ff846359301e", "javapathflushheaders2fileapitestflushheaders1ff365675227d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushheaders[1].json new file mode 100644 index 0000000000000..74aaa9b41bc6f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushheaders[1].json @@ -0,0 +1,227 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c00fd966-64df-4340-864d-ac73637eef0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB602F5923", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762e29-501e-0003-48d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "c00fd966-64df-4340-864d-ac73637eef0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders1fileapitestflushheadersce959891644c1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29c280bf-2626-4d46-9f00-07b2a9a4bea8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB603944BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b51-501f-008b-56d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "29c280bf-2626-4d46-9f00-07b2a9a4bea8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders1fileapitestflushheadersce959891644c1?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3700494b-d81c-4978-bc7e-8d95573bd7ad", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b52-501f-008b-57d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "3700494b-d81c-4978-bc7e-8d95573bd7ad" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders1fileapitestflushheadersce959891644c1?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a332156a-40cc-4a07-9a31-060e046c8125" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB60494FB3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b53-501f-008b-58d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "a332156a-40cc-4a07-9a31-060e046c8125" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders2fileapitestflushheadersce933759a94fa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc3c76a1-6e33-4208-8ec4-d09fd9ca3801" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB6052BE43", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b54-501f-008b-59d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "cc3c76a1-6e33-4208-8ec4-d09fd9ca3801" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders2fileapitestflushheadersce933759a94fa?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af026fbf-e80a-4275-ad17-6ce8c6ce0f7e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b55-501f-008b-5ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "af026fbf-e80a-4275-ad17-6ce8c6ce0f7e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders2fileapitestflushheadersce933759a94fa?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ce68ec6-2e4b-4f89-ac99-01af554619bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB6069CDB5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b56-501f-008b-5bd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "0ce68ec6-2e4b-4f89-ac99-01af554619bf" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58/javapathflushheaders2fileapitestflushheadersce933759a94fa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ce5ba21-97d5-45a1-b03e-2d96293ba6f2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48: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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEB6069CDB5", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:52 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25762ea2-501e-0003-35d4-904d7d000000", + "x-ms-client-request-id" : "9ce5ba21-97d5-45a1-b03e-2d96293ba6f2", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "977f05d2-a11c-4141-ac21-15bcd995ca67" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762eae-501e-0003-40d4-904d7d000000", + "Body" : "jtfsflushheadersjtfsflushheaders0fileapitestflushheadersce931306c374d58Fri, 01 Nov 2019 16:48:52 GMT\"0x8D75EEB602F5923\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "977f05d2-a11c-4141-ac21-15bcd995ca67", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushheaders0fileapitestflushheadersce931306c374d58?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fe16d5a-5a58-46ed-9a5f-c766350a0e52" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762eb5-501e-0003-47d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:51 GMT", + "x-ms-client-request-id" : "7fe16d5a-5a58-46ed-9a5f-c766350a0e52" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushheaders0fileapitestflushheadersce931306c374d58", "javapathflushheaders1fileapitestflushheadersce959891644c1", "javapathflushheaders2fileapitestflushheadersce933759a94fa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushia.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushia.json new file mode 100644 index 0000000000000..f7f504781179d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushia.json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dea6b5b4-1a7e-4f70-96f6-9c50e6606462" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F90D92F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762ce6-501e-0003-3cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "dea6b5b4-1a7e-4f70-96f6-9c50e6606462" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253/javapathflushia1fileapitestflushia24f33804cb19d61744?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08df7dde-3dd9-4d7e-be18-6fc7b91bb2a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F9A7A7C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b43-501f-008b-48d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "08df7dde-3dd9-4d7e-be18-6fc7b91bb2a4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253/javapathflushia1fileapitestflushia24f33804cb19d61744?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "186ab273-75e2-4af0-95df-16211ac5be6c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b44-501f-008b-49d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "186ab273-75e2-4af0-95df-16211ac5be6c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253/javapathflushia1fileapitestflushia24f33804cb19d61744?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28436aa1-dcbe-443c-b563-9142899d2f74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5FAA8827", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b45-501f-008b-4ad4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "28436aa1-dcbe-443c-b563-9142899d2f74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253/javapathflushia2fileapitestflushia24f0417888388cc887?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "504de15a-703c-4fb3-8c11-9ec8b4d40c84" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5FB2FF72", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b48-501f-008b-4dd4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "504de15a-703c-4fb3-8c11-9ec8b4d40c84" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253/javapathflushia2fileapitestflushia24f0417888388cc887?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "490136f6-a085-45f7-baad-1b8ef0c37a1a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b49-501f-008b-4ed4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "490136f6-a085-45f7-baad-1b8ef0c37a1a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253/javapathflushia2fileapitestflushia24f0417888388cc887?position=4&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cca73f3-5190-4927-943d-c7f2766c200e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidFlushPosition", + "retry-after" : "0", + "Content-Length" : "284", + "StatusCode" : "400", + "x-ms-request-id" : "adc32b4a-501f-008b-4fd4-90f5a4000000", + "Body" : "{\"error\":{\"code\":\"InvalidFlushPosition\",\"message\":\"The uploaded data is not contiguous or the position query parameter value is not equal to the length of the file after appending the uploaded data.\\nRequestId:adc32b4a-501f-008b-4fd4-90f5a4000000\\nTime:2019-11-01T16:48:51.3137915Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "0cca73f3-5190-4927-943d-c7f2766c200e", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41117a9f-7939-4e92-8ab6-8a4496e79a4f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762d68-501e-0003-29d4-904d7d000000", + "Body" : "jtfsflushiajtfsflushia0fileapitestflushia24f035226328c6f9c253Fri, 01 Nov 2019 16:48:50 GMT\"0x8D75EEB5F90D92F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "41117a9f-7939-4e92-8ab6-8a4496e79a4f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushia0fileapitestflushia24f035226328c6f9c253?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4cc97d8-8669-4073-b897-44c5449a8cc1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762d7d-501e-0003-36d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "f4cc97d8-8669-4073-b897-44c5449a8cc1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushia0fileapitestflushia24f035226328c6f9c253", "javapathflushia1fileapitestflushia24f33804cb19d61744", "javapathflushia2fileapitestflushia24f0417888388cc887" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushretainuncommitteddata.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushretainuncommitteddata.json new file mode 100644 index 0000000000000..3374a6e351c35 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestflushretainuncommitteddata.json @@ -0,0 +1,193 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc5da5a5-7a6d-4f02-8f2b-2fa4ceddaace" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F462DEC", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762c5e-501e-0003-44d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "fc5da5a5-7a6d-4f02-8f2b-2fa4ceddaace" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4/javapathflushretainuncommitteddata147084e484ea4093c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5e773f0-48ec-41eb-867f-c2f9b4e26e7c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F4FF4C0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b3d-501f-008b-42d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:49 GMT", + "x-ms-client-request-id" : "f5e773f0-48ec-41eb-867f-c2f9b4e26e7c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4/javapathflushretainuncommitteddata147084e484ea4093c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3bc0c87d-96ba-444e-959d-c46e5dd19762", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b3e-501f-008b-43d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "3bc0c87d-96ba-444e-959d-c46e5dd19762" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4/javapathflushretainuncommitteddata147084e484ea4093c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82e25dd5-4cbf-44e9-a057-7b7478a2ff3d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F60CBB4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b3f-501f-008b-44d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "82e25dd5-4cbf-44e9-a057-7b7478a2ff3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4/javapathflushretainuncommitteddata244328e89383872de?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c6fcaf7-850e-42c1-a28e-d05352890c3c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F699321", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adc32b40-501f-008b-45d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "7c6fcaf7-850e-42c1-a28e-d05352890c3c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4/javapathflushretainuncommitteddata244328e89383872de?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dac1ef05-eb89-49aa-b766-695ba8f2e3ed", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b41-501f-008b-46d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "dac1ef05-eb89-49aa-b766-695ba8f2e3ed" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4/javapathflushretainuncommitteddata244328e89383872de?position=7&retainUncommittedData=true&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "11396611-5eac-47d8-aa5f-fef2dfd1e96a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5F798B33", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "adc32b42-501f-008b-47d4-90f5a4000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "11396611-5eac-47d8-aa5f-fef2dfd1e96a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsflushretainuncommitteddata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c1d071af-d300-4fe3-9e0a-c399e9763f8d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762cbf-501e-0003-17d4-904d7d000000", + "Body" : "jtfsflushretainuncommitteddatajtfsflushretainuncommitteddata050186c648024b9d3c4Fri, 01 Nov 2019 16:48:50 GMT\"0x8D75EEB5F462DEC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "c1d071af-d300-4fe3-9e0a-c399e9763f8d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsflushretainuncommitteddata050186c648024b9d3c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9f81fe2-0032-4707-a8e0-015710882b88" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762cd4-501e-0003-2ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:50 GMT", + "x-ms-client-request-id" : "f9f81fe2-0032-4707-a8e0-015710882b88" + }, + "Exception" : null + } ], + "variables" : [ "jtfsflushretainuncommitteddata050186c648024b9d3c4", "javapathflushretainuncommitteddata147084e484ea4093c", "javapathflushretainuncommitteddata244328e89383872de" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[0].json new file mode 100644 index 0000000000000..49a1c3cb0c204 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[0].json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c250db36-4413-4a54-bd04-9197fcc186ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40995EEA", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ee56-501e-0003-7cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "c250db36-4413-4a54-bd04-9197fcc186ef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429/javapathgetaccesscontrolac1815765d5d4b0c0697494?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ecdf887f-9825-4383-9fce-e161e75dfbe9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40A33894", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82e8-201f-006a-5ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "ecdf887f-9825-4383-9fce-e161e75dfbe9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429/javapathgetaccesscontrolac1815765d5d4b0c0697494?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d89f0c39-4963-47f8-b7a7-671e49735f3c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82e9-201f-006a-5bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "d89f0c39-4963-47f8-b7a7-671e49735f3c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429/javapathgetaccesscontrolac1815765d5d4b0c0697494?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "791f7367-9e08-420d-a2b1-ff9d1f0920d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40B30F1D", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82ea-201f-006a-5cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "791f7367-9e08-420d-a2b1-ff9d1f0920d5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429/javapathgetaccesscontrolac1815765d5d4b0c0697494?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b6435d1-4b64-4333-9e46-d17b09811654" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "ETag" : "0x8D75EEB40B30F1D", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82eb-201f-006a-5dd4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "1b6435d1-4b64-4333-9e46-d17b09811654" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8132f968-2f80-4874-8ff4-d327d50de2f3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575eee2-501e-0003-7bd4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429Fri, 01 Nov 2019 16:47:59 GMT\"0x8D75EEB40995EEA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "8132f968-2f80-4874-8ff4-d327d50de2f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4610b56-8006-4e0e-8f82-7cfa061395f9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575eef4-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "c4610b56-8006-4e0e-8f82-7cfa061395f9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac5cd442429", "javapathgetaccesscontrolac1815765d5d4b0c0697494" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[1].json new file mode 100644 index 0000000000000..f81070a145656 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[1].json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0798ca83-a89c-41f5-b984-d2510129522d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40D401C4", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ef02-501e-0003-1bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "0798ca83-a89c-41f5-b984-d2510129522d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b/javapathgetaccesscontrolac181930d242f28d71024e6?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dcd2a7c8-7172-4516-982f-02ca20bf4b58" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40DDDA54", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82ec-201f-006a-5ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "dcd2a7c8-7172-4516-982f-02ca20bf4b58" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b/javapathgetaccesscontrolac181930d242f28d71024e6?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "992f2690-999e-4c04-b65b-1ca3f732ee39", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82ed-201f-006a-5fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "992f2690-999e-4c04-b65b-1ca3f732ee39" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b/javapathgetaccesscontrolac181930d242f28d71024e6?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbdee266-b40a-49b0-bc76-9a9e5279ec94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40EF4DBC", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82ee-201f-006a-60d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "fbdee266-b40a-49b0-bc76-9a9e5279ec94" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b/javapathgetaccesscontrolac181930d242f28d71024e6?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c97aff1-7cf6-4076-8c6b-7b554d383fee" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "ETag" : "0x8D75EEB40EF4DBC", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82ef-201f-006a-61d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "6c97aff1-7cf6-4076-8c6b-7b554d383fee" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1939b5e-d145-486d-8be2-0774a829131a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ef7b-501e-0003-0ad4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453bFri, 01 Nov 2019 16:47:59 GMT\"0x8D75EEB40D401C4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "e1939b5e-d145-486d-8be2-0774a829131a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cad50f39-c7fa-42a1-a76b-540c58618dd3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ef8f-501e-0003-1cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "cad50f39-c7fa-42a1-a76b-540c58618dd3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac22300453b", "javapathgetaccesscontrolac181930d242f28d71024e6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[2].json new file mode 100644 index 0000000000000..0fa957624cf4a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[2].json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce014895-a8a5-45c4-b19f-7f810b729696" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4110C7E0", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575efac-501e-0003-33d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "ce014895-a8a5-45c4-b19f-7f810b729696" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076/javapathgetaccesscontrolac195763c513fd7f9359435?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46d222b5-6984-48c7-b0b1-9c30937c663f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB411C4131", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82f0-201f-006a-62d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "46d222b5-6984-48c7-b0b1-9c30937c663f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076/javapathgetaccesscontrolac195763c513fd7f9359435?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7213e2d-3b5c-40c2-8908-dbcd02ca70c3", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82f1-201f-006a-63d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "a7213e2d-3b5c-40c2-8908-dbcd02ca70c3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076/javapathgetaccesscontrolac195763c513fd7f9359435?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7888499d-05ea-406c-a8fc-616d982217cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB412DF859", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82f2-201f-006a-64d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "7888499d-05ea-406c-a8fc-616d982217cb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076/javapathgetaccesscontrolac195763c513fd7f9359435?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5771d2e7-a331-4632-86ee-6377fd7bb639" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "ETag" : "0x8D75EEB412DF859", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82f3-201f-006a-65d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "5771d2e7-a331-4632-86ee-6377fd7bb639" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4830012a-3d82-4a91-802e-07c4a6e08aa8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f054-501e-0003-47d4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076Fri, 01 Nov 2019 16:47:59 GMT\"0x8D75EEB4110C7E0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "4830012a-3d82-4a91-802e-07c4a6e08aa8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41f7b028-284b-4181-9020-6d841f4f6fca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f06b-501e-0003-5cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "41f7b028-284b-4181-9020-6d841f4f6fca" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac773316076", "javapathgetaccesscontrolac195763c513fd7f9359435" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[3].json new file mode 100644 index 0000000000000..16120c5bf81a7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[3].json @@ -0,0 +1,183 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0484ed9-79ab-4593-aa81-2569c6f9e5cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB414FD85D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f08e-501e-0003-7bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "c0484ed9-79ab-4593-aa81-2569c6f9e5cf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e/javapathgetaccesscontrolac172918ffff643f342745b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "feed912c-ae96-4f32-8cc3-685ae21a7159" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB415D1AFF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82f4-201f-006a-66d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "feed912c-ae96-4f32-8cc3-685ae21a7159" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e/javapathgetaccesscontrolac172918ffff643f342745b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c008f1a2-363e-414d-bec1-b712bdf17882", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82f5-201f-006a-67d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "c008f1a2-363e-414d-bec1-b712bdf17882" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e/javapathgetaccesscontrolac172918ffff643f342745b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee37e99a-fa87-43d4-90f3-2f47d4592506" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB416D7629", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82f6-201f-006a-68d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "ee37e99a-fa87-43d4-90f3-2f47d4592506" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e/javapathgetaccesscontrolac172918ffff643f342745b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3b92f6a-eac3-427f-a1a7-a436d2f10a9a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:59 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", + "ETag" : "0x8D75EEB416D7629", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:00 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f0f6-501e-0003-5bd4-904d7d000000", + "x-ms-client-request-id" : "f3b92f6a-eac3-427f-a1a7-a436d2f10a9a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e/javapathgetaccesscontrolac172918ffff643f342745b?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32006b5c-4f23-43b0-b44b-7474ae3aa6f5" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "ETag" : "0x8D75EEB416D7629", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82f7-201f-006a-69d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "32006b5c-4f23-43b0-b44b-7474ae3aa6f5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6cfe0194-693a-4153-be99-593e58275aac" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f11a-501e-0003-7ad4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060eFri, 01 Nov 2019 16:48:00 GMT\"0x8D75EEB414FD85D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "6cfe0194-693a-4153-be99-593e58275aac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eff4b569-c39a-4099-ad0e-21c499f6c4a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f130-501e-0003-0cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:59 GMT", + "x-ms-client-request-id" : "eff4b569-c39a-4099-ad0e-21c499f6c4a4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac0fileapitestgetaccesscontrolacf2789060e", "javapathgetaccesscontrolac172918ffff643f342745b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[4].json new file mode 100644 index 0000000000000..23506dd322db8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[4].json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4b685c5-d821-4f9b-950b-2a80fdfe7255" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4196B27A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f14b-501e-0003-25d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "b4b685c5-d821-4f9b-950b-2a80fdfe7255" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597/javapathgetaccesscontrolac130090916fab3280724e0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f76ec483-8cb8-4318-ab37-d6e62d068869" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB41A2ADE4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82f8-201f-006a-6ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "f76ec483-8cb8-4318-ab37-d6e62d068869" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597/javapathgetaccesscontrolac130090916fab3280724e0?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34ae1944-e242-4808-924f-2e83a9121a1b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82f9-201f-006a-6bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "34ae1944-e242-4808-924f-2e83a9121a1b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597/javapathgetaccesscontrolac130090916fab3280724e0?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d7af87f-1e4f-40d9-8be5-b63a28014ba6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB41B3E6C1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82fa-201f-006a-6cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "5d7af87f-1e4f-40d9-8be5-b63a28014ba6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597/javapathgetaccesscontrolac130090916fab3280724e0?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "887c46c0-65cd-47e7-9a30-9e75dfccdeb1" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "ETag" : "0x8D75EEB41B3E6C1", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82fb-201f-006a-6dd4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "887c46c0-65cd-47e7-9a30-9e75dfccdeb1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "819e0b63-b5ff-4359-bd50-83f243ee0676" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f1b8-501e-0003-08d4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597Fri, 01 Nov 2019 16:48:00 GMT\"0x8D75EEB4196B27A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "819e0b63-b5ff-4359-bd50-83f243ee0676", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32408014-3271-4acf-bbcc-88959846530d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f1c7-501e-0003-14d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "32408014-3271-4acf-bbcc-88959846530d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac0fileapitestgetaccesscontrolaca74735597", "javapathgetaccesscontrolac130090916fab3280724e0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[5].json new file mode 100644 index 0000000000000..75a77bad2d361 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolac[5].json @@ -0,0 +1,175 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86d73764-17d1-4888-ae02-df07ed27b3da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB41D3EDE4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f1ef-501e-0003-37d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "86d73764-17d1-4888-ae02-df07ed27b3da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137/javapathgetaccesscontrolac196661acfaef006c90446?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e45347f-809e-426b-806d-21e37fc3d757" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB41DE047F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82fc-201f-006a-6ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "1e45347f-809e-426b-806d-21e37fc3d757" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137/javapathgetaccesscontrolac196661acfaef006c90446?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ea5f8cb-95de-44be-b233-bc8ba812c33e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82fd-201f-006a-6fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "2ea5f8cb-95de-44be-b233-bc8ba812c33e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137/javapathgetaccesscontrolac196661acfaef006c90446?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f06e0a6-7c5c-4bdd-aab8-92a16768ce56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB41F3E1A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82fe-201f-006a-70d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "8f06e0a6-7c5c-4bdd-aab8-92a16768ce56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137/javapathgetaccesscontrolac196661acfaef006c90446?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d67742a-5d16-4657-9564-fb1ddb92627e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB41F3E1A4", + "x-ms-lease-id" : "d9f2b10a-c724-401d-8ef1-c0934d4a31eb", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f233-501e-0003-78d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "2d67742a-5d16-4657-9564-fb1ddb92627e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137/javapathgetaccesscontrolac196661acfaef006c90446?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9aebc76-7b22-440d-a676-37330b6184b2" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "ETag" : "0x8D75EEB41F3E1A4", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82ff-201f-006a-71d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "f9aebc76-7b22-440d-a676-37330b6184b2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1a33d77-1951-4891-853a-2e3cc9f287b9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f256-501e-0003-16d4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacjtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137Fri, 01 Nov 2019 16:48:01 GMT\"0x8D75EEB41D3EDE4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "a1a33d77-1951-4891-853a-2e3cc9f287b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4d5571a-290d-49ca-8abf-9199bd6677cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f25c-501e-0003-1cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "d4d5571a-290d-49ca-8abf-9199bd6677cb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolac0fileapitestgetaccesscontrolac7f3325137", "javapathgetaccesscontrolac196661acfaef006c90446" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[0].json new file mode 100644 index 0000000000000..6e9a6f13ea9b0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[0].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail02093769efeddaf8d5428?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4271d01c-c09f-4231-921f-c2eb063d4e7f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB421E9942", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f26b-501e-0003-2bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:00 GMT", + "x-ms-client-request-id" : "4271d01c-c09f-4231-921f-c2eb063d4e7f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail02093769efeddaf8d5428/javapathgetaccesscontrolacfail1808906cb09dc215164?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3a053f8f-aa44-4ddd-b508-cc368e6bc576" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42285AD3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8300-201f-006a-72d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "3a053f8f-aa44-4ddd-b508-cc368e6bc576" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail02093769efeddaf8d5428/javapathgetaccesscontrolacfail1808906cb09dc215164?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e153615a-5218-45ae-9db5-3f1fe1422f86", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8301-201f-006a-73d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "e153615a-5218-45ae-9db5-3f1fe1422f86" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail02093769efeddaf8d5428/javapathgetaccesscontrolacfail1808906cb09dc215164?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a60adeef-4285-4e7f-82c6-cd5a414022c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4238888E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8302-201f-006a-74d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "a60adeef-4285-4e7f-82c6-cd5a414022c8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail02093769efeddaf8d5428/javapathgetaccesscontrolacfail1808906cb09dc215164?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "860928db-3d01-437d-89f2-c4e26389d02b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "123e8303-201f-006a-75d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "860928db-3d01-437d-89f2-c4e26389d02b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b38c07b1-92bd-4ae9-b572-ea19c586d1de" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f2b7-501e-0003-70d4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail02093769efeddaf8d5428Fri, 01 Nov 2019 16:48:01 GMT\"0x8D75EEB421E9942\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "b38c07b1-92bd-4ae9-b572-ea19c586d1de", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail02093769efeddaf8d5428?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7513f249-ec0a-43f7-91ec-1911453a936f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f2be-501e-0003-77d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "7513f249-ec0a-43f7-91ec-1911453a936f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail02093769efeddaf8d5428", "javapathgetaccesscontrolacfail1808906cb09dc215164" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[1].json new file mode 100644 index 0000000000000..9edc3e88cd8d8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[1].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0787972b0acac33ef7493?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd27fd9a-bfe9-4aef-b632-866a2a4698cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4258EDF3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f2d4-501e-0003-0cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "dd27fd9a-bfe9-4aef-b632-866a2a4698cd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0787972b0acac33ef7493/javapathgetaccesscontrolacfail1386626d0e888baee64?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ed97818-73b5-4b47-a89a-554ee7e3863a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42630031", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8304-201f-006a-76d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "4ed97818-73b5-4b47-a89a-554ee7e3863a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0787972b0acac33ef7493/javapathgetaccesscontrolacfail1386626d0e888baee64?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ddd0e67e-72dc-4776-83df-aa555e2f61f7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8305-201f-006a-77d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "ddd0e67e-72dc-4776-83df-aa555e2f61f7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0787972b0acac33ef7493/javapathgetaccesscontrolacfail1386626d0e888baee64?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "faa92356-0b2e-4179-820b-0fb0413cc5c4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4273D1C9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8306-201f-006a-78d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "faa92356-0b2e-4179-820b-0fb0413cc5c4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0787972b0acac33ef7493/javapathgetaccesscontrolacfail1386626d0e888baee64?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97183fa2-14c1-4030-98c3-5cc477fa5253" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "123e8307-201f-006a-79d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "97183fa2-14c1-4030-98c3-5cc477fa5253" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f2e69c7-b854-4ef3-a4f9-531e681890b3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f369-501e-0003-0cd4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail0787972b0acac33ef7493Fri, 01 Nov 2019 16:48:01 GMT\"0x8D75EEB4258EDF3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "7f2e69c7-b854-4ef3-a4f9-531e681890b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0787972b0acac33ef7493?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fec8e3f1-f843-4504-8ef1-be2e805bb20a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f38e-501e-0003-30d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "fec8e3f1-f843-4504-8ef1-be2e805bb20a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail0787972b0acac33ef7493", "javapathgetaccesscontrolacfail1386626d0e888baee64" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[2].json new file mode 100644 index 0000000000000..81d30645c930c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[2].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail095614144fb3089421498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7697319-f6c5-4150-89bc-b473eb529512" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42953ED1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f3b8-501e-0003-58d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "e7697319-f6c5-4150-89bc-b473eb529512" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail095614144fb3089421498/javapathgetaccesscontrolacfail1528512fe05dfd60034?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8aad8f25-2ada-4a5f-b123-ef1ffe9ed6c6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42A055FB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8308-201f-006a-7ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "8aad8f25-2ada-4a5f-b123-ef1ffe9ed6c6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail095614144fb3089421498/javapathgetaccesscontrolacfail1528512fe05dfd60034?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f116c08c-23fc-4255-9bd8-f5a8288f63d7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8309-201f-006a-7bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "f116c08c-23fc-4255-9bd8-f5a8288f63d7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail095614144fb3089421498/javapathgetaccesscontrolacfail1528512fe05dfd60034?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8fec2349-91ac-40c6-91c2-aa37bb653e18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42B83E99", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e830a-201f-006a-7cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "8fec2349-91ac-40c6-91c2-aa37bb653e18" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail095614144fb3089421498/javapathgetaccesscontrolacfail1528512fe05dfd60034?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93a504ee-808b-4aca-9c44-41e0362acb36" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "123e830b-201f-006a-7dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "93a504ee-808b-4aca-9c44-41e0362acb36" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "611230b0-b08d-40a8-ad35-2717ef714481" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f424-501e-0003-32d4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail095614144fb3089421498Fri, 01 Nov 2019 16:48:02 GMT\"0x8D75EEB42953ED1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:01 GMT", + "x-ms-client-request-id" : "611230b0-b08d-40a8-ad35-2717ef714481", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail095614144fb3089421498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b03b2771-5c0f-4670-97b5-76689e289a21" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f42d-501e-0003-3bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "b03b2771-5c0f-4670-97b5-76689e289a21" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail095614144fb3089421498", "javapathgetaccesscontrolacfail1528512fe05dfd60034" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[3].json new file mode 100644 index 0000000000000..765511b105986 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolacfail[3].json @@ -0,0 +1,178 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b52eea6-6721-4969-9ca5-843ce900a10c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42D8208A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f43e-501e-0003-4bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "1b52eea6-6721-4969-9ca5-843ce900a10c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3/javapathgetaccesscontrolacfail18928960ecadf18f324?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e68dda6-cbf0-47ba-97c8-e1e62a589b23" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42E3964E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e830c-201f-006a-7ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "0e68dda6-cbf0-47ba-97c8-e1e62a589b23" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3/javapathgetaccesscontrolacfail18928960ecadf18f324?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d3ddf144-43a7-43e9-ac80-a216406ed62b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e830d-201f-006a-7fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "d3ddf144-43a7-43e9-ac80-a216406ed62b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3/javapathgetaccesscontrolacfail18928960ecadf18f324?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bda6841a-716b-45ea-ba0b-68a906d644aa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB42F9CF9B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e830e-201f-006a-80d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "bda6841a-716b-45ea-ba0b-68a906d644aa" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3/javapathgetaccesscontrolacfail18928960ecadf18f324", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d7c9c35e-c866-431a-977c-9af629a77fdb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:02 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", + "ETag" : "0x8D75EEB42F9CF9B", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:02 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f48a-501e-0003-10d4-904d7d000000", + "x-ms-client-request-id" : "d7c9c35e-c866-431a-977c-9af629a77fdb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3/javapathgetaccesscontrolacfail18928960ecadf18f324?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "016c1890-3380-414a-bd27-f73397d7aca6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "123e830f-201f-006a-01d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "016c1890-3380-414a-bd27-f73397d7aca6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ef68fc9-607f-4ca4-91c2-3e5054bf32a7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f4ac-501e-0003-2ed4-904d7d000000", + "Body" : "jtfsgetaccesscontrolacfailjtfsgetaccesscontrolacfail0190784037f6ec7fef4c3Fri, 01 Nov 2019 16:48:02 GMT\"0x8D75EEB42D8208A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "5ef68fc9-607f-4ca4-91c2-3e5054bf32a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7edefa9-e260-4ed3-9cee-612a66c4ab1f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f4c8-501e-0003-48d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "a7edefa9-e260-4ed3-9cee-612a66c4ab1f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolacfail0190784037f6ec7fef4c3", "javapathgetaccesscontrolacfail18928960ecadf18f324" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolmin.json new file mode 100644 index 0000000000000..f1f4058348c1d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolmin.json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65df924d-87c9-47cd-996d-3b926ee62faa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3FE4BA65", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ec41-501e-0003-10d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "65df924d-87c9-47cd-996d-3b926ee62faa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704/javapathgetaccesscontrolmin133376ed36660e23db469?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bbe45ffe-1a4e-4853-8d80-4f3a7175b302" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3FEEB7C3", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82dc-201f-006a-4ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "bbe45ffe-1a4e-4853-8d80-4f3a7175b302" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704/javapathgetaccesscontrolmin133376ed36660e23db469?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f9bd3eb-457e-4cd3-80e9-c2e2ae2a002f", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82dd-201f-006a-4fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "9f9bd3eb-457e-4cd3-80e9-c2e2ae2a002f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704/javapathgetaccesscontrolmin133376ed36660e23db469?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "213c331b-1d21-4c7b-8f65-1248dae86c46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3FFEC128", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82de-201f-006a-50d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "213c331b-1d21-4c7b-8f65-1248dae86c46" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704/javapathgetaccesscontrolmin133376ed36660e23db469?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "947c1513-7bef-4513-82b9-60039d2f5dac" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "ETag" : "0x8D75EEB3FFEC128", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82df-201f-006a-51d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "947c1513-7bef-4513-82b9-60039d2f5dac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9fdb637-a2b0-4197-a8fb-adfdbed6a7ce" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575eced-501e-0003-2dd4-904d7d000000", + "Body" : "jtfsgetaccesscontrolminjtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704Fri, 01 Nov 2019 16:47:57 GMT\"0x8D75EEB3FE4BA65\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "c9fdb637-a2b0-4197-a8fb-adfdbed6a7ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65dcfc08-8be1-46bd-97f3-322eef3fe45c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ed06-501e-0003-41d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "65dcfc08-8be1-46bd-97f3-322eef3fe45c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolmin0fileapitestgetaccesscontrolmind8f26704", "javapathgetaccesscontrolmin133376ed36660e23db469" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolreturnupn.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolreturnupn.json new file mode 100644 index 0000000000000..e6580ca996a77 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolreturnupn.json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "59b53e77-208c-4234-9d36-d1473ea3ca62" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB405CE6F8", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575eda9-501e-0003-5ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "59b53e77-208c-4234-9d36-d1473ea3ca62" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a/javapathgetaccesscontrolreturnupn119492a86b5e938362?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d75b7d6f-2ad9-4e07-9178-8ffaf96f7b2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4068C46C", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82e4-201f-006a-56d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "d75b7d6f-2ad9-4e07-9178-8ffaf96f7b2b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a/javapathgetaccesscontrolreturnupn119492a86b5e938362?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37a63c2e-7eba-4b98-82a2-028f7b9b6175", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82e5-201f-006a-57d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "37a63c2e-7eba-4b98-82a2-028f7b9b6175" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a/javapathgetaccesscontrolreturnupn119492a86b5e938362?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3cc92cd1-b0ad-49b4-8f78-ec51e918fd4f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB407B94F2", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82e6-201f-006a-58d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "3cc92cd1-b0ad-49b4-8f78-ec51e918fd4f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a/javapathgetaccesscontrolreturnupn119492a86b5e938362?action=getAccessControl&upn=true", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5c15667-0dc8-45b0-a32c-99e89c2e4036" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "ETag" : "0x8D75EEB407B94F2", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82e7-201f-006a-59d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "f5c15667-0dc8-45b0-a32c-99e89c2e4036" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolreturnupn&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66990dc1-d50c-4001-a904-d7eb7b7d2d48" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ee28-501e-0003-4ed4-904d7d000000", + "Body" : "jtfsgetaccesscontrolreturnupnjtfsgetaccesscontrolreturnupn068899b6e30b63cabc4aFri, 01 Nov 2019 16:47:58 GMT\"0x8D75EEB405CE6F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "66990dc1-d50c-4001-a904-d7eb7b7d2d48", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ab4d6ec-7743-4356-bf7c-0745cd2947c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ee3e-501e-0003-64d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "9ab4d6ec-7743-4356-bf7c-0745cd2947c8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolreturnupn068899b6e30b63cabc4a", "javapathgetaccesscontrolreturnupn119492a86b5e938362" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolwithresponse.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolwithresponse.json new file mode 100644 index 0000000000000..1dfbe83f6a695 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetaccesscontrolwithresponse.json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolwithresponse0050002f6b120f9d47?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "799539a3-e7c7-468a-b40d-6e7cfc3accb3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB40221D00", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ed2b-501e-0003-65d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "799539a3-e7c7-468a-b40d-6e7cfc3accb3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolwithresponse0050002f6b120f9d47/javapathgetaccesscontrolwithresponse14891469291448aa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3e6708b-acb8-4942-aa76-d18357d10ec7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB402BE5E8", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82e0-201f-006a-52d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "f3e6708b-acb8-4942-aa76-d18357d10ec7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolwithresponse0050002f6b120f9d47/javapathgetaccesscontrolwithresponse14891469291448aa?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ccaf261e-bb94-498e-8f83-26dbd4a80bb4", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82e1-201f-006a-53d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "ccaf261e-bb94-498e-8f83-26dbd4a80bb4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolwithresponse0050002f6b120f9d47/javapathgetaccesscontrolwithresponse14891469291448aa?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea73dcdc-f872-4846-8cfb-c8ace3819e6e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB403DA117", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82e2-201f-006a-54d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "x-ms-client-request-id" : "ea73dcdc-f872-4846-8cfb-c8ace3819e6e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetaccesscontrolwithresponse0050002f6b120f9d47/javapathgetaccesscontrolwithresponse14891469291448aa?action=getAccessControl&upn=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6f51d7d-3207-489e-ac19-6a2512b6954c" + }, + "Response" : { + "x-ms-group" : "$superuser", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-acl" : "user::rw-,group::r--,other::---", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:58 GMT", + "ETag" : "0x8D75EEB403DA117", + "x-ms-permissions" : "rw-r-----", + "x-ms-request-id" : "123e82e3-201f-006a-55d4-9012d1000000", + "x-ms-owner" : "$superuser", + "x-ms-client-request-id" : "c6f51d7d-3207-489e-ac19-6a2512b6954c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetaccesscontrolwithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09bb4854-63a5-4e34-a6e0-01f8ce11439c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ed7a-501e-0003-30d4-904d7d000000", + "Body" : "jtfsgetaccesscontrolwithresponsejtfsgetaccesscontrolwithresponse0050002f6b120f9d47Fri, 01 Nov 2019 16:47:58 GMT\"0x8D75EEB40221D00\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "09bb4854-63a5-4e34-a6e0-01f8ce11439c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetaccesscontrolwithresponse0050002f6b120f9d47?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed5ee54b-bed7-4ab4-a43b-69afd749daf3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ed8a-501e-0003-40d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "ed5ee54b-bed7-4ab4-a43b-69afd749daf3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetaccesscontrolwithresponse0050002f6b120f9d47", "javapathgetaccesscontrolwithresponse14891469291448aa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[0].json new file mode 100644 index 0000000000000..c15cfd8cefc37 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[0].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbe6f5d7-d3d9-4d75-bfd2-8fd2317c57cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB43B2070B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f602-501e-0003-5ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "dbe6f5d7-d3d9-4d75-bfd2-8fd2317c57cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a/javapathgetpropertiesac1fileapitestgetpropertiesac5236997079?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a58388f-3962-4ea8-9a1a-36be3c28a520" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB43BD1044", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8316-201f-006a-08d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "7a58388f-3962-4ea8-9a1a-36be3c28a520" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a/javapathgetpropertiesac1fileapitestgetpropertiesac5236997079?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e29dfdc-60ce-443b-ac3f-f4e75c5e5fc6", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8317-201f-006a-09d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "9e29dfdc-60ce-443b-ac3f-f4e75c5e5fc6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a/javapathgetpropertiesac1fileapitestgetpropertiesac5236997079?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "044b05ea-e33a-4277-8319-e8a2e75969d7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB43CE61BE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8318-201f-006a-0ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "044b05ea-e33a-4277-8319-e8a2e75969d7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a/javapathgetpropertiesac1fileapitestgetpropertiesac5236997079", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d5bc175-f885-490a-95d4-a91101eb4f77" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:03 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", + "ETag" : "0x8D75EEB43CE61BE", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:04 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f657-501e-0003-2ad4-904d7d000000", + "x-ms-client-request-id" : "6d5bc175-f885-490a-95d4-a91101eb4f77", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af33c662-2279-452f-8b52-72a790ce5a99" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f670-501e-0003-41d4-904d7d000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1aFri, 01 Nov 2019 16:48:04 GMT\"0x8D75EEB43B2070B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "af33c662-2279-452f-8b52-72a790ce5a99", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53cc922c-2a1c-4004-89c1-be157162bb12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f684-501e-0003-53d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "53cc922c-2a1c-4004-89c1-be157162bb12" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0fileapitestgetpropertiesac52304806dc1a", "javapathgetpropertiesac1fileapitestgetpropertiesac5236997079" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[1].json new file mode 100644 index 0000000000000..697b2051e2277 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[1].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f92362d-80c0-4f61-bd51-7879278db61e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB43F361E9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f6a6-501e-0003-75d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "6f92362d-80c0-4f61-bd51-7879278db61e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94/javapathgetpropertiesac1fileapitestgetpropertiesac01c5512895?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62ba9d07-1d0c-4eeb-9904-075c1acc302d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB43FD31A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8319-201f-006a-0bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "62ba9d07-1d0c-4eeb-9904-075c1acc302d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94/javapathgetpropertiesac1fileapitestgetpropertiesac01c5512895?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "393c75d7-40e7-40e9-b4d9-6fdcb6141cc4", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e831a-201f-006a-0cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "393c75d7-40e7-40e9-b4d9-6fdcb6141cc4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94/javapathgetpropertiesac1fileapitestgetpropertiesac01c5512895?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7bfb4c3-f458-4f82-b7d3-ec7d8d5e0736" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB44127993", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e831b-201f-006a-0dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "f7bfb4c3-f458-4f82-b7d3-ec7d8d5e0736" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94/javapathgetpropertiesac1fileapitestgetpropertiesac01c5512895", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f84fd7a-18fa-4052-8bb5-30a2c084c649" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:04 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", + "ETag" : "0x8D75EEB44127993", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:04 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f715-501e-0003-55d4-904d7d000000", + "x-ms-client-request-id" : "0f84fd7a-18fa-4052-8bb5-30a2c084c649", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d9e96b6-5867-45fb-a6d7-3c903931c405" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f723-501e-0003-63d4-904d7d000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94Fri, 01 Nov 2019 16:48:04 GMT\"0x8D75EEB43F361E9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "7d9e96b6-5867-45fb-a6d7-3c903931c405", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b40a5923-9d76-4bcb-a029-2ef6f31537c5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f737-501e-0003-74d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "b40a5923-9d76-4bcb-a029-2ef6f31537c5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0fileapitestgetpropertiesac01c975637f94", "javapathgetpropertiesac1fileapitestgetpropertiesac01c5512895" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[2].json new file mode 100644 index 0000000000000..e22156436cc16 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[2].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4fe438e-b847-4a9a-b79f-78f57f4bf6c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB443A8A35", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f783-501e-0003-39d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "d4fe438e-b847-4a9a-b79f-78f57f4bf6c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571/javapathgetpropertiesac1fileapitestgetpropertiesac5b099506a7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25e22a58-066d-467f-bf3d-374872b71801" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB444460F4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e831c-201f-006a-0ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "25e22a58-066d-467f-bf3d-374872b71801" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571/javapathgetpropertiesac1fileapitestgetpropertiesac5b099506a7?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c847885e-c117-4392-8835-2ea40922352d", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e831d-201f-006a-0fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "c847885e-c117-4392-8835-2ea40922352d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571/javapathgetpropertiesac1fileapitestgetpropertiesac5b099506a7?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8815af6-6612-4eeb-bde9-0ffe0c106b65" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB445FC200", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e831e-201f-006a-10d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "a8815af6-6612-4eeb-bde9-0ffe0c106b65" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571/javapathgetpropertiesac1fileapitestgetpropertiesac5b099506a7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e2d55be4-37e1-40fc-b0ff-859ac2f545d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:04 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", + "ETag" : "0x8D75EEB445FC200", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:05 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f7df-501e-0003-0cd4-904d7d000000", + "x-ms-client-request-id" : "e2d55be4-37e1-40fc-b0ff-859ac2f545d6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9ab071a-afb0-4af6-895f-bba115d8c495" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f7e5-501e-0003-12d4-904d7d000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571Fri, 01 Nov 2019 16:48:05 GMT\"0x8D75EEB443A8A35\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "f9ab071a-afb0-4af6-895f-bba115d8c495", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "070b592f-5f1b-4cde-9fb6-51d290a073ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f7f5-501e-0003-1ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "070b592f-5f1b-4cde-9fb6-51d290a073ac" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0fileapitestgetpropertiesac5b0938252571", "javapathgetpropertiesac1fileapitestgetpropertiesac5b099506a7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[3].json new file mode 100644 index 0000000000000..6c46143b294fa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[3].json @@ -0,0 +1,189 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31cc22da-b625-46c4-b12f-c581418e756b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB447F6824", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f803-501e-0003-2cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:04 GMT", + "x-ms-client-request-id" : "31cc22da-b625-46c4-b12f-c581418e756b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22/javapathgetpropertiesac1fileapitestgetpropertiesac12272243dc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "552c10fb-c999-48d0-8b07-88d787a130c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4489FD85", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e831f-201f-006a-11d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "552c10fb-c999-48d0-8b07-88d787a130c1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22/javapathgetpropertiesac1fileapitestgetpropertiesac12272243dc?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7262147-19bf-44b7-af54-9540eeb6182f", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8320-201f-006a-12d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "b7262147-19bf-44b7-af54-9540eeb6182f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22/javapathgetpropertiesac1fileapitestgetpropertiesac12272243dc?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b122dc1c-c711-447f-ad19-efa8b5d6c361" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB449A38E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8321-201f-006a-13d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "b122dc1c-c711-447f-ad19-efa8b5d6c361" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22/javapathgetpropertiesac1fileapitestgetpropertiesac12272243dc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "683ad110-f0a3-4ceb-ad6b-ed69ab43ca97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:05 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", + "ETag" : "0x8D75EEB449A38E6", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:05 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f84c-501e-0003-6ad4-904d7d000000", + "x-ms-client-request-id" : "683ad110-f0a3-4ceb-ad6b-ed69ab43ca97", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22/javapathgetpropertiesac1fileapitestgetpropertiesac12272243dc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "caea1440-447d-4d25-ab49-cce4e8b326bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:05 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", + "ETag" : "0x8D75EEB449A38E6", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:05 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f855-501e-0003-71d4-904d7d000000", + "x-ms-client-request-id" : "caea1440-447d-4d25-ab49-cce4e8b326bb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16ce32a2-dbd7-4c9c-96f9-471e926d4293" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f866-501e-0003-01d4-904d7d000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22Fri, 01 Nov 2019 16:48:05 GMT\"0x8D75EEB447F6824\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "16ce32a2-dbd7-4c9c-96f9-471e926d4293", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22b10dd5-3c0c-47f0-8513-bbe27b9afdc7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f872-501e-0003-0cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "22b10dd5-3c0c-47f0-8513-bbe27b9afdc7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0fileapitestgetpropertiesac12239231ea22", "javapathgetpropertiesac1fileapitestgetpropertiesac12272243dc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[4].json new file mode 100644 index 0000000000000..660dd63df519e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[4].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d25377cc-1414-423e-b0ef-8fca37800a0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB44C18671", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f887-501e-0003-20d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "d25377cc-1414-423e-b0ef-8fca37800a0f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9/javapathgetpropertiesac1fileapitestgetpropertiesac7a751804f3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dcc0b2d8-41d3-4d6a-9c3b-d242ad3607f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB44CD775F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8322-201f-006a-14d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "dcc0b2d8-41d3-4d6a-9c3b-d242ad3607f5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9/javapathgetpropertiesac1fileapitestgetpropertiesac7a751804f3?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d811b21-3742-4ae0-90ab-e6c97be34b01", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8323-201f-006a-15d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "9d811b21-3742-4ae0-90ab-e6c97be34b01" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9/javapathgetpropertiesac1fileapitestgetpropertiesac7a751804f3?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24e9ba63-9da5-464e-bd33-6aff62592a40" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB44E15DA7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8324-201f-006a-16d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "24e9ba63-9da5-464e-bd33-6aff62592a40" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9/javapathgetpropertiesac1fileapitestgetpropertiesac7a751804f3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "efb7734f-8e14-4e5c-840a-4df490ca9de7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:05 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", + "ETag" : "0x8D75EEB44E15DA7", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:06 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f8e5-501e-0003-79d4-904d7d000000", + "x-ms-client-request-id" : "efb7734f-8e14-4e5c-840a-4df490ca9de7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e059504b-24ea-4533-b3cf-b2eb2c55a52e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f8f2-501e-0003-05d4-904d7d000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9Fri, 01 Nov 2019 16:48:06 GMT\"0x8D75EEB44C18671\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "e059504b-24ea-4533-b3cf-b2eb2c55a52e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6cf19acb-defc-4c3c-b00a-6265aea9c38b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f8fa-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "6cf19acb-defc-4c3c-b00a-6265aea9c38b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0fileapitestgetpropertiesac7a7446600aa9", "javapathgetpropertiesac1fileapitestgetpropertiesac7a751804f3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[5].json new file mode 100644 index 0000000000000..11e00346a9030 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesac[5].json @@ -0,0 +1,182 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c97fd46-3b31-4551-9558-86b9c8c129c4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45175774", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f929-501e-0003-36d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:05 GMT", + "x-ms-client-request-id" : "1c97fd46-3b31-4551-9558-86b9c8c129c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835/javapathgetpropertiesac1fileapitestgetpropertiesac86197995bc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4e20ebd-7f91-420d-b9c2-34cf46029f62" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB452172E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8325-201f-006a-17d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "f4e20ebd-7f91-420d-b9c2-34cf46029f62" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835/javapathgetpropertiesac1fileapitestgetpropertiesac86197995bc?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "730b1b4b-e380-45c3-a7fb-f4a85f900b0b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8327-201f-006a-19d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "730b1b4b-e380-45c3-a7fb-f4a85f900b0b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835/javapathgetpropertiesac1fileapitestgetpropertiesac86197995bc?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd2a10d6-7a7d-4e13-a888-ab857c41363f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4531CF30", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8328-201f-006a-1ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "bd2a10d6-7a7d-4e13-a888-ab857c41363f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835/javapathgetpropertiesac1fileapitestgetpropertiesac86197995bc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3fc74b7f-594a-4d36-bb93-dceaa4a3db80" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4531CF30", + "x-ms-lease-id" : "2c741eaf-9625-4f8f-8412-83e37b8fff78", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f956-501e-0003-62d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "3fc74b7f-594a-4d36-bb93-dceaa4a3db80" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835/javapathgetpropertiesac1fileapitestgetpropertiesac86197995bc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1f6ebce-b421-4c0d-be82-20d153e734d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:06 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:06 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", + "ETag" : "0x8D75EEB4531CF30", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "2575f95d-501e-0003-69d4-904d7d000000", + "x-ms-client-request-id" : "d1f6ebce-b421-4c0d-be82-20d153e734d8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "559656ed-f4eb-4a79-924c-8ac10d3f4861" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f965-501e-0003-70d4-904d7d000000", + "Body" : "jtfsgetpropertiesacjtfsgetpropertiesac0fileapitestgetpropertiesac861400521835Fri, 01 Nov 2019 16:48:06 GMT\"0x8D75EEB45175774\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "559656ed-f4eb-4a79-924c-8ac10d3f4861", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4feaefd-1dd9-4983-a1b1-85f62203f874" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f96f-501e-0003-78d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "d4feaefd-1dd9-4983-a1b1-85f62203f874" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesac0fileapitestgetpropertiesac861400521835", "javapathgetpropertiesac1fileapitestgetpropertiesac86197995bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[0].json new file mode 100644 index 0000000000000..9c4fba457ec6e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[0].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2bb86751-5ecd-409b-ad83-3a8dd98850bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB455F6A50", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f976-501e-0003-7dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "2bb86751-5ecd-409b-ad83-3a8dd98850bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216/javapathgetpropertiesacfail1289871fea415c1c614db?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4faff153-4fc3-43bb-9b16-32e46038b6f2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB457272C0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e832a-201f-006a-1cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "4faff153-4fc3-43bb-9b16-32e46038b6f2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216/javapathgetpropertiesacfail1289871fea415c1c614db?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a1285b7-3265-41e1-945b-778dd6984422", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e832b-201f-006a-1dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "8a1285b7-3265-41e1-945b-778dd6984422" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216/javapathgetpropertiesacfail1289871fea415c1c614db?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a141aae-0232-4909-b98f-1f73041470df" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4583827C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e832c-201f-006a-1ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "4a141aae-0232-4909-b98f-1f73041470df" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216/javapathgetpropertiesacfail1289871fea415c1c614db", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e02de971-630e-4931-9c94-649030eef67b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "2575f9e3-501e-0003-5bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "e02de971-630e-4931-9c94-649030eef67b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e359dc53-4ef6-42a0-bed5-c43513ebb00f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f9ef-501e-0003-67d4-904d7d000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216Fri, 01 Nov 2019 16:48:07 GMT\"0x8D75EEB455F6A50\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "e359dc53-4ef6-42a0-bed5-c43513ebb00f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7bc5f077-fc99-4fcf-bfa4-6198ae231393" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f9f8-501e-0003-6fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "7bc5f077-fc99-4fcf-bfa4-6198ae231393" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail9e510216", "javapathgetpropertiesacfail1289871fea415c1c614db" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[1].json new file mode 100644 index 0000000000000..5b3edf2708135 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[1].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cdf826d7-43e2-4cd6-9641-2bc63ab38e4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45A4E498", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fa0c-501e-0003-03d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:06 GMT", + "x-ms-client-request-id" : "cdf826d7-43e2-4cd6-9641-2bc63ab38e4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418/javapathgetpropertiesacfail1859659e0f7107f6074fe?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f74eb3e5-a4b5-4c27-b552-47130a808d45" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45AE968D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e832d-201f-006a-1fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "f74eb3e5-a4b5-4c27-b552-47130a808d45" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418/javapathgetpropertiesacfail1859659e0f7107f6074fe?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3581a96-fa96-48d4-95b3-efd8a65a0bd6", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e832e-201f-006a-20d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "a3581a96-fa96-48d4-95b3-efd8a65a0bd6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418/javapathgetpropertiesacfail1859659e0f7107f6074fe?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "642cb4de-32ca-4067-a740-79d6e66e39f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45BF05D0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e832f-201f-006a-21d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "642cb4de-32ca-4067-a740-79d6e66e39f4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418/javapathgetpropertiesacfail1859659e0f7107f6074fe", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ae57ff9-a57c-4400-985c-8ed82ca0e32d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "2575fa59-501e-0003-49d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "5ae57ff9-a57c-4400-985c-8ed82ca0e32d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb414efb-5ff1-44de-9021-0286b4e52906" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fa6e-501e-0003-5bd4-904d7d000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418Fri, 01 Nov 2019 16:48:07 GMT\"0x8D75EEB45A4E498\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "eb414efb-5ff1-44de-9021-0286b4e52906", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2937fc89-7444-401d-80b0-8939f6483d14" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fa7c-501e-0003-69d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "2937fc89-7444-401d-80b0-8939f6483d14" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1a26418", "javapathgetpropertiesacfail1859659e0f7107f6074fe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[2].json new file mode 100644 index 0000000000000..2cb723250ba7a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[2].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6438f442-4f65-43fd-b06f-4f3d1ac31df1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45E0C030", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fa8b-501e-0003-78d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "6438f442-4f65-43fd-b06f-4f3d1ac31df1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781/javapathgetpropertiesacfail1649106c7ca5fb1872459?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c113cf4-0eab-4260-a6f7-91be97037639" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45EA8EC0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8330-201f-006a-22d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "3c113cf4-0eab-4260-a6f7-91be97037639" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781/javapathgetpropertiesacfail1649106c7ca5fb1872459?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aa660bbb-5593-4588-b6f5-7df622e426ba", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8331-201f-006a-23d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "aa660bbb-5593-4588-b6f5-7df622e426ba" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781/javapathgetpropertiesacfail1649106c7ca5fb1872459?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8323f6a-265f-46c7-9afa-b7d1057bea52" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB45FDEAD5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8332-201f-006a-24d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "e8323f6a-265f-46c7-9afa-b7d1057bea52" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781/javapathgetpropertiesacfail1649106c7ca5fb1872459", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b01dc5d9-0674-47b7-ba50-0b92180613ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "2575fae7-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "b01dc5d9-0674-47b7-ba50-0b92180613ea" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f41cc55-946a-44c3-a605-7555fd888163" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575faf8-501e-0003-5dd4-904d7d000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781Fri, 01 Nov 2019 16:48:07 GMT\"0x8D75EEB45E0C030\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "6f41cc55-946a-44c3-a605-7555fd888163", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbde02d4-b2f2-469c-853e-208267997584" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fb06-501e-0003-69d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "fbde02d4-b2f2-469c-853e-208267997584" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail74755781", "javapathgetpropertiesacfail1649106c7ca5fb1872459" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[3].json new file mode 100644 index 0000000000000..920ecd27e88e6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[3].json @@ -0,0 +1,178 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "023d9dbb-48b7-4c19-874f-41f09f50b5e9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB461F344C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fb1b-501e-0003-7cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "023d9dbb-48b7-4c19-874f-41f09f50b5e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464/javapathgetpropertiesacfail11433510f7e112fe384e8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4809c8d6-9799-42f9-9ed5-40712a909161" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46297739", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8333-201f-006a-25d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "4809c8d6-9799-42f9-9ed5-40712a909161" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464/javapathgetpropertiesacfail11433510f7e112fe384e8?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1c17b82-1b93-4e60-9c25-27b8531f5b6e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8334-201f-006a-26d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "e1c17b82-1b93-4e60-9c25-27b8531f5b6e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464/javapathgetpropertiesacfail11433510f7e112fe384e8?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ecef0bf-92d4-4605-aef7-8f29174c3473" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4639B220", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8335-201f-006a-27d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "0ecef0bf-92d4-4605-aef7-8f29174c3473" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464/javapathgetpropertiesacfail11433510f7e112fe384e8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c97b28ff-75e3-40e2-8a6d-3414ba6d2eab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:07 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", + "ETag" : "0x8D75EEB4639B220", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:08 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575fb53-501e-0003-30d4-904d7d000000", + "x-ms-client-request-id" : "c97b28ff-75e3-40e2-8a6d-3414ba6d2eab", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464/javapathgetpropertiesacfail11433510f7e112fe384e8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a2e11be-96e6-4581-9ad5-b2b20bfa5db9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "2575fb68-501e-0003-42d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "1a2e11be-96e6-4581-9ad5-b2b20bfa5db9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2971db2-5703-4585-b1a7-c140a6c69d3e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fb77-501e-0003-50d4-904d7d000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464Fri, 01 Nov 2019 16:48:08 GMT\"0x8D75EEB461F344C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "a2971db2-5703-4585-b1a7-c140a6c69d3e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e72ca7e8-2b64-4610-8438-9318ce165621" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fb83-501e-0003-5cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:07 GMT", + "x-ms-client-request-id" : "e72ca7e8-2b64-4610-8438-9318ce165621" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0fileapitestgetpropertiesacfaile1067464", "javapathgetpropertiesacfail11433510f7e112fe384e8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[4].json new file mode 100644 index 0000000000000..9dd76fdc59508 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesacfail[4].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c4bc599-841c-4124-a817-b731b8371d93" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46612B86", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fb98-501e-0003-70d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "2c4bc599-841c-4124-a817-b731b8371d93" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334/javapathgetpropertiesacfail1652772c8adee180684a3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cbbfdf18-a849-456a-bb27-6adf8bd5bb88" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB466C6E68", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8336-201f-006a-28d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "cbbfdf18-a849-456a-bb27-6adf8bd5bb88" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334/javapathgetpropertiesacfail1652772c8adee180684a3?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f1bf713-bdd4-4f83-b8ff-5784689aacee", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8337-201f-006a-29d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "4f1bf713-bdd4-4f83-b8ff-5784689aacee" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334/javapathgetpropertiesacfail1652772c8adee180684a3?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b0e9e10-191b-45c4-949a-18dbb149bd51" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB467CDE44", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8338-201f-006a-2ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "4b0e9e10-191b-45c4-949a-18dbb149bd51" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334/javapathgetpropertiesacfail1652772c8adee180684a3?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6b6aafa-0c9a-452a-8545-99f0d94b758a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB467CDE44", + "x-ms-lease-id" : "ed567cce-67d0-4954-b10c-652399b2014d", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fbea-501e-0003-36d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "b6b6aafa-0c9a-452a-8545-99f0d94b758a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334/javapathgetpropertiesacfail1652772c8adee180684a3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a71fc414-f6c8-402a-b4fb-d75b76e12086" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "StatusCode" : "412", + "x-ms-request-id" : "2575fbf2-501e-0003-3ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "a71fc414-f6c8-402a-b4fb-d75b76e12086" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "edfd4bd4-f134-431d-bc91-5bb703850c78" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fc01-501e-0003-4dd4-904d7d000000", + "Body" : "jtfsgetpropertiesacfailjtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334Fri, 01 Nov 2019 16:48:08 GMT\"0x8D75EEB46612B86\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "edfd4bd4-f134-431d-bc91-5bb703850c78", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce05d770-991c-4c67-9ac8-9bc19f3560c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fc16-501e-0003-5ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "ce05d770-991c-4c67-9ac8-9bc19f3560c0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesacfail0fileapitestgetpropertiesacfail03e29334", "javapathgetpropertiesacfail1652772c8adee180684a3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesdefault.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesdefault.json new file mode 100644 index 0000000000000..eab5c1c054626 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesdefault.json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesdefault093179096087b3fe2a4c49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "225304e6-e5c9-4e7e-a54b-021c14a1fd5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4320A8A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f4d8-501e-0003-57d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "225304e6-e5c9-4e7e-a54b-021c14a1fd5f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesdefault093179096087b3fe2a4c49/javapathgetpropertiesdefault1205940ad7eaaf909e4a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8ee3f8b-8036-4b89-b315-357cae5bd9ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB432A8645", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8310-201f-006a-02d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "e8ee3f8b-8036-4b89-b315-357cae5bd9ef" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesdefault093179096087b3fe2a4c49/javapathgetpropertiesdefault1205940ad7eaaf909e4a?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d27cfd8a-b966-4944-adb4-70a1e6461df0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8311-201f-006a-03d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "d27cfd8a-b966-4944-adb4-70a1e6461df0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesdefault093179096087b3fe2a4c49/javapathgetpropertiesdefault1205940ad7eaaf909e4a?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6906c99-c9e2-4aec-9e74-659f38d6e1d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB433C8A09", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8312-201f-006a-04d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "c6906c99-c9e2-4aec-9e74-659f38d6e1d3" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesdefault093179096087b3fe2a4c49/javapathgetpropertiesdefault1205940ad7eaaf909e4a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb683b9f-ac1e-4df7-9d91-f28d9b7d0ddf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:02 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", + "ETag" : "0x8D75EEB433C8A09", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:03 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f513-501e-0003-0dd4-904d7d000000", + "x-ms-client-request-id" : "eb683b9f-ac1e-4df7-9d91-f28d9b7d0ddf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesdefault&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3b3242c-90b4-4f60-9e2d-808a173ec48c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f521-501e-0003-1ad4-904d7d000000", + "Body" : "jtfsgetpropertiesdefaultjtfsgetpropertiesdefault093179096087b3fe2a4c49Fri, 01 Nov 2019 16:48:03 GMT\"0x8D75EEB4320A8A7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "e3b3242c-90b4-4f60-9e2d-808a173ec48c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesdefault093179096087b3fe2a4c49?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93684dc0-8266-4fbe-903a-563058ac966b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f532-501e-0003-29d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:02 GMT", + "x-ms-client-request-id" : "93684dc0-8266-4fbe-903a-563058ac966b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesdefault093179096087b3fe2a4c49", "javapathgetpropertiesdefault1205940ad7eaaf909e4a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertieserror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertieserror.json new file mode 100644 index 0000000000000..e6fcb23301a98 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertieserror.json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7426a83d-7ad0-4781-b8b6-167108c6bf67" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46A5E25E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fc29-501e-0003-6ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "7426a83d-7ad0-4781-b8b6-167108c6bf67" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967/javapathgetpropertieserror163328ba64debcc33c411?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92c8cb42-5d7e-4094-b4ab-acba099a5772" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46AF8B36", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8339-201f-006a-2bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "92c8cb42-5d7e-4094-b4ab-acba099a5772" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967/javapathgetpropertieserror163328ba64debcc33c411?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab7058dd-27a3-44fd-ba84-3310ef6ad1d3", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e833a-201f-006a-2cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "ab7058dd-27a3-44fd-ba84-3310ef6ad1d3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967/javapathgetpropertieserror163328ba64debcc33c411?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "723380e4-c9d1-4fa8-8108-8f892ed8709b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46BFD7E1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e833b-201f-006a-2dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "723380e4-c9d1-4fa8-8108-8f892ed8709b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967/javapathgetpropertieserror221083b0fee860d6734ee", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a499ab72-5b6e-4f98-825f-859e0f0c3c92" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "2575fc61-501e-0003-1ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "a499ab72-5b6e-4f98-825f-859e0f0c3c92" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertieserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6e573e6-6db0-4014-a803-9263f6a63fed" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fc70-501e-0003-2ad4-904d7d000000", + "Body" : "jtfsgetpropertieserrorjtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967Fri, 01 Nov 2019 16:48:09 GMT\"0x8D75EEB46A5E25E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "f6e573e6-6db0-4014-a803-9263f6a63fed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e9a18aa-58b9-4df5-a49c-813ec314a2e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fc78-501e-0003-32d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "7e9a18aa-58b9-4df5-a49c-813ec314a2e5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertieserror0fileapitestgetpropertieserror2cd178967", "javapathgetpropertieserror163328ba64debcc33c411", "javapathgetpropertieserror221083b0fee860d6734ee" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesmin.json new file mode 100644 index 0000000000000..09e0d0e7122e3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestgetpropertiesmin.json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "766ac324-6e5a-4e16-ac09-d3e5765227c5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB435EA785", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575f549-501e-0003-3ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "766ac324-6e5a-4e16-ac09-d3e5765227c5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6/javapathgetpropertiesmin1fileapitestgetpropertiesminc0a887904?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b685f91-877e-4e94-b63c-ad126fd1d038" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4374107E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8313-201f-006a-05d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "6b685f91-877e-4e94-b63c-ad126fd1d038" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6/javapathgetpropertiesmin1fileapitestgetpropertiesminc0a887904?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "373b0cbf-ed92-4c71-a596-68843a8e0ba1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8314-201f-006a-06d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "373b0cbf-ed92-4c71-a596-68843a8e0ba1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6/javapathgetpropertiesmin1fileapitestgetpropertiesminc0a887904?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bca58df8-c987-42bf-8857-fb8daa1a689f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB438FBA83", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8315-201f-006a-07d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "bca58df8-c987-42bf-8857-fb8daa1a689f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6/javapathgetpropertiesmin1fileapitestgetpropertiesminc0a887904", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "19b1df3d-d198-4154-a639-9d6834134940" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:03 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", + "ETag" : "0x8D75EEB438FBA83", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:03 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575f5ad-501e-0003-15d4-904d7d000000", + "x-ms-client-request-id" : "19b1df3d-d198-4154-a639-9d6834134940", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "075b51b8-d124-490f-9aa0-558a0f107456" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575f5de-501e-0003-3dd4-904d7d000000", + "Body" : "jtfsgetpropertiesminjtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6Fri, 01 Nov 2019 16:48:03 GMT\"0x8D75EEB435EA785\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "075b51b8-d124-490f-9aa0-558a0f107456", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7950f2c8-ae35-4dd4-b63e-7707bf1c90fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575f5ee-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:03 GMT", + "x-ms-client-request-id" : "7950f2c8-ae35-4dd4-b63e-7707bf1c90fe" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesmin0fileapitestgetpropertiesminc0a376024a6", "javapathgetpropertiesmin1fileapitestgetpropertiesminc0a887904" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[0].json new file mode 100644 index 0000000000000..73fe3f3a07a4e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[0].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacc1a0267272a589a634954?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7252f2d7-bb08-4086-bafe-bc645d9e2ee9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB512CDFB5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257611c0-501e-0003-3fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "7252f2d7-bb08-4086-bafe-bc645d9e2ee9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadacc1a0267272a589a634954/javapathreadac1fileapitestreadacc1a81032fb11d90f039?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e6a950dd-47d7-4ebf-8fdb-95025feae685" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51389D03", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83be-201f-006a-29d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "e6a950dd-47d7-4ebf-8fdb-95025feae685" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadacc1a0267272a589a634954/javapathreadac1fileapitestreadacc1a81032fb11d90f039?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e642d23f-2b8e-4215-a2f9-e091764a1fde", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83bf-201f-006a-2ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "e642d23f-2b8e-4215-a2f9-e091764a1fde" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadacc1a0267272a589a634954/javapathreadac1fileapitestreadacc1a81032fb11d90f039?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61e90a23-8189-4397-b102-a527587f4ef0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51481E93", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c0-201f-006a-2bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "61e90a23-8189-4397-b102-a527587f4ef0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacc1a0267272a589a634954/javapathreadac1fileapitestreadacc1a81032fb11d90f039", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb1be620-ad14-4077-a452-caa907aaca0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB51481E93", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:26 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257611f0-501e-0003-6cd4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "eb1be620-ad14-4077-a452-caa907aaca0c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7401d15-996b-40f7-ae6c-88ea24627f2f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257611fd-501e-0003-79d4-904d7d000000", + "Body" : "jtfsreadacjtfsreadac0fileapitestreadacc1a0267272a589a634954Fri, 01 Nov 2019 16:48:26 GMT\"0x8D75EEB512CDFB5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "f7401d15-996b-40f7-ae6c-88ea24627f2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacc1a0267272a589a634954?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ccfff34-3137-4552-8653-84d335f2b0d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576120f-501e-0003-0ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "8ccfff34-3137-4552-8653-84d335f2b0d1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadac0fileapitestreadacc1a0267272a589a634954", "javapathreadac1fileapitestreadacc1a81032fb11d90f039" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[1].json new file mode 100644 index 0000000000000..2269964e308b8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[1].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac438752725de2b37c56a44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd9730cb-1495-4b66-b531-0e309af88731" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5167826E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761221-501e-0003-1bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "dd9730cb-1495-4b66-b531-0e309af88731" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac438752725de2b37c56a44/javapathreadac1fileapitestreadac438840669d97eb7c902?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4905fdf-9439-4e77-8ff1-a4c6871c7b0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5170F14D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83c1-201f-006a-2cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "a4905fdf-9439-4e77-8ff1-a4c6871c7b0c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac438752725de2b37c56a44/javapathreadac1fileapitestreadac438840669d97eb7c902?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e2eb48d-550f-48a1-88dd-69db8de070c6", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c2-201f-006a-2dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "2e2eb48d-550f-48a1-88dd-69db8de070c6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac438752725de2b37c56a44/javapathreadac1fileapitestreadac438840669d97eb7c902?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "69a8b306-07d3-42ec-aab8-0abccfd69e1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5181A21B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c3-201f-006a-2ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "69a8b306-07d3-42ec-aab8-0abccfd69e1a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac438752725de2b37c56a44/javapathreadac1fileapitestreadac438840669d97eb7c902", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d326063-e136-4002-84df-9ef657428765" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB5181A21B", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:27 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2576124f-501e-0003-42d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "7d326063-e136-4002-84df-9ef657428765", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4c70af0-6810-444c-b34c-4770e93f2c06" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761259-501e-0003-4cd4-904d7d000000", + "Body" : "jtfsreadacjtfsreadac0fileapitestreadac438752725de2b37c56a44Fri, 01 Nov 2019 16:48:27 GMT\"0x8D75EEB5167826E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "a4c70af0-6810-444c-b34c-4770e93f2c06", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac438752725de2b37c56a44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61b61c4e-878f-4a95-9cc3-e8f6aa3dae34" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761263-501e-0003-56d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "61b61c4e-878f-4a95-9cc3-e8f6aa3dae34" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadac0fileapitestreadac438752725de2b37c56a44", "javapathreadac1fileapitestreadac438840669d97eb7c902" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[2].json new file mode 100644 index 0000000000000..42a31c90b7f5a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[2].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac362372612d70807f471d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22943377-26dc-4057-ac57-0a5f6501b379" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51A0C55F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576126f-501e-0003-62d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "22943377-26dc-4057-ac57-0a5f6501b379" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac362372612d70807f471d4/javapathreadac1fileapitestreadac36266827edd053c1b11?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "928ddd5a-14ae-4dae-8478-00bf8c975d7b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51AA5EFA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83c4-201f-006a-2fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "928ddd5a-14ae-4dae-8478-00bf8c975d7b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac362372612d70807f471d4/javapathreadac1fileapitestreadac36266827edd053c1b11?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7086128b-17f7-4335-b893-90ec442f0332", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c5-201f-006a-30d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "7086128b-17f7-4335-b893-90ec442f0332" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac362372612d70807f471d4/javapathreadac1fileapitestreadac36266827edd053c1b11?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae4ebf17-fb04-480d-8598-896f7f440ed6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51BCACDA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c6-201f-006a-31d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "ae4ebf17-fb04-480d-8598-896f7f440ed6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac362372612d70807f471d4/javapathreadac1fileapitestreadac36266827edd053c1b11", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "51cc5429-4b4d-4344-be8c-56cc7b4347ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB51BCACDA", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:27 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257612a4-501e-0003-0cd4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "51cc5429-4b4d-4344-be8c-56cc7b4347ab", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71eeca87-a34e-4456-b6ff-e6ca1f1693a7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257612b7-501e-0003-1fd4-904d7d000000", + "Body" : "jtfsreadacjtfsreadac0fileapitestreadac362372612d70807f471d4Fri, 01 Nov 2019 16:48:27 GMT\"0x8D75EEB51A0C55F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "71eeca87-a34e-4456-b6ff-e6ca1f1693a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac362372612d70807f471d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cb06487-cf33-4381-895c-73fba6e3428b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257612c0-501e-0003-28d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "0cb06487-cf33-4381-895c-73fba6e3428b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadac0fileapitestreadac362372612d70807f471d4", "javapathreadac1fileapitestreadac36266827edd053c1b11" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[3].json new file mode 100644 index 0000000000000..288510eb8759c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[3].json @@ -0,0 +1,188 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "77fe86ec-16fb-45e0-a5d4-26c6ab1999cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51E1AAD7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257612cf-501e-0003-35d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "77fe86ec-16fb-45e0-a5d4-26c6ab1999cf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84/javapathreadac1fileapitestreadacacd511088739a8b85be?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "086c10ea-d101-4adc-a978-e56813a10bcf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB51ECC643", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83c7-201f-006a-32d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "086c10ea-d101-4adc-a978-e56813a10bcf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84/javapathreadac1fileapitestreadacacd511088739a8b85be?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c922cfef-8b7f-432d-86c1-4a6237f70357", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c8-201f-006a-33d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "c922cfef-8b7f-432d-86c1-4a6237f70357" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84/javapathreadac1fileapitestreadacacd511088739a8b85be?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18d8ecb6-6c17-4eca-aead-d523d5d5dbbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5205EB1F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83c9-201f-006a-34d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "18d8ecb6-6c17-4eca-aead-d523d5d5dbbe" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84/javapathreadac1fileapitestreadacacd511088739a8b85be", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a38e226-c851-4464-85b4-8f0cead8dbf3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48: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", + "ETag" : "0x8D75EEB5205EB1F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:28 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2576131a-501e-0003-72d4-904d7d000000", + "x-ms-client-request-id" : "1a38e226-c851-4464-85b4-8f0cead8dbf3", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84/javapathreadac1fileapitestreadacacd511088739a8b85be", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2bddee54-4a0f-4463-9984-2a3201695c97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB5205EB1F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:28 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25761329-501e-0003-80d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "2bddee54-4a0f-4463-9984-2a3201695c97", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "11fe5758-f021-42e8-b376-1b59858b2006" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761335-501e-0003-09d4-904d7d000000", + "Body" : "jtfsreadacjtfsreadac0fileapitestreadacacd122602a0d356917f84Fri, 01 Nov 2019 16:48:28 GMT\"0x8D75EEB51E1AAD7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "11fe5758-f021-42e8-b376-1b59858b2006", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadacacd122602a0d356917f84?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "796603f5-2749-41c4-ac4e-e70f859ee6b8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761341-501e-0003-15d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "796603f5-2749-41c4-ac4e-e70f859ee6b8" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadac0fileapitestreadacacd122602a0d356917f84", "javapathreadac1fileapitestreadacacd511088739a8b85be" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[4].json new file mode 100644 index 0000000000000..18aa36396e6c4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[4].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac937567533e1bb30bb67a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b21f1609-70bf-4786-8e5c-50874af0be38" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52304E75", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576134e-501e-0003-22d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:27 GMT", + "x-ms-client-request-id" : "b21f1609-70bf-4786-8e5c-50874af0be38" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac937567533e1bb30bb67a4/javapathreadac1fileapitestreadac937945448945d9dd557?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f241539-6514-4822-adea-ae18e729a8de" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5242C436", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83ca-201f-006a-35d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "0f241539-6514-4822-adea-ae18e729a8de" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac937567533e1bb30bb67a4/javapathreadac1fileapitestreadac937945448945d9dd557?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ab5b1d7-61af-46bc-891e-7c336cc4b459", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83cb-201f-006a-36d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "2ab5b1d7-61af-46bc-891e-7c336cc4b459" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac937567533e1bb30bb67a4/javapathreadac1fileapitestreadac937945448945d9dd557?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32a20e42-1361-495a-8ffe-54e588208c2e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52538019", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83cc-201f-006a-37d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "32a20e42-1361-495a-8ffe-54e588208c2e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac937567533e1bb30bb67a4/javapathreadac1fileapitestreadac937945448945d9dd557", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b693756-79d9-4a17-ad07-b3abc255f27e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB52538019", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:28 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25761385-501e-0003-54d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "2b693756-79d9-4a17-ad07-b3abc255f27e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "749c8887-916a-4e3a-ab28-3c1575b18b13" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761392-501e-0003-5ed4-904d7d000000", + "Body" : "jtfsreadacjtfsreadac0fileapitestreadac937567533e1bb30bb67a4Fri, 01 Nov 2019 16:48:28 GMT\"0x8D75EEB52304E75\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "749c8887-916a-4e3a-ab28-3c1575b18b13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac937567533e1bb30bb67a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fefcfa89-613d-4686-b825-27db92ec2946" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257613a3-501e-0003-6cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "fefcfa89-613d-4686-b825-27db92ec2946" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadac0fileapitestreadac937567533e1bb30bb67a4", "javapathreadac1fileapitestreadac937945448945d9dd557" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[5].json new file mode 100644 index 0000000000000..14492425081b4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadac[5].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8edea8e-66c9-4072-9fde-892c7ec55948" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5273A564", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257613aa-501e-0003-73d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "a8edea8e-66c9-4072-9fde-892c7ec55948" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504/javapathreadac1fileapitestreadac15004069b8260e58511?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1aa7fb35-ee54-4a74-bea5-c5d341e166d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB527D3B45", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83cd-201f-006a-38d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "1aa7fb35-ee54-4a74-bea5-c5d341e166d1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504/javapathreadac1fileapitestreadac15004069b8260e58511?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fb2d4f56-b96e-4e2b-8dc2-eded4d882183", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83ce-201f-006a-39d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "fb2d4f56-b96e-4e2b-8dc2-eded4d882183" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504/javapathreadac1fileapitestreadac15004069b8260e58511?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea3913b0-b4ba-4edc-a46b-d1bf5d6bd6c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52939347", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83cf-201f-006a-3ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "ea3913b0-b4ba-4edc-a46b-d1bf5d6bd6c1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504/javapathreadac1fileapitestreadac15004069b8260e58511?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9690b90f-e84d-45b5-8517-495e026923c5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52939347", + "x-ms-lease-id" : "73a80973-cb09-4e3c-b3f4-0870ad7a3f56", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576140d-501e-0003-4bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "9690b90f-e84d-45b5-8517-495e026923c5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504/javapathreadac1fileapitestreadac15004069b8260e58511", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0f0024f-9fa1-433d-995b-48d0c26304d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB52939347", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "7", + "x-ms-request-id" : "25761418-501e-0003-56d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "c0f0024f-9fa1-433d-995b-48d0c26304d1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ab6895b-5329-45f1-8b3c-d154b488bc6b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576142b-501e-0003-68d4-904d7d000000", + "Body" : "jtfsreadacjtfsreadac0fileapitestreadac1505458938e44c6c95504Fri, 01 Nov 2019 16:48:28 GMT\"0x8D75EEB5273A564\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "1ab6895b-5329-45f1-8b3c-d154b488bc6b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadac0fileapitestreadac1505458938e44c6c95504?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca11de57-2b1b-437c-8093-3f447e29f3f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761437-501e-0003-72d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "ca11de57-2b1b-437c-8093-3f447e29f3f0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadac0fileapitestreadac1505458938e44c6c95504", "javapathreadac1fileapitestreadac15004069b8260e58511" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[0].json new file mode 100644 index 0000000000000..a8703c7b8006a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[0].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bdd3dff1-5db9-4fec-acb2-3f3ce88928b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52BE77C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761442-501e-0003-7bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "bdd3dff1-5db9-4fec-acb2-3f3ce88928b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7/javapathreadacfail1fileapitestreadacfail8bc085736e47995?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b50469b7-b9ab-4623-ba55-972d0aea2586" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52C84DFF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83d0-201f-006a-3bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "b50469b7-b9ab-4623-ba55-972d0aea2586" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7/javapathreadacfail1fileapitestreadacfail8bc085736e47995?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aae2e9d7-325b-4bc5-b942-350312bc04c9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83d1-201f-006a-3cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "aae2e9d7-325b-4bc5-b942-350312bc04c9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7/javapathreadacfail1fileapitestreadacfail8bc085736e47995?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7590890-0fc5-48cb-a569-da76326658dc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52D7E3CB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83d2-201f-006a-3dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "a7590890-0fc5-48cb-a569-da76326658dc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7/javapathreadacfail1fileapitestreadacfail8bc085736e47995", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4091ff4-dffc-42b1-a418-3441cf9cad33" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "25761489-501e-0003-37d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:28 GMT", + "x-ms-client-request-id" : "d4091ff4-dffc-42b1-a418-3441cf9cad33" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef273af4-eb97-4272-8395-045423ba6d41" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257614a0-501e-0003-49d4-904d7d000000", + "Body" : "jtfsreadacfailjtfsreadacfail0fileapitestreadacfail8bc11922137526ea7Fri, 01 Nov 2019 16:48:29 GMT\"0x8D75EEB52BE77C2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "ef273af4-eb97-4272-8395-045423ba6d41", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1396a814-de07-4742-a370-cae75e63518a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257614ac-501e-0003-54d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "1396a814-de07-4742-a370-cae75e63518a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadacfail0fileapitestreadacfail8bc11922137526ea7", "javapathreadacfail1fileapitestreadacfail8bc085736e47995" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[1].json new file mode 100644 index 0000000000000..2eca14909a83c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46e63dc9-423f-45f4-bae1-1cf9b27d086a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB52F6F737", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257614bb-501e-0003-62d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "46e63dc9-423f-45f4-bae1-1cf9b27d086a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b/javapathreadacfail1fileapitestreadacfail6b72658388b0cb7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66db2dbc-e3c4-464e-af94-f6540a71cd18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5301DC45", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83d3-201f-006a-3ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "66db2dbc-e3c4-464e-af94-f6540a71cd18" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b/javapathreadacfail1fileapitestreadacfail6b72658388b0cb7?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9225c3c3-992a-4eb3-a5ad-40348619edee", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83d4-201f-006a-3fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "9225c3c3-992a-4eb3-a5ad-40348619edee" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b/javapathreadacfail1fileapitestreadacfail6b72658388b0cb7?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb70c0de-cae2-484d-bd74-be7465c7039b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53116919", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83d5-201f-006a-40d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "eb70c0de-cae2-484d-bd74-be7465c7039b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b/javapathreadacfail1fileapitestreadacfail6b72658388b0cb7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c03719c-8da6-4a32-ae62-356bcf80b3f6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "257614f0-501e-0003-10d4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:257614f0-501e-0003-10d4-904d7d000000\nTime:2019-11-01T16:48:30.0678484Z", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "1c03719c-8da6-4a32-ae62-356bcf80b3f6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a23fcd9b-c43c-49c6-847f-c48c17abf0ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761507-501e-0003-23d4-904d7d000000", + "Body" : "jtfsreadacfailjtfsreadacfail0fileapitestreadacfail6b716184d56cda29bFri, 01 Nov 2019 16:48:29 GMT\"0x8D75EEB52F6F737\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "a23fcd9b-c43c-49c6-847f-c48c17abf0ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a147c589-77c0-4451-b0a5-447794c5f937" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761513-501e-0003-2fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "a147c589-77c0-4451-b0a5-447794c5f937" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadacfail0fileapitestreadacfail6b716184d56cda29b", "javapathreadacfail1fileapitestreadacfail6b72658388b0cb7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[2].json new file mode 100644 index 0000000000000..9607ebcaceab0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ade716ff-541e-4829-9662-9fa3c1be36bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53306140", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576151e-501e-0003-3ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "ade716ff-541e-4829-9662-9fa3c1be36bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2/javapathreadacfail1fileapitestreadacfaileba64104c7614a8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b122701-7db7-447c-aef6-59614446c064" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB533A4AA5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83d6-201f-006a-41d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "8b122701-7db7-447c-aef6-59614446c064" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2/javapathreadacfail1fileapitestreadacfaileba64104c7614a8?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d2c41375-590e-48b0-b479-6d23c46c82c2", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83d7-201f-006a-42d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "d2c41375-590e-48b0-b479-6d23c46c82c2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2/javapathreadacfail1fileapitestreadacfaileba64104c7614a8?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d9c0fdd-a2c5-469c-8d90-eea5d11f54be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB535A68E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83d8-201f-006a-43d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "3d9c0fdd-a2c5-469c-8d90-eea5d11f54be" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2/javapathreadacfail1fileapitestreadacfaileba64104c7614a8", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0cf5b97-9b26-4184-ac3e-afbe7591d966" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "2576157a-501e-0003-06d4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:2576157a-501e-0003-06d4-904d7d000000\nTime:2019-11-01T16:48:30.5421888Z", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "e0cf5b97-9b26-4184-ac3e-afbe7591d966", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38cfb8c3-1c83-41dc-b900-4580c9345bc6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576158a-501e-0003-16d4-904d7d000000", + "Body" : "jtfsreadacfailjtfsreadacfail0fileapitestreadacfaileba85037a204c11a2Fri, 01 Nov 2019 16:48:30 GMT\"0x8D75EEB53306140\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "38cfb8c3-1c83-41dc-b900-4580c9345bc6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c79c2d71-204d-46f9-aff7-56bfa66c9123" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761598-501e-0003-24d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "c79c2d71-204d-46f9-aff7-56bfa66c9123" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadacfail0fileapitestreadacfaileba85037a204c11a2", "javapathreadacfail1fileapitestreadacfaileba64104c7614a8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[3].json new file mode 100644 index 0000000000000..8053c423864d0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[3].json @@ -0,0 +1,178 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "276514a8-44bd-4803-8806-173775cc352d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53795E84", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257615a6-501e-0003-31d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:29 GMT", + "x-ms-client-request-id" : "276514a8-44bd-4803-8806-173775cc352d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9/javapathreadacfail1fileapitestreadacfailc0158105815214d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "094c06cd-cd2e-4899-bb27-85bc7cceca0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53835843", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83d9-201f-006a-44d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "094c06cd-cd2e-4899-bb27-85bc7cceca0c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9/javapathreadacfail1fileapitestreadacfailc0158105815214d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b68253fc-861d-4504-b20d-39a5206a55a0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83da-201f-006a-45d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "b68253fc-861d-4504-b20d-39a5206a55a0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9/javapathreadacfail1fileapitestreadacfailc0158105815214d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6363036-051e-4236-8970-ecac06c80665" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5393BB4D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83db-201f-006a-46d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "c6363036-051e-4236-8970-ecac06c80665" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9/javapathreadacfail1fileapitestreadacfailc0158105815214d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab804af8-5403-456c-a609-b583c12f9961" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:30 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:30 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", + "ETag" : "0x8D75EEB5393BB4D", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:30 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257615fc-501e-0003-7fd4-904d7d000000", + "x-ms-client-request-id" : "ab804af8-5403-456c-a609-b583c12f9961", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9/javapathreadacfail1fileapitestreadacfailc0158105815214d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3876911d-9c66-474e-84a3-c9c9d7bb2663" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "StatusCode" : "304", + "x-ms-request-id" : "2576160d-501e-0003-0fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "3876911d-9c66-474e-84a3-c9c9d7bb2663" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1222b4c-e7c9-4d62-a758-31943cdfa7fb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761626-501e-0003-24d4-904d7d000000", + "Body" : "jtfsreadacfailjtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9Fri, 01 Nov 2019 16:48:30 GMT\"0x8D75EEB53795E84\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "f1222b4c-e7c9-4d62-a758-31943cdfa7fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8e12687-b318-4a73-ab2f-1a9425446108" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576163a-501e-0003-36d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "b8e12687-b318-4a73-ab2f-1a9425446108" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadacfail0fileapitestreadacfailc01832943d4ca34d9", "javapathreadacfail1fileapitestreadacfailc0158105815214d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[4].json new file mode 100644 index 0000000000000..a29f854506fe2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c265a04-6e11-40b4-9268-726db2e1f349" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53B95971", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761654-501e-0003-4dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "3c265a04-6e11-40b4-9268-726db2e1f349" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582/javapathreadacfail1fileapitestreadacfail19775374fb4c603?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e365895-03d2-4770-b050-3bb156627e4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53C516A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83dc-201f-006a-47d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "8e365895-03d2-4770-b050-3bb156627e4b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582/javapathreadacfail1fileapitestreadacfail19775374fb4c603?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba1b3456-7ca4-4595-a557-695ef094e339", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83dd-201f-006a-48d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "ba1b3456-7ca4-4595-a557-695ef094e339" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582/javapathreadacfail1fileapitestreadacfail19775374fb4c603?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2074abd-d808-4ae7-b928-78d189a14e6f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53D4F866", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83de-201f-006a-49d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "b2074abd-d808-4ae7-b928-78d189a14e6f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582/javapathreadacfail1fileapitestreadacfail19775374fb4c603?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4b01c94-d4b3-432f-a81e-5bd8c19f2101" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53D4F866", + "x-ms-lease-id" : "5acde363-b315-4248-80a8-e7e891c310ac", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761681-501e-0003-74d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "b4b01c94-d4b3-432f-a81e-5bd8c19f2101" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582/javapathreadacfail1fileapitestreadacfail19775374fb4c603", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eccd6114-7151-488f-91e0-c43ac7173520" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "25761688-501e-0003-7bd4-904d7d000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:25761688-501e-0003-7bd4-904d7d000000\nTime:2019-11-01T16:48:31.4088090Z", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "eccd6114-7151-488f-91e0-c43ac7173520", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d160a82-9e63-4cf4-8dba-6780e42479ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576168f-501e-0003-01d4-904d7d000000", + "Body" : "jtfsreadacfailjtfsreadacfail0fileapitestreadacfail1975678496042b582Fri, 01 Nov 2019 16:48:31 GMT\"0x8D75EEB53B95971\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "5d160a82-9e63-4cf4-8dba-6780e42479ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadacfail0fileapitestreadacfail1975678496042b582?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3262cea-1fc7-43c3-9fde-fc80873b40dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761696-501e-0003-08d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "e3262cea-1fc7-43c3-9fde-fc80873b40dd" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadacfail0fileapitestreadacfail1975678496042b582", "javapathreadacfail1fileapitestreadacfail19775374fb4c603" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadallnull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadallnull.json new file mode 100644 index 0000000000000..ab295a88a6ae6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadallnull.json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22729734-98ff-42e9-8d00-37b660fd6e20" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F41062A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760e28-501e-0003-16d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "22729734-98ff-42e9-8d00-37b660fd6e20" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac/javapathreadallnull1fileapitestreadallnull2ff84154ac5a35?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0392101-5df1-40c1-a94e-c54b61051d96" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F513658", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83a0-201f-006a-11d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "c0392101-5df1-40c1-a94e-c54b61051d96" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac/javapathreadallnull1fileapitestreadallnull2ff84154ac5a35?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5023351-00bc-4f71-8502-67f42c1803c5", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83a1-201f-006a-12d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "b5023351-00bc-4f71-8502-67f42c1803c5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac/javapathreadallnull1fileapitestreadallnull2ff84154ac5a35?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c03fd30-685d-4b99-9d87-3a034acc2251" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F629467", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83a2-201f-006a-13d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "9c03fd30-685d-4b99-9d87-3a034acc2251" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac/javapathreadallnull1fileapitestreadallnull2ff84154ac5a35", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "718e24f2-86ea-495e-8c8e-2c61cf7997fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4F629467", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:23 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25760e6e-501e-0003-54d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "718e24f2-86ea-495e-8c8e-2c61cf7997fb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ddc58c5-dc8a-4db3-a4f1-8972807549bb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760e7c-501e-0003-62d4-904d7d000000", + "Body" : "jtfsreadallnulljtfsreadallnull0fileapitestreadallnull2ff24002adb099acFri, 01 Nov 2019 16:48:23 GMT\"0x8D75EEB4F41062A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "0ddc58c5-dc8a-4db3-a4f1-8972807549bb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5bfe23a-4091-4694-bc83-13b9b5728553" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760e8c-501e-0003-72d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "b5bfe23a-4091-4694-bc83-13b9b5728553" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadallnull0fileapitestreadallnull2ff24002adb099ac", "javapathreadallnull1fileapitestreadallnull2ff84154ac5a35" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreademptyfile.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreademptyfile.json new file mode 100644 index 0000000000000..caf7dd2b1c53d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreademptyfile.json @@ -0,0 +1,178 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28ebda5e-aaf7-4cee-9c91-ea0e0377de7d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F87E1E4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760ea0-501e-0003-06d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "28ebda5e-aaf7-4cee-9c91-ea0e0377de7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9/javapathreademptyfile1fileapitestreademptyfile89290618aba4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01a1b7dd-c72a-4a26-accd-327dfb1a702d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F92844B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83a3-201f-006a-14d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "01a1b7dd-c72a-4a26-accd-327dfb1a702d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9/javapathreademptyfile1fileapitestreademptyfile89290618aba4?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "75d6e354-4c52-4422-bbfb-06444a349cd5", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83a4-201f-006a-15d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "75d6e354-4c52-4422-bbfb-06444a349cd5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9/javapathreademptyfile1fileapitestreademptyfile89290618aba4?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4eee2cc-ea4f-406b-a4a6-e046de27bc4e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4FA29C4F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83a5-201f-006a-16d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "b4eee2cc-ea4f-406b-a4a6-e046de27bc4e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9/emptyFile?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b1a0899f-de4f-411f-bc06-98892a720738" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4FAB558C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83a6-201f-006a-17d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "b1a0899f-de4f-411f-bc06-98892a720738" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9/emptyFile", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1997e2b7-83a4-4162-baf4-4a884d77f234" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4FAB558C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:24 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "25760eff-501e-0003-5ad4-904d7d000000", + "x-ms-client-request-id" : "1997e2b7-83a4-4162-baf4-4a884d77f234", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreademptyfile&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "038f8599-f2a2-4725-8499-5cf584cbcd70" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760f07-501e-0003-62d4-904d7d000000", + "Body" : "jtfsreademptyfilejtfsreademptyfile0fileapitestreademptyfile89211502e722c9Fri, 01 Nov 2019 16:48:24 GMT\"0x8D75EEB4F87E1E4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "038f8599-f2a2-4725-8499-5cf584cbcd70", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreademptyfile0fileapitestreademptyfile89211502e722c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a80d25ab-05f0-422c-b2ec-b55d84dcb75b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760f19-501e-0003-72d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "a80d25ab-05f0-422c-b2ec-b55d84dcb75b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreademptyfile0fileapitestreademptyfile89211502e722c9", "javapathreademptyfile1fileapitestreademptyfile89290618aba4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreaderror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreaderror.json new file mode 100644 index 0000000000000..ad2e68df77ffd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreaderror.json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreaderror0fileapitestreaderror820136535005c6a8c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a887962-f638-4576-9464-f3fa5c8af759" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB543704F0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761700-501e-0003-64d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "0a887962-f638-4576-9464-f3fa5c8af759" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreaderror0fileapitestreaderror820136535005c6a8c2/javapathreaderror1fileapitestreaderror82036792a2a21b98?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cae139b9-8434-4c35-bdc2-41d8728cea67" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB544091BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83e2-201f-006a-4dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "cae139b9-8434-4c35-bdc2-41d8728cea67" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreaderror0fileapitestreaderror820136535005c6a8c2/javapathreaderror1fileapitestreaderror82036792a2a21b98?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6450420f-bd51-4a4b-a88c-57ba43f9e746", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83e3-201f-006a-4ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "6450420f-bd51-4a4b-a88c-57ba43f9e746" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreaderror0fileapitestreaderror820136535005c6a8c2/javapathreaderror1fileapitestreaderror82036792a2a21b98?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e48fdb09-104a-471d-a2fe-311f655af293" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5451BA36", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83e4-201f-006a-4fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "e48fdb09-104a-471d-a2fe-311f655af293" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreaderror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95986968-f0b6-4df0-aeac-99bdf5816a79" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761770-501e-0003-47d4-904d7d000000", + "Body" : "jtfsreaderrorjtfsreaderror0fileapitestreaderror820136535005c6a8c2Fri, 01 Nov 2019 16:48:31 GMT\"0x8D75EEB543704F0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "95986968-f0b6-4df0-aeac-99bdf5816a79", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreaderror0fileapitestreaderror820136535005c6a8c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7dbf61cd-fb68-46b4-976e-21a58e3739cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761779-501e-0003-50d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "7dbf61cd-fb68-46b4-976e-21a58e3739cd" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreaderror0fileapitestreaderror820136535005c6a8c2", "javapathreaderror1fileapitestreaderror82036792a2a21b98", "javapathreaderror2fileapitestreaderror82065020930f4669" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadmd5.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadmd5.json new file mode 100644 index 0000000000000..5d29a53467fae --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadmd5.json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46b84389-3ba3-40ce-bf68-bf55fc6697b2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB53FCB05C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257616aa-501e-0003-18d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:30 GMT", + "x-ms-client-request-id" : "46b84389-3ba3-40ce-bf68-bf55fc6697b2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9/javapathreadmd51fileapitestreadmd580853280cd62edb8bb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d9b62bb-5d6d-4bb8-82f7-5ad480e5ba0b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB54072C8A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83df-201f-006a-4ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "6d9b62bb-5d6d-4bb8-82f7-5ad480e5ba0b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9/javapathreadmd51fileapitestreadmd580853280cd62edb8bb?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b343fd1-2071-4e6d-a5e5-01a71cd39faa", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83e0-201f-006a-4bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "4b343fd1-2071-4e6d-a5e5-01a71cd39faa" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9/javapathreadmd51fileapitestreadmd580853280cd62edb8bb?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "851ef3af-fb74-49a1-b2ea-21e2308e7a78" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5416D611", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83e1-201f-006a-4cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "851ef3af-fb74-49a1-b2ea-21e2308e7a78" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9/javapathreadmd51fileapitestreadmd580853280cd62edb8bb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36876c13-8fae-46d7-bb89-4d51e506c22e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 0-2/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:31 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "TtlAdjDrEADA9rY4Qt76fQ==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB5416D611", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:31 GMT", + "Content-Length" : "3", + "x-ms-request-id" : "257616d8-501e-0003-41d4-904d7d000000", + "Body" : "[100, 101, 102]", + "x-ms-client-request-id" : "36876c13-8fae-46d7-bb89-4d51e506c22e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadmd5&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1e7454d-b05e-4055-a285-611dea86d140" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257616e7-501e-0003-4dd4-904d7d000000", + "Body" : "jtfsreadmd5jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9Fri, 01 Nov 2019 16:48:31 GMT\"0x8D75EEB53FCB05C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "f1e7454d-b05e-4055-a285-611dea86d140", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6dca86d1-4908-4b87-b471-d6d13cf4d5f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257616f6-501e-0003-5cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "6dca86d1-4908-4b87-b471-d6d13cf4d5f7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadmd50fileapitestreadmd580830756d5322e5a6ee9", "javapathreadmd51fileapitestreadmd580853280cd62edb8bb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadmin.json new file mode 100644 index 0000000000000..e856f7d6b04a5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadmin.json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadmin0fileapitestreadmin96583833ef2d666672db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68717554-86ca-4633-aca4-fbf5baf0601e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50388ED9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761034-501e-0003-6bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "68717554-86ca-4633-aca4-fbf5baf0601e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadmin0fileapitestreadmin96583833ef2d666672db/javapathreadmin1fileapitestreadmin9652125537bc3efc36?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b41e3b01-2b5e-4901-87c7-cb5b47459e37" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB504279B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83ac-201f-006a-1dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "b41e3b01-2b5e-4901-87c7-cb5b47459e37" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadmin0fileapitestreadmin96583833ef2d666672db/javapathreadmin1fileapitestreadmin9652125537bc3efc36?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "261c45e6-7fd8-42e0-8c82-7e9bcff4ce5e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83ad-201f-006a-1ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "261c45e6-7fd8-42e0-8c82-7e9bcff4ce5e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadmin0fileapitestreadmin96583833ef2d666672db/javapathreadmin1fileapitestreadmin9652125537bc3efc36?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba99ac85-c071-47a1-88de-98e427a2fd5b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5051C6C6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83ae-201f-006a-1fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "ba99ac85-c071-47a1-88de-98e427a2fd5b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadmin0fileapitestreadmin96583833ef2d666672db/javapathreadmin1fileapitestreadmin9652125537bc3efc36", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "536c69b0-7b8e-4a46-b61a-6366201504f6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB5051C6C6", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:25 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25761069-501e-0003-18d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "536c69b0-7b8e-4a46-b61a-6366201504f6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e87d300-f13e-4c72-ac53-71abcad2985a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761085-501e-0003-2ed4-904d7d000000", + "Body" : "jtfsreadminjtfsreadmin0fileapitestreadmin96583833ef2d666672dbFri, 01 Nov 2019 16:48:25 GMT\"0x8D75EEB50388ED9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "9e87d300-f13e-4c72-ac53-71abcad2985a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadmin0fileapitestreadmin96583833ef2d666672db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec675827-b861-4fd0-9c41-0db7b25c96c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576108c-501e-0003-33d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "ec675827-b861-4fd0-9c41-0db7b25c96c0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadmin0fileapitestreadmin96583833ef2d666672db", "javapathreadmin1fileapitestreadmin9652125537bc3efc36" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[0].json new file mode 100644 index 0000000000000..67f8f5a4e15d5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[0].json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea5f6485-01a8-4198-87c3-d6f72c4c5ce8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50768D9D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761097-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "ea5f6485-01a8-4198-87c3-d6f72c4c5ce8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32/javapathreadrange1fileapitestreadrangef7a68657906c6c6b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33e4b446-4bce-449c-8da9-4aa59c57b2fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50802C5D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83af-201f-006a-20d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "33e4b446-4bce-449c-8da9-4aa59c57b2fb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32/javapathreadrange1fileapitestreadrangef7a68657906c6c6b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5f01234e-5cb0-48d6-99b3-8db728e5dc11", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83b0-201f-006a-21d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "5f01234e-5cb0-48d6-99b3-8db728e5dc11" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32/javapathreadrange1fileapitestreadrangef7a68657906c6c6b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dab3362b-5fb6-4ad8-af97-ba2737169c31" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB508FDDA8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83b1-201f-006a-22d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "dab3362b-5fb6-4ad8-af97-ba2737169c31" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32/javapathreadrange1fileapitestreadrangef7a68657906c6c6b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fb35f412-c336-4f1a-8d91-544e6e5de97e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB508FDDA8", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:25 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257610c4-501e-0003-62d4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "fb35f412-c336-4f1a-8d91-544e6e5de97e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb66439a-ee09-4039-9095-930e897a8636" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257610cc-501e-0003-69d4-904d7d000000", + "Body" : "jtfsreadrangejtfsreadrange0fileapitestreadrangef7a221818a8f0beb32Fri, 01 Nov 2019 16:48:25 GMT\"0x8D75EEB50768D9D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "cb66439a-ee09-4039-9095-930e897a8636", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ed18af3-331b-44d4-aded-d8a177a69c7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257610db-501e-0003-76d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "3ed18af3-331b-44d4-aded-d8a177a69c7a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadrange0fileapitestreadrangef7a221818a8f0beb32", "javapathreadrange1fileapitestreadrangef7a68657906c6c6b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[1].json new file mode 100644 index 0000000000000..f3c38139f5f58 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[1].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadranged6983656b550c3931f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf0face5-5d0f-4ce7-9500-c2fa39ec04ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50AE70BA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257610eb-501e-0003-04d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "bf0face5-5d0f-4ce7-9500-c2fa39ec04ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadranged6983656b550c3931f/javapathreadrange1fileapitestreadranged69319333f6c16fa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "625c1bfb-f430-4696-a083-ee391556e11b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50BF0A4B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83b2-201f-006a-23d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "625c1bfb-f430-4696-a083-ee391556e11b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadranged6983656b550c3931f/javapathreadrange1fileapitestreadranged69319333f6c16fa?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc33ce1e-7cd4-4221-80be-0231ff7bb636", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83b3-201f-006a-24d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "cc33ce1e-7cd4-4221-80be-0231ff7bb636" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadranged6983656b550c3931f/javapathreadrange1fileapitestreadranged69319333f6c16fa?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6969100-975b-41d0-a293-eda304e65254" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50CEB400", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83b4-201f-006a-25d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "d6969100-975b-41d0-a293-eda304e65254" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadranged6983656b550c3931f/javapathreadrange1fileapitestreadranged69319333f6c16fa", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d72ebbe5-494e-4854-bed6-354802abed4a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 0-4/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB50CEB400", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:26 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "2576112b-501e-0003-3bd4-904d7d000000", + "Body" : "[100, 101, 102, 97, 117]", + "x-ms-client-request-id" : "d72ebbe5-494e-4854-bed6-354802abed4a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c511091-f038-4837-a977-1ebc46438046" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761139-501e-0003-48d4-904d7d000000", + "Body" : "jtfsreadrangejtfsreadrange0fileapitestreadranged6983656b550c3931fFri, 01 Nov 2019 16:48:26 GMT\"0x8D75EEB50AE70BA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "7c511091-f038-4837-a977-1ebc46438046", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadranged6983656b550c3931f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bbb85701-5486-4640-8c8e-3c9ca81b156d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761144-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "bbb85701-5486-4640-8c8e-3c9ca81b156d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadrange0fileapitestreadranged6983656b550c3931f", "javapathreadrange1fileapitestreadranged69319333f6c16fa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[2].json new file mode 100644 index 0000000000000..08413c43b31c3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadrange[2].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadrange001263640774748c60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db4734fd-0e3b-40fa-82a1-d3e118bba26b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50F375A3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761158-501e-0003-64d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-client-request-id" : "db4734fd-0e3b-40fa-82a1-d3e118bba26b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadrange001263640774748c60/javapathreadrange1fileapitestreadrange0016521121e53f80?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ed05ea1-3f29-4e86-be7b-57136d640186" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB50FD425B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83b5-201f-006a-26d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "1ed05ea1-3f29-4e86-be7b-57136d640186" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadrange001263640774748c60/javapathreadrange1fileapitestreadrange0016521121e53f80?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de18de44-7d05-4bdb-b1aa-31ac3d0eeddf", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83b6-201f-006a-27d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "de18de44-7d05-4bdb-b1aa-31ac3d0eeddf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadrange0fileapitestreadrange001263640774748c60/javapathreadrange1fileapitestreadrange0016521121e53f80?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7270fdf-fc8b-43e1-bdbf-53eb11624632" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB510D4053", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83b7-201f-006a-28d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "b7270fdf-fc8b-43e1-bdbf-53eb11624632" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadrange001263640774748c60/javapathreadrange1fileapitestreadrange0016521121e53f80", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f1d7f8e-63ff-4a22-b833-425b15185336" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 3-4/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:26 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:25 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB510D4053", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:26 GMT", + "Content-Length" : "2", + "x-ms-request-id" : "25761199-501e-0003-1bd4-904d7d000000", + "Body" : "[97, 117]", + "x-ms-client-request-id" : "4f1d7f8e-63ff-4a22-b833-425b15185336", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf953f29-a9f3-4a69-85a4-501b83454a69" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257611a3-501e-0003-25d4-904d7d000000", + "Body" : "jtfsreadrangejtfsreadrange0fileapitestreadrange001263640774748c60Fri, 01 Nov 2019 16:48:26 GMT\"0x8D75EEB50F375A3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "cf953f29-a9f3-4a69-85a4-501b83454a69", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadrange0fileapitestreadrange001263640774748c60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b58aa5b6-8489-4592-89da-055c7127b695" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257611b2-501e-0003-32d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:26 GMT", + "x-ms-client-request-id" : "b58aa5b6-8489-4592-89da-055c7127b695" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadrange0fileapitestreadrange001263640774748c60", "javapathreadrange1fileapitestreadrange0016521121e53f80" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadwithretryrange.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadwithretryrange.json new file mode 100644 index 0000000000000..27e2d48cf0f06 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestreadwithretryrange.json @@ -0,0 +1,279 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94d3deaf-0069-418f-a46a-a1b1c0ec1b99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4FCBFD82", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760f35-501e-0003-0ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "94d3deaf-0069-418f-a46a-a1b1c0ec1b99" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "165453c4-cc3b-4034-bfb7-cc751c3bb093" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4FDC853E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83a7-201f-006a-18d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "165453c4-cc3b-4034-bfb7-cc751c3bb093" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7088456c-50b6-4f65-8a80-52dd685d434e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83a9-201f-006a-1ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "7088456c-50b6-4f65-8a80-52dd685d434e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95c9b482-a6e8-42f4-bd41-7f8624c3a6b9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4FF28281", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83aa-201f-006a-1bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "95c9b482-a6e8-42f4-bd41-7f8624c3a6b9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b6dc2a8-0617-4279-8c37-3091d3cbde82" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4FF28281", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:24 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "25760fac-501e-0003-70d4-904d7d000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "1b6dc2a8-0617-4279-8c37-3091d3cbde82", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e2a9e4f-9721-43e0-96e1-ffd8e23eccb5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4FF28281", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:24 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "25760fc7-501e-0003-06d4-904d7d000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "2e2a9e4f-9721-43e0-96e1-ffd8e23eccb5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f1ff2c3-595d-46e0-8020-8f375e9e61a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4FF28281", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:24 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "25760fdb-501e-0003-19d4-904d7d000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "8f1ff2c3-595d-46e0-8020-8f375e9e61a6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e6e81278-395d-4720-bbb0-563971b8b9f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4FF28281", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:24 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "25760fe8-501e-0003-26d4-904d7d000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "e6e81278-395d-4720-bbb0-563971b8b9f1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d/javapathreadwithretryrange170529c45c7fd6530c46e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d470a1dd-cfa1-4426-8101-865fbdefe092" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "Content-Range" : "bytes 2-6/7", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:24 GMT", + "retry-after" : "0", + "StatusCode" : "206", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEB4FF28281", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:24 GMT", + "Content-Length" : "5", + "x-ms-request-id" : "25761008-501e-0003-43d4-904d7d000000", + "Body" : "[102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "d470a1dd-cfa1-4426-8101-865fbdefe092", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreadwithretryrange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "261b6c07-85c3-4e0e-b916-aaaa2bb814c0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761018-501e-0003-51d4-904d7d000000", + "Body" : "jtfsreadwithretryrangejtfsreadwithretryrange0fileapitestreadwithretryrange13483070dFri, 01 Nov 2019 16:48:24 GMT\"0x8D75EEB4FCBFD82\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "261b6c07-85c3-4e0e-b916-aaaa2bb814c0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9e9d7f5-60f9-47d0-b358-cebb4c2abc0e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761026-501e-0003-5dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:24 GMT", + "x-ms-client-request-id" : "e9e9d7f5-60f9-47d0-b358-cebb4c2abc0e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreadwithretryrange0fileapitestreadwithretryrange13483070d", "javapathreadwithretryrange170529c45c7fd6530c46e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[0].json new file mode 100644 index 0000000000000..7a898c1b9465c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[0].json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef0b6258-18e3-4a0f-9a7b-b3525afb4dc6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB58693E92", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761e49-501e-0003-30d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "ef0b6258-18e3-4a0f-9a7b-b3525afb4dc6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393/javapathrenamedestac1fileapitestrenamedestac79e670130a318?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "286bbdf5-4b54-4f3f-8738-dd694274ef60" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5873B40E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8425-201f-006a-0fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "286bbdf5-4b54-4f3f-8738-dd694274ef60" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393/javapathrenamedestac1fileapitestrenamedestac79e670130a318?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c327ff1b-99e7-4197-a484-81f6380f75ad", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8426-201f-006a-10d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "c327ff1b-99e7-4197-a484-81f6380f75ad" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393/javapathrenamedestac1fileapitestrenamedestac79e670130a318?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33d40518-e695-4db1-b1ce-83248a99f0f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB588D28AE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8427-201f-006a-11d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "33d40518-e695-4db1-b1ce-83248a99f0f0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393/javapathrenamedestac2fileapitestrenamedestac79e51896326a8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e894d87-9883-405b-b9e8-f5e3c4533f40" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5895C9AB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8428-201f-006a-12d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "6e894d87-9883-405b-b9e8-f5e3c4533f40" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393/javapathrenamedestac2fileapitestrenamedestac79e51896326a8?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b060f519-11cd-46b8-8671-e58640b6ee1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8429-201f-006a-13d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "b060f519-11cd-46b8-8671-e58640b6ee1c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a061825-c4ce-40e0-a648-84d09b384787" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761ed8-501e-0003-33d4-904d7d000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0fileapitestrenamedestac79e20289e97e393Fri, 01 Nov 2019 16:48:38 GMT\"0x8D75EEB58693E92\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "4a061825-c4ce-40e0-a648-84d09b384787", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef11662c-ab94-4e7b-803e-4b2fb6808c51" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761eeb-501e-0003-43d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "ef11662c-ab94-4e7b-803e-4b2fb6808c51" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0fileapitestrenamedestac79e20289e97e393", "javapathrenamedestac1fileapitestrenamedestac79e670130a318", "javapathrenamedestac2fileapitestrenamedestac79e51896326a8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[1].json new file mode 100644 index 0000000000000..a61e8ac9b12bc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[1].json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "406f2c6f-8209-4142-ad0d-5f3330d8b304" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB58B91ACC", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761f0a-501e-0003-5ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "406f2c6f-8209-4142-ad0d-5f3330d8b304" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6/javapathrenamedestac1fileapitestrenamedestacb1f45497b4baa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0985c37-674d-4abb-99dc-51cef98df5ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB58C2E508", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e842a-201f-006a-14d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "c0985c37-674d-4abb-99dc-51cef98df5ff" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6/javapathrenamedestac1fileapitestrenamedestacb1f45497b4baa?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "642e3207-2ffb-4cad-bc5f-94188e2e0c97", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e842b-201f-006a-15d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "642e3207-2ffb-4cad-bc5f-94188e2e0c97" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6/javapathrenamedestac1fileapitestrenamedestacb1f45497b4baa?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53b7a44b-6236-4554-a483-27fbb7f07b81" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB58D3A1C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e842c-201f-006a-16d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "53b7a44b-6236-4554-a483-27fbb7f07b81" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6/javapathrenamedestac2fileapitestrenamedestacb1f36384d0f17?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4309a9e7-7fb0-426e-9aed-417b8e67d29a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB58DCF0A5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e842d-201f-006a-17d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "4309a9e7-7fb0-426e-9aed-417b8e67d29a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6/javapathrenamedestac2fileapitestrenamedestacb1f36384d0f17?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7268af03-b255-4078-97ed-1ef306ec30d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e842e-201f-006a-18d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "7268af03-b255-4078-97ed-1ef306ec30d2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1459db8d-ce38-46a9-96cd-21f6f4a8b3a9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761f75-501e-0003-3bd4-904d7d000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6Fri, 01 Nov 2019 16:48:39 GMT\"0x8D75EEB58B91ACC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "1459db8d-ce38-46a9-96cd-21f6f4a8b3a9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adc1ac70-2400-4634-8846-64d91dac592a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761f8a-501e-0003-50d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "adc1ac70-2400-4634-8846-64d91dac592a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0fileapitestrenamedestacb1f09724b60d1b6", "javapathrenamedestac1fileapitestrenamedestacb1f45497b4baa", "javapathrenamedestac2fileapitestrenamedestacb1f36384d0f17" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[2].json new file mode 100644 index 0000000000000..56011780977a2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[2].json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70a0121b-387a-4321-a56c-45ff17ec0dbb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5900DF57", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761f97-501e-0003-5bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "70a0121b-387a-4321-a56c-45ff17ec0dbb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873/javapathrenamedestac1fileapitestrenamedestac94896150eae39?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0fc9ebe2-992d-4f2c-b9e5-6471d383fb15" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB590A79FB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e842f-201f-006a-19d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "0fc9ebe2-992d-4f2c-b9e5-6471d383fb15" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873/javapathrenamedestac1fileapitestrenamedestac94896150eae39?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f9f710a-56a1-4836-9fae-1002fbeb1748", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8430-201f-006a-1ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "7f9f710a-56a1-4836-9fae-1002fbeb1748" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873/javapathrenamedestac1fileapitestrenamedestac94896150eae39?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99821ac0-554b-4db0-9d21-11f098223941" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB591A966C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8431-201f-006a-1bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "99821ac0-554b-4db0-9d21-11f098223941" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873/javapathrenamedestac2fileapitestrenamedestac9489050859b39?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8184c9d0-5634-4a65-9419-a9824c15d17f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB592326EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8432-201f-006a-1cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "8184c9d0-5634-4a65-9419-a9824c15d17f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873/javapathrenamedestac2fileapitestrenamedestac9489050859b39?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6e79968-a7e6-458a-aca7-5a7eebefea73" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8433-201f-006a-1dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "b6e79968-a7e6-458a-aca7-5a7eebefea73" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6ed9a27-ecf0-4e8f-a949-983e6d73a631" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576200d-501e-0003-42d4-904d7d000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0fileapitestrenamedestac948668861dcc873Fri, 01 Nov 2019 16:48:39 GMT\"0x8D75EEB5900DF57\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "f6ed9a27-ecf0-4e8f-a949-983e6d73a631", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac948668861dcc873?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "00995992-6f02-45c8-91ff-15d885ca4ba2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576201d-501e-0003-51d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "00995992-6f02-45c8-91ff-15d885ca4ba2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0fileapitestrenamedestac948668861dcc873", "javapathrenamedestac1fileapitestrenamedestac94896150eae39", "javapathrenamedestac2fileapitestrenamedestac9489050859b39" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[3].json new file mode 100644 index 0000000000000..ba0d4acbe5e1b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[3].json @@ -0,0 +1,199 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "021f7a4b-c460-4d18-8a66-47bc448d06dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59445D61", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576202f-501e-0003-62d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:39 GMT", + "x-ms-client-request-id" : "021f7a4b-c460-4d18-8a66-47bc448d06dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac/javapathrenamedestac1fileapitestrenamedestac55822438454d8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94d71a60-724c-43c7-89ef-0cc9aa0d3af5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB594E5DB6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8434-201f-006a-1ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "94d71a60-724c-43c7-89ef-0cc9aa0d3af5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac/javapathrenamedestac1fileapitestrenamedestac55822438454d8?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96e7baaf-de4a-43eb-ba5b-8c19230ed743", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8435-201f-006a-1fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "96e7baaf-de4a-43eb-ba5b-8c19230ed743" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac/javapathrenamedestac1fileapitestrenamedestac55822438454d8?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50a556b6-1196-443c-94ed-062220212d74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB595E37C4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8436-201f-006a-20d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "50a556b6-1196-443c-94ed-062220212d74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac/javapathrenamedestac2fileapitestrenamedestac5583637304b3f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c3d05cbc-ab03-4e42-8866-47e826d17f72" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5966EC07", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8437-201f-006a-21d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "c3d05cbc-ab03-4e42-8866-47e826d17f72" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac/javapathrenamedestac2fileapitestrenamedestac5583637304b3f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "77b7bf0e-e5e8-421d-a4de-da7747ca1fc6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:39 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", + "ETag" : "0x8D75EEB5966EC07", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:40 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "25762076-501e-0003-25d4-904d7d000000", + "x-ms-client-request-id" : "77b7bf0e-e5e8-421d-a4de-da7747ca1fc6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac/javapathrenamedestac2fileapitestrenamedestac5583637304b3f?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "27bb37c3-7894-4cda-8541-cc7c3c264f5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8438-201f-006a-22d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "27bb37c3-7894-4cda-8541-cc7c3c264f5f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8281aee-276f-4262-af27-11780bedcd26" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576208c-501e-0003-39d4-904d7d000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0fileapitestrenamedestac558010156d4e0acFri, 01 Nov 2019 16:48:40 GMT\"0x8D75EEB59445D61\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "a8281aee-276f-4262-af27-11780bedcd26", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8526a8a3-516f-4c69-ad67-ca79189af231" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762094-501e-0003-40d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "8526a8a3-516f-4c69-ad67-ca79189af231" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0fileapitestrenamedestac558010156d4e0ac", "javapathrenamedestac1fileapitestrenamedestac55822438454d8", "javapathrenamedestac2fileapitestrenamedestac5583637304b3f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[4].json new file mode 100644 index 0000000000000..9b5874d561e53 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[4].json @@ -0,0 +1,169 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f33668c-3a4a-46c2-97ec-2fa79bd78b87" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB599487DE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257620ac-501e-0003-57d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "1f33668c-3a4a-46c2-97ec-2fa79bd78b87" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc/javapathrenamedestac1fileapitestrenamedestacd971878485acc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48f060c1-f5f5-4bcd-ba71-5ee60b14e134" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB599E1CDA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8439-201f-006a-23d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "48f060c1-f5f5-4bcd-ba71-5ee60b14e134" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc/javapathrenamedestac1fileapitestrenamedestacd971878485acc?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5843524d-34ff-4605-a1b0-3e399e461b4d", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e843a-201f-006a-24d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "5843524d-34ff-4605-a1b0-3e399e461b4d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc/javapathrenamedestac1fileapitestrenamedestacd971878485acc?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2685761-abfa-4358-875f-18af34aaef6c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59AE2CDD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e843b-201f-006a-25d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "a2685761-abfa-4358-875f-18af34aaef6c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc/javapathrenamedestac2fileapitestrenamedestacd9799871a8a9f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6dc0724-8503-435a-aa4a-0385473abc6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59B63D95", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e843c-201f-006a-26d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "c6dc0724-8503-435a-aa4a-0385473abc6b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc/javapathrenamedestac2fileapitestrenamedestacd9799871a8a9f?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1e84f39-f64c-4857-a42a-d4cde9db2fe1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e843e-201f-006a-27d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "d1e84f39-f64c-4857-a42a-d4cde9db2fe1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b801121-2223-49f3-8d77-dfd726ac3645" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25762119-501e-0003-3ad4-904d7d000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dcFri, 01 Nov 2019 16:48:40 GMT\"0x8D75EEB599487DE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "2b801121-2223-49f3-8d77-dfd726ac3645", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54861315-7d4a-4a66-85fb-0fed80e2fded" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576211e-501e-0003-3fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "54861315-7d4a-4a66-85fb-0fed80e2fded" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0fileapitestrenamedestacd97345240e1b6dc", "javapathrenamedestac1fileapitestrenamedestacd971878485acc", "javapathrenamedestac2fileapitestrenamedestacd9799871a8a9f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[5].json new file mode 100644 index 0000000000000..95fee4deda3e7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestac[5].json @@ -0,0 +1,191 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af23445f-ff59-411e-b68e-181aa72fe298" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59D93E99", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576212b-501e-0003-49d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "af23445f-ff59-411e-b68e-181aa72fe298" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7/javapathrenamedestac1fileapitestrenamedestac779349084a92e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fd9c09e2-e942-44d8-9b9a-e7059029eed9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59E2C3B7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e843f-201f-006a-28d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "fd9c09e2-e942-44d8-9b9a-e7059029eed9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7/javapathrenamedestac1fileapitestrenamedestac779349084a92e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e06100d-5f6c-4d1d-a76c-c9822b786bfb", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8440-201f-006a-29d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "8e06100d-5f6c-4d1d-a76c-c9822b786bfb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7/javapathrenamedestac1fileapitestrenamedestac779349084a92e?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "05acef7a-d011-49eb-8e1a-66f985161a43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59F3C1E9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8441-201f-006a-2ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "05acef7a-d011-49eb-8e1a-66f985161a43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7/javapathrenamedestac2fileapitestrenamedestac779154772d5d4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7d53a32-6dbe-45b0-acbb-a43aa7e2068d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59FC5BC7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8442-201f-006a-2bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "e7d53a32-6dbe-45b0-acbb-a43aa7e2068d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7/javapathrenamedestac2fileapitestrenamedestac779154772d5d4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "079b997e-f95c-402e-9e6e-5cf973f47ded" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB59FC5BC7", + "x-ms-lease-id" : "3a65565d-19f8-4a61-ac0b-0ddd74df06fe", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762175-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:40 GMT", + "x-ms-client-request-id" : "079b997e-f95c-402e-9e6e-5cf973f47ded" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7/javapathrenamedestac2fileapitestrenamedestac779154772d5d4?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef75ff84-e24b-41c6-a9f6-2cc098723ac8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8443-201f-006a-2cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "ef75ff84-e24b-41c6-a9f6-2cc098723ac8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68fdbc63-3a5c-4391-ba2c-a2af5a5e96b9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257621ae-501e-0003-41d4-904d7d000000", + "Body" : "jtfsrenamedestacjtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7Fri, 01 Nov 2019 16:48:41 GMT\"0x8D75EEB59D93E99\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "68fdbc63-3a5c-4391-ba2c-a2af5a5e96b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc985da2-2f0c-429e-843e-c3ade488692d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257621c0-501e-0003-53d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "fc985da2-2f0c-429e-843e-c3ade488692d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestac0fileapitestrenamedestac7793971717b4fb7", "javapathrenamedestac1fileapitestrenamedestac779349084a92e", "javapathrenamedestac2fileapitestrenamedestac779154772d5d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[0].json new file mode 100644 index 0000000000000..981bf5bcf6c26 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[0].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ed31dc3-0d26-418b-ab66-aec6daa6ea68" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A2AC8EF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257621d2-501e-0003-63d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "6ed31dc3-0d26-418b-ab66-aec6daa6ea68" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9/javapathrenamedestacfail1fileapitestrenamedestacfail055006724?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fac5e38b-851e-4cde-9220-88c3b2bffb91" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A34D0B4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8444-201f-006a-2dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "fac5e38b-851e-4cde-9220-88c3b2bffb91" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9/javapathrenamedestacfail1fileapitestrenamedestacfail055006724?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9418332-3b20-46a7-940d-ff04baa51fba", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8445-201f-006a-2ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "a9418332-3b20-46a7-940d-ff04baa51fba" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9/javapathrenamedestacfail1fileapitestrenamedestacfail055006724?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "540df8c0-14f0-4d26-9ac8-63ac96881daf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A446596", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8446-201f-006a-2fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "540df8c0-14f0-4d26-9ac8-63ac96881daf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9/javapathrenamedestacfail2fileapitestrenamedestacfail05562448c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76c8cd7a-21a1-4f61-9234-7aebe0abb860" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A4FB0AA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8447-201f-006a-30d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "76c8cd7a-21a1-4f61-9234-7aebe0abb860" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9/javapathrenamedestacfail2fileapitestrenamedestacfail05562448c?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "133dbda1-5d27-451c-8260-69a41c7eb3cc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8448-201f-006a-31d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8448-201f-006a-31d4-9012d1000000\\nTime:2019-11-01T16:48:42.2329518Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "133dbda1-5d27-451c-8260-69a41c7eb3cc", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87ee8ba4-5146-4869-ad09-a49d5b6379f4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576223c-501e-0003-40d4-904d7d000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9Fri, 01 Nov 2019 16:48:41 GMT\"0x8D75EEB5A2AC8EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "87ee8ba4-5146-4869-ad09-a49d5b6379f4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "51621c12-32ad-455a-be0f-04a4c73f02ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762246-501e-0003-4ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "51621c12-32ad-455a-be0f-04a4c73f02ad" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0fileapitestrenamedestacfail055387843c9", "javapathrenamedestacfail1fileapitestrenamedestacfail055006724", "javapathrenamedestacfail2fileapitestrenamedestacfail05562448c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[1].json new file mode 100644 index 0000000000000..37721fd49643d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[1].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39cf3ff8-a97e-47e6-854e-fdf3d2a45710" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A710692", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762254-501e-0003-58d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:41 GMT", + "x-ms-client-request-id" : "39cf3ff8-a97e-47e6-854e-fdf3d2a45710" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d/javapathrenamedestacfail1fileapitestrenamedestacfailefe58368c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e394f662-c048-48b0-b759-2f62ed2880d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A7AD824", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8449-201f-006a-32d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "e394f662-c048-48b0-b759-2f62ed2880d6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d/javapathrenamedestacfail1fileapitestrenamedestacfailefe58368c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d784d61-4844-4642-b182-b13da1dc6f73", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e844a-201f-006a-33d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "6d784d61-4844-4642-b182-b13da1dc6f73" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d/javapathrenamedestacfail1fileapitestrenamedestacfailefe58368c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d61a50d6-ca4f-4dcc-966f-96c31fe55b3d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5A98752B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e844b-201f-006a-34d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "d61a50d6-ca4f-4dcc-966f-96c31fe55b3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d/javapathrenamedestacfail2fileapitestrenamedestacfailefe851454?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6275fa13-0da4-4baa-a93b-e08d13d7412b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5AA101B5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e844d-201f-006a-36d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "6275fa13-0da4-4baa-a93b-e08d13d7412b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d/javapathrenamedestacfail2fileapitestrenamedestacfailefe851454?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5777ecfd-4cd2-464f-9b67-64b6e59f6c43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e844f-201f-006a-38d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e844f-201f-006a-38d4-9012d1000000\\nTime:2019-11-01T16:48:42.7813362Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "5777ecfd-4cd2-464f-9b67-64b6e59f6c43", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5083edd3-1e74-4e92-9691-1c9bd1c915b8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257622db-501e-0003-50d4-904d7d000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596dFri, 01 Nov 2019 16:48:42 GMT\"0x8D75EEB5A710692\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "5083edd3-1e74-4e92-9691-1c9bd1c915b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97c56bad-53ae-443c-806d-7a9b6d0989bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257622ec-501e-0003-5fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "97c56bad-53ae-443c-806d-7a9b6d0989bf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0fileapitestrenamedestacfailefe2872596d", "javapathrenamedestacfail1fileapitestrenamedestacfailefe58368c", "javapathrenamedestacfail2fileapitestrenamedestacfailefe851454" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[2].json new file mode 100644 index 0000000000000..1bfeed3af0635 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[2].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "13539585-7c9c-4c63-9ad2-c0e6e6d74032" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5AC52971", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257622f5-501e-0003-68d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "13539585-7c9c-4c63-9ad2-c0e6e6d74032" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db/javapathrenamedestacfail1fileapitestrenamedestacfailc3020548b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "526f7eb7-4822-45b8-863d-c6eee30a8603" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5AD03D1B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8450-201f-006a-39d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "526f7eb7-4822-45b8-863d-c6eee30a8603" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db/javapathrenamedestacfail1fileapitestrenamedestacfailc3020548b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4521295f-8f25-45ef-a843-2ac9b5e94b4a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8451-201f-006a-3ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "4521295f-8f25-45ef-a843-2ac9b5e94b4a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db/javapathrenamedestacfail1fileapitestrenamedestacfailc3020548b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5464d3d7-36ed-4b7e-8d15-06f51a01bb1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5AE243EF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8452-201f-006a-3bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "5464d3d7-36ed-4b7e-8d15-06f51a01bb1a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db/javapathrenamedestacfail2fileapitestrenamedestacfailc30531096?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "048a5226-6919-4ecf-a730-f8a63a93d4ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5AEAFEC8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8453-201f-006a-3cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "048a5226-6919-4ecf-a730-f8a63a93d4ee" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db/javapathrenamedestacfail2fileapitestrenamedestacfailc30531096?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a38d2c1c-8537-42e8-a07a-90bf69bcc243" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8454-201f-006a-3dd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8454-201f-006a-3dd4-9012d1000000\\nTime:2019-11-01T16:48:43.2346560Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "a38d2c1c-8537-42e8-a07a-90bf69bcc243", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ed71efd-59d7-41e4-81ae-4bac3b6c37ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576236c-501e-0003-4cd4-904d7d000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0fileapitestrenamedestacfailc30243388dbFri, 01 Nov 2019 16:48:42 GMT\"0x8D75EEB5AC52971\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "6ed71efd-59d7-41e4-81ae-4bac3b6c37ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7315d5b7-9799-4b53-9f8b-8adab16dd2b0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576237d-501e-0003-5bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "7315d5b7-9799-4b53-9f8b-8adab16dd2b0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0fileapitestrenamedestacfailc30243388db", "javapathrenamedestacfail1fileapitestrenamedestacfailc3020548b", "javapathrenamedestacfail2fileapitestrenamedestacfailc30531096" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[3].json new file mode 100644 index 0000000000000..6c3ecac4fe509 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[3].json @@ -0,0 +1,202 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d88cde1b-46d5-4e1a-b4a3-dadddfb96305" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B0B18EF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576239a-501e-0003-75d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:42 GMT", + "x-ms-client-request-id" : "d88cde1b-46d5-4e1a-b4a3-dadddfb96305" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951/javapathrenamedestacfail1fileapitestrenamedestacfail0e9581468?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "542ca16c-6b65-48a4-9bac-8e79581e2f17" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B15E87B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8455-201f-006a-3ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "542ca16c-6b65-48a4-9bac-8e79581e2f17" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951/javapathrenamedestacfail1fileapitestrenamedestacfail0e9581468?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fcda399c-58d9-4d19-8bf9-31d180435cc7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8456-201f-006a-3fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "fcda399c-58d9-4d19-8bf9-31d180435cc7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951/javapathrenamedestacfail1fileapitestrenamedestacfail0e9581468?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6dad773-a71c-49ca-ab26-e4f5734d3d22" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B286B53", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8457-201f-006a-40d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "b6dad773-a71c-49ca-ab26-e4f5734d3d22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951/javapathrenamedestacfail2fileapitestrenamedestacfail0e9386963?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53600d48-8417-47d8-84c3-5eab2e6d96cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B30EC9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8458-201f-006a-41d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "53600d48-8417-47d8-84c3-5eab2e6d96cf" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951/javapathrenamedestacfail2fileapitestrenamedestacfail0e9386963", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b802193-34a6-42e7-aa2a-ac7a3ce155b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:42 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", + "ETag" : "0x8D75EEB5B30EC9E", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:43 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "257623d1-501e-0003-2ad4-904d7d000000", + "x-ms-client-request-id" : "7b802193-34a6-42e7-aa2a-ac7a3ce155b1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951/javapathrenamedestacfail2fileapitestrenamedestacfail0e9386963?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d30c2293-3f91-451f-874d-c61191dd47a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e8459-201f-006a-42d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8459-201f-006a-42d4-9012d1000000\\nTime:2019-11-01T16:48:43.7620269Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "d30c2293-3f91-451f-874d-c61191dd47a5", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dfd7cfbc-c90c-455f-8620-2c2d03d87bfc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257623fb-501e-0003-4fd4-904d7d000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951Fri, 01 Nov 2019 16:48:43 GMT\"0x8D75EEB5B0B18EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "dfd7cfbc-c90c-455f-8620-2c2d03d87bfc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d453670-ca76-4452-86ac-5ef7cbe03262" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25762408-501e-0003-5cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "2d453670-ca76-4452-86ac-5ef7cbe03262" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0fileapitestrenamedestacfail0e983108951", "javapathrenamedestacfail1fileapitestrenamedestacfail0e9581468", "javapathrenamedestacfail2fileapitestrenamedestacfail0e9386963" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[4].json new file mode 100644 index 0000000000000..446c59c9afd8b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamedestacfail[4].json @@ -0,0 +1,194 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90da6303-cfa1-418e-b511-f3ff9d2e3831" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B5ACE26", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762413-501e-0003-66d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "90da6303-cfa1-418e-b511-f3ff9d2e3831" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271/javapathrenamedestacfail1fileapitestrenamedestacfail98a74613b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f14f14ad-5b12-4337-85cd-e537b6c8c686" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B64EEE6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e845a-201f-006a-43d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "f14f14ad-5b12-4337-85cd-e537b6c8c686" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271/javapathrenamedestacfail1fileapitestrenamedestacfail98a74613b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e5d8b0d-8118-4cc8-bf41-aa985d26b2a7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e845b-201f-006a-44d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "7e5d8b0d-8118-4cc8-bf41-aa985d26b2a7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271/javapathrenamedestacfail1fileapitestrenamedestacfail98a74613b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d8c51b0-9598-4748-a43f-64dee0b96532" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B7824F3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e845c-201f-006a-45d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "0d8c51b0-9598-4748-a43f-64dee0b96532" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271/javapathrenamedestacfail2fileapitestrenamedestacfail98a069703?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92ff62f0-7c6b-403f-a6d0-03b40897f1a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B827734", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e845d-201f-006a-46d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "92ff62f0-7c6b-403f-a6d0-03b40897f1a6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271/javapathrenamedestacfail2fileapitestrenamedestacfail98a069703?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b936684c-0b18-4db3-b7ec-ffb11c958318" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5B827734", + "x-ms-lease-id" : "b63788bc-8f32-450f-8d61-5b2f5a822d08", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25762497-501e-0003-60d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "b936684c-0b18-4db3-b7ec-ffb11c958318" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271/javapathrenamedestacfail2fileapitestrenamedestacfail98a069703?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ecf02e1-3e3f-48bf-8743-2920fada4fd7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "123e845e-201f-006a-47d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:123e845e-201f-006a-47d4-9012d1000000\\nTime:2019-11-01T16:48:44.2923996Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "1ecf02e1-3e3f-48bf-8743-2920fada4fd7", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamedestacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c3601728-ab03-4d63-baf5-a59101852e4d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257624b5-501e-0003-79d4-904d7d000000", + "Body" : "jtfsrenamedestacfailjtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271Fri, 01 Nov 2019 16:48:43 GMT\"0x8D75EEB5B5ACE26\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "c3601728-ab03-4d63-baf5-a59101852e4d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3bf79174-e08f-4c89-ae86-8790fe4fe5b0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257624c3-501e-0003-04d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:43 GMT", + "x-ms-client-request-id" : "3bf79174-e08f-4c89-ae86-8790fe4fe5b0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamedestacfail0fileapitestrenamedestacfail98a86762271", "javapathrenamedestacfail1fileapitestrenamedestacfail98a74613b", "javapathrenamedestacfail2fileapitestrenamedestacfail98a069703" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenameerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenameerror.json new file mode 100644 index 0000000000000..87b1759286cb5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenameerror.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenameerror0fileapitestrenameerror040781601a720696?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "05086601-8a3b-496d-b3c2-afff9228eb74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB550B1DA9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761856-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "05086601-8a3b-496d-b3c2-afff9228eb74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenameerror0fileapitestrenameerror040781601a720696/javapathrenameerror1fileapitestrenameerror04061683b83e56?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab5f2c3d-a78b-42a7-b067-d50bdf7e05f9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55155FDE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83ed-201f-006a-58d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "ab5f2c3d-a78b-42a7-b067-d50bdf7e05f9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenameerror0fileapitestrenameerror040781601a720696/javapathrenameerror1fileapitestrenameerror04061683b83e56?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d77d52d-40d2-41cf-a7bd-f6456a632ec6", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83ee-201f-006a-59d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "0d77d52d-40d2-41cf-a7bd-f6456a632ec6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenameerror0fileapitestrenameerror040781601a720696/javapathrenameerror1fileapitestrenameerror04061683b83e56?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a4c8539-c183-42d0-9c20-9cff23e8241f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5525C78D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83ef-201f-006a-5ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "9a4c8539-c183-42d0-9c20-9cff23e8241f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenameerror0fileapitestrenameerror040781601a720696/javapathrenameerror3fileapitestrenameerror0406552439d1a4?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c28ae214-adaf-4bbc-bca8-e9ff8fa34ea8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourcePathNotFound", + "retry-after" : "0", + "Content-Length" : "189", + "StatusCode" : "404", + "x-ms-request-id" : "123e83f0-201f-006a-5bd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"SourcePathNotFound\",\"message\":\"The source path for a rename operation does not exist.\\nRequestId:123e83f0-201f-006a-5bd4-9012d1000000\\nTime:2019-11-01T16:48:33.5789134Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "c28ae214-adaf-4bbc-bca8-e9ff8fa34ea8", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenameerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68acab5a-ca88-4abd-bfa1-73e37b2a807f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576189b-501e-0003-49d4-904d7d000000", + "Body" : "jtfsrenameerrorjtfsrenameerror0fileapitestrenameerror040781601a720696Fri, 01 Nov 2019 16:48:33 GMT\"0x8D75EEB550B1DA9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "68acab5a-ca88-4abd-bfa1-73e37b2a807f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenameerror0fileapitestrenameerror040781601a720696?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9169f3c4-bc24-438f-81b4-f94bee32b214" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257618a4-501e-0003-51d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "9169f3c4-bc24-438f-81b4-f94bee32b214" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenameerror0fileapitestrenameerror040781601a720696", "javapathrenameerror1fileapitestrenameerror04061683b83e56", "javapathrenameerror2fileapitestrenameerror04042883b19c82", "javapathrenameerror3fileapitestrenameerror0406552439d1a4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamemin.json new file mode 100644 index 0000000000000..ca1baed9f67f6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamemin.json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamemin0fileapitestrenameminea678037f7eb011e42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3986728c-3e04-4509-b8b6-df4ea4329a39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB547F3EC4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576177d-501e-0003-53d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:31 GMT", + "x-ms-client-request-id" : "3986728c-3e04-4509-b8b6-df4ea4329a39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamemin0fileapitestrenameminea678037f7eb011e42/javapathrenamemin1fileapitestrenameminea651845ee08f45c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b70ad1a6-610b-4bd6-ae2f-ded580702197" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB548AEDD6", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83e5-201f-006a-50d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "b70ad1a6-610b-4bd6-ae2f-ded580702197" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamemin0fileapitestrenameminea678037f7eb011e42/javapathrenamemin1fileapitestrenameminea651845ee08f45c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc40d731-c1dd-4250-a27a-9ca091062ef1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83e6-201f-006a-51d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "dc40d731-c1dd-4250-a27a-9ca091062ef1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamemin0fileapitestrenameminea678037f7eb011e42/javapathrenamemin1fileapitestrenameminea651845ee08f45c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a477fb8-3c8f-4918-993a-d3bb00fe2e39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB549BFA53", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83e7-201f-006a-52d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "5a477fb8-3c8f-4918-993a-d3bb00fe2e39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamemin0fileapitestrenameminea678037f7eb011e42/javapathrenamemin2fileapitestrenameminea66330248fa40ad?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bcc0ed7d-66d4-4dca-80c9-6d8ca1d56a47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83e8-201f-006a-53d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "bcc0ed7d-66d4-4dca-80c9-6d8ca1d56a47" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c856e138-5790-42a5-b9ce-5db9742ba846" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257617c0-501e-0003-0fd4-904d7d000000", + "Body" : "jtfsrenameminjtfsrenamemin0fileapitestrenameminea678037f7eb011e42Fri, 01 Nov 2019 16:48:32 GMT\"0x8D75EEB547F3EC4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "c856e138-5790-42a5-b9ce-5db9742ba846", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamemin0fileapitestrenameminea678037f7eb011e42?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50ef47b0-abee-4097-80aa-ffcf6f0e0849" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257617cb-501e-0003-18d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "50ef47b0-abee-4097-80aa-ffcf6f0e0849" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamemin0fileapitestrenameminea678037f7eb011e42", "javapathrenamemin1fileapitestrenameminea651845ee08f45c", "javapathrenamemin2fileapitestrenameminea66330248fa40ad" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[0].json new file mode 100644 index 0000000000000..c3c0d2478fc98 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[0].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03cd508f-48d3-44b3-9919-17994bec609f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55491C69", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257618b9-501e-0003-66d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "03cd508f-48d3-44b3-9919-17994bec609f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b/javapathrenamesourceac1fileapitestrenamesourceac3c0493510f1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5179e2bb-82f3-4492-9523-93917f56e93c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55586ADD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83f3-201f-006a-5ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "5179e2bb-82f3-4492-9523-93917f56e93c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b/javapathrenamesourceac1fileapitestrenamesourceac3c0493510f1?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8145574c-7abe-4b48-81a1-02af51f189bb", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83f4-201f-006a-5fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "8145574c-7abe-4b48-81a1-02af51f189bb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b/javapathrenamesourceac1fileapitestrenamesourceac3c0493510f1?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e1abcaa-2637-4b4c-bbe5-0abc31c7e713" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB556F8618", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83f5-201f-006a-60d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "7e1abcaa-2637-4b4c-bbe5-0abc31c7e713" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b/javapathrenamesourceac2fileapitestrenamesourceac3c026554d05?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b3d7169-3804-439f-924b-a891fd845639" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83f6-201f-006a-61d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "7b3d7169-3804-439f-924b-a891fd845639" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4aa70e1e-61b7-424b-a945-f859872bc3bf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761920-501e-0003-44d4-904d7d000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0fileapitestrenamesourceac3c039091c847bFri, 01 Nov 2019 16:48:33 GMT\"0x8D75EEB55491C69\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "4aa70e1e-61b7-424b-a945-f859872bc3bf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f40c5298-b34d-4610-98cf-932218943765" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761936-501e-0003-56d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "f40c5298-b34d-4610-98cf-932218943765" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0fileapitestrenamesourceac3c039091c847b", "javapathrenamesourceac1fileapitestrenamesourceac3c0493510f1", "javapathrenamesourceac2fileapitestrenamesourceac3c026554d05" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[1].json new file mode 100644 index 0000000000000..61fd2629f943f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[1].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b285ea82-bbbb-4fcb-9522-be155b0ad30b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55915639", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576194f-501e-0003-6cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "b285ea82-bbbb-4fcb-9522-be155b0ad30b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2/javapathrenamesourceac1fileapitestrenamesourceac9d02486663f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "021b31ce-9aa7-4a8c-8b64-c097734336b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB559AFBFB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83f7-201f-006a-62d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "021b31ce-9aa7-4a8c-8b64-c097734336b4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2/javapathrenamesourceac1fileapitestrenamesourceac9d02486663f?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da444422-9d9c-42f7-be63-39ed5c709aa9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83f8-201f-006a-63d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "da444422-9d9c-42f7-be63-39ed5c709aa9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2/javapathrenamesourceac1fileapitestrenamesourceac9d02486663f?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ade479fa-0b51-41bd-95f5-fa2e2d622510" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55AB7E7E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83f9-201f-006a-64d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "ade479fa-0b51-41bd-95f5-fa2e2d622510" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2/javapathrenamesourceac2fileapitestrenamesourceac9d094412277?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d95745ec-63bf-43bd-b58a-a6d99b6808d4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83fa-201f-006a-65d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "d95745ec-63bf-43bd-b58a-a6d99b6808d4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a13d0476-6a3a-4993-8b30-b2c9649b462d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257619ca-501e-0003-5dd4-904d7d000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2Fri, 01 Nov 2019 16:48:34 GMT\"0x8D75EEB55915639\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "a13d0476-6a3a-4993-8b30-b2c9649b462d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "448daab0-2a8a-4436-a1c5-396baf770f79" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257619d3-501e-0003-66d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "448daab0-2a8a-4436-a1c5-396baf770f79" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0fileapitestrenamesourceac9d048895489f2", "javapathrenamesourceac1fileapitestrenamesourceac9d02486663f", "javapathrenamesourceac2fileapitestrenamesourceac9d094412277" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[2].json new file mode 100644 index 0000000000000..056e7aa42d08f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[2].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc790511-323a-4d0c-8ddc-35b489ccda4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55CD7FE3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257619e3-501e-0003-76d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:33 GMT", + "x-ms-client-request-id" : "cc790511-323a-4d0c-8ddc-35b489ccda4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0/javapathrenamesourceac1fileapitestrenamesourceac106027718ca?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d33dfba-3678-48b5-9daf-9e1ec835555c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55D768EF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83fb-201f-006a-66d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "9d33dfba-3678-48b5-9daf-9e1ec835555c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0/javapathrenamesourceac1fileapitestrenamesourceac106027718ca?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "081051c9-8b85-4647-bfc5-97c0704a5808", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83fc-201f-006a-67d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "081051c9-8b85-4647-bfc5-97c0704a5808" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0/javapathrenamesourceac1fileapitestrenamesourceac106027718ca?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a0d2adb-ae5c-44a3-a574-45110c32e4e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB55E86C94", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83fd-201f-006a-68d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "7a0d2adb-ae5c-44a3-a574-45110c32e4e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0/javapathrenamesourceac2fileapitestrenamesourceac10670852028?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec97f959-310c-44ab-9545-97974f3aff75" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83fe-201f-006a-69d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "ec97f959-310c-44ab-9545-97974f3aff75" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fd1058f1-2da6-4c98-9ee0-5c56076fe058" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761a25-501e-0003-30d4-904d7d000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0Fri, 01 Nov 2019 16:48:34 GMT\"0x8D75EEB55CD7FE3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "fd1058f1-2da6-4c98-9ee0-5c56076fe058", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a6a2925-4532-4525-ae8c-949e5f3ed135" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761a3d-501e-0003-44d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "8a6a2925-4532-4525-ae8c-949e5f3ed135" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0fileapitestrenamesourceac106079481f0d0", "javapathrenamesourceac1fileapitestrenamesourceac106027718ca", "javapathrenamesourceac2fileapitestrenamesourceac10670852028" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[3].json new file mode 100644 index 0000000000000..f9192fcba242c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[3].json @@ -0,0 +1,178 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "624831c0-b6f9-4ac9-b5db-5df02eeba632" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB560C9041", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761a4a-501e-0003-4fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "624831c0-b6f9-4ac9-b5db-5df02eeba632" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c/javapathrenamesourceac1fileapitestrenamesourceacb1756095742?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ab064ac-deb7-41bb-9f7e-b0ec2f5df1d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56165D6A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83ff-201f-006a-6ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "5ab064ac-deb7-41bb-9f7e-b0ec2f5df1d6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c/javapathrenamesourceac1fileapitestrenamesourceacb1756095742?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6758c2f5-0efe-4c41-a2d9-b1fdaaeaa623", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8400-201f-006a-6bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "6758c2f5-0efe-4c41-a2d9-b1fdaaeaa623" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c/javapathrenamesourceac1fileapitestrenamesourceacb1756095742?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26bb6c0c-b0a9-42a3-9b39-5219b6f214e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56262590", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8401-201f-006a-6cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "26bb6c0c-b0a9-42a3-9b39-5219b6f214e7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c/javapathrenamesourceac1fileapitestrenamesourceacb1756095742", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0aa8321-f1de-4196-b80d-c8cceb392433" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:34 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", + "ETag" : "0x8D75EEB56262590", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:35 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25761a8a-501e-0003-09d4-904d7d000000", + "x-ms-client-request-id" : "a0aa8321-f1de-4196-b80d-c8cceb392433", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c/javapathrenamesourceac2fileapitestrenamesourceacb1716855dec?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a5062879-76f7-4259-b009-789d8467600b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8402-201f-006a-6dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "a5062879-76f7-4259-b009-789d8467600b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7ca09e9-d462-4485-a3b4-8a1acdc4df5a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761ab9-501e-0003-2fd4-904d7d000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0fileapitestrenamesourceacb17540348df8cFri, 01 Nov 2019 16:48:35 GMT\"0x8D75EEB560C9041\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "e7ca09e9-d462-4485-a3b4-8a1acdc4df5a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "124afd7a-b9f5-46bb-82fe-8f269d689434" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761abc-501e-0003-32d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "124afd7a-b9f5-46bb-82fe-8f269d689434" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0fileapitestrenamesourceacb17540348df8c", "javapathrenamesourceac1fileapitestrenamesourceacb1756095742", "javapathrenamesourceac2fileapitestrenamesourceacb1716855dec" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[4].json new file mode 100644 index 0000000000000..4852fa2032b40 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[4].json @@ -0,0 +1,148 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68ec7024-66a6-4e47-ae53-0500d08e22b9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56584D2A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761acb-501e-0003-3ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:34 GMT", + "x-ms-client-request-id" : "68ec7024-66a6-4e47-ae53-0500d08e22b9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a/javapathrenamesourceac1fileapitestrenamesourceac32654746cac?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3f6d166-8565-42a9-ae19-bb54a5313419" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56625836", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8403-201f-006a-6ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "b3f6d166-8565-42a9-ae19-bb54a5313419" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a/javapathrenamesourceac1fileapitestrenamesourceac32654746cac?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0e5c0b3-6cd0-4335-9391-23e1d7c2e165", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8404-201f-006a-6fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "e0e5c0b3-6cd0-4335-9391-23e1d7c2e165" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a/javapathrenamesourceac1fileapitestrenamesourceac32654746cac?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c50be12-5492-40c7-8108-bdae7e52e2d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB567231F3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8405-201f-006a-70d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "2c50be12-5492-40c7-8108-bdae7e52e2d2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a/javapathrenamesourceac2fileapitestrenamesourceac32631754708?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4baca7cf-094c-475a-820a-8ffcdc46749b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8406-201f-006a-71d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "4baca7cf-094c-475a-820a-8ffcdc46749b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b51dc8ec-f265-4f43-8ee6-75b101b91d41" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761b03-501e-0003-71d4-904d7d000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0fileapitestrenamesourceac326544511d70aFri, 01 Nov 2019 16:48:35 GMT\"0x8D75EEB56584D2A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "b51dc8ec-f265-4f43-8ee6-75b101b91d41", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "707c8f20-5985-425b-940c-31da01d16760" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761b0b-501e-0003-78d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "707c8f20-5985-425b-940c-31da01d16760" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0fileapitestrenamesourceac326544511d70a", "javapathrenamesourceac1fileapitestrenamesourceac32654746cac", "javapathrenamesourceac2fileapitestrenamesourceac32631754708" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[5].json new file mode 100644 index 0000000000000..a6cb766323fa8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceac[5].json @@ -0,0 +1,170 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33eac90c-81fc-49f3-a34c-05704b5c7849" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56953A48", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761b1b-501e-0003-04d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "33eac90c-81fc-49f3-a34c-05704b5c7849" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0/javapathrenamesourceac1fileapitestrenamesourceac90134836c43?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9be1db3-a0ea-4616-9029-e5b8c167232a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56B9AA14", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8407-201f-006a-72d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "d9be1db3-a0ea-4616-9029-e5b8c167232a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0/javapathrenamesourceac1fileapitestrenamesourceac90134836c43?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "10619ed9-49d8-4e51-9d91-7e3d094b74d3", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8408-201f-006a-73d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "10619ed9-49d8-4e51-9d91-7e3d094b74d3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0/javapathrenamesourceac1fileapitestrenamesourceac90134836c43?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1fc1fd35-e2ea-495f-afa7-73cc10e05a8e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56C96F74", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8409-201f-006a-74d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "1fc1fd35-e2ea-495f-afa7-73cc10e05a8e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0/javapathrenamesourceac1fileapitestrenamesourceac90134836c43?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22fdb317-42fd-46f1-a9e0-f0ad336bb061" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56C96F74", + "x-ms-lease-id" : "6595b22a-1bd6-4aad-af54-8954010b78c0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761b8d-501e-0003-67d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "22fdb317-42fd-46f1-a9e0-f0ad336bb061" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0/javapathrenamesourceac2fileapitestrenamesourceac90159725417?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9cee485-a4b9-4166-80a7-3f0f4efc7811" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e840a-201f-006a-75d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "c9cee485-a4b9-4166-80a7-3f0f4efc7811" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df238818-ada4-48c4-99fb-b48660f9c0a9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761ba7-501e-0003-7ad4-904d7d000000", + "Body" : "jtfsrenamesourceacjtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0Fri, 01 Nov 2019 16:48:35 GMT\"0x8D75EEB56953A48\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "df238818-ada4-48c4-99fb-b48660f9c0a9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "055d6ced-56cb-482a-a8ae-6cb454c2915a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761bb5-501e-0003-08d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "055d6ced-56cb-482a-a8ae-6cb454c2915a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceac0fileapitestrenamesourceac90163638ec5f0", "javapathrenamesourceac1fileapitestrenamesourceac90134836c43", "javapathrenamesourceac2fileapitestrenamesourceac90159725417" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[0].json new file mode 100644 index 0000000000000..9ea6b37e7f9e8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[0].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b90d2f4-1001-4a0d-961c-a6b56776b27e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56F322F2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761bc3-501e-0003-13d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:35 GMT", + "x-ms-client-request-id" : "2b90d2f4-1001-4a0d-961c-a6b56776b27e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107/javapathrenamesourceacfail13524882cf5c35e29844a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "897261ef-452c-4ae5-a858-2da7622282c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB56FD3457", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e840b-201f-006a-76d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "897261ef-452c-4ae5-a858-2da7622282c8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107/javapathrenamesourceacfail13524882cf5c35e29844a?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cac1e335-ade5-4e4d-989a-3000e0c70bd8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e840c-201f-006a-77d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "cac1e335-ade5-4e4d-989a-3000e0c70bd8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107/javapathrenamesourceacfail13524882cf5c35e29844a?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09e31b17-4901-4ca4-9403-929af89847ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB570CD3F1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e840d-201f-006a-78d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "09e31b17-4901-4ca4-9403-929af89847ef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107/javapathrenamesourceacfail262178e0c4cb93a70e434?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "252ffbe5-3a8a-4718-b188-439e48779f89" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57150601", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e840e-201f-006a-79d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "252ffbe5-3a8a-4718-b188-439e48779f89" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107/javapathrenamesourceacfail391073b391eaffc69e4d0?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6040d69-d05c-4295-9849-84c3688003c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "123e840f-201f-006a-7ad4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e840f-201f-006a-7ad4-9012d1000000\\nTime:2019-11-01T16:48:36.8091650Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "d6040d69-d05c-4295-9849-84c3688003c9", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01b1ee1f-0012-4aab-b7e0-05d4bbc565c3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761c19-501e-0003-55d4-904d7d000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107Fri, 01 Nov 2019 16:48:36 GMT\"0x8D75EEB56F322F2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "01b1ee1f-0012-4aab-b7e0-05d4bbc565c3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78e9147f-8f92-41c3-a7dc-6c5bbf6c4bc4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761c26-501e-0003-60d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "78e9147f-8f92-41c3-a7dc-6c5bbf6c4bc4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0fileapitestrenamesourceacfail301887107", "javapathrenamesourceacfail13524882cf5c35e29844a", "javapathrenamesourceacfail262178e0c4cb93a70e434", "javapathrenamesourceacfail391073b391eaffc69e4d0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[1].json new file mode 100644 index 0000000000000..9f686739a9cf5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[1].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9b9e423-c89b-4ee5-b5b6-9a5627cbd481" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5735683B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761c35-501e-0003-6fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "c9b9e423-c89b-4ee5-b5b6-9a5627cbd481" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d/javapathrenamesourceacfail1469253321d2e3bc354f7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "51cdb6c2-338c-4e1c-b5f4-bbe8e517f107" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB573F25E3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8410-201f-006a-7bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "51cdb6c2-338c-4e1c-b5f4-bbe8e517f107" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d/javapathrenamesourceacfail1469253321d2e3bc354f7?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ded451a4-d277-4c54-9b12-4dec3579950f", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8411-201f-006a-7cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "ded451a4-d277-4c54-9b12-4dec3579950f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d/javapathrenamesourceacfail1469253321d2e3bc354f7?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9e0fde0-9d93-432e-936d-792ba3142f3b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57536B21", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8412-201f-006a-7dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "d9e0fde0-9d93-432e-936d-792ba3142f3b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d/javapathrenamesourceacfail272873f9f500f73a6f4b1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22757c57-5fa1-48e1-a2b6-d79fb9fe1c8e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB575C00B8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8414-201f-006a-7ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "22757c57-5fa1-48e1-a2b6-d79fb9fe1c8e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d/javapathrenamesourceacfail3235643aa627654e5b4b9?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2078cb4-dc20-4a13-b0f7-7513b67fbf38" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "123e8415-201f-006a-7fd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e8415-201f-006a-7fd4-9012d1000000\\nTime:2019-11-01T16:48:37.3055109Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "f2078cb4-dc20-4a13-b0f7-7513b67fbf38", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f056cc96-0d29-4318-a4d8-cbe2de6b2e7a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761c8a-501e-0003-34d4-904d7d000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135dFri, 01 Nov 2019 16:48:36 GMT\"0x8D75EEB5735683B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "f056cc96-0d29-4318-a4d8-cbe2de6b2e7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "81c25cfa-d9c9-4a18-a60a-285c0bf0b05b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761c94-501e-0003-3cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "81c25cfa-d9c9-4a18-a60a-285c0bf0b05b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0fileapitestrenamesourceacfail3a801135d", "javapathrenamesourceacfail1469253321d2e3bc354f7", "javapathrenamesourceacfail272873f9f500f73a6f4b1", "javapathrenamesourceacfail3235643aa627654e5b4b9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[2].json new file mode 100644 index 0000000000000..54e8fe5d2b80e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[2].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70a54941-86d1-4937-b8fd-fe95661db2ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB578C71D7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761cad-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:36 GMT", + "x-ms-client-request-id" : "70a54941-86d1-4937-b8fd-fe95661db2ad" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f/javapathrenamesourceacfail12811526293cb61dd547b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a1ae83e-9535-4882-a9f7-7b728427390f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57966AD0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8416-201f-006a-80d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "9a1ae83e-9535-4882-a9f7-7b728427390f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f/javapathrenamesourceacfail12811526293cb61dd547b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c11ffe9c-3031-4ad7-a265-270ab3e0ab66", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8417-201f-006a-01d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "c11ffe9c-3031-4ad7-a265-270ab3e0ab66" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f/javapathrenamesourceacfail12811526293cb61dd547b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9927616d-7e11-497c-8b45-b92227825f22" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57A6062A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8418-201f-006a-02d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "9927616d-7e11-497c-8b45-b92227825f22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f/javapathrenamesourceacfail2886731f5ee47aaa24458?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41868857-813e-4440-b336-ea10897366b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57AEA11F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8419-201f-006a-03d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "41868857-813e-4440-b336-ea10897366b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f/javapathrenamesourceacfail389754ab6a4282ab8a459?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03a494cc-e299-4870-9bf4-874819a27712" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "123e841a-201f-006a-04d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e841a-201f-006a-04d4-9012d1000000\\nTime:2019-11-01T16:48:37.8108631Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "03a494cc-e299-4870-9bf4-874819a27712", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f0e8759-f863-4907-af19-6bb1fb279c57" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761cfa-501e-0003-14d4-904d7d000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296fFri, 01 Nov 2019 16:48:37 GMT\"0x8D75EEB578C71D7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "1f0e8759-f863-4907-af19-6bb1fb279c57", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a248fc20-3a83-4471-9349-b41c0b241e97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761d09-501e-0003-20d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "a248fc20-3a83-4471-9349-b41c0b241e97" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0fileapitestrenamesourceacfail5e715296f", "javapathrenamesourceacfail12811526293cb61dd547b", "javapathrenamesourceacfail2886731f5ee47aaa24458", "javapathrenamesourceacfail389754ab6a4282ab8a459" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[3].json new file mode 100644 index 0000000000000..9e645f84810ca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[3].json @@ -0,0 +1,202 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "992cf929-cd92-45e6-8d0c-f10f6d5977db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57CEB71B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761d1a-501e-0003-31d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "992cf929-cd92-45e6-8d0c-f10f6d5977db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f/javapathrenamesourceacfail157981b79357ea76e6450?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bfe8795f-d23e-4338-889a-463c6006b0ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57D8EBBD", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e841b-201f-006a-05d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "bfe8795f-d23e-4338-889a-463c6006b0ed" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f/javapathrenamesourceacfail157981b79357ea76e6450?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d7cedbf-87d2-4ba5-8c24-20f1a0f7d576", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e841c-201f-006a-06d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "8d7cedbf-87d2-4ba5-8c24-20f1a0f7d576" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f/javapathrenamesourceacfail157981b79357ea76e6450?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8837c02c-cdb5-4709-a755-0d449770192e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57EDD5A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e841d-201f-006a-07d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "8837c02c-cdb5-4709-a755-0d449770192e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f/javapathrenamesourceacfail25715284903d411908429?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4112cb2-5788-476b-9cec-04bf70dff6d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB57F6039A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e841e-201f-006a-08d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "e4112cb2-5788-476b-9cec-04bf70dff6d8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f/javapathrenamesourceacfail25715284903d411908429", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b54e9f1-9897-4e78-8aa5-6ac6e6b99b0d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:37 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", + "ETag" : "0x8D75EEB57F6039A", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:38 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "25761d81-501e-0003-06d4-904d7d000000", + "x-ms-client-request-id" : "1b54e9f1-9897-4e78-8aa5-6ac6e6b99b0d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f/javapathrenamesourceacfail344604d827f532cc6d451?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca98d528-4e31-486c-a2a9-7e83edf5c86a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "SourceConditionNotMet", + "retry-after" : "0", + "Content-Length" : "213", + "StatusCode" : "412", + "x-ms-request-id" : "123e841f-201f-006a-09d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"SourceConditionNotMet\",\"message\":\"The source condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e841f-201f-006a-09d4-9012d1000000\\nTime:2019-11-01T16:48:38.3352286Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "ca98d528-4e31-486c-a2a9-7e83edf5c86a", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "57d6e682-6a27-42a0-af69-ce2ba374ff89" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761d97-501e-0003-19d4-904d7d000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481fFri, 01 Nov 2019 16:48:37 GMT\"0x8D75EEB57CEB71B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "57d6e682-6a27-42a0-af69-ce2ba374ff89", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "40aa295e-dc54-4ddc-b1ed-ded58b8a83fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761d9d-501e-0003-1fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "40aa295e-dc54-4ddc-b1ed-ded58b8a83fa" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0fileapitestrenamesourceacfail27c05481f", "javapathrenamesourceacfail157981b79357ea76e6450", "javapathrenamesourceacfail25715284903d411908429", "javapathrenamesourceacfail344604d827f532cc6d451" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[4].json new file mode 100644 index 0000000000000..45e732b918a5c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamesourceacfail[4].json @@ -0,0 +1,194 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f984d59-7790-4875-90c9-d54f8b94473f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB581E1E29", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761da9-501e-0003-2bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:37 GMT", + "x-ms-client-request-id" : "9f984d59-7790-4875-90c9-d54f8b94473f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517/javapathrenamesourceacfail1540443548fa097acf45b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18730a4f-e428-45dc-98dc-844d55ec9849" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5827FEBB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8420-201f-006a-0ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "18730a4f-e428-45dc-98dc-844d55ec9849" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517/javapathrenamesourceacfail1540443548fa097acf45b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e7ec288-0630-4e09-a588-952372632c43", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8421-201f-006a-0bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "9e7ec288-0630-4e09-a588-952372632c43" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517/javapathrenamesourceacfail1540443548fa097acf45b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a42e682-d342-4aae-8488-e198198a1823" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB58383986", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8422-201f-006a-0cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "6a42e682-d342-4aae-8488-e198198a1823" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517/javapathrenamesourceacfail262915508a199347474a8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62fc9b6b-d0d0-4018-917f-3b499fb1b22c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5840B108", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8423-201f-006a-0dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "62fc9b6b-d0d0-4018-917f-3b499fb1b22c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517/javapathrenamesourceacfail262915508a199347474a8?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "412b542b-4517-4da3-9185-8dd93b2388cc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB5840B108", + "x-ms-lease-id" : "f2fe696d-a742-46bd-a24a-610de2a48989", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25761e12-501e-0003-02d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "412b542b-4517-4da3-9185-8dd93b2388cc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517/javapathrenamesourceacfail3191448d159815b04c4d7?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "614d6589-e514-461d-b48e-d1154367a8f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "123e8424-201f-006a-0ed4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:123e8424-201f-006a-0ed4-9012d1000000\\nTime:2019-11-01T16:48:38.8245697Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "614d6589-e514-461d-b48e-d1154367a8f3", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamesourceacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae8619d9-aed0-465d-a592-d75fa7db8efd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761e2f-501e-0003-1cd4-904d7d000000", + "Body" : "jtfsrenamesourceacfailjtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517Fri, 01 Nov 2019 16:48:38 GMT\"0x8D75EEB581E1E29\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "ae8619d9-aed0-465d-a592-d75fa7db8efd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e17f3ad8-a0e8-4b41-981a-41c04aaf07fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25761e3b-501e-0003-26d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:38 GMT", + "x-ms-client-request-id" : "e17f3ad8-a0e8-4b41-981a-41c04aaf07fb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamesourceacfail0fileapitestrenamesourceacfail564122517", "javapathrenamesourceacfail1540443548fa097acf45b", "javapathrenamesourceacfail262915508a199347474a8", "javapathrenamesourceacfail3191448d159815b04c4d7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamewithresponse.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamewithresponse.json new file mode 100644 index 0000000000000..78909da09a811 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestrenamewithresponse.json @@ -0,0 +1,197 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85fb8397-3d42-47e8-98b9-bccbcdfb8454" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB54C0726F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257617d7-501e-0003-24d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "85fb8397-3d42-47e8-98b9-bccbcdfb8454" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877/javapathrenamewithresponse113231006c00bce364449?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "55700d4b-6f11-4d53-bf6d-6433bf97cc9a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB54CA98FB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83e9-201f-006a-54d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "55700d4b-6f11-4d53-bf6d-6433bf97cc9a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877/javapathrenamewithresponse113231006c00bce364449?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf6117c9-018b-4adf-a535-e91604ac920d", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83ea-201f-006a-55d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "cf6117c9-018b-4adf-a535-e91604ac920d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877/javapathrenamewithresponse113231006c00bce364449?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44c02975-e8e4-43fb-b128-ec122371cc26" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB54D9EAA0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e83eb-201f-006a-56d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "44c02975-e8e4-43fb-b128-ec122371cc26" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877/javapathrenamewithresponse278919ccd83ecdd723446?mode=legacy", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5d1e885-5c6d-41f5-b71c-6f3e2a69569c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e83ec-201f-006a-57d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "b5d1e885-5c6d-41f5-b71c-6f3e2a69569c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877/javapathrenamewithresponse278919ccd83ecdd723446", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "619d10cf-377a-428b-a3b4-9a1f2a090176" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:33 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:32 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", + "ETag" : "0x8D75EEB54D9EAA0", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:32 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2576181e-501e-0003-5ed4-904d7d000000", + "x-ms-client-request-id" : "619d10cf-377a-428b-a3b4-9a1f2a090176", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877/javapathrenamewithresponse113231006c00bce364449", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04b7a244-5a9b-4a8d-b0bd-ea537094930a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "25761829-501e-0003-65d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "04b7a244-5a9b-4a8d-b0bd-ea537094930a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenamewithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "72cf546c-bd0f-4d71-8725-93185a59596e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25761835-501e-0003-71d4-904d7d000000", + "Body" : "jtfsrenamewithresponsejtfsrenamewithresponse0fileapitestrenamewithresponse884979877Fri, 01 Nov 2019 16:48:32 GMT\"0x8D75EEB54C0726F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "72cf546c-bd0f-4d71-8725-93185a59596e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenamewithresponse0fileapitestrenamewithresponse884979877?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f236cb31-a087-4a75-a3f5-cb40bb577ea1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576183f-501e-0003-79d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:32 GMT", + "x-ms-client-request-id" : "f236cb31-a087-4a75-a3f5-cb40bb577ea1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenamewithresponse0fileapitestrenamewithresponse884979877", "javapathrenamewithresponse113231006c00bce364449", "javapathrenamewithresponse278919ccd83ecdd723446" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[0].json new file mode 100644 index 0000000000000..6c530f27397a9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "592b7472-ee7c-45f0-9949-cac880b1918b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3CCAD837", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e45b-501e-0003-55d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "592b7472-ee7c-45f0-9949-cac880b1918b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c/javapathsetaccesscontrolac1858401c72ecc956c44aa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e172d1b2-3db4-49ac-9cfe-a9bbcd991e5a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3CE0156B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82aa-201f-006a-1cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "e172d1b2-3db4-49ac-9cfe-a9bbcd991e5a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c/javapathsetaccesscontrolac1858401c72ecc956c44aa?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f039462-852a-4130-86d4-95aaee424004", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82ab-201f-006a-1dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "7f039462-852a-4130-86d4-95aaee424004" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c/javapathsetaccesscontrolac1858401c72ecc956c44aa?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f932ab5d-f200-46d7-a1f6-597c13059295" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3CF053F4", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82ac-201f-006a-1ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "f932ab5d-f200-46d7-a1f6-597c13059295" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c/javapathsetaccesscontrolac1858401c72ecc956c44aa?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87c73c21-39d6-4c04-ba03-1b49dceef2eb" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3CF053F4", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82ad-201f-006a-1fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "87c73c21-39d6-4c04-ba03-1b49dceef2eb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78819727-2fa8-4329-8cde-2babfc2db2f4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e4d5-501e-0003-42d4-904d7d000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109cFri, 01 Nov 2019 16:47:52 GMT\"0x8D75EEB3CCAD837\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "78819727-2fa8-4329-8cde-2babfc2db2f4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01ce917c-edfe-4d46-ad66-8d4d241ca28c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e4e3-501e-0003-50d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "01ce917c-edfe-4d46-ad66-8d4d241ca28c" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0fileapitestsetaccesscontrolac29163109c", "javapathsetaccesscontrolac1858401c72ecc956c44aa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[1].json new file mode 100644 index 0000000000000..1ebb2169624e9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cd7aeb1d-ea8b-4302-b197-1cbf53e444b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D11D98A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e506-501e-0003-6fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "cd7aeb1d-ea8b-4302-b197-1cbf53e444b3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f/javapathsetaccesscontrolac147582fdee96b2cbc0430?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "239823f0-58ce-4b50-ba51-c9e19479f81d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D1B990D", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82ae-201f-006a-20d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "239823f0-58ce-4b50-ba51-c9e19479f81d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f/javapathsetaccesscontrolac147582fdee96b2cbc0430?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "21daa69f-d2fa-4075-9913-66f23382fef2", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82af-201f-006a-21d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "21daa69f-d2fa-4075-9913-66f23382fef2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f/javapathsetaccesscontrolac147582fdee96b2cbc0430?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f674a43-c836-4416-b924-52ccb1d89059" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D2C9FCC", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82b0-201f-006a-22d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "6f674a43-c836-4416-b924-52ccb1d89059" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f/javapathsetaccesscontrolac147582fdee96b2cbc0430?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "076ffba9-9353-4b5c-ba95-05436d591129" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D2C9FCC", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82b1-201f-006a-23d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "076ffba9-9353-4b5c-ba95-05436d591129" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e247c0d-34b7-4912-907c-727299f615ba" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e55c-501e-0003-3dd4-904d7d000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815fFri, 01 Nov 2019 16:47:53 GMT\"0x8D75EEB3D11D98A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "2e247c0d-34b7-4912-907c-727299f615ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23ef0768-5ea2-46d1-aeea-d03f76b1547a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e567-501e-0003-48d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "23ef0768-5ea2-46d1-aeea-d03f76b1547a" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0fileapitestsetaccesscontrolaccb116815f", "javapathsetaccesscontrolac147582fdee96b2cbc0430" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[2].json new file mode 100644 index 0000000000000..ba8fb0a5f47e8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e557d47-e5ee-404b-831c-cf5a843f830b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D4D18D6", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e57f-501e-0003-5cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "8e557d47-e5ee-404b-831c-cf5a843f830b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d/javapathsetaccesscontrolac1133069ecf554c79fe4cd?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe22a644-6160-48b0-9e2c-fe70b230f50f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D56FE93", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82b2-201f-006a-24d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "fe22a644-6160-48b0-9e2c-fe70b230f50f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d/javapathsetaccesscontrolac1133069ecf554c79fe4cd?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b045fb8b-9bf9-4167-904d-49f29448e50e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82b3-201f-006a-25d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "b045fb8b-9bf9-4167-904d-49f29448e50e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d/javapathsetaccesscontrolac1133069ecf554c79fe4cd?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8808dc75-0679-4354-829c-bac870f37312" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D675332", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82b4-201f-006a-26d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "8808dc75-0679-4354-829c-bac870f37312" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d/javapathsetaccesscontrolac1133069ecf554c79fe4cd?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44c64b4f-7483-4fa4-9a9c-dccff042f806" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D675332", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82b5-201f-006a-27d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "44c64b4f-7483-4fa4-9a9c-dccff042f806" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b19a433-6553-4616-a3c4-b715b9f19338" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e5f4-501e-0003-4cd4-904d7d000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333dFri, 01 Nov 2019 16:47:53 GMT\"0x8D75EEB3D4D18D6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "5b19a433-6553-4616-a3c4-b715b9f19338", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "efcd640d-d347-4523-9ff0-aa5abd52c485" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e604-501e-0003-5bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "efcd640d-d347-4523-9ff0-aa5abd52c485" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0fileapitestsetaccesscontrolac82d07333d", "javapathsetaccesscontrolac1133069ecf554c79fe4cd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[3].json new file mode 100644 index 0000000000000..e08ce404fc5e8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78a5483b-8929-471b-a294-3b310fa689d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D86830F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e623-501e-0003-7ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "78a5483b-8929-471b-a294-3b310fa689d8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099/javapathsetaccesscontrolac181936bec564b28a0f4b3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92c72bda-39e8-4d5b-ba6d-8dbd3cca97c6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3D904C5A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82b6-201f-006a-28d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "92c72bda-39e8-4d5b-ba6d-8dbd3cca97c6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099/javapathsetaccesscontrolac181936bec564b28a0f4b3?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f24fc4f8-e3b3-4a87-9ebb-c5f23b9c1556", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82b7-201f-006a-29d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "f24fc4f8-e3b3-4a87-9ebb-c5f23b9c1556" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099/javapathsetaccesscontrolac181936bec564b28a0f4b3?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f39d4ea1-6b4f-41ac-a461-81b0d84cdc1f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3DAB8FE9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82b8-201f-006a-2ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "f39d4ea1-6b4f-41ac-a461-81b0d84cdc1f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099/javapathsetaccesscontrolac181936bec564b28a0f4b3", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c85a3934-20b1-4c87-a4fc-1d8b1cd1b7da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:53 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", + "ETag" : "0x8D75EEB3DAB8FE9", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:53 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575e698-501e-0003-62d4-904d7d000000", + "x-ms-client-request-id" : "c85a3934-20b1-4c87-a4fc-1d8b1cd1b7da", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099/javapathsetaccesscontrolac181936bec564b28a0f4b3?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f86badb-bfaf-40f0-b647-a8ed5155f3cc" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3DAB8FE9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82b9-201f-006a-2bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "8f86badb-bfaf-40f0-b647-a8ed5155f3cc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e875af6c-dd2e-4845-8bf1-bd28266a2a34" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e6c6-501e-0003-0ad4-904d7d000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099Fri, 01 Nov 2019 16:47:53 GMT\"0x8D75EEB3D86830F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "e875af6c-dd2e-4845-8bf1-bd28266a2a34", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8bdc6a8e-715c-4435-ab57-fd94765e2dd6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e6e6-501e-0003-27d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "8bdc6a8e-715c-4435-ab57-fd94765e2dd6" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0fileapitestsetaccesscontrolac7ef570099", "javapathsetaccesscontrolac181936bec564b28a0f4b3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[4].json new file mode 100644 index 0000000000000..059c341ada425 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "171cd4bd-49c4-49b6-94f1-bd61ad8847d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3DD32AC4", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e70f-501e-0003-4fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "171cd4bd-49c4-49b6-94f1-bd61ad8847d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527/javapathsetaccesscontrolac1235864736539624094a1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48f8fb0b-37ac-4442-8a29-5b695aa8fffa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3DDDDABF", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82ba-201f-006a-2cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "48f8fb0b-37ac-4442-8a29-5b695aa8fffa" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527/javapathsetaccesscontrolac1235864736539624094a1?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1127b47-e505-4b9a-ae80-68c3259e2c55", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82bb-201f-006a-2dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "d1127b47-e505-4b9a-ae80-68c3259e2c55" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527/javapathsetaccesscontrolac1235864736539624094a1?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4e687ead-493d-4a34-a57a-650fb96979c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3DEE506B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82bc-201f-006a-2ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "4e687ead-493d-4a34-a57a-650fb96979c9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527/javapathsetaccesscontrolac1235864736539624094a1?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e385926a-2ef4-45fd-a4bd-c2a7fd40adce" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3DEE506B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82bd-201f-006a-2fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "e385926a-2ef4-45fd-a4bd-c2a7fd40adce" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f85ba3ba-56bd-4b1c-a5f5-28add84a703b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e7a1-501e-0003-59d4-904d7d000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527Fri, 01 Nov 2019 16:47:54 GMT\"0x8D75EEB3DD32AC4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:53 GMT", + "x-ms-client-request-id" : "f85ba3ba-56bd-4b1c-a5f5-28add84a703b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4fb6d2aa-9c61-46a2-8013-77866c7d059d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e7bf-501e-0003-77d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "4fb6d2aa-9c61-46a2-8013-77866c7d059d" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0fileapitestsetaccesscontrolac495557527", "javapathsetaccesscontrolac1235864736539624094a1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[5].json new file mode 100644 index 0000000000000..594dca812619d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolac[5].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1813549c-90f5-4e8a-aa5f-e47c2c50c7f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E12626E", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e7f5-501e-0003-2ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "1813549c-90f5-4e8a-aa5f-e47c2c50c7f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542/javapathsetaccesscontrolac1891541e4b6a64a63e4ba?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71949ad4-8799-4aa8-b333-7538ced13f57" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E1FEC11", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82be-201f-006a-30d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "71949ad4-8799-4aa8-b333-7538ced13f57" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542/javapathsetaccesscontrolac1891541e4b6a64a63e4ba?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b40a8bd2-cb70-4c6e-9b90-7301784c65c1", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82bf-201f-006a-31d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "b40a8bd2-cb70-4c6e-9b90-7301784c65c1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542/javapathsetaccesscontrolac1891541e4b6a64a63e4ba?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "765430f2-60a3-4a20-a0d1-83a34349a601" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E30D556", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82c0-201f-006a-32d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "765430f2-60a3-4a20-a0d1-83a34349a601" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542/javapathsetaccesscontrolac1891541e4b6a64a63e4ba?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "175ef054-e189-4553-824b-979adbeda87f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E30D556", + "x-ms-lease-id" : "3eee12c2-e008-481e-8807-9564183d18b6", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e858-501e-0003-06d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "175ef054-e189-4553-824b-979adbeda87f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542/javapathsetaccesscontrolac1891541e4b6a64a63e4ba?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8bebf5cb-cece-4f49-a959-3614bf65813a" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E30D556", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82c1-201f-006a-33d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "8bebf5cb-cece-4f49-a959-3614bf65813a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea116094-fbf6-40a0-9e35-f1326f952b7c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e89b-501e-0003-44d4-904d7d000000", + "Body" : "jtfssetaccesscontrolacjtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542Fri, 01 Nov 2019 16:47:54 GMT\"0x8D75EEB3E12626E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "ea116094-fbf6-40a0-9e35-f1326f952b7c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a143fd0-a612-46e1-8faf-2fe8b26182ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e8a7-501e-0003-4fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "8a143fd0-a612-46e1-8faf-2fe8b26182ff" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolac0fileapitestsetaccesscontrolac3e8705542", "javapathsetaccesscontrolac1891541e4b6a64a63e4ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[0].json new file mode 100644 index 0000000000000..c3513a564ed7d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail084696374fec985138478?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4f24dab-9190-4756-8db2-d28551ec3a2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E59D906", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e8cf-501e-0003-75d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "f4f24dab-9190-4756-8db2-d28551ec3a2a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail084696374fec985138478/javapathsetaccesscontrolacfail145533b20a29e0cafc4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc354596-8002-4fdb-9123-455d42303d92" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E671DF9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82c2-201f-006a-34d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "dc354596-8002-4fdb-9123-455d42303d92" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail084696374fec985138478/javapathsetaccesscontrolacfail145533b20a29e0cafc4?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2809e31a-da28-4783-a3aa-e8dba68adc98", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82c3-201f-006a-35d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "2809e31a-da28-4783-a3aa-e8dba68adc98" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail084696374fec985138478/javapathsetaccesscontrolacfail145533b20a29e0cafc4?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95f5a46a-6880-49b8-89af-cb73c236317e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E76EE9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82c4-201f-006a-36d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "95f5a46a-6880-49b8-89af-cb73c236317e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail084696374fec985138478/javapathsetaccesscontrolacfail145533b20a29e0cafc4?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5772922e-b4f4-4b50-89a2-9a29204e5315" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e82c5-201f-006a-37d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e82c5-201f-006a-37d4-9012d1000000\\nTime:2019-11-01T16:47:55.5023738Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "5772922e-b4f4-4b50-89a2-9a29204e5315", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91061e27-af83-491a-b680-5be943214658" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e96a-501e-0003-0ad4-904d7d000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail084696374fec985138478Fri, 01 Nov 2019 16:47:55 GMT\"0x8D75EEB3E59D906\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "91061e27-af83-491a-b680-5be943214658", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail084696374fec985138478?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33d6d4cc-fc80-42cb-95a4-579bab49c0ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e983-501e-0003-21d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:54 GMT", + "x-ms-client-request-id" : "33d6d4cc-fc80-42cb-95a4-579bab49c0ad" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail084696374fec985138478", "javapathsetaccesscontrolacfail145533b20a29e0cafc4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[1].json new file mode 100644 index 0000000000000..9649bbb85f500 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail014653185cb1869979406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8595a695-1e42-44d4-a891-17660cbaec35" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3E9762B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e995-501e-0003-2ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "8595a695-1e42-44d4-a891-17660cbaec35" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail014653185cb1869979406/javapathsetaccesscontrolacfail196123492a3582929b4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ba58224-e4c0-4615-9812-785523828c6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3EABCAD6", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82c6-201f-006a-38d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "6ba58224-e4c0-4615-9812-785523828c6b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail014653185cb1869979406/javapathsetaccesscontrolacfail196123492a3582929b4?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc219c5a-3f00-4c67-ae4c-ae97ca189827", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82c7-201f-006a-39d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "dc219c5a-3f00-4c67-ae4c-ae97ca189827" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail014653185cb1869979406/javapathsetaccesscontrolacfail196123492a3582929b4?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fdcc8ce-e062-49fe-a03b-17dc048e9a1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3EBD9BB3", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82c8-201f-006a-3ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "7fdcc8ce-e062-49fe-a03b-17dc048e9a1c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail014653185cb1869979406/javapathsetaccesscontrolacfail196123492a3582929b4?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f270544b-b5a0-4cc4-ab0c-5eefb84dc364" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e82c9-201f-006a-3bd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e82c9-201f-006a-3bd4-9012d1000000\\nTime:2019-11-01T16:47:55.9676985Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "f270544b-b5a0-4cc4-ab0c-5eefb84dc364", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85c4b420-ee60-4039-b150-3b5c54a22f5e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ea0a-501e-0003-0fd4-904d7d000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail014653185cb1869979406Fri, 01 Nov 2019 16:47:55 GMT\"0x8D75EEB3E9762B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "85c4b420-ee60-4039-b150-3b5c54a22f5e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail014653185cb1869979406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "017c02ef-2cfd-49be-9cea-a750f5cffaf3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ea22-501e-0003-26d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "017c02ef-2cfd-49be-9cea-a750f5cffaf3" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail014653185cb1869979406", "javapathsetaccesscontrolacfail196123492a3582929b4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[2].json new file mode 100644 index 0000000000000..848895cfea3e5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail074033af5903fcf041496?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6b89a87-200f-4e50-b7ec-122005a09d14" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3EDF277B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ea4a-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "a6b89a87-200f-4e50-b7ec-122005a09d14" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail074033af5903fcf041496/javapathsetaccesscontrolacfail1605455222d8247f184?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e163f76d-6665-41c1-9ab5-d6624ae225ca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3EF5C34B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82ca-201f-006a-3cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "e163f76d-6665-41c1-9ab5-d6624ae225ca" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail074033af5903fcf041496/javapathsetaccesscontrolacfail1605455222d8247f184?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fb67abbb-2f58-4ecd-a45d-ad206f064f6d", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82cb-201f-006a-3dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "fb67abbb-2f58-4ecd-a45d-ad206f064f6d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail074033af5903fcf041496/javapathsetaccesscontrolacfail1605455222d8247f184?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f845b873-01c9-4289-8a1b-b5bde7b9a9ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F07BD6B", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82cc-201f-006a-3ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "f845b873-01c9-4289-8a1b-b5bde7b9a9ab" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail074033af5903fcf041496/javapathsetaccesscontrolacfail1605455222d8247f184?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d67da213-cdde-4617-a6a1-395a23ca9178" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e82cd-201f-006a-3fd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e82cd-201f-006a-3fd4-9012d1000000\\nTime:2019-11-01T16:47:56.4460319Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "d67da213-cdde-4617-a6a1-395a23ca9178", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a096bac5-1c03-4ad7-bd8b-d1d2a6cac542" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ead0-501e-0003-41d4-904d7d000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail074033af5903fcf041496Fri, 01 Nov 2019 16:47:56 GMT\"0x8D75EEB3EDF277B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "a096bac5-1c03-4ad7-bd8b-d1d2a6cac542", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail074033af5903fcf041496?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea8460d8-0315-4594-bc0d-dc3f079beaf0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575eadd-501e-0003-4ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "ea8460d8-0315-4594-bc0d-dc3f079beaf0" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail074033af5903fcf041496", "javapathsetaccesscontrolacfail1605455222d8247f184" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[3].json new file mode 100644 index 0000000000000..578ebc69943ce --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7dea83e-a41c-451f-a97c-5fe61b9e5869" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F26C52F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575eaf8-501e-0003-67d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:55 GMT", + "x-ms-client-request-id" : "f7dea83e-a41c-451f-a97c-5fe61b9e5869" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7/javapathsetaccesscontrolacfail194097574ed7e986e44?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d498a46-1ade-4b9c-9935-15c9fa9f81f6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F30B26F", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82ce-201f-006a-40d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "1d498a46-1ade-4b9c-9935-15c9fa9f81f6" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7/javapathsetaccesscontrolacfail194097574ed7e986e44?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d48f9efb-9cd2-4d0b-9ad5-46d7b07ea905", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82cf-201f-006a-41d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "d48f9efb-9cd2-4d0b-9ad5-46d7b07ea905" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7/javapathsetaccesscontrolacfail194097574ed7e986e44?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "13a3b765-5160-4683-ad1e-b527f15a270a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F40FBFA", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82d0-201f-006a-42d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "13a3b765-5160-4683-ad1e-b527f15a270a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7/javapathsetaccesscontrolacfail194097574ed7e986e44", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca72fedb-5fcd-4010-8dcf-23bd35436083" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:47:56 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", + "ETag" : "0x8D75EEB3F40FBFA", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:47:56 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575eb28-501e-0003-11d4-904d7d000000", + "x-ms-client-request-id" : "ca72fedb-5fcd-4010-8dcf-23bd35436083", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7/javapathsetaccesscontrolacfail194097574ed7e986e44?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d3574eb8-db6e-4e32-925d-6b123fd7cb3a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "123e82d1-201f-006a-43d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:123e82d1-201f-006a-43d4-9012d1000000\\nTime:2019-11-01T16:47:56.8803342Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "d3574eb8-db6e-4e32-925d-6b123fd7cb3a", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8b77d88-d8fa-45cd-8c1c-8d0be3a4002e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575eb41-501e-0003-25d4-904d7d000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail02906324070b2e35e24a7Fri, 01 Nov 2019 16:47:56 GMT\"0x8D75EEB3F26C52F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "a8b77d88-d8fa-45cd-8c1c-8d0be3a4002e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail02906324070b2e35e24a7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f2eb5fc-c2df-46ff-a417-7f9479693ee3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575eb4d-501e-0003-31d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "7f2eb5fc-c2df-46ff-a417-7f9479693ee3" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail02906324070b2e35e24a7", "javapathsetaccesscontrolacfail194097574ed7e986e44" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[4].json new file mode 100644 index 0000000000000..35c120bc1d2b7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c0bfef7-25bd-47fe-9321-a0fa864d2029" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F67F908", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575eb5a-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "8c0bfef7-25bd-47fe-9321-a0fa864d2029" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0/javapathsetaccesscontrolacfail1590513dbfac12add64?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d5798cc-6c96-4c60-b37a-5d1a17a4c2a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F737CFF", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82d2-201f-006a-44d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "9d5798cc-6c96-4c60-b37a-5d1a17a4c2a5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0/javapathsetaccesscontrolacfail1590513dbfac12add64?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf815373-c318-4d5d-b7c7-fa9e133eaa48", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82d3-201f-006a-45d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "cf815373-c318-4d5d-b7c7-fa9e133eaa48" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0/javapathsetaccesscontrolacfail1590513dbfac12add64?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b20db86-f768-4da5-a8e1-6c723922832d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F84676A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82d4-201f-006a-46d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "9b20db86-f768-4da5-a8e1-6c723922832d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0/javapathsetaccesscontrolacfail1590513dbfac12add64?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c602874b-016a-4ddb-a1b2-c37b4c29024d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3F84676A", + "x-ms-lease-id" : "d6ee6dc1-c93b-4f55-b113-f012266197f3", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575eb87-501e-0003-67d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "c602874b-016a-4ddb-a1b2-c37b4c29024d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0/javapathsetaccesscontrolacfail1590513dbfac12add64?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6591cc50-169e-460d-a076-848631c56474" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "123e82d5-201f-006a-47d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:123e82d5-201f-006a-47d4-9012d1000000\\nTime:2019-11-01T16:47:57.3166383Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "6591cc50-169e-460d-a076-848631c56474", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4f7e2ce-8b6e-41b1-ba0d-3b7541930427" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575eb99-501e-0003-74d4-904d7d000000", + "Body" : "jtfssetaccesscontrolacfailjtfssetaccesscontrolacfail095750948e27ff88234e0Fri, 01 Nov 2019 16:47:57 GMT\"0x8D75EEB3F67F908\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "d4f7e2ce-8b6e-41b1-ba0d-3b7541930427", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolacfail095750948e27ff88234e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09091f50-4ceb-4bbf-8599-14e4923ee2c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575eba3-501e-0003-7bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "09091f50-4ceb-4bbf-8599-14e4923ee2c9" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolacfail095750948e27ff88234e0", "javapathsetaccesscontrolacfail1590513dbfac12add64" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolbadpermission.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolbadpermission.json new file mode 100644 index 0000000000000..09e755a647f0e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolbadpermission.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolbadpermission003144e403eb299b12?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d31452fe-9df8-44a4-b842-4f02eb81cc70" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C539626", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e35d-501e-0003-6dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "d31452fe-9df8-44a4-b842-4f02eb81cc70" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolbadpermission003144e403eb299b12/javapathsetaccesscontrolbadpermission105580e743ecdba8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c18eec8d-9932-4107-9522-b281f8299410" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C5DDA89", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82a2-201f-006a-14d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "c18eec8d-9932-4107-9522-b281f8299410" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolbadpermission003144e403eb299b12/javapathsetaccesscontrolbadpermission105580e743ecdba8?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "69c69e28-cb58-45e7-9a92-c28740ffcd04", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82a3-201f-006a-15d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "69c69e28-cb58-45e7-9a92-c28740ffcd04" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolbadpermission003144e403eb299b12/javapathsetaccesscontrolbadpermission105580e743ecdba8?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42bf4a75-3bae-426a-a51f-0e8b9ae2a337" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C6E5262", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82a4-201f-006a-16d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "42bf4a75-3bae-426a-a51f-0e8b9ae2a337" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolbadpermission003144e403eb299b12/javapathsetaccesscontrolbadpermission105580e743ecdba8?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d45db95-5a82-4d64-846f-377408882272" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidPermission", + "retry-after" : "0", + "Content-Length" : "166", + "StatusCode" : "400", + "x-ms-request-id" : "123e82a5-201f-006a-17d4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"InvalidPermission\",\"message\":\"The permission value is invalid.\\nRequestId:123e82a5-201f-006a-17d4-9012d1000000\\nTime:2019-11-01T16:47:52.0869928Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "4d45db95-5a82-4d64-846f-377408882272", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolbadpermission&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca7b62a7-47a0-498f-acc4-ffd4fd0d0a51" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e3b1-501e-0003-34d4-904d7d000000", + "Body" : "jtfssetaccesscontrolbadpermissionjtfssetaccesscontrolbadpermission003144e403eb299b12Fri, 01 Nov 2019 16:47:51 GMT\"0x8D75EEB3C539626\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "ca7b62a7-47a0-498f-acc4-ffd4fd0d0a51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolbadpermission003144e403eb299b12?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5eab8e8-b025-406c-a386-18e74241979d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e3bd-501e-0003-3fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "d5eab8e8-b025-406c-a386-18e74241979d" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolbadpermission003144e403eb299b12", "javapathsetaccesscontrolbadpermission105580e743ecdba8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolerror.json new file mode 100644 index 0000000000000..e328b8f98d4bb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolerror.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolerror0464730b08edbf3fc84575?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6fc340d1-7dfd-4324-9e15-835b6b136a60" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3FAAB3CF", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ebb7-501e-0003-0fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:56 GMT", + "x-ms-client-request-id" : "6fc340d1-7dfd-4324-9e15-835b6b136a60" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolerror0464730b08edbf3fc84575/javapathsetaccesscontrolerror1909297cf0d1921c214d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2173977-c989-4459-ab78-ff8e8edbb36b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3FB44949", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82d6-201f-006a-48d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "f2173977-c989-4459-ab78-ff8e8edbb36b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolerror0464730b08edbf3fc84575/javapathsetaccesscontrolerror1909297cf0d1921c214d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e8c907e-9f4c-45e9-8e0d-1de2c0d83821", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82d7-201f-006a-49d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "0e8c907e-9f4c-45e9-8e0d-1de2c0d83821" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolerror0464730b08edbf3fc84575/javapathsetaccesscontrolerror1909297cf0d1921c214d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e93745e4-a0fa-4a69-83c5-9ea5a790f974" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3FC60A6A", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82d8-201f-006a-4ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "e93745e4-a0fa-4a69-83c5-9ea5a790f974" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolerror0464730b08edbf3fc84575/javapathsetaccesscontrolerror2065522c6e36efd24249?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e93eab39-cb0f-4b0b-ad30-5b2a7f9cfc07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "PathNotFound", + "retry-after" : "0", + "Content-Length" : "163", + "StatusCode" : "404", + "x-ms-request-id" : "123e82da-201f-006a-4cd4-9012d1000000", + "Body" : "{\"error\":{\"code\":\"PathNotFound\",\"message\":\"The specified path does not exist.\\nRequestId:123e82da-201f-006a-4cd4-9012d1000000\\nTime:2019-11-01T16:47:57.6959027Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "e93eab39-cb0f-4b0b-ad30-5b2a7f9cfc07", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "473286a1-dd53-4888-9376-4b629324ebd1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ec18-501e-0003-6bd4-904d7d000000", + "Body" : "jtfssetaccesscontrolerrorjtfssetaccesscontrolerror0464730b08edbf3fc84575Fri, 01 Nov 2019 16:47:57 GMT\"0x8D75EEB3FAAB3CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "473286a1-dd53-4888-9376-4b629324ebd1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolerror0464730b08edbf3fc84575?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d4a9f0e-1e67-4c1c-adf9-f9cd96b0e179" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ec22-501e-0003-73d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:57 GMT", + "x-ms-client-request-id" : "0d4a9f0e-1e67-4c1c-adf9-f9cd96b0e179" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolerror0464730b08edbf3fc84575", "javapathsetaccesscontrolerror1909297cf0d1921c214d", "javapathsetaccesscontrolerror2065522c6e36efd24249" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolmin.json new file mode 100644 index 0000000000000..a61ef0b391d7d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolmin.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2fcf2544-dc5e-4a5a-9514-461f63983654" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C1177B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e2d2-501e-0003-74d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:50 GMT", + "x-ms-client-request-id" : "2fcf2544-dc5e-4a5a-9514-461f63983654" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216/javapathsetaccesscontrolmin166294950fb512cf9341b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cee39560-0398-4a4a-935f-0b176c413694" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C20428E", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e829e-201f-006a-10d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "cee39560-0398-4a4a-935f-0b176c413694" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216/javapathsetaccesscontrolmin166294950fb512cf9341b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39f2086b-62c4-4499-91a8-cef819a661a8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e829f-201f-006a-11d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "39f2086b-62c4-4499-91a8-cef819a661a8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216/javapathsetaccesscontrolmin166294950fb512cf9341b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "12d97d1b-e926-4fdf-bcf0-c2c27cf84e51" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C310A71", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82a0-201f-006a-12d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "12d97d1b-e926-4fdf-bcf0-c2c27cf84e51" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216/javapathsetaccesscontrolmin166294950fb512cf9341b?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9efa5067-e4ab-4d36-b28f-9ad2662f3f38" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C310A71", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82a1-201f-006a-13d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "9efa5067-e4ab-4d36-b28f-9ad2662f3f38" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b2ca749-e3a2-4a03-943f-33cca23e82cc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e32d-501e-0003-43d4-904d7d000000", + "Body" : "jtfssetaccesscontrolminjtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216Fri, 01 Nov 2019 16:47:51 GMT\"0x8D75EEB3C1177B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "6b2ca749-e3a2-4a03-943f-33cca23e82cc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e9312a5-213f-498a-8227-4006e1f6e658" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e342-501e-0003-57d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "5e9312a5-213f-498a-8227-4006e1f6e658" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolmin0fileapitestsetaccesscontrolmin7fc23216", "javapathsetaccesscontrolmin166294950fb512cf9341b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolwithresponse.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolwithresponse.json new file mode 100644 index 0000000000000..6c64843a3a945 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetaccesscontrolwithresponse.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolwithresponse076959b952ca4108ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17520c55-c18b-474c-b735-3711d5605384" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C8E3911", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575e3cf-501e-0003-4dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "17520c55-c18b-474c-b735-3711d5605384" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse076959b952ca4108ad/javapathsetaccesscontrolwithresponse1853853b2fe9b930?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "323a36c1-f7b2-4908-bfce-661d8f671f04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3C9866FE", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e82a6-201f-006a-18d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "323a36c1-f7b2-4908-bfce-661d8f671f04" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse076959b952ca4108ad/javapathsetaccesscontrolwithresponse1853853b2fe9b930?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ca4fb58-eae3-43e5-982e-cd85f8ae0932", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82a7-201f-006a-19d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "7ca4fb58-eae3-43e5-982e-cd85f8ae0932" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse076959b952ca4108ad/javapathsetaccesscontrolwithresponse1853853b2fe9b930?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6634c68a-276d-4110-b4cd-057eb2813c5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3CAA6ABA", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e82a8-201f-006a-1ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "6634c68a-276d-4110-b4cd-057eb2813c5f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetaccesscontrolwithresponse076959b952ca4108ad/javapathsetaccesscontrolwithresponse1853853b2fe9b930?action=setAccessControl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d31cc1d-4e10-4a80-9170-b03657756f3b" + }, + "Response" : { + "x-ms-namespace-enabled" : "true", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB3CAA6ABA", + "Last-Modified" : "Fri, 01 Nov 2019 16:47:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "123e82a9-201f-006a-1bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:47:52 GMT", + "x-ms-client-request-id" : "0d31cc1d-4e10-4a80-9170-b03657756f3b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetaccesscontrolwithresponse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e282fc6-e27c-452e-9379-5bc1c694dfa8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575e438-501e-0003-32d4-904d7d000000", + "Body" : "jtfssetaccesscontrolwithresponsejtfssetaccesscontrolwithresponse076959b952ca4108adFri, 01 Nov 2019 16:47:52 GMT\"0x8D75EEB3C8E3911\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "8e282fc6-e27c-452e-9379-5bc1c694dfa8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetaccesscontrolwithresponse076959b952ca4108ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41e880a9-e8ea-4e09-b54c-48fce9cd0490" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575e443-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:47:51 GMT", + "x-ms-client-request-id" : "41e880a9-e8ea-4e09-b54c-48fce9cd0490" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetaccesscontrolwithresponse076959b952ca4108ad", "javapathsetaccesscontrolwithresponse1853853b2fe9b930" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[0].json new file mode 100644 index 0000000000000..728f113471b5b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[0].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c400962-df4e-4881-8a51-3d9dd03f8869" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48274B72", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575ff49-501e-0003-34d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "2c400962-df4e-4881-8a51-3d9dd03f8869" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20/javapathsethttpheadersac1fileapitestsethttpheadersac95c355357?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "47643873-5869-4647-960f-941eddcb44d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4842D468", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e834d-201f-006a-3ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "47643873-5869-4647-960f-941eddcb44d9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20/javapathsethttpheadersac1fileapitestsethttpheadersac95c355357?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e7c182a-054f-4988-896e-127c91398885", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e834e-201f-006a-3fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "7e7c182a-054f-4988-896e-127c91398885" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20/javapathsethttpheadersac1fileapitestsethttpheadersac95c355357?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d032119-f860-4747-adee-ca9a1683b92c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48530559", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e834f-201f-006a-40d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "7d032119-f860-4747-adee-ca9a1683b92c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20/javapathsethttpheadersac1fileapitestsethttpheadersac95c355357?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a52a9a1b-c8b4-4ccc-be64-e1f293cea686" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB485ABBE8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ffb9-501e-0003-0fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "a52a9a1b-c8b4-4ccc-be64-e1f293cea686" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aeca8f95-8658-4d3c-ad51-3d1564301ce9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ffe3-501e-0003-35d4-904d7d000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20Fri, 01 Nov 2019 16:48:11 GMT\"0x8D75EEB48274B72\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "aeca8f95-8658-4d3c-ad51-3d1564301ce9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8148dcd-efeb-4dd0-bec4-3d2e706e92ce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ffed-501e-0003-3cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "a8148dcd-efeb-4dd0-bec4-3d2e706e92ce" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0fileapitestsethttpheadersac95c86434d20", "javapathsethttpheadersac1fileapitestsethttpheadersac95c355357" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[1].json new file mode 100644 index 0000000000000..a20e6682a3bde --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[1].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a176ee6-e899-42e4-ac3d-4294da71729e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48741A19", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760002-501e-0003-50d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "5a176ee6-e899-42e4-ac3d-4294da71729e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c/javapathsethttpheadersac1fileapitestsethttpheadersac275089203?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32c79dee-dc26-4cef-bf78-3ffca97d82c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48800E6F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8350-201f-006a-41d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "32c79dee-dc26-4cef-bf78-3ffca97d82c1" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c/javapathsethttpheadersac1fileapitestsethttpheadersac275089203?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d0ae9eb-0096-49b0-a5da-ed62bf2dc2d2", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8351-201f-006a-42d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "5d0ae9eb-0096-49b0-a5da-ed62bf2dc2d2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c/javapathsethttpheadersac1fileapitestsethttpheadersac275089203?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "311b7ada-7c24-43e6-8031-a8f0c55e6ff8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48905B01", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8352-201f-006a-43d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "311b7ada-7c24-43e6-8031-a8f0c55e6ff8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c/javapathsethttpheadersac1fileapitestsethttpheadersac275089203?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "11351e29-c1e2-4658-b824-6cc27cc336d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4897DA49", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760048-501e-0003-10d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "11351e29-c1e2-4658-b824-6cc27cc336d3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87ab4777-7e5b-4ae9-962f-71bf1e890d65" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760068-501e-0003-2fd4-904d7d000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0fileapitestsethttpheadersac2757379154cFri, 01 Nov 2019 16:48:12 GMT\"0x8D75EEB48741A19\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "87ab4777-7e5b-4ae9-962f-71bf1e890d65", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85bb4292-77e7-4740-bca3-381e4abab7f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760085-501e-0003-4cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "85bb4292-77e7-4740-bca3-381e4abab7f3" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0fileapitestsethttpheadersac2757379154c", "javapathsethttpheadersac1fileapitestsethttpheadersac275089203" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[2].json new file mode 100644 index 0000000000000..2f15f185e4bfd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[2].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "397ecb6a-e542-41b4-b429-16a53c3f9f93" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48CD2004", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257600ca-501e-0003-09d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "397ecb6a-e542-41b4-b429-16a53c3f9f93" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597/javapathsethttpheadersac1fileapitestsethttpheadersac0d584647d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "232f0c65-08a1-455e-a185-8feffce5d693" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48D7DED4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8353-201f-006a-44d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "232f0c65-08a1-455e-a185-8feffce5d693" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597/javapathsethttpheadersac1fileapitestsethttpheadersac0d584647d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8cca127a-8b96-4f79-bd21-8a05edd5b6c0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8354-201f-006a-45d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "8cca127a-8b96-4f79-bd21-8a05edd5b6c0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597/javapathsethttpheadersac1fileapitestsethttpheadersac0d584647d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a93ea154-8036-4c41-aa47-12f41f053c36" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48E85D50", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8355-201f-006a-46d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "a93ea154-8036-4c41-aa47-12f41f053c36" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597/javapathsethttpheadersac1fileapitestsethttpheadersac0d584647d?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad54c87c-b2d0-4815-bb83-5a50431a4ee1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB48F07815", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760102-501e-0003-35d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "ad54c87c-b2d0-4815-bb83-5a50431a4ee1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd7be5da-2ab1-41d9-b128-b61f2b1722d4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576011f-501e-0003-50d4-904d7d000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0fileapitestsethttpheadersac0d539842597Fri, 01 Nov 2019 16:48:12 GMT\"0x8D75EEB48CD2004\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "bd7be5da-2ab1-41d9-b128-b61f2b1722d4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4a5803c-1b09-43a6-a3c5-4aeb45ed9cd0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760135-501e-0003-65d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "c4a5803c-1b09-43a6-a3c5-4aeb45ed9cd0" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0fileapitestsethttpheadersac0d539842597", "javapathsethttpheadersac1fileapitestsethttpheadersac0d584647d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[3].json new file mode 100644 index 0000000000000..c1f3f92ddb418 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[3].json @@ -0,0 +1,180 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46500502-ba49-4bcc-9cf1-87e545fdbf25" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4911AFC5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760170-501e-0003-14d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "46500502-ba49-4bcc-9cf1-87e545fdbf25" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc/javapathsethttpheadersac1fileapitestsethttpheadersac6e3470228?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8931300d-cba1-4f20-af1b-31c50ccccf5e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB491C0461", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8356-201f-006a-47d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "8931300d-cba1-4f20-af1b-31c50ccccf5e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc/javapathsethttpheadersac1fileapitestsethttpheadersac6e3470228?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "597fe1ad-964a-48f2-9e25-fb43a4cc3bdf", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8357-201f-006a-48d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "597fe1ad-964a-48f2-9e25-fb43a4cc3bdf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc/javapathsethttpheadersac1fileapitestsethttpheadersac6e3470228?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9452c74-3f55-47bf-988b-46d0cd3c6b96" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB492C7900", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8358-201f-006a-49d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "e9452c74-3f55-47bf-988b-46d0cd3c6b96" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc/javapathsethttpheadersac1fileapitestsethttpheadersac6e3470228", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7cdbaf7-b6e5-47a9-a40e-fee2aeffb5d2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:12 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", + "ETag" : "0x8D75EEB492C7900", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:13 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257601a2-501e-0003-3ed4-904d7d000000", + "x-ms-client-request-id" : "f7cdbaf7-b6e5-47a9-a40e-fee2aeffb5d2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc/javapathsethttpheadersac1fileapitestsethttpheadersac6e3470228?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed97ba46-a143-4b91-8398-fa46381c9dd3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49402CA2", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257601b0-501e-0003-4bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "ed97ba46-a143-4b91-8398-fa46381c9dd3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad5b8319-185f-4d82-8831-f88d36959f23" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257601bd-501e-0003-58d4-904d7d000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bcFri, 01 Nov 2019 16:48:13 GMT\"0x8D75EEB4911AFC5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:12 GMT", + "x-ms-client-request-id" : "ad5b8319-185f-4d82-8831-f88d36959f23", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ad66635-7047-4119-9226-a398e47de60f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257601c9-501e-0003-64d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "9ad66635-7047-4119-9226-a398e47de60f" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0fileapitestsethttpheadersac6e3759079bc", "javapathsethttpheadersac1fileapitestsethttpheadersac6e3470228" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[4].json new file mode 100644 index 0000000000000..bf004f8096aa7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[4].json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94daee3b-6354-440e-8a9e-ba616befd16b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4962ED7F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257601f0-501e-0003-04d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "94daee3b-6354-440e-8a9e-ba616befd16b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19/javapathsethttpheadersac1fileapitestsethttpheadersacea279251e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8fee37a7-66ea-4f72-9e2e-239d9aefb33b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB496CE242", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8359-201f-006a-4ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "8fee37a7-66ea-4f72-9e2e-239d9aefb33b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19/javapathsethttpheadersac1fileapitestsethttpheadersacea279251e?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d923f05-4ab0-4dd0-9126-d34ce2c3ea5a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e835a-201f-006a-4bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "5d923f05-4ab0-4dd0-9126-d34ce2c3ea5a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19/javapathsethttpheadersac1fileapitestsethttpheadersacea279251e?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae443711-08e9-4b11-b347-d4a4d6425dd5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB497DADD8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e835b-201f-006a-4cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "ae443711-08e9-4b11-b347-d4a4d6425dd5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19/javapathsethttpheadersac1fileapitestsethttpheadersacea279251e?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4ccce33-3da3-497e-b07b-0d01b8808de1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4985BD91", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576022b-501e-0003-38d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "e4ccce33-3da3-497e-b07b-0d01b8808de1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ff5c910-6c9a-4957-81df-ee82463415b0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760239-501e-0003-46d4-904d7d000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0fileapitestsethttpheadersacea224568c19Fri, 01 Nov 2019 16:48:13 GMT\"0x8D75EEB4962ED7F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "9ff5c910-6c9a-4957-81df-ee82463415b0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "416806ac-6c81-4321-8ce8-e70575a27846" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576024e-501e-0003-5ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "416806ac-6c81-4321-8ce8-e70575a27846" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0fileapitestsethttpheadersacea224568c19", "javapathsethttpheadersac1fileapitestsethttpheadersacea279251e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[5].json new file mode 100644 index 0000000000000..b8b45b5e6eb1c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersac[5].json @@ -0,0 +1,172 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4e4c8b40-43b6-41c9-988e-0c077f97ac8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB499E552F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760263-501e-0003-6cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "4e4c8b40-43b6-41c9-988e-0c077f97ac8a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f/javapathsethttpheadersac1fileapitestsethttpheadersac26b448393?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3323305d-14af-45dd-8efe-1b65a1cac7cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49A9A4EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e835c-201f-006a-4dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "3323305d-14af-45dd-8efe-1b65a1cac7cd" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f/javapathsethttpheadersac1fileapitestsethttpheadersac26b448393?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63093c60-11ec-4f07-a3e2-38358ca6b96b", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e835d-201f-006a-4ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "63093c60-11ec-4f07-a3e2-38358ca6b96b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f/javapathsethttpheadersac1fileapitestsethttpheadersac26b448393?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e58c1a6a-25ce-4cbb-8956-1b7b318aeb3e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49BCADE3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e835e-201f-006a-4fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "e58c1a6a-25ce-4cbb-8956-1b7b318aeb3e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f/javapathsethttpheadersac1fileapitestsethttpheadersac26b448393?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0c7c8654-5fa8-41c0-b587-b4bc360d0b39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49BCADE3", + "x-ms-lease-id" : "921773f9-77ca-4f42-8e86-ae5de62305a3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257602af-501e-0003-2cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "0c7c8654-5fa8-41c0-b587-b4bc360d0b39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f/javapathsethttpheadersac1fileapitestsethttpheadersac26b448393?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "12810fea-c6b7-490d-a600-8c0ddf3d945b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49CD132D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257602bb-501e-0003-37d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "12810fea-c6b7-490d-a600-8c0ddf3d945b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "993f4de3-1a15-4ab7-b37e-8b7ce352b3ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257602c9-501e-0003-45d4-904d7d000000", + "Body" : "jtfssethttpheadersacjtfssethttpheadersac0fileapitestsethttpheadersac26b9282673fFri, 01 Nov 2019 16:48:14 GMT\"0x8D75EEB499E552F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "993f4de3-1a15-4ab7-b37e-8b7ce352b3ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f78f9f9-c31e-448e-9c53-2419af7db882" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257602cf-501e-0003-4bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "2f78f9f9-c31e-448e-9c53-2419af7db882" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersac0fileapitestsethttpheadersac26b9282673f", "javapathsethttpheadersac1fileapitestsethttpheadersac26b448393" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[0].json new file mode 100644 index 0000000000000..9497ff04088fe --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0812387a58d7685f3f4b48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf35e5bd-0e9f-400c-88bd-d52bbff477e1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49E5A547", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257602dd-501e-0003-59d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:13 GMT", + "x-ms-client-request-id" : "bf35e5bd-0e9f-400c-88bd-d52bbff477e1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0812387a58d7685f3f4b48/javapathsethttpheadersacfail198986f25d10399b6b43?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba8a4473-f678-4d34-9fab-1c5d922b507d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB49EFDE42", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e835f-201f-006a-50d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "ba8a4473-f678-4d34-9fab-1c5d922b507d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0812387a58d7685f3f4b48/javapathsethttpheadersacfail198986f25d10399b6b43?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16a9a95f-4921-481d-a076-5a59389ccb4c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8360-201f-006a-51d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "16a9a95f-4921-481d-a076-5a59389ccb4c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0812387a58d7685f3f4b48/javapathsethttpheadersacfail198986f25d10399b6b43?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a3d8d9d-7d59-4d9c-b6d8-821051eb6ad2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A008094", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8361-201f-006a-52d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "8a3d8d9d-7d59-4d9c-b6d8-821051eb6ad2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0812387a58d7685f3f4b48/javapathsethttpheadersacfail198986f25d10399b6b43?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a5fa62ee-a1cd-4391-8412-d094b83e0fc6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "25760329-501e-0003-1cd4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:25760329-501e-0003-1cd4-904d7d000000\nTime:2019-11-01T16:48:14.8558469Z", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "a5fa62ee-a1cd-4391-8412-d094b83e0fc6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e34cdfc7-73ca-45b6-bee2-e06c21ec2f38" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760344-501e-0003-35d4-904d7d000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail0812387a58d7685f3f4b48Fri, 01 Nov 2019 16:48:14 GMT\"0x8D75EEB49E5A547\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "e34cdfc7-73ca-45b6-bee2-e06c21ec2f38", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0812387a58d7685f3f4b48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f02d3fdf-8f1e-462c-b265-4cb8de2ff01f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576034c-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "f02d3fdf-8f1e-462c-b265-4cb8de2ff01f" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail0812387a58d7685f3f4b48", "javapathsethttpheadersacfail198986f25d10399b6b43" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[1].json new file mode 100644 index 0000000000000..051bfd1f45b04 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail070863b73dac92e2cb4c70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8112a83d-edb2-4de2-b226-17f3399cd802" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A210B92", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760362-501e-0003-51d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "8112a83d-edb2-4de2-b226-17f3399cd802" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail070863b73dac92e2cb4c70/javapathsethttpheadersacfail169834779918c627c34b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16a88f48-6dae-4d52-a358-26002a0fbf29" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A2C2281", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8362-201f-006a-53d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "16a88f48-6dae-4d52-a358-26002a0fbf29" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail070863b73dac92e2cb4c70/javapathsethttpheadersacfail169834779918c627c34b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd38f063-68a0-4c8c-803f-c79d2a5bd6b8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8363-201f-006a-54d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "bd38f063-68a0-4c8c-803f-c79d2a5bd6b8" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail070863b73dac92e2cb4c70/javapathsethttpheadersacfail169834779918c627c34b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a11d820-f0e1-407a-a1d2-fb98914991ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A3C56D5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8364-201f-006a-55d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "4a11d820-f0e1-407a-a1d2-fb98914991ec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail070863b73dac92e2cb4c70/javapathsethttpheadersacfail169834779918c627c34b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a017f6d-d23a-4608-b82f-463f2448d7a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "257603b4-501e-0003-1ad4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:257603b4-501e-0003-1ad4-904d7d000000\nTime:2019-11-01T16:48:15.2511323Z", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "4a017f6d-d23a-4608-b82f-463f2448d7a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2439222-0378-450f-ae7f-fc8912c85b22" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257603c0-501e-0003-26d4-904d7d000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail070863b73dac92e2cb4c70Fri, 01 Nov 2019 16:48:15 GMT\"0x8D75EEB4A210B92\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "b2439222-0378-450f-ae7f-fc8912c85b22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail070863b73dac92e2cb4c70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d86263d1-dce3-4b60-8e0a-e29abfca85b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257603cb-501e-0003-2fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "d86263d1-dce3-4b60-8e0a-e29abfca85b3" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail070863b73dac92e2cb4c70", "javapathsethttpheadersacfail169834779918c627c34b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[2].json new file mode 100644 index 0000000000000..9f82b173d4745 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0749681c39865db2a34adb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39324a6d-5448-4cb5-b925-30298fd2002e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A5D5C6E", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257603e2-501e-0003-45d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "39324a6d-5448-4cb5-b925-30298fd2002e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0749681c39865db2a34adb/javapathsethttpheadersacfail11750931a7be36b04745?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ab620bb-1c8a-49a0-bfa9-a3d60d518caa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A67521B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8365-201f-006a-56d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "7ab620bb-1c8a-49a0-bfa9-a3d60d518caa" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0749681c39865db2a34adb/javapathsethttpheadersacfail11750931a7be36b04745?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c744e02-7c77-4465-8450-c3ef0eafa8bd", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8366-201f-006a-57d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "1c744e02-7c77-4465-8450-c3ef0eafa8bd" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0749681c39865db2a34adb/javapathsethttpheadersacfail11750931a7be36b04745?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "79617553-b1ce-4ee8-b35b-62232b635cf8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A774269", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8367-201f-006a-58d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "79617553-b1ce-4ee8-b35b-62232b635cf8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0749681c39865db2a34adb/javapathsethttpheadersacfail11750931a7be36b04745?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3f9bf5e3-be27-4474-9afb-b2eade3b2f0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "25760435-501e-0003-12d4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:25760435-501e-0003-12d4-904d7d000000\nTime:2019-11-01T16:48:15.6334070Z", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "3f9bf5e3-be27-4474-9afb-b2eade3b2f0c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e0795ba-75eb-40bd-bd29-db203dde5cfc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576044c-501e-0003-28d4-904d7d000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail0749681c39865db2a34adbFri, 01 Nov 2019 16:48:15 GMT\"0x8D75EEB4A5D5C6E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:14 GMT", + "x-ms-client-request-id" : "3e0795ba-75eb-40bd-bd29-db203dde5cfc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0749681c39865db2a34adb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b96ddca0-ab46-4b60-af26-1d28b5fd919e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576045b-501e-0003-36d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "b96ddca0-ab46-4b60-af26-1d28b5fd919e" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail0749681c39865db2a34adb", "javapathsethttpheadersacfail11750931a7be36b04745" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[3].json new file mode 100644 index 0000000000000..c7ed4629ba83f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bb15016c-1b4c-412f-8272-2e05cef5e575" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4A96512C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760475-501e-0003-4fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "bb15016c-1b4c-412f-8272-2e05cef5e575" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35/javapathsethttpheadersacfail18676069bfa06af2b943?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c8eb2c5b-555c-472a-89a4-d163db854253" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4AA132C1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e836a-201f-006a-5bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "c8eb2c5b-555c-472a-89a4-d163db854253" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35/javapathsethttpheadersacfail18676069bfa06af2b943?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "949f9081-18c8-4d7f-8a4e-6d2821a4a58a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e836b-201f-006a-5cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "949f9081-18c8-4d7f-8a4e-6d2821a4a58a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35/javapathsethttpheadersacfail18676069bfa06af2b943?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89002978-355d-4eb4-a14c-fc84a075a735" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4AB19AC9", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e836c-201f-006a-5dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "89002978-355d-4eb4-a14c-fc84a075a735" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35/javapathsethttpheadersacfail18676069bfa06af2b943", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d16dade0-c010-4729-95d7-2a722f2556c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:15 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", + "ETag" : "0x8D75EEB4AB19AC9", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257604b2-501e-0003-06d4-904d7d000000", + "x-ms-client-request-id" : "d16dade0-c010-4729-95d7-2a722f2556c1", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35/javapathsethttpheadersacfail18676069bfa06af2b943?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b2c86f68-0232-4ca3-95d4-3f8383a024bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "257604c2-501e-0003-15d4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:257604c2-501e-0003-15d4-904d7d000000\nTime:2019-11-01T16:48:16.0667184Z", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "b2c86f68-0232-4ca3-95d4-3f8383a024bd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54856b58-5675-4929-b069-14c573332b08" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257604dc-501e-0003-2ed4-904d7d000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail0058368422756a629f4b35Fri, 01 Nov 2019 16:48:15 GMT\"0x8D75EEB4A96512C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "54856b58-5675-4929-b069-14c573332b08", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail0058368422756a629f4b35?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "267b06c7-c57d-48f5-91cd-e3e8b695b605" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257604f1-501e-0003-41d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "267b06c7-c57d-48f5-91cd-e3e8b695b605" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail0058368422756a629f4b35", "javapathsethttpheadersacfail18676069bfa06af2b943" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[4].json new file mode 100644 index 0000000000000..1706382fe6ca7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1cafd4ae-af16-4966-a09c-ee69c6820c3b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4AD7FA1D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760506-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "1cafd4ae-af16-4966-a09c-ee69c6820c3b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6/javapathsethttpheadersacfail1744277b0bc47ad7654b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50910e5d-f561-43fc-aa51-256870a4bd3e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4AE253AB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e836d-201f-006a-5ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "50910e5d-f561-43fc-aa51-256870a4bd3e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6/javapathsethttpheadersacfail1744277b0bc47ad7654b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a6e85b5-ba51-4163-8a87-7d149b636993", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e836e-201f-006a-5fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "0a6e85b5-ba51-4163-8a87-7d149b636993" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6/javapathsethttpheadersacfail1744277b0bc47ad7654b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4cf2b4e6-a32c-4f84-8bfd-24262fdc8ee7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4AF5015C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e836f-201f-006a-60d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "4cf2b4e6-a32c-4f84-8bfd-24262fdc8ee7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6/javapathsethttpheadersacfail1744277b0bc47ad7654b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f589254d-3c72-4b30-a401-783087ce1b36" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4AF5015C", + "x-ms-lease-id" : "1b2f1993-5251-437d-9d99-530a73ad528d", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760544-501e-0003-08d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "f589254d-3c72-4b30-a401-783087ce1b36" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6/javapathsethttpheadersacfail1744277b0bc47ad7654b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "567ac4a8-854d-4cbe-9dee-ba89c1cec18c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "25760551-501e-0003-13d4-904d7d000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:25760551-501e-0003-13d4-904d7d000000\nTime:2019-11-01T16:48:16.5110364Z", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "567ac4a8-854d-4cbe-9dee-ba89c1cec18c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca93d1f3-79f3-46c0-a14b-bc027b04e6c4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760559-501e-0003-1ad4-904d7d000000", + "Body" : "jtfssethttpheadersacfailjtfssethttpheadersacfail061416787b53f9ddd344e6Fri, 01 Nov 2019 16:48:16 GMT\"0x8D75EEB4AD7FA1D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "ca93d1f3-79f3-46c0-a14b-bc027b04e6c4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersacfail061416787b53f9ddd344e6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1fae3353-0e7b-42ac-9478-4c7ae2e1233d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760568-501e-0003-26d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:15 GMT", + "x-ms-client-request-id" : "1fae3353-0e7b-42ac-9478-4c7ae2e1233d" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersacfail061416787b53f9ddd344e6", "javapathsethttpheadersacfail1744277b0bc47ad7654b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheaderserror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheaderserror.json new file mode 100644 index 0000000000000..a1727ae01b544 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheaderserror.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f042af4f-ac9a-4f5f-8fdb-bad8472af773" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B1CFF02", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576057a-501e-0003-38d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "f042af4f-ac9a-4f5f-8fdb-bad8472af773" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366/javapathsethttpheaderserror17801264e3820cd34d46f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71cf6f24-3349-4c13-8061-7a1c8699323d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B2A31A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8370-201f-006a-61d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "71cf6f24-3349-4c13-8061-7a1c8699323d" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366/javapathsethttpheaderserror17801264e3820cd34d46f?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29107e18-0345-4320-a608-cc6eabd1c89a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8371-201f-006a-62d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "29107e18-0345-4320-a608-cc6eabd1c89a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366/javapathsethttpheaderserror17801264e3820cd34d46f?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d3912d68-4b4a-46c7-b740-4f95f97334e6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B3D606D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8372-201f-006a-63d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "d3912d68-4b4a-46c7-b740-4f95f97334e6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366/javapathsethttpheaderserror248991107a86f9dd354b9?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5633715f-d63b-4ef4-b430-5da35199535d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "257605be-501e-0003-74d4-904d7d000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:257605be-501e-0003-74d4-904d7d000000\nTime:2019-11-01T16:48:16.9393430Z", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "5633715f-d63b-4ef4-b430-5da35199535d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheaderserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1c1bcbc-2788-46b3-8d87-55c8acaa8308" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257605c9-501e-0003-7cd4-904d7d000000", + "Body" : "jtfssethttpheaderserrorjtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366Fri, 01 Nov 2019 16:48:16 GMT\"0x8D75EEB4B1CFF02\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "d1c1bcbc-2788-46b3-8d87-55c8acaa8308", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4bbba9cc-93e1-4a9a-9264-5c9831148abe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257605d3-501e-0003-04d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "4bbba9cc-93e1-4a9a-9264-5c9831148abe" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheaderserror0fileapitestsethttpheaderserror45c03366", "javapathsethttpheaderserror17801264e3820cd34d46f", "javapathsethttpheaderserror248991107a86f9dd354b9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersheaders[0].json new file mode 100644 index 0000000000000..53d65bf5603e9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersheaders[0].json @@ -0,0 +1,222 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96866e88-663c-4a44-88e6-c8559851e542" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47742DFA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fda5-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "96866e88-663c-4a44-88e6-c8559851e542" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8425ddb6-91af-4799-8f4c-f1fc92844358" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB477E2891", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8342-201f-006a-34d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "8425ddb6-91af-4799-8f4c-f1fc92844358" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44140355-5c21-4376-b1e1-3bc8f98cf162", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8343-201f-006a-35d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "44140355-5c21-4376-b1e1-3bc8f98cf162" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ef75e60-a5e9-48a0-a246-d3449219bc93" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB478DE107", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8344-201f-006a-36d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "4ef75e60-a5e9-48a0-a246-d3449219bc93" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24e1dacd-b8c1-44e6-bad2-4e1fbd7404f9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8345-201f-006a-37d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "24e1dacd-b8c1-44e6-bad2-4e1fbd7404f9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e64f910c-c1ee-482c-ad03-2af7745b14f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47A97732", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8346-201f-006a-38d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "e64f910c-c1ee-482c-ad03-2af7745b14f0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7aef473-604f-4ea5-97e3-92757ca984a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47B2C540", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fe24-501e-0003-2ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "b7aef473-604f-4ea5-97e3-92757ca984a7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48/javapathsethttpheadersheaders185528ed8377c6630a4d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5460884-0462-45dc-a020-f5e34575d2be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:10 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", + "ETag" : "0x8D75EEB47B2C540", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:10 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575fe41-501e-0003-49d4-904d7d000000", + "x-ms-client-request-id" : "b5460884-0462-45dc-a020-f5e34575d2be" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76a0859f-425c-44ff-b7fc-9676e5c7c1f2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fe5a-501e-0003-5ed4-904d7d000000", + "Body" : "jtfssethttpheadersheadersjtfssethttpheadersheaders00708701ff818e6ab54e48Fri, 01 Nov 2019 16:48:10 GMT\"0x8D75EEB47742DFA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "76a0859f-425c-44ff-b7fc-9676e5c7c1f2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders00708701ff818e6ab54e48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86898e31-0ce9-4dc7-80cf-4db5d723bbe5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fe75-501e-0003-74d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "86898e31-0ce9-4dc7-80cf-4db5d723bbe5" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersheaders00708701ff818e6ab54e48", "javapathsethttpheadersheaders185528ed8377c6630a4d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersheaders[1].json new file mode 100644 index 0000000000000..9c83eed9f0c11 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersheaders[1].json @@ -0,0 +1,228 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60933dd2-bfd6-4e4c-b577-9ceecb341673" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47D23DE3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fe89-501e-0003-08d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "60933dd2-bfd6-4e4c-b577-9ceecb341673" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49fa0a11-2a26-448b-84e5-72cbbda6f1c7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47DC9DEB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8348-201f-006a-39d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "49fa0a11-2a26-448b-84e5-72cbbda6f1c7" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38bb606a-7520-4f2e-8abf-d60511432380", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8349-201f-006a-3ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "38bb606a-7520-4f2e-8abf-d60511432380" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49e729b6-f901-4e69-8635-66b0c52831a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47ED6C78", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e834a-201f-006a-3bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "49e729b6-f901-4e69-8635-66b0c52831a4" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7428f422-16bf-43f7-9bbf-b591040d23cb", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e834b-201f-006a-3cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "7428f422-16bf-43f7-9bbf-b591040d23cb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c7ed5a78-53f6-490c-bc94-4ac51dafaf0d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47FFFBEF", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e834c-201f-006a-3dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:11 GMT", + "x-ms-client-request-id" : "c7ed5a78-53f6-490c-bc94-4ac51dafaf0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98cf2678-3eba-437d-bf07-54e8a7a0fc16" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4807DD41", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ff03-501e-0003-76d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "98cf2678-3eba-437d-bf07-54e8a7a0fc16" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88/javapathsethttpheadersheaders12020254fe267414fc4f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "455ad2bd-9584-401b-83f6-5828ced09752" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "Cache-Control" : "control", + "ETag" : "0x8D75EEB4807DD41", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:11 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575ff19-501e-0003-0bd4-904d7d000000", + "x-ms-client-request-id" : "455ad2bd-9584-401b-83f6-5828ced09752", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68796f32-5366-4f0b-a162-0014b063c8d1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575ff21-501e-0003-13d4-904d7d000000", + "Body" : "jtfssethttpheadersheadersjtfssethttpheadersheaders052380495c0cc02ac74e88Fri, 01 Nov 2019 16:48:11 GMT\"0x8D75EEB47D23DE3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "68796f32-5366-4f0b-a162-0014b063c8d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersheaders052380495c0cc02ac74e88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb2df0d1-9214-4a83-9763-01ba3365a349" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575ff2f-501e-0003-1ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:10 GMT", + "x-ms-client-request-id" : "eb2df0d1-9214-4a83-9763-01ba3365a349" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersheaders052380495c0cc02ac74e88", "javapathsethttpheadersheaders12020254fe267414fc4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersmin.json new file mode 100644 index 0000000000000..c2732cd34d878 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersmin.json @@ -0,0 +1,212 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98bb44d3-0708-4732-88f2-d34accf610bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4723B52D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fcf9-501e-0003-28d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "98bb44d3-0708-4732-88f2-d34accf610bf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451/javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "132b9b85-c846-4eb7-ba0e-972dd981c698" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB472E2365", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e833f-201f-006a-31d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "132b9b85-c846-4eb7-ba0e-972dd981c698" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451/javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b8aaab3-6b3b-45f2-8e24-d8b55d4d0159", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8340-201f-006a-32d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "8b8aaab3-6b3b-45f2-8e24-d8b55d4d0159" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451/javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ac12fe8-7bf0-448c-aac4-64dc35ae2429" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47441F5C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8341-201f-006a-33d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "4ac12fe8-7bf0-448c-aac4-64dc35ae2429" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451/javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac26aaf0-d215-4147-bd19-366dca4274b0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:09 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", + "ETag" : "0x8D75EEB47441F5C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:10 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575fd56-501e-0003-79d4-904d7d000000", + "x-ms-client-request-id" : "ac26aaf0-d215-4147-bd19-366dca4274b0", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451/javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16f85e08-e1eb-4815-b640-5d21dca57f62" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4754FF3B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fd66-501e-0003-08d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "16f85e08-e1eb-4815-b640-5d21dca57f62" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451/javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bffd7251-c49d-414c-ab15-7791b6dcc078" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D75EEB4754FF3B", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:10 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "2575fd72-501e-0003-11d4-904d7d000000", + "Body" : "", + "x-ms-client-request-id" : "bffd7251-c49d-414c-ab15-7791b6dcc078", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9064789-ac53-4601-be14-8a05ee47f81b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fd7b-501e-0003-1ad4-904d7d000000", + "Body" : "jtfssethttpheadersminjtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451Fri, 01 Nov 2019 16:48:10 GMT\"0x8D75EEB4723B52D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "f9064789-ac53-4601-be14-8a05ee47f81b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea1b9b86-30de-43a4-b108-b3bc61c07891" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fd8d-501e-0003-27d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "ea1b9b86-30de-43a4-b108-b3bc61c07891" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersmin0fileapitestsethttpheadersminccf9759451", "javapathsethttpheadersmin1fileapitestsethttpheadersminccf88174" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersnull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersnull.json new file mode 100644 index 0000000000000..5e7d23b6009ec --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsethttpheadersnull.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d48a08e-690a-4b1e-9eeb-c1b8fdd3a690" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46E2A87A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2575fc91-501e-0003-49d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:08 GMT", + "x-ms-client-request-id" : "1d48a08e-690a-4b1e-9eeb-c1b8fdd3a690" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443/javapathsethttpheadersnull189857c9f17bd8dde9410?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c475e04c-b35b-41f9-ab85-6e121f66e89e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46EC1D80", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e833c-201f-006a-2ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "c475e04c-b35b-41f9-ab85-6e121f66e89e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443/javapathsethttpheadersnull189857c9f17bd8dde9410?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b7158ff-9f59-4340-9b4b-fd2ef802101a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e833d-201f-006a-2fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "2b7158ff-9f59-4340-9b4b-fd2ef802101a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443/javapathsethttpheadersnull189857c9f17bd8dde9410?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "72daee33-0929-4911-9aea-0daf72bc7b28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB46FFDC35", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e833e-201f-006a-30d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "72daee33-0929-4911-9aea-0daf72bc7b28" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443/javapathsethttpheadersnull189857c9f17bd8dde9410?comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fb60d7b4-88ab-4031-b2a5-18bd4b2f8604" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB47096A23", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fcc6-501e-0003-79d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "fb60d7b4-88ab-4031-b2a5-18bd4b2f8604" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssethttpheadersnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "553a1c7a-ed28-40ba-8236-b35c57144f07" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2575fcd7-501e-0003-08d4-904d7d000000", + "Body" : "jtfssethttpheadersnulljtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443Fri, 01 Nov 2019 16:48:09 GMT\"0x8D75EEB46E2A87A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "553a1c7a-ed28-40ba-8236-b35c57144f07", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "346c873b-e08d-4273-a65e-22da6d957d57" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2575fce4-501e-0003-14d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:09 GMT", + "x-ms-client-request-id" : "346c873b-e08d-4273-a65e-22da6d957d57" + }, + "Exception" : null + } ], + "variables" : [ "jtfssethttpheadersnull0fileapitestsethttpheadersnull5c0409443", "javapathsethttpheadersnull189857c9f17bd8dde9410" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[0].json new file mode 100644 index 0000000000000..79c6d7b5aacf5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6d6b0fa-8306-490b-b0c2-6043e6eecdf4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C2D8F94", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2576078a-501e-0003-0ad4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "a6d6b0fa-8306-490b-b0c2-6043e6eecdf4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f/javapathsetmetadataac1fileapitestsetmetadataac75e00484fb47?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63e9e95e-c14e-45de-89b5-0a8f707aabad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C37ADAC", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e837c-201f-006a-6dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "63e9e95e-c14e-45de-89b5-0a8f707aabad" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f/javapathsetmetadataac1fileapitestsetmetadataac75e00484fb47?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "718e1577-4209-4ccf-b954-54bc0d663e8e", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e837d-201f-006a-6ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "718e1577-4209-4ccf-b954-54bc0d663e8e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f/javapathsetmetadataac1fileapitestsetmetadataac75e00484fb47?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a717988-8b91-44da-a628-8a2d74c4abf6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C477D19", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e837e-201f-006a-6fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "1a717988-8b91-44da-a628-8a2d74c4abf6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f/javapathsetmetadataac1fileapitestsetmetadataac75e00484fb47?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4fbf2c2-01ae-42d1-a772-98c720fc2b92" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C4FBD94", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257607c7-501e-0003-42d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "c4fbf2c2-01ae-42d1-a772-98c720fc2b92" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ae29c24-977f-4cf1-821b-19c711caf797" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257607d8-501e-0003-53d4-904d7d000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0fileapitestsetmetadataac75e029821d138fFri, 01 Nov 2019 16:48:18 GMT\"0x8D75EEB4C2D8F94\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "5ae29c24-977f-4cf1-821b-19c711caf797", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4158e7c9-fb04-4187-a2ae-918bf053b1c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257607e8-501e-0003-63d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "4158e7c9-fb04-4187-a2ae-918bf053b1c8" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0fileapitestsetmetadataac75e029821d138f", "javapathsetmetadataac1fileapitestsetmetadataac75e00484fb47" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[1].json new file mode 100644 index 0000000000000..0ca0c05e43a86 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adee305d-52f0-4107-a149-b3a5771ee53d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C680B43", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257607fc-501e-0003-76d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "adee305d-52f0-4107-a149-b3a5771ee53d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4/javapathsetmetadataac1fileapitestsetmetadataacaf987268d4fa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f800c903-4dd9-44fa-a3ee-5d63984c17df" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C78FEE7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e837f-201f-006a-70d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "f800c903-4dd9-44fa-a3ee-5d63984c17df" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4/javapathsetmetadataac1fileapitestsetmetadataacaf987268d4fa?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96acb478-8284-4f13-b583-0184cd547a6c", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8380-201f-006a-71d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "96acb478-8284-4f13-b583-0184cd547a6c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4/javapathsetmetadataac1fileapitestsetmetadataacaf987268d4fa?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d89ad40-e636-451c-aac6-0b4517a09e07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C899A2A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8381-201f-006a-72d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "7d89ad40-e636-451c-aac6-0b4517a09e07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4/javapathsetmetadataac1fileapitestsetmetadataacaf987268d4fa?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "35a346b9-2799-4746-8adc-a5f1e1e7f00f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C922F41", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760854-501e-0003-43d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "35a346b9-2799-4746-8adc-a5f1e1e7f00f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d1e06d0-0194-43cf-8a58-acd70d5d73d3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760862-501e-0003-51d4-904d7d000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4Fri, 01 Nov 2019 16:48:18 GMT\"0x8D75EEB4C680B43\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "4d1e06d0-0194-43cf-8a58-acd70d5d73d3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "898e7185-f842-48d3-bc72-28884590f9bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760878-501e-0003-64d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "898e7185-f842-48d3-bc72-28884590f9bf" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0fileapitestsetmetadataacaf976211c4ddc4", "javapathsetmetadataac1fileapitestsetmetadataacaf987268d4fa" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[2].json new file mode 100644 index 0000000000000..330ffb0b69ddb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac79942918f30913?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e578fce-009a-406a-9fbf-7a7f7ba6c54f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4CAB622D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760882-501e-0003-6ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "2e578fce-009a-406a-9fbf-7a7f7ba6c54f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac79942918f30913/javapathsetmetadataac1fileapitestsetmetadataac799555981cf8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "67fadd02-4279-44ac-a6e8-94924e2087fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4CB51998", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8382-201f-006a-73d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "67fadd02-4279-44ac-a6e8-94924e2087fd" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac79942918f30913/javapathsetmetadataac1fileapitestsetmetadataac799555981cf8?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae304597-9309-490a-9768-6093834096e0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8383-201f-006a-74d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "ae304597-9309-490a-9768-6093834096e0" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac79942918f30913/javapathsetmetadataac1fileapitestsetmetadataac799555981cf8?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99d9f33a-23be-40d4-a8b8-b3e0b9909f08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4CC50DCB", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8384-201f-006a-75d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "99d9f33a-23be-40d4-a8b8-b3e0b9909f08" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac79942918f30913/javapathsetmetadataac1fileapitestsetmetadataac799555981cf8?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9061745c-066c-4f1b-bd3c-09a75dc1a419" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4CCD28DE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257608c0-501e-0003-28d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "9061745c-066c-4f1b-bd3c-09a75dc1a419" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82c561e9-2764-466e-ac95-6760fc414ef8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257608c8-501e-0003-2fd4-904d7d000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0fileapitestsetmetadataac79942918f30913Fri, 01 Nov 2019 16:48:19 GMT\"0x8D75EEB4CAB622D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "82c561e9-2764-466e-ac95-6760fc414ef8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac79942918f30913?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "759ed043-d4c2-4dfd-ba8e-77f87277f517" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257608d6-501e-0003-3dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:18 GMT", + "x-ms-client-request-id" : "759ed043-d4c2-4dfd-ba8e-77f87277f517" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0fileapitestsetmetadataac79942918f30913", "javapathsetmetadataac1fileapitestsetmetadataac799555981cf8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[3].json new file mode 100644 index 0000000000000..59fb87317b7a1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4e8ed5f-f8ba-48e8-965e-087f6fe913d7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4CEBD246", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257608ed-501e-0003-52d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "b4e8ed5f-f8ba-48e8-965e-087f6fe913d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137/javapathsetmetadataac1fileapitestsetmetadataacce2895896f04?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aa9d40cd-84fe-47bf-b3cc-e8e050f37bfc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4CF579DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8385-201f-006a-76d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "aa9d40cd-84fe-47bf-b3cc-e8e050f37bfc" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137/javapathsetmetadataac1fileapitestsetmetadataacce2895896f04?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ea628ae-9cba-4747-88da-6a6c3eb34eef", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8386-201f-006a-77d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "2ea628ae-9cba-4747-88da-6a6c3eb34eef" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137/javapathsetmetadataac1fileapitestsetmetadataacce2895896f04?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d804b320-368f-4048-ab9f-eac01378faca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D0591D0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8387-201f-006a-78d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "d804b320-368f-4048-ab9f-eac01378faca" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137/javapathsetmetadataac1fileapitestsetmetadataacce2895896f04", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2fc12e50-2a50-4e1b-9ec8-f3a6e709bc6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:19 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", + "ETag" : "0x8D75EEB4D0591D0", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:19 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25760925-501e-0003-01d4-904d7d000000", + "x-ms-client-request-id" : "2fc12e50-2a50-4e1b-9ec8-f3a6e709bc6b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137/javapathsetmetadataac1fileapitestsetmetadataacce2895896f04?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28bbaf44-8ec4-4a70-8cd1-598289835738" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D149E7A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576093a-501e-0003-12d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "28bbaf44-8ec4-4a70-8cd1-598289835738" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7db6e69f-9508-4827-acc8-af2ddb036f2d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760949-501e-0003-21d4-904d7d000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0fileapitestsetmetadataacce228405c62137Fri, 01 Nov 2019 16:48:19 GMT\"0x8D75EEB4CEBD246\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "7db6e69f-9508-4827-acc8-af2ddb036f2d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataacce228405c62137?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60a31edb-14eb-49fc-a199-d5630580c053" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576096c-501e-0003-3fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "60a31edb-14eb-49fc-a199-d5630580c053" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0fileapitestsetmetadataacce228405c62137", "javapathsetmetadataac1fileapitestsetmetadataacce2895896f04" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[4].json new file mode 100644 index 0000000000000..bd4968e0ef7fa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[4].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e72c16a1-106c-40e1-9ed5-7c414890fcaf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D312541", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760988-501e-0003-57d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "e72c16a1-106c-40e1-9ed5-7c414890fcaf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a/javapathsetmetadataac1fileapitestsetmetadataac5bd259644a7c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb480bd4-b9c5-4d44-ad53-e107ba4a6ecd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D3F8485", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8388-201f-006a-79d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "eb480bd4-b9c5-4d44-ad53-e107ba4a6ecd" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a/javapathsetmetadataac1fileapitestsetmetadataac5bd259644a7c?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6e2b09d-6cab-4abf-a997-f2da1ee9b152", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8389-201f-006a-7ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "a6e2b09d-6cab-4abf-a997-f2da1ee9b152" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a/javapathsetmetadataac1fileapitestsetmetadataac5bd259644a7c?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86c0fd52-677c-46a7-a9b4-f3357bf6ad2e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D53A4EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e838a-201f-006a-7bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "86c0fd52-677c-46a7-a9b4-f3357bf6ad2e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a/javapathsetmetadataac1fileapitestsetmetadataac5bd259644a7c?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63304eac-9725-49d3-894d-4c12be7ad1c6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D5BA9A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257609bc-501e-0003-04d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "63304eac-9725-49d3-894d-4c12be7ad1c6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0abce383-893e-4eb1-9701-a2c09b24a7b7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257609c9-501e-0003-10d4-904d7d000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0fileapitestsetmetadataac5bd481919a172aFri, 01 Nov 2019 16:48:20 GMT\"0x8D75EEB4D312541\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "0abce383-893e-4eb1-9701-a2c09b24a7b7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25b2b908-c2bb-40ab-838d-4a95d58de10b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257609d6-501e-0003-1bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "25b2b908-c2bb-40ab-838d-4a95d58de10b" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0fileapitestsetmetadataac5bd481919a172a", "javapathsetmetadataac1fileapitestsetmetadataac5bd259644a7c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[5].json new file mode 100644 index 0000000000000..6961a5c2b4a1b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataac[5].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e5c6185c-1077-4c93-932a-7977fb95fe6f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D74F16C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257609e4-501e-0003-29d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:19 GMT", + "x-ms-client-request-id" : "e5c6185c-1077-4c93-932a-7977fb95fe6f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5/javapathsetmetadataac1fileapitestsetmetadataac6a4930256d70?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab079e39-ab5d-4894-8743-303abfd0f83c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D7EF596", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e838b-201f-006a-7cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "ab079e39-ab5d-4894-8743-303abfd0f83c" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5/javapathsetmetadataac1fileapitestsetmetadataac6a4930256d70?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87479f09-ecba-4da2-aed1-a4f8eb155514", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e838c-201f-006a-7dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "87479f09-ecba-4da2-aed1-a4f8eb155514" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5/javapathsetmetadataac1fileapitestsetmetadataac6a4930256d70?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "271eb15c-de97-41eb-822c-74eca674ea8b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D9242C4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e838d-201f-006a-7ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "271eb15c-de97-41eb-822c-74eca674ea8b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5/javapathsetmetadataac1fileapitestsetmetadataac6a4930256d70?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "365ca976-9bf8-44da-baf2-96830a36d7d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4D9242C4", + "x-ms-lease-id" : "a73ea224-fdd1-44d6-9152-7b50cee280a4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760a1c-501e-0003-57d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "365ca976-9bf8-44da-baf2-96830a36d7d5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5/javapathsetmetadataac1fileapitestsetmetadataac6a4930256d70?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8efdeae7-3c58-4cfc-9e65-5c24deb7d0b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4DA24D6A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760a22-501e-0003-5dd4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "8efdeae7-3c58-4cfc-9e65-5c24deb7d0b7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b17e6460-8471-490d-9cc4-38dc49ef472d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760a2f-501e-0003-6ad4-904d7d000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5Fri, 01 Nov 2019 16:48:20 GMT\"0x8D75EEB4D74F16C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "b17e6460-8471-490d-9cc4-38dc49ef472d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31b33ffc-35bc-40ce-b76e-000206c89c05" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760a35-501e-0003-70d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "31b33ffc-35bc-40ce-b76e-000206c89c05" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0fileapitestsetmetadataac6a463087cea3b5", "javapathsetmetadataac1fileapitestsetmetadataac6a4930256d70" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[0].json new file mode 100644 index 0000000000000..986c0ae26a769 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[0].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a138425-9a07-4f57-8fed-f213c61cdc39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4DBB2F0B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760a42-501e-0003-7cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "9a138425-9a07-4f57-8fed-f213c61cdc39" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5/javapathsetmetadataacfail1fileapitestsetmetadataacfaild9c55259?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d25fa35-40ac-4df1-8b6c-8fafa1d31bd5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4DC53F5A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e838e-201f-006a-7fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "5d25fa35-40ac-4df1-8b6c-8fafa1d31bd5" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5/javapathsetmetadataacfail1fileapitestsetmetadataacfaild9c55259?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e343453-737a-4131-b98f-b31c8cd5f4f9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e838f-201f-006a-80d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "0e343453-737a-4131-b98f-b31c8cd5f4f9" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5/javapathsetmetadataacfail1fileapitestsetmetadataacfaild9c55259?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b66e1756-2d16-4e82-a2f6-b39fa0d801cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4DD554F7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8390-201f-006a-01d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "b66e1756-2d16-4e82-a2f6-b39fa0d801cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5/javapathsetmetadataacfail1fileapitestsetmetadataacfaild9c55259?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08cb88c6-39de-431d-8003-4be5446b4147" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "25760ab1-501e-0003-67d4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:25760ab1-501e-0003-67d4-904d7d000000\nTime:2019-11-01T16:48:21.2904548Z", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "08cb88c6-39de-431d-8003-4be5446b4147", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f100858-b77a-43b9-92ab-f009e792e925" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760ac2-501e-0003-75d4-904d7d000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5Fri, 01 Nov 2019 16:48:21 GMT\"0x8D75EEB4DBB2F0B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "0f100858-b77a-43b9-92ab-f009e792e925", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c5a6eef7-a0ec-4174-bedb-efa33edc06fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760acc-501e-0003-7fd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "c5a6eef7-a0ec-4174-bedb-efa33edc06fd" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0fileapitestsetmetadataacfaild9c89362a5", "javapathsetmetadataacfail1fileapitestsetmetadataacfaild9c55259" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[1].json new file mode 100644 index 0000000000000..49fcc0c9b6f64 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[1].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e18de700-9e23-41b7-a380-003a59f0b01b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4DF5F8E4", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760adc-501e-0003-0dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "e18de700-9e23-41b7-a380-003a59f0b01b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8/javapathsetmetadataacfail1fileapitestsetmetadataacfail22b34451?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50d6f629-bca9-4cc0-a72e-e0f86d2f2a85" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E010340", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8391-201f-006a-02d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "50d6f629-bca9-4cc0-a72e-e0f86d2f2a85" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8/javapathsetmetadataacfail1fileapitestsetmetadataacfail22b34451?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "19d179c7-bfa5-46d5-a903-8a1758f0e68f", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8392-201f-006a-03d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "19d179c7-bfa5-46d5-a903-8a1758f0e68f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8/javapathsetmetadataacfail1fileapitestsetmetadataacfail22b34451?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f01dc0a-bc99-43bf-838f-ca17c38e277e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E1138FC", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8393-201f-006a-04d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "6f01dc0a-bc99-43bf-838f-ca17c38e277e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8/javapathsetmetadataacfail1fileapitestsetmetadataacfail22b34451?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91ad0e36-ddf1-4b5a-96e9-0bb6a685edcd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "25760b21-501e-0003-4cd4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:25760b21-501e-0003-4cd4-904d7d000000\nTime:2019-11-01T16:48:21.6817353Z", + "Date" : "Fri, 01 Nov 2019 16:48:20 GMT", + "x-ms-client-request-id" : "91ad0e36-ddf1-4b5a-96e9-0bb6a685edcd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea8cb902-1d55-4ae5-97dd-dabc2acbc730" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760b42-501e-0003-6ad4-904d7d000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8Fri, 01 Nov 2019 16:48:21 GMT\"0x8D75EEB4DF5F8E4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "ea8cb902-1d55-4ae5-97dd-dabc2acbc730", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68fce57b-2ec6-46b4-852e-5dd5d1cd8807" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760b54-501e-0003-7bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "68fce57b-2ec6-46b4-852e-5dd5d1cd8807" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0fileapitestsetmetadataacfail22b92810b8", "javapathsetmetadataacfail1fileapitestsetmetadataacfail22b34451" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[2].json new file mode 100644 index 0000000000000..da242e2c64e19 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[2].json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44edd28c-b71d-4b07-95d1-d868a360d709" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E3270B8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760b77-501e-0003-1cd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "44edd28c-b71d-4b07-95d1-d868a360d709" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d/javapathsetmetadataacfail1fileapitestsetmetadataacfail86f45540?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6bbe743f-7d2a-47e1-9080-37cc28c09696" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E3C27D8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8394-201f-006a-05d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "6bbe743f-7d2a-47e1-9080-37cc28c09696" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d/javapathsetmetadataacfail1fileapitestsetmetadataacfail86f45540?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5352bd33-b8bd-466b-aea7-6055ea46cd17", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8395-201f-006a-06d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "5352bd33-b8bd-466b-aea7-6055ea46cd17" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d/javapathsetmetadataacfail1fileapitestsetmetadataacfail86f45540?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86db4737-b280-40f3-9ebb-6749b5edc766" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E4B710C", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8396-201f-006a-07d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "86db4737-b280-40f3-9ebb-6749b5edc766" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d/javapathsetmetadataacfail1fileapitestsetmetadataacfail86f45540?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62e99334-d4de-4963-8cb3-3993a2c6c628" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "25760bbd-501e-0003-5ed4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:25760bbd-501e-0003-5ed4-904d7d000000\nTime:2019-11-01T16:48:22.0560043Z", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "62e99334-d4de-4963-8cb3-3993a2c6c628", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f20db8e7-39ac-405f-88ef-5602d95cb709" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760bdd-501e-0003-7bd4-904d7d000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681dFri, 01 Nov 2019 16:48:21 GMT\"0x8D75EEB4E3270B8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "f20db8e7-39ac-405f-88ef-5602d95cb709", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c19d393c-72da-468d-9daa-7fc23dc799f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760bea-501e-0003-08d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "c19d393c-72da-468d-9daa-7fc23dc799f0" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0fileapitestsetmetadataacfail86f767681d", "javapathsetmetadataacfail1fileapitestsetmetadataacfail86f45540" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[3].json new file mode 100644 index 0000000000000..d89fd240aed62 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[3].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80f213c9-3f01-4912-8a3a-2cf5e32f9494" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E6D61B1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760c0b-501e-0003-26d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "80f213c9-3f01-4912-8a3a-2cf5e32f9494" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211/javapathsetmetadataacfail1fileapitestsetmetadataacfailb8383876?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9bded093-54fb-490c-bf5b-f86fdfd3aa0e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E778291", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8397-201f-006a-08d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "9bded093-54fb-490c-bf5b-f86fdfd3aa0e" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211/javapathsetmetadataacfail1fileapitestsetmetadataacfailb8383876?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b701e91-aa6a-43ba-869c-72930e8f3b04", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8398-201f-006a-09d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "8b701e91-aa6a-43ba-869c-72930e8f3b04" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211/javapathsetmetadataacfail1fileapitestsetmetadataacfailb8383876?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d553714-e0a0-42a8-bbd4-2f08494c30be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4E884E7A", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8399-201f-006a-0ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "7d553714-e0a0-42a8-bbd4-2f08494c30be" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211/javapathsetmetadataacfail1fileapitestsetmetadataacfailb8383876", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "637a8d77-85ca-4ccf-a273-d6203c57923a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:21 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", + "ETag" : "0x8D75EEB4E884E7A", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:22 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25760c7b-501e-0003-0ad4-904d7d000000", + "x-ms-client-request-id" : "637a8d77-85ca-4ccf-a273-d6203c57923a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211/javapathsetmetadataacfail1fileapitestsetmetadataacfailb8383876?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ffeb0e99-0153-4410-a890-59e07f5e318a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "25760c84-501e-0003-12d4-904d7d000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:25760c84-501e-0003-12d4-904d7d000000\nTime:2019-11-01T16:48:22.5063268Z", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "ffeb0e99-0153-4410-a890-59e07f5e318a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b85dbda-0d56-4f17-a3c5-08181cf5df80" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760c94-501e-0003-21d4-904d7d000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211Fri, 01 Nov 2019 16:48:22 GMT\"0x8D75EEB4E6D61B1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "7b85dbda-0d56-4f17-a3c5-08181cf5df80", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dac81799-e435-447e-81a3-c32be3983170" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760c9c-501e-0003-29d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:21 GMT", + "x-ms-client-request-id" : "dac81799-e435-447e-81a3-c32be3983170" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0fileapitestsetmetadataacfailb834432211", "javapathsetmetadataacfail1fileapitestsetmetadataacfailb8383876" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[4].json new file mode 100644 index 0000000000000..673c1e88ab487 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataacfail[4].json @@ -0,0 +1,173 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "269f3dde-7000-493c-b110-28853383253a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4EB12DEA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760cb0-501e-0003-39d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "269f3dde-7000-493c-b110-28853383253a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830/javapathsetmetadataacfail1fileapitestsetmetadataacfail34518500?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "662cf294-93d6-4861-b599-3d9ef88be6c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4EBEFC1D", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e839a-201f-006a-0bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "662cf294-93d6-4861-b599-3d9ef88be6c3" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830/javapathsetmetadataacfail1fileapitestsetmetadataacfail34518500?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78ab94d0-5b07-4332-8830-c8c0cbdd9d64", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e839b-201f-006a-0cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "78ab94d0-5b07-4332-8830-c8c0cbdd9d64" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830/javapathsetmetadataacfail1fileapitestsetmetadataacfail34518500?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2fa9bd63-a418-4829-87ab-62984b0079bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4ECF57A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e839c-201f-006a-0dd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "2fa9bd63-a418-4829-87ab-62984b0079bb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830/javapathsetmetadataacfail1fileapitestsetmetadataacfail34518500?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8dbdbbdf-ef43-4cc8-85cf-e4dc28704e00" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4ECF57A7", + "x-ms-lease-id" : "2d262f90-f048-48e4-8bd7-8a0d72de5339", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760d03-501e-0003-06d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "8dbdbbdf-ef43-4cc8-85cf-e4dc28704e00" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830/javapathsetmetadataacfail1fileapitestsetmetadataacfail34518500?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bbf35881-7b7e-4ca0-a940-9e19143c991c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatchWithBlobOperation", + "retry-after" : "0", + "Content-Length" : "264", + "StatusCode" : "412", + "x-ms-request-id" : "25760d3f-501e-0003-40d4-904d7d000000", + "Body" : "LeaseIdMismatchWithBlobOperationThe lease ID specified did not match the lease ID for the blob.\nRequestId:25760d3f-501e-0003-40d4-904d7d000000\nTime:2019-11-01T16:48:23.0247021Z", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "bbf35881-7b7e-4ca0-a940-9e19143c991c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "093f5bd1-0897-4f0f-8a31-c27cbdf08a84" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760d57-501e-0003-54d4-904d7d000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830Fri, 01 Nov 2019 16:48:22 GMT\"0x8D75EEB4EB12DEA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "093f5bd1-0897-4f0f-8a31-c27cbdf08a84", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "933182bb-d2f9-4274-abf1-7acd0d9c5217" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760d71-501e-0003-6ed4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "933182bb-d2f9-4274-abf1-7acd0d9c5217" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0fileapitestsetmetadataacfail3453466830", "javapathsetmetadataacfail1fileapitestsetmetadataacfail34518500" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataerror.json new file mode 100644 index 0000000000000..f7c35a69282c0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadataerror.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c4d8bee-d6e3-4bc9-9a77-51f8aad71f8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F0046EE", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760d99-501e-0003-12d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "4c4d8bee-d6e3-4bc9-9a77-51f8aad71f8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6/javapathsetmetadataerror1fileapitestsetmetadataerror794199005?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f7a609b-60fa-472b-b2f7-1341e0378a19" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F0B05E1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e839d-201f-006a-0ed4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "4f7a609b-60fa-472b-b2f7-1341e0378a19" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6/javapathsetmetadataerror1fileapitestsetmetadataerror794199005?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd6dce8a-4984-4dbd-876d-ccb48ff73adf", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e839e-201f-006a-0fd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "bd6dce8a-4984-4dbd-876d-ccb48ff73adf" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6/javapathsetmetadataerror1fileapitestsetmetadataerror794199005?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee404a8c-d497-4ed4-a6ce-b63e8cafd4cf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4F1EA834", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e839f-201f-006a-10d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:23 GMT", + "x-ms-client-request-id" : "ee404a8c-d497-4ed4-a6ce-b63e8cafd4cf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6/javapathsetmetadataerror2fileapitestsetmetadataerror794804164?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aea3f417-6759-4250-b840-493221c4e495" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "25760ded-501e-0003-5ed4-904d7d000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:25760ded-501e-0003-5ed4-904d7d000000\nTime:2019-11-01T16:48:23.4500131Z", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "aea3f417-6759-4250-b840-493221c4e495", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ddc3e6a7-3d3d-46d2-be0f-0a37a43c6f13" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760e03-501e-0003-73d4-904d7d000000", + "Body" : "jtfssetmetadataerrorjtfssetmetadataerror0fileapitestsetmetadataerror794379229b6Fri, 01 Nov 2019 16:48:23 GMT\"0x8D75EEB4F0046EE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "ddc3e6a7-3d3d-46d2-be0f-0a37a43c6f13", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bcb87dc7-933b-4491-926d-d77c038911af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760e0d-501e-0003-7dd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:22 GMT", + "x-ms-client-request-id" : "bcb87dc7-933b-4491-926d-d77c038911af" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataerror0fileapitestsetmetadataerror794379229b6", "javapathsetmetadataerror1fileapitestsetmetadataerror794199005", "javapathsetmetadataerror2fileapitestsetmetadataerror794804164" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatametadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatametadata[0].json new file mode 100644 index 0000000000000..694704804883e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatametadata[0].json @@ -0,0 +1,181 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf098afa-3e71-4aba-8c41-2d9bdb07da15" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4BA4704B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "25760666-501e-0003-05d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "bf098afa-3e71-4aba-8c41-2d9bdb07da15" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798/javapathsetmetadatametadata1602703a103e9cb61d45b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7316df82-d6b1-4b35-8d34-8660e9b55f82" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4BAE5382", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8376-201f-006a-67d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "7316df82-d6b1-4b35-8d34-8660e9b55f82" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798/javapathsetmetadatametadata1602703a103e9cb61d45b?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48e72f61-762a-4911-b30e-1f02c1ec6cc2", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8377-201f-006a-68d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "48e72f61-762a-4911-b30e-1f02c1ec6cc2" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798/javapathsetmetadatametadata1602703a103e9cb61d45b?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04f2f68f-50f9-4442-9fa1-74e11f7742e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4BBEC94B", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8378-201f-006a-69d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "04f2f68f-50f9-4442-9fa1-74e11f7742e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798/javapathsetmetadatametadata1602703a103e9cb61d45b?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0ad30b9-0d1f-4f1c-a4cd-6cdeb556a6c8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4BC74D87", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257606a2-501e-0003-39d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "a0ad30b9-0d1f-4f1c-a4cd-6cdeb556a6c8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798/javapathsetmetadatametadata1602703a103e9cb61d45b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8648b8d-e733-418c-bf5e-f64309755abb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:17 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", + "ETag" : "0x8D75EEB4BC74D87", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "257606ae-501e-0003-44d4-904d7d000000", + "x-ms-client-request-id" : "f8648b8d-e733-418c-bf5e-f64309755abb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91bd40f1-e856-4502-9193-f8f6aa6084e0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "257606b6-501e-0003-4bd4-904d7d000000", + "Body" : "jtfssetmetadatametadatajtfssetmetadatametadata0fileapitestsetmetadatametadata92972798Fri, 01 Nov 2019 16:48:17 GMT\"0x8D75EEB4BA4704B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "91bd40f1-e856-4502-9193-f8f6aa6084e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd4a17c6-152b-4c73-81f4-8422149beddb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "257606c1-501e-0003-56d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "bd4a17c6-152b-4c73-81f4-8422149beddb" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatametadata0fileapitestsetmetadatametadata92972798", "javapathsetmetadatametadata1602703a103e9cb61d45b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatametadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatametadata[1].json new file mode 100644 index 0000000000000..41895112a6f9e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatametadata[1].json @@ -0,0 +1,183 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b623345c-ca67-47f0-80ee-1a5c1e4ba856" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4BE751F5", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257606d6-501e-0003-67d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "b623345c-ca67-47f0-80ee-1a5c1e4ba856" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785/javapathsetmetadatametadata170371740a6444e9054ef?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ecac3197-1714-42c1-85de-bf11983f4c8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4BF4AEA8", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8379-201f-006a-6ad4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "ecac3197-1714-42c1-85de-bf11983f4c8a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785/javapathsetmetadatametadata170371740a6444e9054ef?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "55595450-cafb-4b31-867c-5cb17c2c150f", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e837a-201f-006a-6bd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "55595450-cafb-4b31-867c-5cb17c2c150f" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785/javapathsetmetadatametadata170371740a6444e9054ef?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dda0cf95-e661-4533-b45b-38a98cd9a39d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C0621BA", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e837b-201f-006a-6cd4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "dda0cf95-e661-4533-b45b-38a98cd9a39d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785/javapathsetmetadatametadata170371740a6444e9054ef?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3024119-5dbf-4ed9-a35e-d179c8cf8119" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4C0D9BC0", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2576073c-501e-0003-44d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "a3024119-5dbf-4ed9-a35e-d179c8cf8119" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785/javapathsetmetadatametadata170371740a6444e9054ef", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "093f0e79-d636-4f3a-89a2-7b0150f91fd5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D75EEB4C0D9BC0", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:18 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25760759-501e-0003-5cd4-904d7d000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "093f0e79-d636-4f3a-89a2-7b0150f91fd5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "39ebb016-cedc-4816-853d-a0c9c77e4316" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760770-501e-0003-72d4-904d7d000000", + "Body" : "jtfssetmetadatametadatajtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785Fri, 01 Nov 2019 16:48:17 GMT\"0x8D75EEB4BE751F5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "39ebb016-cedc-4816-853d-a0c9c77e4316", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "decbb9fc-a562-4a97-99a0-f2f1da5bcf7f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2576077e-501e-0003-80d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:17 GMT", + "x-ms-client-request-id" : "decbb9fc-a562-4a97-99a0-f2f1da5bcf7f" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatametadata0fileapitestsetmetadatametadatabde26785", "javapathsetmetadatametadata170371740a6444e9054ef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatamin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatamin.json new file mode 100644 index 0000000000000..9937b6f169b4b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileAPITestsetmetadatamin.json @@ -0,0 +1,182 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2731ce5f-8f3b-4d0d-b050-5a53e23c8e9a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B5F444F", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "257605ef-501e-0003-1bd4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "2731ce5f-8f3b-4d0d-b050-5a53e23c8e9a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53/javapathsetmetadatamin1fileapitestsetmetadatamind6334838bc9?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0937f612-6f37-4bb1-bcf8-f6aaa493f5fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B6A89A3", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "123e8373-201f-006a-64d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "0937f612-6f37-4bb1-bcf8-f6aaa493f5fb" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53/javapathsetmetadatamin1fileapitestsetmetadatamind6334838bc9?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f85454b7-2e29-4eb9-8cd6-b77112eb6924", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8374-201f-006a-65d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "f85454b7-2e29-4eb9-8cd6-b77112eb6924" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53/javapathsetmetadatamin1fileapitestsetmetadatamind6334838bc9?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d813622f-acd4-4773-8b8c-afdceae56866" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B7BA775", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "123e8375-201f-006a-66d4-9012d1000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "d813622f-acd4-4773-8b8c-afdceae56866" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53/javapathsetmetadatamin1fileapitestsetmetadatamind6334838bc9?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3c65de3-4ceb-4161-842c-7ff03db387ce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEB4B84C3F1", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760632-501e-0003-54d4-904d7d000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "e3c65de3-4ceb-4161-842c-7ff03db387ce" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53/javapathsetmetadatamin1fileapitestsetmetadatamind6334838bc9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "350f951f-4ddf-46ae-9d9b-b49742dd58e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:48:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D75EEB4B84C3F1", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:48:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "25760644-501e-0003-64d4-904d7d000000", + "x-ms-client-request-id" : "350f951f-4ddf-46ae-9d9b-b49742dd58e5", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca859834-14b0-4565-982f-2ecb3eef85c3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "25760649-501e-0003-69d4-904d7d000000", + "Body" : "jtfssetmetadataminjtfssetmetadatamin0fileapitestsetmetadatamind63520580af53Fri, 01 Nov 2019 16:48:17 GMT\"0x8D75EEB4B5F444F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "ca859834-14b0-4565-982f-2ecb3eef85c3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f320dc40-8d45-4468-8c33-3cb76ee1e9eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "25760658-501e-0003-77d4-904d7d000000", + "Date" : "Fri, 01 Nov 2019 16:48:16 GMT", + "x-ms-client-request-id" : "f320dc40-8d45-4468-8c33-3cb76ee1e9eb" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatamin0fileapitestsetmetadatamind63520580af53", "javapathsetmetadatamin1fileapitestsetmetadatamind6334838bc9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreateallnull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreateallnull.json new file mode 100644 index 0000000000000..5a32f21c979fb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreateallnull.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateallnull0filesystemapitestcreateallnullaeb36504382?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "055fd9ea-4aad-47a1-bb92-b11dcd861b75" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACDB69324", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f8ae-a01e-0034-61d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:45 GMT", + "x-ms-client-request-id" : "055fd9ea-4aad-47a1-bb92-b11dcd861b75" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateallnull1filesystemapitestcreateallnullaeb590226f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f23dd86-a7b1-4e6b-b711-faa61bb8ff6f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACDC0A335", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7033f0-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "0f23dd86-a7b1-4e6b-b711-faa61bb8ff6f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateallnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c482947-c88a-46b5-94f4-81879bee1767" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f8e6-a01e-0034-16d3-90e1d2000000", + "Body" : "jtfscreateallnulljtfscreateallnull0filesystemapitestcreateallnullaeb36504382Fri, 01 Nov 2019 16:44:46 GMT\"0x8D75EEACDB69324\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreateallnull1filesystemapitestcreateallnullaeb590226f1Fri, 01 Nov 2019 16:44:46 GMT\"0x8D75EEACDC0A335\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "5c482947-c88a-46b5-94f4-81879bee1767", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateallnull0filesystemapitestcreateallnullaeb36504382?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "059ada5a-43fd-4e45-a8ad-01f8d5de6452" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70341c-e01e-007c-0dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "059ada5a-43fd-4e45-a8ad-01f8d5de6452" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateallnull1filesystemapitestcreateallnullaeb590226f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1da02a9f-3d3f-4e0c-b8a2-ec93a1eb555f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f92d-a01e-0034-59d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "1da02a9f-3d3f-4e0c-b8a2-ec93a1eb555f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateallnull0filesystemapitestcreateallnullaeb36504382", "jtfscreateallnull1filesystemapitestcreateallnullaeb590226f1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[0].json new file mode 100644 index 0000000000000..e3df5e889cf18 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac71e144123b884?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8b6c032-a133-4f5a-bfa9-02712a2a08a8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADAD0FF58", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662320-a01e-0034-03d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "d8b6c032-a133-4f5a-bfa9-02712a2a08a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac71e144123b884/javapathcreatedirac1filesystemapitestcreatedirac71e35257c22?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68d2f1ac-2343-4b79-acfe-5a476f7bfcdc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADADAF95E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0245-801f-00ab-32d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "68d2f1ac-2343-4b79-acfe-5a476f7bfcdc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac71e144123b884/javapathcreatedirac1filesystemapitestcreatedirac71e35257c22?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1da6aa8-5642-4f7e-ac34-5e9db29d96f0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADAE29DAC", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0246-801f-00ab-33d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "a1da6aa8-5642-4f7e-ac34-5e9db29d96f0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b248973d-bdd1-4c26-9a48-af408a8eab0b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704efd-e01e-007c-17d3-90d34f000000", + "Body" : "jtfscreatediracjtfscreatedirac0filesystemapitestcreatedirac71e144123b884Fri, 01 Nov 2019 16:45:08 GMT\"0x8D75EEADAD0FF58\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "b248973d-bdd1-4c26-9a48-af408a8eab0b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac71e144123b884?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01eb4cbe-720f-49eb-928a-6cc80183ee4d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6623a3-a01e-0034-76d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "01eb4cbe-720f-49eb-928a-6cc80183ee4d" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirac0filesystemapitestcreatedirac71e144123b884", "javapathcreatedirac1filesystemapitestcreatedirac71e35257c22" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[1].json new file mode 100644 index 0000000000000..f8b18eb00f998 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracc3b424199d9df?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d822cd5d-85db-41f7-9ce3-9b021e4788db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADAFCA471", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704f25-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "d822cd5d-85db-41f7-9ce3-9b021e4788db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracc3b424199d9df/javapathcreatedirac1filesystemapitestcreatediracc3b8132732a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4134a120-a93b-4a46-9972-2ef3614dd53d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB093324", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0247-801f-00ab-34d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "4134a120-a93b-4a46-9972-2ef3614dd53d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracc3b424199d9df/javapathcreatedirac1filesystemapitestcreatediracc3b8132732a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a7c8cce-8cae-41bd-9832-7103b9399cf0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB1124A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0248-801f-00ab-35d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "6a7c8cce-8cae-41bd-9832-7103b9399cf0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0386493e-e8e6-4a64-9e58-35558dcb60fb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66244f-a01e-0034-11d3-90e1d2000000", + "Body" : "jtfscreatediracjtfscreatedirac0filesystemapitestcreatediracc3b424199d9dfFri, 01 Nov 2019 16:45:08 GMT\"0x8D75EEADAFCA471\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "0386493e-e8e6-4a64-9e58-35558dcb60fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracc3b424199d9df?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42922fd2-11c8-498d-b15e-e60298537343" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704f58-e01e-007c-69d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "42922fd2-11c8-498d-b15e-e60298537343" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirac0filesystemapitestcreatediracc3b424199d9df", "javapathcreatedirac1filesystemapitestcreatediracc3b8132732a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[2].json new file mode 100644 index 0000000000000..8128ae114a0ea --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac2cc547437c244?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a46040d1-eb08-4c92-a66a-6f07541b0ebb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB2B64AE", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6624a3-a01e-0034-5ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "a46040d1-eb08-4c92-a66a-6f07541b0ebb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac2cc547437c244/javapathcreatedirac1filesystemapitestcreatedirac2cc91533ced?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08636d0e-f009-415c-a48f-5d31c9fe5ed2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB3516AA", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0249-801f-00ab-36d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "08636d0e-f009-415c-a48f-5d31c9fe5ed2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac2cc547437c244/javapathcreatedirac1filesystemapitestcreatedirac2cc91533ced?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a68b79e8-9f76-43d2-8d1b-eaa727f77a91" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB3CD202", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e024a-801f-00ab-37d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "a68b79e8-9f76-43d2-8d1b-eaa727f77a91" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a438404-3aa0-4186-8cc5-6c9ee01020ac" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704f8a-e01e-007c-12d3-90d34f000000", + "Body" : "jtfscreatediracjtfscreatedirac0filesystemapitestcreatedirac2cc547437c244Fri, 01 Nov 2019 16:45:08 GMT\"0x8D75EEADB2B64AE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "0a438404-3aa0-4186-8cc5-6c9ee01020ac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac2cc547437c244?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9139b6fc-e9eb-4f43-9993-f54d144d0703" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662512-a01e-0034-43d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "9139b6fc-e9eb-4f43-9993-f54d144d0703" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirac0filesystemapitestcreatedirac2cc547437c244", "javapathcreatedirac1filesystemapitestcreatedirac2cc91533ced" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[3].json new file mode 100644 index 0000000000000..2ac8393a95566 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracbd71881210244?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6063b04-9e39-4354-abda-219fbdd89e9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB5905E2", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704fbd-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "a6063b04-9e39-4354-abda-219fbdd89e9f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracbd71881210244/javapathcreatedirac1filesystemapitestcreatediracbd758586c26?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5797fb25-cc7e-46ff-8ddb-7a4b283b9f1d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB62A0D5", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e024b-801f-00ab-38d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "5797fb25-cc7e-46ff-8ddb-7a4b283b9f1d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracbd71881210244/javapathcreatedirac1filesystemapitestcreatediracbd758586c26", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c58a709-6253-40ef-8b28-0d324b3ae9f2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:08 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", + "ETag" : "0x8D75EEADB62A0D5", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:09 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a66257f-a01e-0034-2bd3-90e1d2000000", + "x-ms-client-request-id" : "6c58a709-6253-40ef-8b28-0d324b3ae9f2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracbd71881210244/javapathcreatedirac1filesystemapitestcreatediracbd758586c26?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9538cf7a-1769-467b-a83d-bc321569fa43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB726A35", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e024c-801f-00ab-39d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "9538cf7a-1769-467b-a83d-bc321569fa43" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90111e1c-62fc-49ff-ad89-9093eb39d913" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc705006-e01e-007c-79d3-90d34f000000", + "Body" : "jtfscreatediracjtfscreatedirac0filesystemapitestcreatediracbd71881210244Fri, 01 Nov 2019 16:45:09 GMT\"0x8D75EEADB5905E2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "90111e1c-62fc-49ff-ad89-9093eb39d913", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracbd71881210244?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da0e2cab-434d-4521-a82b-6a9c08f17a8b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6625e9-a01e-0034-0ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "da0e2cab-434d-4521-a82b-6a9c08f17a8b" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirac0filesystemapitestcreatediracbd71881210244", "javapathcreatedirac1filesystemapitestcreatediracbd758586c26" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[4].json new file mode 100644 index 0000000000000..0c2be2ccd6d66 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracd1436330dae62?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1a2d6a5-fb67-4e37-97d2-05b2f4eb68c4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB8C2D0A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705034-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "a1a2d6a5-fb67-4e37-97d2-05b2f4eb68c4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracd1436330dae62/javapathcreatedirac1filesystemapitestcreatediracd147789870e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "133a50e8-5d3c-4521-bad9-99eee55b97b0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB954A8E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e024d-801f-00ab-3ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "133a50e8-5d3c-4521-bad9-99eee55b97b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracd1436330dae62/javapathcreatedirac1filesystemapitestcreatediracd147789870e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d555e04-84d4-4975-a9a6-138a94626af6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADB9D02C6", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e024e-801f-00ab-3bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:08 GMT", + "x-ms-client-request-id" : "8d555e04-84d4-4975-a9a6-138a94626af6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3fdb6b9-3345-45b4-98bd-29073416a924" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66268f-a01e-0034-28d3-90e1d2000000", + "Body" : "jtfscreatediracjtfscreatedirac0filesystemapitestcreatediracd1436330dae62Fri, 01 Nov 2019 16:45:09 GMT\"0x8D75EEADB8C2D0A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "f3fdb6b9-3345-45b4-98bd-29073416a924", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatediracd1436330dae62?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14124236-a5d6-4412-88d3-97580b9702f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70505f-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "14124236-a5d6-4412-88d3-97580b9702f3" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirac0filesystemapitestcreatediracd1436330dae62", "javapathcreatedirac1filesystemapitestcreatediracd147789870e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[5].json new file mode 100644 index 0000000000000..e5a07d16bc7b1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirac[5].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac52b5791942229?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae182ecf-d82c-4f5e-ac98-85c4fa6fe755" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADBB82DC0", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6626c6-a01e-0034-5bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "ae182ecf-d82c-4f5e-ac98-85c4fa6fe755" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac52b5791942229/javapathcreatedirac1filesystemapitestcreatedirac52b20693ab2?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9bd8d24e-2732-4cf6-99f9-057e88b25dce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADBC16D29", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e024f-801f-00ab-3cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "9bd8d24e-2732-4cf6-99f9-057e88b25dce" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac52b5791942229/javapathcreatedirac1filesystemapitestcreatedirac52b20693ab2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09b33732-26cd-40af-a195-03bcab3b0cbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADBC16D29", + "x-ms-lease-id" : "a5fb41a4-05e3-4b83-a4b0-1421b0e37f16", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705081-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "09b33732-26cd-40af-a195-03bcab3b0cbe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac52b5791942229/javapathcreatedirac1filesystemapitestcreatedirac52b20693ab2?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5eac6a39-572d-4edf-ba42-2042373e2538" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADBD0C7E1", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0250-801f-00ab-3dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "5eac6a39-572d-4edf-ba42-2042373e2538" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c738018-3482-4a0f-8ed2-2e481abbf2b8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66271e-a01e-0034-1fd3-90e1d2000000", + "Body" : "jtfscreatediracjtfscreatedirac0filesystemapitestcreatedirac52b5791942229Fri, 01 Nov 2019 16:45:09 GMT\"0x8D75EEADBB82DC0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "4c738018-3482-4a0f-8ed2-2e481abbf2b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirac0filesystemapitestcreatedirac52b5791942229?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec95f039-b2db-4bd4-8581-e0b433299e4f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7050b9-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "ec95f039-b2db-4bd4-8581-e0b433299e4f" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirac0filesystemapitestcreatedirac52b5791942229", "javapathcreatedirac1filesystemapitestcreatedirac52b20693ab2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[0].json new file mode 100644 index 0000000000000..40f148c94f97e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailae069893e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95c89925-de3a-4b59-bf43-a5b838ae074f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADBE8200A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662757-a01e-0034-52d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "95c89925-de3a-4b59-bf43-a5b838ae074f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailae069893e/javapathcreatediracfail19370004d1898122ff44ce8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a23cdd7f-44e7-4765-96c5-76faa74f3d63" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADBF14F58", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0251-801f-00ab-3ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "a23cdd7f-44e7-4765-96c5-76faa74f3d63" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailae069893e/javapathcreatediracfail19370004d1898122ff44ce8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "945c6761-cf7e-4315-a1b3-2b2a1fdd64a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0252-801f-00ab-3fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0252-801f-00ab-3fd3-909968000000\\nTime:2019-11-01T16:45:10.2074169Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "945c6761-cf7e-4315-a1b3-2b2a1fdd64a6", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a159a96-dc37-4fb2-88d8-c3fad4f8b21f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7050f5-e01e-007c-52d3-90d34f000000", + "Body" : "jtfscreatediracfailjtfscreatediracfail0filesystemapitestcreatediracfailae069893eFri, 01 Nov 2019 16:45:10 GMT\"0x8D75EEADBE8200A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "4a159a96-dc37-4fb2-88d8-c3fad4f8b21f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailae069893e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eae79eee-5766-4f64-a0eb-6061d4dd7458" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6627ad-a01e-0034-1cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "eae79eee-5766-4f64-a0eb-6061d4dd7458" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatediracfail0filesystemapitestcreatediracfailae069893e", "javapathcreatediracfail19370004d1898122ff44ce8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[1].json new file mode 100644 index 0000000000000..8d17070a0b74a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail74161250d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23d31753-b51c-44f3-b098-8fe31ce2ab1d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC101ACF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705113-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "23d31753-b51c-44f3-b098-8fe31ce2ab1d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail74161250d/javapathcreatediracfail163079071c2589eda44122b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a0d361b-fc70-44a7-82a1-4fad9f1b9014" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC193A94", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0253-801f-00ab-40d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "4a0d361b-fc70-44a7-82a1-4fad9f1b9014" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail74161250d/javapathcreatediracfail163079071c2589eda44122b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "58b8098f-6ccc-42f3-a406-22c9974ff27b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0254-801f-00ab-41d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0254-801f-00ab-41d3-909968000000\\nTime:2019-11-01T16:45:10.4706053Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:09 GMT", + "x-ms-client-request-id" : "58b8098f-6ccc-42f3-a406-22c9974ff27b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "374719a4-10bb-473e-a597-7cc7f79fec51" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662815-a01e-0034-77d3-90e1d2000000", + "Body" : "jtfscreatediracfailjtfscreatediracfail0filesystemapitestcreatediracfail74161250dFri, 01 Nov 2019 16:45:10 GMT\"0x8D75EEADC101ACF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "374719a4-10bb-473e-a597-7cc7f79fec51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail74161250d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "176c2df2-1dca-4d58-8576-31f98e28e4d4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705157-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "176c2df2-1dca-4d58-8576-31f98e28e4d4" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatediracfail0filesystemapitestcreatediracfail74161250d", "javapathcreatediracfail163079071c2589eda44122b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[2].json new file mode 100644 index 0000000000000..1a492d8102e66 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailc76698903?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8572c2bf-dab3-4238-879c-04554a00d7fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC39AA27", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66284c-a01e-0034-29d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "8572c2bf-dab3-4238-879c-04554a00d7fe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailc76698903/javapathcreatediracfail189704ac24cc3f73bc4ac5b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9aad58a-069c-4979-b489-131af820a217" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC43AB1E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0255-801f-00ab-42d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "c9aad58a-069c-4979-b489-131af820a217" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailc76698903/javapathcreatediracfail189704ac24cc3f73bc4ac5b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f96cea5a-d007-4aec-aecc-599e90f8f34b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0256-801f-00ab-43d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0256-801f-00ab-43d3-909968000000\\nTime:2019-11-01T16:45:10.7448015Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "f96cea5a-d007-4aec-aecc-599e90f8f34b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9e6cf89-0b65-4048-8cb9-345435094fd5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc705198-e01e-007c-68d3-90d34f000000", + "Body" : "jtfscreatediracfailjtfscreatediracfail0filesystemapitestcreatediracfailc76698903Fri, 01 Nov 2019 16:45:10 GMT\"0x8D75EEADC39AA27\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "c9e6cf89-0b65-4048-8cb9-345435094fd5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfailc76698903?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5fb10806-e976-4907-8a25-2f1d95559b4d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6628ac-a01e-0034-7cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "5fb10806-e976-4907-8a25-2f1d95559b4d" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatediracfail0filesystemapitestcreatediracfailc76698903", "javapathcreatediracfail189704ac24cc3f73bc4ac5b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[3].json new file mode 100644 index 0000000000000..caca52830c279 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail4e4417125?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50a5cc4d-d350-47d5-b608-a4ee93add11a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC643D68", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7051c8-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "50a5cc4d-d350-47d5-b608-a4ee93add11a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail4e4417125/javapathcreatediracfail188061c1d0029d947f419da?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e0dc762-00e0-4044-8cb7-166663a5f948" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC6D7642", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0258-801f-00ab-44d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "3e0dc762-00e0-4044-8cb7-166663a5f948" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail4e4417125/javapathcreatediracfail188061c1d0029d947f419da", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b4f2f6b-0894-4e28-8095-49604c4be2b2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:10 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", + "ETag" : "0x8D75EEADC6D7642", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a662917-a01e-0034-5fd3-90e1d2000000", + "x-ms-client-request-id" : "1b4f2f6b-0894-4e28-8095-49604c4be2b2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail4e4417125/javapathcreatediracfail188061c1d0029d947f419da?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84b0649b-167f-4fff-bc05-959af9945d49" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0259-801f-00ab-45d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0259-801f-00ab-45d3-909968000000\\nTime:2019-11-01T16:45:11.0730365Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "84b0649b-167f-4fff-bc05-959af9945d49", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82108d8a-fbf8-490d-bd17-e3e1560839d5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7051fb-e01e-007c-46d3-90d34f000000", + "Body" : "jtfscreatediracfailjtfscreatediracfail0filesystemapitestcreatediracfail4e4417125Fri, 01 Nov 2019 16:45:10 GMT\"0x8D75EEADC643D68\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "82108d8a-fbf8-490d-bd17-e3e1560839d5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail4e4417125?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1da1e63-4a2c-4862-b9e3-3d24cc2536d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662965-a01e-0034-26d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "e1da1e63-4a2c-4862-b9e3-3d24cc2536d1" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatediracfail0filesystemapitestcreatediracfail4e4417125", "javapathcreatediracfail188061c1d0029d947f419da" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[4].json new file mode 100644 index 0000000000000..19fb3eb5c83ec --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatediracfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail0c9765707?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33d3057d-e383-410f-affd-370af5928ac0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADC9C959F", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70522e-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "33d3057d-e383-410f-affd-370af5928ac0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail0c9765707/javapathcreatediracfail131724766fd05cddf343c48?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85045348-10df-4b3f-ac2b-df96f2acdf86" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADCA68A18", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e025a-801f-00ab-46d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "85045348-10df-4b3f-ac2b-df96f2acdf86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail0c9765707/javapathcreatediracfail131724766fd05cddf343c48?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ca23e67-945f-4b97-817f-6710fef101d7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADCA68A18", + "x-ms-lease-id" : "966d4d8a-ea52-4b34-8d8f-c8e4c36589e4", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6629be-a01e-0034-7bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "2ca23e67-945f-4b97-817f-6710fef101d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail0c9765707/javapathcreatediracfail131724766fd05cddf343c48?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d34dfb4f-02f5-443e-acc9-e0987dd4c02f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e025b-801f-00ab-47d3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e025b-801f-00ab-47d3-909968000000\\nTime:2019-11-01T16:45:11.4453030Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:10 GMT", + "x-ms-client-request-id" : "d34dfb4f-02f5-443e-acc9-e0987dd4c02f", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3f6bbae8-a899-41e1-a73c-9f5eff66ba83" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70526c-e01e-007c-2cd3-90d34f000000", + "Body" : "jtfscreatediracfailjtfscreatediracfail0filesystemapitestcreatediracfail0c9765707Fri, 01 Nov 2019 16:45:11 GMT\"0x8D75EEADC9C959F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "3f6bbae8-a899-41e1-a73c-9f5eff66ba83", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatediracfail0filesystemapitestcreatediracfail0c9765707?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "415619e0-e08e-4130-bda9-4ff8365e0f67" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662a05-a01e-0034-3ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "415619e0-e08e-4130-bda9-4ff8365e0f67" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatediracfail0filesystemapitestcreatediracfail0c9765707", "javapathcreatediracfail131724766fd05cddf343c48" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirdefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirdefaults.json new file mode 100644 index 0000000000000..ce6f83968b86c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirdefaults.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirdefaults079757c5ff35e078ae46c783?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9da79dec-fa12-482e-b7b4-660aed2199af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD9E19212", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66201d-a01e-0034-4bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "9da79dec-fa12-482e-b7b4-660aed2199af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirdefaults079757c5ff35e078ae46c783/javapathcreatedirdefaults1954464a46e7605d824504?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7607de23-4a21-41e8-96f3-e99414f3ff4e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD9EC56E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e023f-801f-00ab-2cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "7607de23-4a21-41e8-96f3-e99414f3ff4e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirdefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c5d5312-c5db-4407-a264-0556f4d57606" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704d92-e01e-007c-58d3-90d34f000000", + "Body" : "jtfscreatedirdefaultsjtfscreatedirdefaults079757c5ff35e078ae46c783Fri, 01 Nov 2019 16:45:06 GMT\"0x8D75EEAD9E19212\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "6c5d5312-c5db-4407-a264-0556f4d57606", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirdefaults079757c5ff35e078ae46c783?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "40cbabb5-e115-4568-8eac-8bfb6f24abab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662085-a01e-0034-28d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "40cbabb5-e115-4568-8eac-8bfb6f24abab" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirdefaults079757c5ff35e078ae46c783", "javapathcreatedirdefaults1954464a46e7605d824504" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirerror.json new file mode 100644 index 0000000000000..c70303eb7daea --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirerror0filesystemapitestcreatedirerror94565842a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a38f6b12-0792-405e-b77f-20c680b22b3e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA051F83", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704daa-e01e-007c-6ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "a38f6b12-0792-405e-b77f-20c680b22b3e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirerror0filesystemapitestcreatedirerror94565842a2/javapathcreatedirerror1filesystemapitestcreatedirerror94502166?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "27def528-fb87-48b3-8f03-6c431d9ff93e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0240-801f-00ab-2dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0240-801f-00ab-2dd3-909968000000\\nTime:2019-11-01T16:45:06.9921153Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "27def528-fb87-48b3-8f03-6c431d9ff93e", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c21f62d2-3324-45ee-817d-27954f383b2f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6620e7-a01e-0034-02d3-90e1d2000000", + "Body" : "jtfscreatedirerrorjtfscreatedirerror0filesystemapitestcreatedirerror94565842a2Fri, 01 Nov 2019 16:45:06 GMT\"0x8D75EEADA051F83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "c21f62d2-3324-45ee-817d-27954f383b2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirerror0filesystemapitestcreatedirerror94565842a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "809a5a95-c155-4400-aa29-28935a6d8d08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704dce-e01e-007c-0dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "809a5a95-c155-4400-aa29-28935a6d8d08" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirerror0filesystemapitestcreatedirerror94565842a2", "javapathcreatedirerror1filesystemapitestcreatedirerror94502166" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirheaders[0].json new file mode 100644 index 0000000000000..54d7b6db3feb1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirheaders[0].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheadersdf535016?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce4dfb51-ce4c-4b27-9bd0-7eaa6974eb56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA266FB4", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662122-a01e-0034-34d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "ce4dfb51-ce4c-4b27-9bd0-7eaa6974eb56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheadersdf535016/javapathcreatedirheaders148479bb3ccdd3fd214b67?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a778dc8-a5b1-49cc-9737-447925a8f907" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA32AA8C", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0241-801f-00ab-2ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "0a778dc8-a5b1-49cc-9737-447925a8f907" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheadersdf535016/javapathcreatedirheaders148479bb3ccdd3fd214b67", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a32ce160-6be6-4ed2-a11e-98437b9df787" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:07 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", + "ETag" : "0x8D75EEADA32AA8C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:07 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc704de8-e01e-007c-24d3-90d34f000000", + "x-ms-client-request-id" : "a32ce160-6be6-4ed2-a11e-98437b9df787", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9499d2a5-240a-4eaa-8dd2-ce130190364a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66216d-a01e-0034-75d3-90e1d2000000", + "Body" : "jtfscreatedirheadersjtfscreatedirheaders0filesystemapitestcreatedirheadersdf535016Fri, 01 Nov 2019 16:45:07 GMT\"0x8D75EEADA266FB4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "9499d2a5-240a-4eaa-8dd2-ce130190364a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheadersdf535016?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee0ce813-2e98-4e4d-89a7-2e54b92d7e9b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704e04-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "ee0ce813-2e98-4e4d-89a7-2e54b92d7e9b" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirheaders0filesystemapitestcreatedirheadersdf535016", "javapathcreatedirheaders148479bb3ccdd3fd214b67" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirheaders[1].json new file mode 100644 index 0000000000000..f485ee10be09f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirheaders[1].json @@ -0,0 +1,121 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheaders75865652?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de6f1790-a1e5-429a-a502-2f7f970dd0c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA517F1D", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6621a7-a01e-0034-29d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "de6f1790-a1e5-429a-a502-2f7f970dd0c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheaders75865652/javapathcreatedirheaders154081d12e07c21e1743c7?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f0050c0-0912-480d-a344-5dfd4ba6ef0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA5AD0AC", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0242-801f-00ab-2fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "8f0050c0-0912-480d-a344-5dfd4ba6ef0f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheaders75865652/javapathcreatedirheaders154081d12e07c21e1743c7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15d237ab-5828-4cfa-a8b9-08716d3f82cd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:07 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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEADA5AD0AC", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:07 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc704e3d-e01e-007c-6fd3-90d34f000000", + "x-ms-client-request-id" : "15d237ab-5828-4cfa-a8b9-08716d3f82cd", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5eca48a2-73c9-4f82-95ee-9f62d48e4aa8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6621e0-a01e-0034-59d3-90e1d2000000", + "Body" : "jtfscreatedirheadersjtfscreatedirheaders0filesystemapitestcreatedirheaders75865652Fri, 01 Nov 2019 16:45:07 GMT\"0x8D75EEADA517F1D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "5eca48a2-73c9-4f82-95ee-9f62d48e4aa8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirheaders0filesystemapitestcreatedirheaders75865652?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "799620f5-823c-41b2-bbeb-f2c91f79dc87" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704e56-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "799620f5-823c-41b2-bbeb-f2c91f79dc87" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirheaders0filesystemapitestcreatedirheaders75865652", "javapathcreatedirheaders154081d12e07c21e1743c7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmetadata[0].json new file mode 100644 index 0000000000000..bdb3521936186 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmetadata[0].json @@ -0,0 +1,117 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmetadata052681e54a1c6754374064ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "903d3c2b-7971-40e1-a8a8-44a2916945e9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA79F601", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662216-a01e-0034-0ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "903d3c2b-7971-40e1-a8a8-44a2916945e9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirmetadata052681e54a1c6754374064ba/javapathcreatedirmetadata1666653768ee6346b84aeb?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a03a83b-8a57-4317-a54a-6cdf3299086f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADA8382E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0243-801f-00ab-30d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "1a03a83b-8a57-4317-a54a-6cdf3299086f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmetadata052681e54a1c6754374064ba/javapathcreatedirmetadata1666653768ee6346b84aeb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e626566a-1f4d-4de9-b17a-7c1eff530d2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:07 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:07 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", + "ETag" : "0x8D75EEADA8382E6", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:07 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc704e79-e01e-007c-23d3-90d34f000000", + "x-ms-client-request-id" : "e626566a-1f4d-4de9-b17a-7c1eff530d2b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "533a986a-511f-42a3-916d-115bcf6042c7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66226a-a01e-0034-58d3-90e1d2000000", + "Body" : "jtfscreatedirmetadatajtfscreatedirmetadata052681e54a1c6754374064baFri, 01 Nov 2019 16:45:07 GMT\"0x8D75EEADA79F601\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "533a986a-511f-42a3-916d-115bcf6042c7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmetadata052681e54a1c6754374064ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46438fa1-6421-42d0-bfcb-b6e346362903" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704e8c-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "46438fa1-6421-42d0-bfcb-b6e346362903" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirmetadata052681e54a1c6754374064ba", "javapathcreatedirmetadata1666653768ee6346b84aeb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmetadata[1].json new file mode 100644 index 0000000000000..d9fd4d4e24457 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmetadata[1].json @@ -0,0 +1,119 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmetadata088304432b5440304241c295?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff7683d5-1375-4ac9-8e16-317c54fd0b90" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADAA86161", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6622a6-a01e-0034-0bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "ff7683d5-1375-4ac9-8e16-317c54fd0b90" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirmetadata088304432b5440304241c295/javapathcreatedirmetadata1140550194d852411847d9?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c9cc4fc-2d8e-4769-a77a-ae3b9a4b9127" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADAB1EC7B", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0244-801f-00ab-31d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "1c9cc4fc-2d8e-4769-a77a-ae3b9a4b9127" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmetadata088304432b5440304241c295/javapathcreatedirmetadata1140550194d852411847d9", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e8bfb5a-bc73-47d2-9586-56570b1c5c56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-meta-foo" : "bar", + "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", + "ETag" : "0x8D75EEADAB1EC7B", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:08 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc704eb2-e01e-007c-53d3-90d34f000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "5e8bfb5a-bc73-47d2-9586-56570b1c5c56", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1765af00-8e28-46dc-aa4f-33ea0c4a0593" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6622f5-a01e-0034-58d3-90e1d2000000", + "Body" : "jtfscreatedirmetadatajtfscreatedirmetadata088304432b5440304241c295Fri, 01 Nov 2019 16:45:08 GMT\"0x8D75EEADAA86161\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "1765af00-8e28-46dc-aa4f-33ea0c4a0593", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmetadata088304432b5440304241c295?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "927c87be-706b-4c82-8a77-59a1c87e1d2e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704eca-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:07 GMT", + "x-ms-client-request-id" : "927c87be-706b-4c82-8a77-59a1c87e1d2e" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirmetadata088304432b5440304241c295", "javapathcreatedirmetadata1140550194d852411847d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmin.json new file mode 100644 index 0000000000000..db1675e397018 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirmin.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmin0filesystemapitestcreatedirminfd86947396c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88894af9-649b-47b3-9123-e1c2dfb50a61" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD9BDD07A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704d1d-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "88894af9-649b-47b3-9123-e1c2dfb50a61" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirmin0filesystemapitestcreatedirminfd86947396c2/javapathcreatedirmin1filesystemapitestcreatedirminfd808762a8?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ac1408c-6711-4f09-98b7-fca0ce3b2ed3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD9C732F0", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e023e-801f-00ab-2bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "0ac1408c-6711-4f09-98b7-fca0ce3b2ed3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2331797b-a711-42c7-97fe-13dc4e6fb666" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661fb1-a01e-0034-67d3-90e1d2000000", + "Body" : "jtfscreatedirminjtfscreatedirmin0filesystemapitestcreatedirminfd86947396c2Fri, 01 Nov 2019 16:45:06 GMT\"0x8D75EEAD9BDD07A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "2331797b-a711-42c7-97fe-13dc4e6fb666", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirmin0filesystemapitestcreatedirminfd86947396c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e193f36-8fdb-4e5b-a283-a6bb05c5ac74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704d4b-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "0e193f36-8fdb-4e5b-a283-a6bb05c5ac74" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirmin0filesystemapitestcreatedirminfd86947396c2", "javapathcreatedirmin1filesystemapitestcreatedirminfd808762a8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirpermissionsandumask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirpermissionsandumask.json new file mode 100644 index 0000000000000..29c64588bfa3d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatedirpermissionsandumask.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirpermissionsandumask098120ebd712a00a94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d7dc3c3-454d-457e-8830-d5593cbfbdc5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADCCD9984", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705283-e01e-007c-42d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "9d7dc3c3-454d-457e-8830-d5593cbfbdc5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatedirpermissionsandumask098120ebd712a00a94/javapathcreatedirpermissionsandumask1151079c8d21f749?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b9120da2-3cb2-4f3f-a08b-b34544c486fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADCD701A3", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e025c-801f-00ab-48d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "b9120da2-3cb2-4f3f-a08b-b34544c486fa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatedirpermissionsandumask&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "47e500a0-8afd-4b24-8353-b902231fca04" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662a5b-a01e-0034-0ed3-90e1d2000000", + "Body" : "jtfscreatedirpermissionsandumaskjtfscreatedirpermissionsandumask098120ebd712a00a94Fri, 01 Nov 2019 16:45:11 GMT\"0x8D75EEADCCD9984\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "47e500a0-8afd-4b24-8353-b902231fca04", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatedirpermissionsandumask098120ebd712a00a94?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff4f993d-ed25-41b7-9881-72c8f2bb00f8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7052ab-e01e-007c-62d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "ff4f993d-ed25-41b7-9881-72c8f2bb00f8" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatedirpermissionsandumask098120ebd712a00a94", "javapathcreatedirpermissionsandumask1151079c8d21f749" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreateerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreateerror.json new file mode 100644 index 0000000000000..a1500c288b5ae --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreateerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0filesystemapitestcreateerror86a823064e8eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9714360-5f0e-4a3f-adc1-89a2a5078e45" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACFAF37C3", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7037d5-e01e-007c-59d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "c9714360-5f0e-4a3f-adc1-89a2a5078e45" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0filesystemapitestcreateerror86a823064e8eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d16ec339-443a-4832-ba1e-cf3478b861fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerAlreadyExists", + "retry-after" : "0", + "Content-Length" : "230", + "StatusCode" : "409", + "x-ms-request-id" : "3a65ff51-a01e-0034-56d3-90e1d2000000", + "Body" : "ContainerAlreadyExistsThe specified container already exists.\nRequestId:3a65ff51-a01e-0034-56d3-90e1d2000000\nTime:2019-11-01T16:44:49.6510988Z", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "d16ec339-443a-4832-ba1e-cf3478b861fa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreateerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2331b79-2503-405c-ba9f-a7f5d7cb7d0f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7037f2-e01e-007c-75d3-90d34f000000", + "Body" : "jtfscreateerrorjtfscreateerror0filesystemapitestcreateerror86a823064e8ebFri, 01 Nov 2019 16:44:49 GMT\"0x8D75EEACFAF37C3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "f2331b79-2503-405c-ba9f-a7f5d7cb7d0f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreateerror0filesystemapitestcreateerror86a823064e8eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ecb77fff-1bf9-4b55-85bf-47e6ac4b6596" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ff71-a01e-0034-73d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "ecb77fff-1bf9-4b55-85bf-47e6ac4b6596" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreateerror0filesystemapitestcreateerror86a823064e8eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[0].json new file mode 100644 index 0000000000000..7a26b707c1e8b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[0].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac7bd19848e84c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1908fc9-8b1f-4d4f-96e1-7afab477f9e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD523EC21", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7041a0-e01e-007c-02d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "e1908fc9-8b1f-4d4f-96e1-7afab477f9e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac7bd19848e84c/javapathcreatefileac1filesystemapitestcreatefileac7bd95499b7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "256c7704-97f7-4abc-aefd-5b30d128965b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD54F61C0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e020a-801f-00ab-78d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "256c7704-97f7-4abc-aefd-5b30d128965b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac7bd19848e84c/javapathcreatefileac1filesystemapitestcreatefileac7bd95499b7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a88e7c0-1f4f-4260-9928-bd50c651c86f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5578770", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e020b-801f-00ab-79d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "7a88e7c0-1f4f-4260-9928-bd50c651c86f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a25f4ed-095d-4494-8a07-08167c815774" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6610df-a01e-0034-0fd3-90e1d2000000", + "Body" : "jtfscreatefileacjtfscreatefileac0filesystemapitestcreatefileac7bd19848e84cFri, 01 Nov 2019 16:44:58 GMT\"0x8D75EEAD523EC21\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "9a25f4ed-095d-4494-8a07-08167c815774", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac7bd19848e84c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b61415b3-06bc-442a-a915-588dbf2e2494" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704232-e01e-007c-06d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "b61415b3-06bc-442a-a915-588dbf2e2494" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0filesystemapitestcreatefileac7bd19848e84c", "javapathcreatefileac1filesystemapitestcreatefileac7bd95499b7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[1].json new file mode 100644 index 0000000000000..ac6c80d1a70b5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[1].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac99092479aad4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38d6f6e4-fa24-4289-85f8-1362aa0c45e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD571D136", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661117-a01e-0034-44d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "38d6f6e4-fa24-4289-85f8-1362aa0c45e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac99092479aad4/javapathcreatefileac1filesystemapitestcreatefileac9908057505?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "503f3e30-8b88-4dd2-b718-e508988c5cbd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD57C2C90", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e020c-801f-00ab-7ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "503f3e30-8b88-4dd2-b718-e508988c5cbd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac99092479aad4/javapathcreatefileac1filesystemapitestcreatefileac9908057505?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a0e8fb4-57e4-4efb-b18f-250f7acf0559" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5843C91", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e020d-801f-00ab-7bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "1a0e8fb4-57e4-4efb-b18f-250f7acf0559" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "401a7a80-87c7-41eb-9074-69c2fb544444" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704282-e01e-007c-4fd3-90d34f000000", + "Body" : "jtfscreatefileacjtfscreatefileac0filesystemapitestcreatefileac99092479aad4Fri, 01 Nov 2019 16:44:59 GMT\"0x8D75EEAD571D136\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "401a7a80-87c7-41eb-9074-69c2fb544444", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac99092479aad4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d164dce2-0a05-4d65-9032-f31c7b54f368" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66119d-a01e-0034-3fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "d164dce2-0a05-4d65-9032-f31c7b54f368" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0filesystemapitestcreatefileac99092479aad4", "javapathcreatefileac1filesystemapitestcreatefileac9908057505" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[2].json new file mode 100644 index 0000000000000..253ff4e62259c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[2].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileacc1e3345922ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01e92b36-728a-42e0-9b69-ff664201425f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD59E624E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7042ad-e01e-007c-70d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "01e92b36-728a-42e0-9b69-ff664201425f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileacc1e3345922ab/javapathcreatefileac1filesystemapitestcreatefileacc1e690079f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "787dbd00-9a96-49cb-a7d9-fb444b2bac1d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5A816C5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e020e-801f-00ab-7cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "787dbd00-9a96-49cb-a7d9-fb444b2bac1d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileacc1e3345922ab/javapathcreatefileac1filesystemapitestcreatefileacc1e690079f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26f9aeee-c213-4c03-8a50-db7b1c2d7a2c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5B00C72", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e020f-801f-00ab-7dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "26f9aeee-c213-4c03-8a50-db7b1c2d7a2c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b5782aa9-d12d-4651-991c-d7a0cbff1173" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66125a-a01e-0034-6bd3-90e1d2000000", + "Body" : "jtfscreatefileacjtfscreatefileac0filesystemapitestcreatefileacc1e3345922abFri, 01 Nov 2019 16:44:59 GMT\"0x8D75EEAD59E624E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "b5782aa9-d12d-4651-991c-d7a0cbff1173", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileacc1e3345922ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea518d42-78ea-41fd-8f4f-a72552c8eb7d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7042de-e01e-007c-1cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "ea518d42-78ea-41fd-8f4f-a72552c8eb7d" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0filesystemapitestcreatefileacc1e3345922ab", "javapathcreatefileac1filesystemapitestcreatefileacc1e690079f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[3].json new file mode 100644 index 0000000000000..51b0daffd6368 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[3].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac8a5965005477?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc760da9-6554-4c88-a00c-daa329e7b50b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5C901A8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6612b2-a01e-0034-3cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "cc760da9-6554-4c88-a00c-daa329e7b50b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac8a5965005477/javapathcreatefileac1filesystemapitestcreatefileac8a50442889?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80071f0a-b6ef-436a-9404-9ae19ba2ea3e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5D2EF48", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0210-801f-00ab-7ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "80071f0a-b6ef-436a-9404-9ae19ba2ea3e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac8a5965005477/javapathcreatefileac1filesystemapitestcreatefileac8a50442889", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f0f3e08-90ae-49e7-bf6c-9d272f84bdbb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:59 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", + "ETag" : "0x8D75EEAD5D2EF48", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:59 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc704329-e01e-007c-5ad3-90d34f000000", + "x-ms-client-request-id" : "4f0f3e08-90ae-49e7-bf6c-9d272f84bdbb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac8a5965005477/javapathcreatefileac1filesystemapitestcreatefileac8a50442889?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "184516f1-a362-4634-a5a8-3b43870e1113" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5E2F0A2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0211-801f-00ab-7fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "184516f1-a362-4634-a5a8-3b43870e1113" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b67fb3b-1420-4a65-8c37-163ac9eeaf7f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66132e-a01e-0034-2bd3-90e1d2000000", + "Body" : "jtfscreatefileacjtfscreatefileac0filesystemapitestcreatefileac8a5965005477Fri, 01 Nov 2019 16:44:59 GMT\"0x8D75EEAD5C901A8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "8b67fb3b-1420-4a65-8c37-163ac9eeaf7f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac8a5965005477?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24006c42-c9a9-4b85-bda4-117184ca6199" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704392-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "24006c42-c9a9-4b85-bda4-117184ca6199" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0filesystemapitestcreatefileac8a5965005477", "javapathcreatefileac1filesystemapitestcreatefileac8a50442889" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[4].json new file mode 100644 index 0000000000000..c8492eaa92253 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[4].json @@ -0,0 +1,107 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac01f200950671?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26fc6832-9593-42ec-83cd-4e2fd1a60968" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD5FC01C0", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661364-a01e-0034-57d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "26fc6832-9593-42ec-83cd-4e2fd1a60968" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac01f200950671/javapathcreatefileac1filesystemapitestcreatefileac01f08258e3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1afcdc7-d3df-4ade-abe7-209f44d465ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD607D60E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0213-801f-00ab-80d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "a1afcdc7-d3df-4ade-abe7-209f44d465ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac01f200950671/javapathcreatefileac1filesystemapitestcreatefileac01f08258e3?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "00b2c4b8-ad30-47ad-8493-cdc56139ce2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD610140C", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0214-801f-00ab-01d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "00b2c4b8-ad30-47ad-8493-cdc56139ce2b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db88a969-dde9-4875-a8eb-2fcef5c70d66" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7043e2-e01e-007c-04d3-90d34f000000", + "Body" : "jtfscreatefileacjtfscreatefileac0filesystemapitestcreatefileac01f200950671Fri, 01 Nov 2019 16:45:00 GMT\"0x8D75EEAD5FC01C0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "db88a969-dde9-4875-a8eb-2fcef5c70d66", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac01f200950671?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b817a09-6429-48d9-862c-9c78532161fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6613d9-a01e-0034-3ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "3b817a09-6429-48d9-862c-9c78532161fe" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0filesystemapitestcreatefileac01f200950671", "javapathcreatefileac1filesystemapitestcreatefileac01f08258e3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[5].json new file mode 100644 index 0000000000000..88ba3f510a659 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileac[5].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac496877825a99?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a224398-4c9b-4e1e-bc90-dbc70d58d30d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD62B7976", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704414-e01e-007c-2fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "7a224398-4c9b-4e1e-bc90-dbc70d58d30d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac496877825a99/javapathcreatefileac1filesystemapitestcreatefileac4961673783?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d84b65b-38e1-4075-a49d-247a444151e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD63534C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0215-801f-00ab-02d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:59 GMT", + "x-ms-client-request-id" : "8d84b65b-38e1-4075-a49d-247a444151e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac496877825a99/javapathcreatefileac1filesystemapitestcreatefileac4961673783?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2be352a8-186f-433b-a379-2cfa55571d12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD63534C2", + "x-ms-lease-id" : "0d72282f-09b6-4201-bacc-6e783df032d7", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661434-a01e-0034-09d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "2be352a8-186f-433b-a379-2cfa55571d12" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac496877825a99/javapathcreatefileac1filesystemapitestcreatefileac4961673783?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1d5f4f9-4b37-44d4-bc1d-c3e5283ef071" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD6450F05", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0216-801f-00ab-03d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "e1d5f4f9-4b37-44d4-bc1d-c3e5283ef071" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0910ad3c-51aa-4be5-b65d-fd82f6287f02" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704455-e01e-007c-67d3-90d34f000000", + "Body" : "jtfscreatefileacjtfscreatefileac0filesystemapitestcreatefileac496877825a99Fri, 01 Nov 2019 16:45:00 GMT\"0x8D75EEAD62B7976\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "0910ad3c-51aa-4be5-b65d-fd82f6287f02", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileac0filesystemapitestcreatefileac496877825a99?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4092adbc-a9dc-43c8-9382-a1e8e03aa492" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661477-a01e-0034-47d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "4092adbc-a9dc-43c8-9382-a1e8e03aa492" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileac0filesystemapitestcreatefileac496877825a99", "javapathcreatefileac1filesystemapitestcreatefileac4961673783" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[0].json new file mode 100644 index 0000000000000..261f2b057e384 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfailba980545?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce6489b4-2be6-49c7-a746-23a252508438" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD660EAFB", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704482-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "ce6489b4-2be6-49c7-a746-23a252508438" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfailba980545/javapathcreatefileacfail1951566f884cfcd6044464?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ee37342-09f6-4b56-9398-5bae07cb0c3e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD66AB024", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0217-801f-00ab-04d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "7ee37342-09f6-4b56-9398-5bae07cb0c3e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfailba980545/javapathcreatefileacfail1951566f884cfcd6044464?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dea35bd0-3edc-4d66-a0fd-56c00c796897" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0218-801f-00ab-05d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0218-801f-00ab-05d3-909968000000\\nTime:2019-11-01T16:45:00.9397894Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "dea35bd0-3edc-4d66-a0fd-56c00c796897", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "737f31ab-dff3-40ce-b6b3-bba0cf63999c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6614fe-a01e-0034-46d3-90e1d2000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0filesystemapitestcreatefileacfailba980545Fri, 01 Nov 2019 16:45:00 GMT\"0x8D75EEAD660EAFB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "737f31ab-dff3-40ce-b6b3-bba0cf63999c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfailba980545?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c13dd44-5658-41fb-960d-70a542900653" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7044c9-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "8c13dd44-5658-41fb-960d-70a542900653" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0filesystemapitestcreatefileacfailba980545", "javapathcreatefileacfail1951566f884cfcd6044464" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[1].json new file mode 100644 index 0000000000000..4236755b3bbf0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail67724933?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ed47407-0c38-488a-ad0f-7467a8b84c49" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD68B3CAA", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661522-a01e-0034-67d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "2ed47407-0c38-488a-ad0f-7467a8b84c49" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail67724933/javapathcreatefileacfail116180afb8178346e1427d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a2f2177-34d9-45e4-bf4d-e83e74dde669" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD695641A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0219-801f-00ab-06d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "2a2f2177-34d9-45e4-bf4d-e83e74dde669" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail67724933/javapathcreatefileacfail116180afb8178346e1427d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8cde297-3ddb-4245-a301-a9966ad3a863" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e021a-801f-00ab-07d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e021a-801f-00ab-07d3-909968000000\\nTime:2019-11-01T16:45:01.2239928Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "b8cde297-3ddb-4245-a301-a9966ad3a863", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ea923e42-4423-43d8-848e-beddf34e6e69" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70452d-e01e-007c-32d3-90d34f000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0filesystemapitestcreatefileacfail67724933Fri, 01 Nov 2019 16:45:01 GMT\"0x8D75EEAD68B3CAA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "ea923e42-4423-43d8-848e-beddf34e6e69", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail67724933?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "677cb362-357b-4595-b42b-e6657b0f79fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66157c-a01e-0034-34d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "677cb362-357b-4595-b42b-e6657b0f79fd" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0filesystemapitestcreatefileacfail67724933", "javapathcreatefileacfail116180afb8178346e1427d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[2].json new file mode 100644 index 0000000000000..9f7339b64f2e7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail76557957?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "def9d69f-a5fa-4715-ac8c-1356f16450ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD6B81B5D", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704546-e01e-007c-46d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "def9d69f-a5fa-4715-ac8c-1356f16450ed" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail76557957/javapathcreatefileacfail17253157aedc3e5a2f40b5?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d61d8276-20ab-4d8e-b5b0-45868fe62b41" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD6C4DEA5", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e021b-801f-00ab-08d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "d61d8276-20ab-4d8e-b5b0-45868fe62b41" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail76557957/javapathcreatefileacfail17253157aedc3e5a2f40b5?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adb08b84-4c6b-403d-a33d-7aca6b7fb75d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e021c-801f-00ab-09d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e021c-801f-00ab-09d3-909968000000\\nTime:2019-11-01T16:45:01.5252085Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:00 GMT", + "x-ms-client-request-id" : "adb08b84-4c6b-403d-a33d-7aca6b7fb75d", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dfe20d14-468f-41fd-8739-4edb8d9f69ad" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6615e7-a01e-0034-12d3-90e1d2000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0filesystemapitestcreatefileacfail76557957Fri, 01 Nov 2019 16:45:01 GMT\"0x8D75EEAD6B81B5D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "dfe20d14-468f-41fd-8739-4edb8d9f69ad", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail76557957?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd375253-96a7-4e1c-9147-c8308bf32ae5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70457f-e01e-007c-7bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "dd375253-96a7-4e1c-9147-c8308bf32ae5" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0filesystemapitestcreatefileacfail76557957", "javapathcreatefileacfail17253157aedc3e5a2f40b5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[3].json new file mode 100644 index 0000000000000..2740be56f0359 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b05036b-d161-4c0f-aabd-189a512230f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD6E2BB77", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66161f-a01e-0034-42d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "4b05036b-d161-4c0f-aabd-189a512230f4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772/javapathcreatefileacfail18967687b1ac92889c47fb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f301299-609a-41d9-8a4a-6f2d5b6f0a0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD6ED09B6", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e021d-801f-00ab-0ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "8f301299-609a-41d9-8a4a-6f2d5b6f0a0f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772/javapathcreatefileacfail18967687b1ac92889c47fb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06058e0a-6d25-4b2d-af12-38cc22353fbf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:01 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:01 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", + "ETag" : "0x8D75EEAD6ED09B6", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:01 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc7045ca-e01e-007c-41d3-90d34f000000", + "x-ms-client-request-id" : "06058e0a-6d25-4b2d-af12-38cc22353fbf", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772/javapathcreatefileacfail18967687b1ac92889c47fb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bea05195-4535-46b1-9c27-2d243e066899" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e021e-801f-00ab-0bd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e021e-801f-00ab-0bd3-909968000000\\nTime:2019-11-01T16:45:01.8434361Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "bea05195-4535-46b1-9c27-2d243e066899", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5847aa5d-db26-4317-8936-c7528e38904f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66169f-a01e-0034-33d3-90e1d2000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772Fri, 01 Nov 2019 16:45:01 GMT\"0x8D75EEAD6E2BB77\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "5847aa5d-db26-4317-8936-c7528e38904f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "672120b5-c8b2-4eab-aaa5-bed9cb096e98" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7045fc-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "672120b5-c8b2-4eab-aaa5-bed9cb096e98" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0filesystemapitestcreatefileacfail0d830772", "javapathcreatefileacfail18967687b1ac92889c47fb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[4].json new file mode 100644 index 0000000000000..cf3487596d63a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail80872673?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7173bc2d-c857-4b44-9675-861b1deb5463" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7145BD3", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6616cc-a01e-0034-5ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "7173bc2d-c857-4b44-9675-861b1deb5463" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail80872673/javapathcreatefileacfail1741776477dc288fcf4e9a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a12a03b6-7721-4bab-bfe4-861cae692c5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD71E0137", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e021f-801f-00ab-0cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "a12a03b6-7721-4bab-bfe4-861cae692c5f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail80872673/javapathcreatefileacfail1741776477dc288fcf4e9a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33f6ca62-68d2-49bb-b6ca-2abfaa27c3dc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD71E0137", + "x-ms-lease-id" : "4f622d84-3052-4cd4-ac7f-769d09dce620", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704645-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "33f6ca62-68d2-49bb-b6ca-2abfaa27c3dc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail80872673/javapathcreatefileacfail1741776477dc288fcf4e9a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0c80c2f-bc5b-433e-84f2-759ed0ea454e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0220-801f-00ab-0dd3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e0220-801f-00ab-0dd3-909968000000\\nTime:2019-11-01T16:45:02.1676657Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "c0c80c2f-bc5b-433e-84f2-759ed0ea454e", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fad5001a-2c44-4d1a-834a-af72edcf63ca" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661758-a01e-0034-61d3-90e1d2000000", + "Body" : "jtfscreatefileacfailjtfscreatefileacfail0filesystemapitestcreatefileacfail80872673Fri, 01 Nov 2019 16:45:02 GMT\"0x8D75EEAD7145BD3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "fad5001a-2c44-4d1a-834a-af72edcf63ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileacfail0filesystemapitestcreatefileacfail80872673?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "420edd78-1558-4e45-b207-dac3da0fa4e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704686-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "420edd78-1558-4e45-b207-dac3da0fa4e2" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileacfail0filesystemapitestcreatefileacfail80872673", "javapathcreatefileacfail1741776477dc288fcf4e9a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefiledefaults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefiledefaults.json new file mode 100644 index 0000000000000..4e2f1fe0a3847 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefiledefaults.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefiledefaults0269788a3779cc01244cc48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d475741-8629-4daa-b044-269d10380191" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD420F374", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703f70-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "1d475741-8629-4daa-b044-269d10380191" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefiledefaults0269788a3779cc01244cc48/javapathcreatefiledefaults114659ce55a9bf7ce7417?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7dd6602a-0101-46e4-9ba9-e110fc4651b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD42B207C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0204-801f-00ab-72d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "7dd6602a-0101-46e4-9ba9-e110fc4651b4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefiledefaults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15f6dbee-534e-42cd-851c-696a1b837582" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660c7d-a01e-0034-17d3-90e1d2000000", + "Body" : "jtfscreatefiledefaultsjtfscreatefiledefaults0269788a3779cc01244cc48Fri, 01 Nov 2019 16:44:57 GMT\"0x8D75EEAD420F374\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "15f6dbee-534e-42cd-851c-696a1b837582", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefiledefaults0269788a3779cc01244cc48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c8596295-faf9-482c-8d81-e7b08d5884d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703fa9-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "c8596295-faf9-482c-8d81-e7b08d5884d8" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefiledefaults0269788a3779cc01244cc48", "javapathcreatefiledefaults114659ce55a9bf7ce7417" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileerror.json new file mode 100644 index 0000000000000..85a12f6c6adda --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileerror0filesystemapitestcreatefileerror07d000887?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42322142-6ec1-4772-8fa5-5448b83b0234" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD44576CA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660ccc-a01e-0034-59d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "42322142-6ec1-4772-8fa5-5448b83b0234" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileerror0filesystemapitestcreatefileerror07d000887/javapathcreatefileerror1176488be4dbdada19465d8?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc9b1c1e-a00c-49ba-bc22-5297241daeea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0205-801f-00ab-73d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0205-801f-00ab-73d3-909968000000\\nTime:2019-11-01T16:44:57.3452164Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "cc9b1c1e-a00c-49ba-bc22-5297241daeea", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74e5baa9-bd86-4209-9fd3-6153e7f773e2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703fe2-e01e-007c-77d3-90d34f000000", + "Body" : "jtfscreatefileerrorjtfscreatefileerror0filesystemapitestcreatefileerror07d000887Fri, 01 Nov 2019 16:44:57 GMT\"0x8D75EEAD44576CA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "74e5baa9-bd86-4209-9fd3-6153e7f773e2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileerror0filesystemapitestcreatefileerror07d000887?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "410bbfc7-0e51-437c-b788-a07b78a31e96" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660d20-a01e-0034-22d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "410bbfc7-0e51-437c-b788-a07b78a31e96" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileerror0filesystemapitestcreatefileerror07d000887", "javapathcreatefileerror1176488be4dbdada19465d8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileheaders[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileheaders[0].json new file mode 100644 index 0000000000000..6c97ad6cc80ce --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileheaders[0].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders00982855fe2b2d73f24395aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65b5db31-ede7-4d2c-9108-2de9ab15a30e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD465D10C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704008-e01e-007c-1ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "65b5db31-ede7-4d2c-9108-2de9ab15a30e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileheaders00982855fe2b2d73f24395aa/javapathcreatefileheaders129682308373093ec94ed7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed284ce0-5d15-4a93-9eab-1a026f154765" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD472EFB5", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0206-801f-00ab-74d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "ed284ce0-5d15-4a93-9eab-1a026f154765" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders00982855fe2b2d73f24395aa/javapathcreatefileheaders129682308373093ec94ed7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "52b2d5ec-8434-44c0-a948-d19b57cb0143" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:57 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", + "ETag" : "0x8D75EEAD472EFB5", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:57 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a660db4-a01e-0034-28d3-90e1d2000000", + "x-ms-client-request-id" : "52b2d5ec-8434-44c0-a948-d19b57cb0143", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0398744-3c9f-4f14-952a-bd2da44dbb2f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704049-e01e-007c-53d3-90d34f000000", + "Body" : "jtfscreatefileheadersjtfscreatefileheaders00982855fe2b2d73f24395aaFri, 01 Nov 2019 16:44:57 GMT\"0x8D75EEAD465D10C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "e0398744-3c9f-4f14-952a-bd2da44dbb2f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders00982855fe2b2d73f24395aa?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "05f6389f-75ed-4361-a90b-553a6e27f044" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660dfa-a01e-0034-68d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "05f6389f-75ed-4361-a90b-553a6e27f044" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileheaders00982855fe2b2d73f24395aa", "javapathcreatefileheaders129682308373093ec94ed7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileheaders[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileheaders[1].json new file mode 100644 index 0000000000000..e57c4c9488c48 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefileheaders[1].json @@ -0,0 +1,120 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders0699454615d104492c4f80a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "07683282-ad98-49e6-ae37-cda68e2d8444" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD4924039", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70406b-e01e-007c-72d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "07683282-ad98-49e6-ae37-cda68e2d8444" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefileheaders0699454615d104492c4f80a8/javapathcreatefileheaders110321735f08277d4b4718?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ae24936-8556-4743-82bf-51dcc7bc46e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD49C089F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0207-801f-00ab-75d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "4ae24936-8556-4743-82bf-51dcc7bc46e7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders0699454615d104492c4f80a8/javapathcreatefileheaders110321735f08277d4b4718", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78d472b7-ed47-4088-a0b8-a28608c06696" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:57 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", + "Cache-Control" : "control", + "ETag" : "0x8D75EEAD49C089F", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:57 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a660e5e-a01e-0034-46d3-90e1d2000000", + "x-ms-client-request-id" : "78d472b7-ed47-4088-a0b8-a28608c06696", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefileheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc297bf3-4d35-4ecc-ac98-a8235ed6667e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7040aa-e01e-007c-2ad3-90d34f000000", + "Body" : "jtfscreatefileheadersjtfscreatefileheaders0699454615d104492c4f80a8Fri, 01 Nov 2019 16:44:57 GMT\"0x8D75EEAD4924039\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "dc297bf3-4d35-4ecc-ac98-a8235ed6667e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefileheaders0699454615d104492c4f80a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bef4e9c6-004f-4eb0-9a67-63177a64f74c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660ea2-a01e-0034-01d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "bef4e9c6-004f-4eb0-9a67-63177a64f74c" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefileheaders0699454615d104492c4f80a8", "javapathcreatefileheaders110321735f08277d4b4718" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemetadata[0].json new file mode 100644 index 0000000000000..4a442ded28f1b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemetadata[0].json @@ -0,0 +1,116 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata038795d8f54fd48ac642478?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a02f8477-a6c7-44d4-a814-d84d81294706" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD4BB2C5D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7040c2-e01e-007c-42d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "a02f8477-a6c7-44d4-a814-d84d81294706" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemetadata038795d8f54fd48ac642478/javapathcreatefilemetadata143779c36df2d248ad4c1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "073b81f5-5b5c-455a-ac93-d2379073d637" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD4D0A334", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0208-801f-00ab-76d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "073b81f5-5b5c-455a-ac93-d2379073d637" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata038795d8f54fd48ac642478/javapathcreatefilemetadata143779c36df2d248ad4c1", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86b6e7af-dddb-4b89-aa34-c736b2783719" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:57 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", + "ETag" : "0x8D75EEAD4D0A334", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a660f31-a01e-0034-03d3-90e1d2000000", + "x-ms-client-request-id" : "86b6e7af-dddb-4b89-aa34-c736b2783719", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "411fc704-3e95-456b-9154-c9c08b889e50" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704101-e01e-007c-7ad3-90d34f000000", + "Body" : "jtfscreatefilemetadatajtfscreatefilemetadata038795d8f54fd48ac642478Fri, 01 Nov 2019 16:44:58 GMT\"0x8D75EEAD4BB2C5D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "411fc704-3e95-456b-9154-c9c08b889e50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata038795d8f54fd48ac642478?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee863091-ab02-450b-999d-738d32844337" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660f5c-a01e-0034-2ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "ee863091-ab02-450b-999d-738d32844337" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilemetadata038795d8f54fd48ac642478", "javapathcreatefilemetadata143779c36df2d248ad4c1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemetadata[1].json new file mode 100644 index 0000000000000..43e4b06daf910 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemetadata[1].json @@ -0,0 +1,118 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata07132965c8fac783a04470b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c16450e-d88b-42e8-a02d-e02c42c3538b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD4F29A0A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70411f-e01e-007c-15d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "4c16450e-d88b-42e8-a02d-e02c42c3538b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemetadata07132965c8fac783a04470b/javapathcreatefilemetadata134121c93c58cf5d61440?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b4dd5de-5ca3-4ab5-940b-b2bcb47eac9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD4FD1CD4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0209-801f-00ab-77d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:57 GMT", + "x-ms-client-request-id" : "4b4dd5de-5ca3-4ab5-940b-b2bcb47eac9f" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata07132965c8fac783a04470b/javapathcreatefilemetadata134121c93c58cf5d61440", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0671612f-e8ab-4404-8e58-e94f88f83352" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:58 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D75EEAD4FD1CD4", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:44:58 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a660fba-a01e-0034-02d3-90e1d2000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "0671612f-e8ab-4404-8e58-e94f88f83352", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "43968ba6-4420-4317-b7e7-95f55fc92388" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704163-e01e-007c-4cd3-90d34f000000", + "Body" : "jtfscreatefilemetadatajtfscreatefilemetadata07132965c8fac783a04470bFri, 01 Nov 2019 16:44:58 GMT\"0x8D75EEAD4F29A0A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "43968ba6-4420-4317-b7e7-95f55fc92388", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemetadata07132965c8fac783a04470b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3720f61-ff82-480b-bf6d-3516fece1fbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660feb-a01e-0034-2fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:58 GMT", + "x-ms-client-request-id" : "e3720f61-ff82-480b-bf6d-3516fece1fbe" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilemetadata07132965c8fac783a04470b", "javapathcreatefilemetadata134121c93c58cf5d61440" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemin.json new file mode 100644 index 0000000000000..d2dad2959b87a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilemin.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemin0filesystemapitestcreatefilemind8723767a75?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ebcb728-4c92-470e-9e63-4ca81b7965ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD3F6FA72", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660bc2-a01e-0034-6fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "9ebcb728-4c92-470e-9e63-4ca81b7965ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilemin0filesystemapitestcreatefilemind8723767a75/javapathcreatefilemin1filesystemapitestcreatefilemind8764509a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0aba7080-2593-4f01-aa3c-53c776fa6949" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD408A1EA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0201-801f-00ab-6fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "0aba7080-2593-4f01-aa3c-53c776fa6949" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45662d5e-cd14-49d6-bbe5-dd9f354c2f22" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703f4a-e01e-007c-6ad3-90d34f000000", + "Body" : "jtfscreatefileminjtfscreatefilemin0filesystemapitestcreatefilemind8723767a75Fri, 01 Nov 2019 16:44:56 GMT\"0x8D75EEAD3F6FA72\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "45662d5e-cd14-49d6-bbe5-dd9f354c2f22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilemin0filesystemapitestcreatefilemind8723767a75?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9fa38e9-4303-48e8-84b1-281f46f9373e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660c38-a01e-0034-57d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "c9fa38e9-4303-48e8-84b1-281f46f9373e" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilemin0filesystemapitestcreatefilemind8723767a75", "javapathcreatefilemin1filesystemapitestcreatefilemind8764509a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilepermissionsandumask.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilepermissionsandumask.json new file mode 100644 index 0000000000000..366bbabde4247 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatefilepermissionsandumask.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilepermissionsandumask024900cefcf1514688?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9aac221b-4787-431c-b3b2-7eb38a7ed08f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7484685", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66178f-a01e-0034-14d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "9aac221b-4787-431c-b3b2-7eb38a7ed08f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfscreatefilepermissionsandumask024900cefcf1514688/javapathcreatefilepermissionsandumask118398dd438f3f33?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d25f0332-7a23-47ba-9313-a1dfe2ebf61e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD75483F1", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0221-801f-00ab-0ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:01 GMT", + "x-ms-client-request-id" : "d25f0332-7a23-47ba-9313-a1dfe2ebf61e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatefilepermissionsandumask&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9f21acb-fc85-4aa0-b000-414eb4da6bee" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7046cd-e01e-007c-2cd3-90d34f000000", + "Body" : "jtfscreatefilepermissionsandumaskjtfscreatefilepermissionsandumask024900cefcf1514688Fri, 01 Nov 2019 16:45:02 GMT\"0x8D75EEAD7484685\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "a9f21acb-fc85-4aa0-b000-414eb4da6bee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatefilepermissionsandumask024900cefcf1514688?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c0ad6e4-2b17-4f5c-b4c8-d4133302dd07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6617cd-a01e-0034-4dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "6c0ad6e4-2b17-4f5c-b4c8-d4133302dd07" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatefilepermissionsandumask024900cefcf1514688", "javapathcreatefilepermissionsandumask118398dd438f3f33" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[0].json new file mode 100644 index 0000000000000..50e04de386fde --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[0].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0filesystemapitestcreatemetadata794038975d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4b7df734-aa0c-40ce-b1ea-0024616afee2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACE2DF7A8", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7034df-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "4b7df734-aa0c-40ce-b1ea-0024616afee2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata7941079157?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4115806-49db-4ed7-b0b5-766572439f2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACE372501", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65fa28-a01e-0034-36d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "a4115806-49db-4ed7-b0b5-766572439f2a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata7941079157?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6098a8f0-41d8-4a80-a54b-8fdfc5cb1592" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:47 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACE372501", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc703508-e01e-007c-63d3-90d34f000000", + "x-ms-client-request-id" : "6098a8f0-41d8-4a80-a54b-8fdfc5cb1592" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26147133-111e-4e6e-9151-6fa41bd11a94" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65fa60-a01e-0034-66d3-90e1d2000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0filesystemapitestcreatemetadata794038975dFri, 01 Nov 2019 16:44:47 GMT\"0x8D75EEACE2DF7A8\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatemetadata1filesystemapitestcreatemetadata7941079157Fri, 01 Nov 2019 16:44:47 GMT\"0x8D75EEACE372501\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "26147133-111e-4e6e-9151-6fa41bd11a94", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0filesystemapitestcreatemetadata794038975d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4faa8e43-3d15-4aa7-9321-24c17ca4e1a0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70352e-e01e-007c-06d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "4faa8e43-3d15-4aa7-9321-24c17ca4e1a0" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata7941079157?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c17bb23d-2589-4c72-b97f-bdd67ec9316e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65fa99-a01e-0034-16d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "c17bb23d-2589-4c72-b97f-bdd67ec9316e" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0filesystemapitestcreatemetadata794038975d", "jtfscreatemetadata1filesystemapitestcreatemetadata7941079157" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[1].json new file mode 100644 index 0000000000000..76f7bbc1da351 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[1].json @@ -0,0 +1,134 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0filesystemapitestcreatemetadata124662109c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b330305-c339-41eb-823a-345dff0b10a9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACE62CCCD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703562-e01e-007c-31d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "7b330305-c339-41eb-823a-345dff0b10a9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata12449136dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c70b1178-1c72-41a3-a67a-d89bc7391af3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACE728B0D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65facc-a01e-0034-44d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "c70b1178-1c72-41a3-a67a-d89bc7391af3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata12449136dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0c5f6644-8f2b-4ab9-8dd9-8858a91aa182" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:47 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-meta-foo" : "bar", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACE728B0D", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc703595-e01e-007c-62d3-90d34f000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "0c5f6644-8f2b-4ab9-8dd9-8858a91aa182" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e171a0d-9c6f-448a-8855-7f8aefce8ed6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65fb75-a01e-0034-5bd3-90e1d2000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0filesystemapitestcreatemetadata124662109cFri, 01 Nov 2019 16:44:47 GMT\"0x8D75EEACE62CCCD\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatemetadata1filesystemapitestcreatemetadata12449136ddFri, 01 Nov 2019 16:44:47 GMT\"0x8D75EEACE728B0D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "8e171a0d-9c6f-448a-8855-7f8aefce8ed6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0filesystemapitestcreatemetadata124662109c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ddf74ec-ba87-4c3d-82ea-d7abc60c653e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7035ee-e01e-007c-30d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "8ddf74ec-ba87-4c3d-82ea-d7abc60c653e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata12449136dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9683163-1631-4771-9252-026669a9c14a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65fbc6-a01e-0034-1ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "f9683163-1631-4771-9252-026669a9c14a" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0filesystemapitestcreatemetadata124662109c", "jtfscreatemetadata1filesystemapitestcreatemetadata12449136dd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[2].json new file mode 100644 index 0000000000000..3f2b998c95f33 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemetadata[2].json @@ -0,0 +1,134 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0filesystemapitestcreatemetadata54031355a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c51437fd-563d-4a3c-95d3-a9b3611ff010" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACED663ED", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70362f-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "c51437fd-563d-4a3c-95d3-a9b3611ff010" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata540965554e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c82d7e6-d0f7-4db5-ab9f-dab2386f2f39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACEDF1C1C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65fc30-a01e-0034-7fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "3c82d7e6-d0f7-4db5-ab9f-dab2386f2f39" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata540965554e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d05278fa-f780-46cb-98fa-65af64d630f8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-meta-testFoo" : "testBar", + "x-ms-deny-encryption-scope-override" : "false", + "x-ms-meta-testFizz" : "testBuzz", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACEDF1C1C", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc703643-e01e-007c-7dd3-90d34f000000", + "x-ms-client-request-id" : "d05278fa-f780-46cb-98fa-65af64d630f8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b05214c5-4db6-41f0-9790-44b6d405c915" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65fc61-a01e-0034-2ad3-90e1d2000000", + "Body" : "jtfscreatemetadatajtfscreatemetadata0filesystemapitestcreatemetadata54031355a8Fri, 01 Nov 2019 16:44:48 GMT\"0x8D75EEACED663ED\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatemetadata1filesystemapitestcreatemetadata540965554eFri, 01 Nov 2019 16:44:48 GMT\"0x8D75EEACEDF1C1C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:47 GMT", + "x-ms-client-request-id" : "b05214c5-4db6-41f0-9790-44b6d405c915", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata0filesystemapitestcreatemetadata54031355a8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cea8a74f-867c-403d-88f3-9cae15844324" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703651-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "cea8a74f-867c-403d-88f3-9cae15844324" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemetadata1filesystemapitestcreatemetadata540965554e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b64e8be-5f4a-4f38-9876-e0ed1cee6c99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65fc90-a01e-0034-50d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "3b64e8be-5f4a-4f38-9876-e0ed1cee6c99" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemetadata0filesystemapitestcreatemetadata54031355a8", "jtfscreatemetadata1filesystemapitestcreatemetadata540965554e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemin.json new file mode 100644 index 0000000000000..c6876573eb739 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatemin.json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin0filesystemapitestcreateminf7a072861f90eb3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d90a16fc-2296-4903-8c91-8e1e7454cffe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACDED397E", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703458-e01e-007c-42d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "d90a16fc-2296-4903-8c91-8e1e7454cffe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin1filesystemapitestcreateminf7a75869d15e64d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0a868c4-1bc9-408a-94b3-94ab05ec7dda" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACDF6189F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65f96f-a01e-0034-14d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "c0a868c4-1bc9-408a-94b3-94ab05ec7dda" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin1filesystemapitestcreateminf7a75869d15e64d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "116b9928-0587-4bcb-9387-71decfd5e28b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACDF6189F", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc70347e-e01e-007c-61d3-90d34f000000", + "x-ms-client-request-id" : "116b9928-0587-4bcb-9387-71decfd5e28b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c900909f-71da-4776-ab76-595a5ac1e156" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65f9a9-a01e-0034-4ad3-90e1d2000000", + "Body" : "jtfscreateminjtfscreatemin0filesystemapitestcreateminf7a072861f90eb3Fri, 01 Nov 2019 16:44:46 GMT\"0x8D75EEACDED397E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatemin1filesystemapitestcreateminf7a75869d15e64dFri, 01 Nov 2019 16:44:46 GMT\"0x8D75EEACDF6189F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "c900909f-71da-4776-ab76-595a5ac1e156", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin0filesystemapitestcreateminf7a072861f90eb3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04626b18-01a3-4c64-a168-ce2720c61482" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7034a6-e01e-007c-06d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "04626b18-01a3-4c64-a168-ce2720c61482" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatemin1filesystemapitestcreateminf7a75869d15e64d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd38f1fd-cfad-498a-80b0-6e8bcadb29e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65f9c2-a01e-0034-60d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:46 GMT", + "x-ms-client-request-id" : "dd38f1fd-cfad-498a-80b0-6e8bcadb29e3" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatemin0filesystemapitestcreateminf7a072861f90eb3", "jtfscreatemin1filesystemapitestcreateminf7a75869d15e64d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[0].json new file mode 100644 index 0000000000000..5a0c7dd96f297 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[0].json @@ -0,0 +1,133 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess0830870bef0b19aea842549?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "298979b9-1002-430c-883b-4004db940937" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACF0A9CBA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703671-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "298979b9-1002-430c-883b-4004db940937" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess172020fd22172d9a584da2b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a162715b-3a3b-4751-9a87-a440540af304" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACF1C5739", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65fd16-a01e-0034-49d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "a162715b-3a3b-4751-9a87-a440540af304" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess172020fd22172d9a584da2b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d9932e2-ae87-4602-8f24-250745996cc1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACF1C5739", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "blob", + "x-ms-request-id" : "dc70369d-e01e-007c-49d3-90d34f000000", + "x-ms-client-request-id" : "8d9932e2-ae87-4602-8f24-250745996cc1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatepublicaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e687e83a-4f4a-4058-8b06-c52db8dd2b69" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65fd50-a01e-0034-7ed3-90e1d2000000", + "Body" : "jtfscreatepublicaccessjtfscreatepublicaccess0830870bef0b19aea842549Fri, 01 Nov 2019 16:44:48 GMT\"0x8D75EEACF0A9CBA\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatepublicaccess172020fd22172d9a584da2bFri, 01 Nov 2019 16:44:48 GMT\"0x8D75EEACF1C5739\"unlockedavailableblob$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "e687e83a-4f4a-4058-8b06-c52db8dd2b69", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess0830870bef0b19aea842549?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee448b2c-727f-4be6-aef5-7153cfe0adc4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7036b6-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "ee448b2c-727f-4be6-aef5-7153cfe0adc4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess172020fd22172d9a584da2b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4ec78975-d85d-4005-b45b-2e37df03f9ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65fd9c-a01e-0034-42d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "4ec78975-d85d-4005-b45b-2e37df03f9ac" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatepublicaccess0830870bef0b19aea842549", "jtfscreatepublicaccess172020fd22172d9a584da2b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[1].json new file mode 100644 index 0000000000000..10cd80c124346 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[1].json @@ -0,0 +1,133 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess0195186afede88deaf4ac5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08c9177c-389d-4836-849b-da658c5a5abb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACF442DAA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7036cd-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "08c9177c-389d-4836-849b-da658c5a5abb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess10193413fd009e7b15400b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf2ca17d-208c-4f3f-a2df-02402314582d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACF4D0CFA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65fddb-a01e-0034-7ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "bf2ca17d-208c-4f3f-a2df-02402314582d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess10193413fd009e7b15400b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32e9cc94-dfac-4068-9083-ac8bc27cac0e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:48 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACF4D0CFA", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-blob-public-access" : "container", + "x-ms-request-id" : "dc7036f9-e01e-007c-1fd3-90d34f000000", + "x-ms-client-request-id" : "32e9cc94-dfac-4068-9083-ac8bc27cac0e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatepublicaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80bcf2ed-dcc8-45d8-98f5-8ee7a0530663" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65fe3c-a01e-0034-59d3-90e1d2000000", + "Body" : "jtfscreatepublicaccessjtfscreatepublicaccess0195186afede88deaf4ac5aFri, 01 Nov 2019 16:44:48 GMT\"0x8D75EEACF442DAA\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatepublicaccess10193413fd009e7b15400b9Fri, 01 Nov 2019 16:44:48 GMT\"0x8D75EEACF4D0CFA\"unlockedavailablecontainer$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "80bcf2ed-dcc8-45d8-98f5-8ee7a0530663", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess0195186afede88deaf4ac5a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b8869d0-9849-4606-a003-5b1b088af9d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc70372c-e01e-007c-47d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "6b8869d0-9849-4606-a003-5b1b088af9d8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess10193413fd009e7b15400b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ccbc9adb-429a-4515-8d0d-8feae02343b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65fe72-a01e-0034-0dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "ccbc9adb-429a-4515-8d0d-8feae02343b1" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatepublicaccess0195186afede88deaf4ac5a", "jtfscreatepublicaccess10193413fd009e7b15400b9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[2].json new file mode 100644 index 0000000000000..861459759bdf0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestcreatepublicaccess[2].json @@ -0,0 +1,132 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess043243cc0c148d02b140fd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "55318787-39dc-4fc1-a159-b72d7702b64c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACF7EA91F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703765-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "55318787-39dc-4fc1-a159-b72d7702b64c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess1611306440c335d5a243bc9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c5ac848-5aa8-4496-93a4-8914375fcb47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACF87616A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a65fea4-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:48 GMT", + "x-ms-client-request-id" : "5c5ac848-5aa8-4496-93a4-8914375fcb47" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess1611306440c335d5a243bc9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89e880cb-1823-4318-9219-ed635d6a859c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACF87616A", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc703791-e01e-007c-1fd3-90d34f000000", + "x-ms-client-request-id" : "89e880cb-1823-4318-9219-ed635d6a859c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfscreatepublicaccess&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1041af30-c42f-4f9a-8eaa-e61a589e172c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a65feea-a01e-0034-7ad3-90e1d2000000", + "Body" : "jtfscreatepublicaccessjtfscreatepublicaccess043243cc0c148d02b140fd9Fri, 01 Nov 2019 16:44:49 GMT\"0x8D75EEACF7EA91F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfscreatepublicaccess1611306440c335d5a243bc9Fri, 01 Nov 2019 16:44:49 GMT\"0x8D75EEACF87616A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "1041af30-c42f-4f9a-8eaa-e61a589e172c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess043243cc0c148d02b140fd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "387f9a93-854e-46a5-90d9-0f2696c36956" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7037b6-e01e-007c-3ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "387f9a93-854e-46a5-90d9-0f2696c36956" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfscreatepublicaccess1611306440c335d5a243bc9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8ba7d54-560b-4a2f-a465-789888ae461c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ff18-a01e-0034-23d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "e8ba7d54-560b-4a2f-a465-789888ae461c" + }, + "Exception" : null + } ], + "variables" : [ "jtfscreatepublicaccess043243cc0c148d02b140fd9", "jtfscreatepublicaccess1611306440c335d5a243bc9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdelete.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdelete.json new file mode 100644 index 0000000000000..f5a569dc7ccda --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdelete.json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdelete0filesystemapitestdelete36e9259594f3164e80?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7592e8e-cbef-4785-9678-6dbc23116e4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD283ED83", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6606be-a01e-0034-80d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "a7592e8e-cbef-4785-9678-6dbc23116e4b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdelete0filesystemapitestdelete36e9259594f3164e80?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "704ed4ab-5247-4c24-8778-01281c019e4d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703c99-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "704ed4ab-5247-4c24-8778-01281c019e4d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdelete&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb08b682-7e7b-4b19-b19f-b7e96011db79" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6606ea-a01e-0034-23d3-90e1d2000000", + "Body" : "jtfsdelete", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "cb08b682-7e7b-4b19-b19f-b7e96011db79", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdelete0filesystemapitestdelete36e9259594f3164e80" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[0].json new file mode 100644 index 0000000000000..64b5ba79ddfed --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteac815284106a5c51e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61e0a670-8822-4f10-8009-f67e4b8901ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD2BE3D5A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703cd2-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "61e0a670-8822-4f10-8009-f67e4b8901ef" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteac815284106a5c51e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "213ae631-343b-48ab-b4e7-0ddf554b19eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660795-a01e-0034-3dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "213ae631-343b-48ab-b4e7-0ddf554b19eb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eedd804a-5730-400f-b65a-8e7cdd2e3c82" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703cea-e01e-007c-56d3-90d34f000000", + "Body" : "jtfsdeleteac", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "eedd804a-5730-400f-b65a-8e7cdd2e3c82", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0filesystemapitestdeleteac815284106a5c51e8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[1].json new file mode 100644 index 0000000000000..849d7b1b92bd7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteacc07578019d11d761?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b070ce60-9465-421b-bca7-24c1f0ec293f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD2D6D76F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6607b8-a01e-0034-5dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "b070ce60-9465-421b-bca7-24c1f0ec293f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteacc07578019d11d761?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "786338f7-7b49-41f8-a827-24f617d4c92f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703cfb-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "786338f7-7b49-41f8-a827-24f617d4c92f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b0694cf-e154-4a68-bc0e-272360b0fe22" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6607e2-a01e-0034-04d3-90e1d2000000", + "Body" : "jtfsdeleteac", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "3b0694cf-e154-4a68-bc0e-272360b0fe22", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0filesystemapitestdeleteacc07578019d11d761" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[2].json new file mode 100644 index 0000000000000..a01fd46b158e5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteac7d99081042d5a316?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33e3f83c-df46-4e79-9e0a-c260d51d5b48" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD2F3FD09", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703d20-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "33e3f83c-df46-4e79-9e0a-c260d51d5b48" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteac7d99081042d5a316?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97b64dd4-7d5a-42d8-ad08-7d5fbce569a2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660823-a01e-0034-40d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "97b64dd4-7d5a-42d8-ad08-7d5fbce569a2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f79968d2-b5f0-4ee8-930e-532747cc1f60" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703d4b-e01e-007c-2ad3-90d34f000000", + "Body" : "jtfsdeleteac", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "f79968d2-b5f0-4ee8-930e-532747cc1f60", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0filesystemapitestdeleteac7d99081042d5a316" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[3].json new file mode 100644 index 0000000000000..bd7298fdc1bf7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteac[3].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteacb7c68793b728ac9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c79f6ebf-ee28-4581-b80b-21a795313337" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD30F7DDC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660877-a01e-0034-09d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "c79f6ebf-ee28-4581-b80b-21a795313337" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteacb7c68793b728ac9a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aa9b0621-559e-411d-b77d-2268abc7dc13" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD30F7DDC", + "x-ms-lease-id" : "b5cabc18-d13f-4656-bd83-807f878ae8e6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703d5e-e01e-007c-3bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "aa9b0621-559e-411d-b77d-2268abc7dc13" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteac0filesystemapitestdeleteacb7c68793b728ac9a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "05143770-a381-46cb-8542-a385bf632a04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6608aa-a01e-0034-37d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "05143770-a381-46cb-8542-a385bf632a04" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e7a4bec-1711-45b3-b7e5-2c808d346be7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703d79-e01e-007c-56d3-90d34f000000", + "Body" : "jtfsdeleteac", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "9e7a4bec-1711-45b3-b7e5-2c808d346be7", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteac0filesystemapitestdeleteacb7c68793b728ac9a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[0].json new file mode 100644 index 0000000000000..30588c47ae18c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfail86900293149e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37406668-465c-4564-841c-d174db5f90bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD32FB5DA", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6608ec-a01e-0034-70d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "37406668-465c-4564-841c-d174db5f90bd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfail86900293149e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "086442fd-4e82-4a06-a154-e70b41383cd0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc703d90-e01e-007c-6bd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc703d90-e01e-007c-6bd3-90d34f000000\nTime:2019-11-01T16:44:55.5381361Z", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "086442fd-4e82-4a06-a154-e70b41383cd0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fff1362c-828d-4761-99d2-9896e5a24aa0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66094c-a01e-0034-47d3-90e1d2000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0filesystemapitestdeleteacfail86900293149eFri, 01 Nov 2019 16:44:55 GMT\"0x8D75EEAD32FB5DA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "fff1362c-828d-4761-99d2-9896e5a24aa0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfail86900293149e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "492b081f-2ee4-4743-a7b9-c3afc345b342" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703da9-e01e-007c-80d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "492b081f-2ee4-4743-a7b9-c3afc345b342" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0filesystemapitestdeleteacfail86900293149e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[1].json new file mode 100644 index 0000000000000..e49af91df3a16 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfaile3619807c82f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4826bf9-60ed-4747-89bf-230b21e6d6f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD35A9E34", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6609b1-a01e-0034-1cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "d4826bf9-60ed-4747-89bf-230b21e6d6f4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfaile3619807c82f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f64bd9a2-26f2-492b-ac94-63d0eb6ac78d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc703dc6-e01e-007c-1cd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc703dc6-e01e-007c-1cd3-90d34f000000\nTime:2019-11-01T16:44:55.8103277Z", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "f64bd9a2-26f2-492b-ac94-63d0eb6ac78d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ecd155c-3d9c-45c6-8c9b-0f0a650a6569" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6609db-a01e-0034-3bd3-90e1d2000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0filesystemapitestdeleteacfaile3619807c82fFri, 01 Nov 2019 16:44:55 GMT\"0x8D75EEAD35A9E34\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "5ecd155c-3d9c-45c6-8c9b-0f0a650a6569", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfaile3619807c82f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e7b9d79-35b3-4851-b69d-7465d986ec23" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703dd7-e01e-007c-2ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "0e7b9d79-35b3-4851-b69d-7465d986ec23" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0filesystemapitestdeleteacfaile3619807c82f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[2].json new file mode 100644 index 0000000000000..163099f0faa21 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacfail[2].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfailb2b29361f932?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ae9d902-39af-4693-ab08-9eec206b90f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD37A60ED", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660a26-a01e-0034-7cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "3ae9d902-39af-4693-ab08-9eec206b90f7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfailb2b29361f932?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "67dbdfe4-5ddf-45a2-8b56-33ae72549e5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "dc703def-e01e-007c-41d3-90d34f000000", + "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:dc703def-e01e-007c-41d3-90d34f000000\nTime:2019-11-01T16:44:56.0194749Z", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "67dbdfe4-5ddf-45a2-8b56-33ae72549e5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37977696-b59e-40b7-b248-e69f0396bbf2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660a84-a01e-0034-4ed3-90e1d2000000", + "Body" : "jtfsdeleteacfailjtfsdeleteacfail0filesystemapitestdeleteacfailb2b29361f932Fri, 01 Nov 2019 16:44:55 GMT\"0x8D75EEAD37A60ED\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "37977696-b59e-40b7-b248-e69f0396bbf2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacfail0filesystemapitestdeleteacfailb2b29361f932?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "829fbe82-3715-4a36-aa1c-35bdceea1636" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703e1e-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "829fbe82-3715-4a36-aa1c-35bdceea1636" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacfail0filesystemapitestdeleteacfailb2b29361f932" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacillegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacillegal[0].json new file mode 100644 index 0000000000000..e3a1da0704a31 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacillegal[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacillegal0filesystemapitestdeleteacillegal98e82188a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53df8bfe-5fed-4363-90a5-8c8499a0d43c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD39DA6C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660ac0-a01e-0034-05d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "53df8bfe-5fed-4363-90a5-8c8499a0d43c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c7e8580-60a8-4650-b9b5-aedeba4316ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703e53-e01e-007c-14d3-90d34f000000", + "Body" : "jtfsdeleteacillegaljtfsdeleteacillegal0filesystemapitestdeleteacillegal98e82188aFri, 01 Nov 2019 16:44:56 GMT\"0x8D75EEAD39DA6C2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "6c7e8580-60a8-4650-b9b5-aedeba4316ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacillegal0filesystemapitestdeleteacillegal98e82188a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78340c12-6148-4755-98d5-00e04d86115e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660ae5-a01e-0034-28d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:55 GMT", + "x-ms-client-request-id" : "78340c12-6148-4755-98d5-00e04d86115e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacillegal0filesystemapitestdeleteacillegal98e82188a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacillegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacillegal[1].json new file mode 100644 index 0000000000000..a4756885a9292 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteacillegal[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacillegal0filesystemapitestdeleteacillegal3d752561d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f0f0b1d-ebfc-494d-a6ea-46a44ecb2513" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD3B99383", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703e86-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "0f0f0b1d-ebfc-494d-a6ea-46a44ecb2513" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7f94ce6-04e2-4eb0-aa8d-d11903be46b4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660b1c-a01e-0034-5cd3-90e1d2000000", + "Body" : "jtfsdeleteacillegaljtfsdeleteacillegal0filesystemapitestdeleteacillegal3d752561dFri, 01 Nov 2019 16:44:56 GMT\"0x8D75EEAD3B99383\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "e7f94ce6-04e2-4eb0-aa8d-d11903be46b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteacillegal0filesystemapitestdeleteacillegal3d752561d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee650341-8518-4bb9-af54-333e1e609af3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703ecd-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "ee650341-8518-4bb9-af54-333e1e609af3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteacillegal0filesystemapitestdeleteacillegal3d752561d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[0].json new file mode 100644 index 0000000000000..04c7a35cb68d9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0d7594869d9b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a3400da-c736-4fb1-9fe1-7ea845e9ad22" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD81F5DC", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662c6f-a01e-0034-77d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "2a3400da-c736-4fb1-9fe1-7ea845e9ad22" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0d7594869d9b9/javapathdeletedirac1filesystemapitestdeletedirac0d732131d66?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd594243-5a02-448c-bf23-b70e13f43aff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD8B7186", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0263-801f-00ab-4fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "bd594243-5a02-448c-bf23-b70e13f43aff" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0d7594869d9b9/javapathdeletedirac1filesystemapitestdeletedirac0d732131d66?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cdddd0b5-41b1-4d1a-9229-764190483f19" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0264-801f-00ab-50d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "cdddd0b5-41b1-4d1a-9229-764190483f19" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "926ef015-e7dd-4714-9097-f34f80fb18da" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7053a0-e01e-007c-44d3-90d34f000000", + "Body" : "jtfsdeletediracjtfsdeletedirac0filesystemapitestdeletedirac0d7594869d9b9Fri, 01 Nov 2019 16:45:12 GMT\"0x8D75EEADD81F5DC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "926ef015-e7dd-4714-9097-f34f80fb18da", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0d7594869d9b9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61f7a969-6da0-4225-8172-fcd703b1fa18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662cd5-a01e-0034-56d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "61f7a969-6da0-4225-8172-fcd703b1fa18" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirac0filesystemapitestdeletedirac0d7594869d9b9", "javapathdeletedirac1filesystemapitestdeletedirac0d732131d66" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[1].json new file mode 100644 index 0000000000000..4bc163bba4a87 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletediracd6b43518e509b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a01054d-6eda-432b-9971-64988f02f45d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADDAF488A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7053c1-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "4a01054d-6eda-432b-9971-64988f02f45d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletediracd6b43518e509b/javapathdeletedirac1filesystemapitestdeletediracd6b07760359?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c5ad081-e2f4-4c68-b8cd-80857a4d5740" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADDB91D3D", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0265-801f-00ab-51d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "8c5ad081-e2f4-4c68-b8cd-80857a4d5740" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletediracd6b43518e509b/javapathdeletedirac1filesystemapitestdeletediracd6b07760359?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4be223b3-7faf-4896-b70f-8eb4d9cfa625" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0266-801f-00ab-52d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "4be223b3-7faf-4896-b70f-8eb4d9cfa625" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8a0dc59-9312-42c3-b2ac-89e187f3e435" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662d2e-a01e-0034-26d3-90e1d2000000", + "Body" : "jtfsdeletediracjtfsdeletedirac0filesystemapitestdeletediracd6b43518e509bFri, 01 Nov 2019 16:45:13 GMT\"0x8D75EEADDAF488A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "e8a0dc59-9312-42c3-b2ac-89e187f3e435", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletediracd6b43518e509b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fe26460-4d5c-47e2-90ff-ef0cfc0e397a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7053f4-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "7fe26460-4d5c-47e2-90ff-ef0cfc0e397a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirac0filesystemapitestdeletediracd6b43518e509b", "javapathdeletedirac1filesystemapitestdeletediracd6b07760359" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[2].json new file mode 100644 index 0000000000000..179673706af08 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0a0195554df6d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b60fff8-7c29-4b1b-aa6a-2ca15a876428" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADDD83BC4", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662d52-a01e-0034-46d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "5b60fff8-7c29-4b1b-aa6a-2ca15a876428" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0a0195554df6d/javapathdeletedirac1filesystemapitestdeletedirac0a007579dd4?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4c6599c-deed-4624-ba67-b62c85ccbf55" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADDE1AD67", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0267-801f-00ab-53d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "f4c6599c-deed-4624-ba67-b62c85ccbf55" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0a0195554df6d/javapathdeletedirac1filesystemapitestdeletedirac0a007579dd4?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec624eba-d873-411a-aedd-0e47a728bd80" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0268-801f-00ab-54d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "ec624eba-d873-411a-aedd-0e47a728bd80" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "78c816c0-528c-4de0-b7ed-a1702e554062" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70542a-e01e-007c-42d3-90d34f000000", + "Body" : "jtfsdeletediracjtfsdeletedirac0filesystemapitestdeletedirac0a0195554df6dFri, 01 Nov 2019 16:45:13 GMT\"0x8D75EEADDD83BC4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "78c816c0-528c-4de0-b7ed-a1702e554062", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac0a0195554df6d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6885c6e4-e269-43e7-bf4b-16090d248429" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662da8-a01e-0034-11d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "6885c6e4-e269-43e7-bf4b-16090d248429" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirac0filesystemapitestdeletedirac0a0195554df6d", "javapathdeletedirac1filesystemapitestdeletedirac0a007579dd4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[3].json new file mode 100644 index 0000000000000..4765f6669a941 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[3].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ac9f516-2a94-4ad6-9468-f1416b7127e8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE034410", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705450-e01e-007c-60d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "8ac9f516-2a94-4ad6-9468-f1416b7127e8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48/javapathdeletedirac1filesystemapitestdeletedirace6f18238115?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46e2f435-1f1b-498b-a0f0-2ce54d1973d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE10709F", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0269-801f-00ab-55d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "46e2f435-1f1b-498b-a0f0-2ce54d1973d8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48/javapathdeletedirac1filesystemapitestdeletedirace6f18238115", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1c0d7cd-4850-43a4-b0ef-9bd8147e774e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:13 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", + "ETag" : "0x8D75EEADE10709F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:13 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a662e13-a01e-0034-71d3-90e1d2000000", + "x-ms-client-request-id" : "e1c0d7cd-4850-43a4-b0ef-9bd8147e774e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48/javapathdeletedirac1filesystemapitestdeletedirace6f18238115?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8be35148-8450-4472-ab7c-a0e783551953" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e026a-801f-00ab-56d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "8be35148-8450-4472-ab7c-a0e783551953" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "035b4b71-343e-4dab-ba9c-9ad8d0b1c182" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7054ab-e01e-007c-2bd3-90d34f000000", + "Body" : "jtfsdeletediracjtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48Fri, 01 Nov 2019 16:45:13 GMT\"0x8D75EEADE034410\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "035b4b71-343e-4dab-ba9c-9ad8d0b1c182", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "761e1443-4f90-435b-b7bc-2bff582fdabf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662e7a-a01e-0034-4ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "761e1443-4f90-435b-b7bc-2bff582fdabf" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirac0filesystemapitestdeletedirace6f042118fb48", "javapathdeletedirac1filesystemapitestdeletedirace6f18238115" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[4].json new file mode 100644 index 0000000000000..d876b01e3f9b2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[4].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac5c778064f890f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2694050-73c6-4b6f-8c4d-b8cbb808b07c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE3A3C78", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7054ed-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "f2694050-73c6-4b6f-8c4d-b8cbb808b07c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac5c778064f890f/javapathdeletedirac1filesystemapitestdeletedirac5c711233b6c?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "240395d9-8d18-40f0-8a12-9b8d855a1284" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE437664", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e026b-801f-00ab-57d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "240395d9-8d18-40f0-8a12-9b8d855a1284" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac5c778064f890f/javapathdeletedirac1filesystemapitestdeletedirac5c711233b6c?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df20a83e-dcbb-4a1d-afd1-847b7762f3bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e026c-801f-00ab-58d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "df20a83e-dcbb-4a1d-afd1-847b7762f3bc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "313d64ea-e658-49e3-91f6-a826dc0264bb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662ee3-a01e-0034-26d3-90e1d2000000", + "Body" : "jtfsdeletediracjtfsdeletedirac0filesystemapitestdeletedirac5c778064f890fFri, 01 Nov 2019 16:45:13 GMT\"0x8D75EEADE3A3C78\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "313d64ea-e658-49e3-91f6-a826dc0264bb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac5c778064f890f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a031e414-acb8-4312-9465-3bb8de473a3d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705548-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "a031e414-acb8-4312-9465-3bb8de473a3d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirac0filesystemapitestdeletedirac5c778064f890f", "javapathdeletedirac1filesystemapitestdeletedirac5c711233b6c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[5].json new file mode 100644 index 0000000000000..889dc82bb64ca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirac[5].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7965e327-0c33-47a6-9e40-606d5e7eebb2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE62E193", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662f09-a01e-0034-45d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "7965e327-0c33-47a6-9e40-606d5e7eebb2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41b/javapathdeletedirac1filesystemapitestdeletedirac21d2306677a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28ad50f0-4839-4e2e-a766-ebe603a8b4f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE6C456F", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e026d-801f-00ab-59d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "28ad50f0-4839-4e2e-a766-ebe603a8b4f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41b/javapathdeletedirac1filesystemapitestdeletedirac21d2306677a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08ee96d5-f7a1-44c3-8418-07d1e78aa85a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE6C456F", + "x-ms-lease-id" : "4f890e7d-9f61-4d0e-b37c-1a25bbce59f1", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705572-e01e-007c-4dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "08ee96d5-f7a1-44c3-8418-07d1e78aa85a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41b/javapathdeletedirac1filesystemapitestdeletedirac21d2306677a?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ead3ad6-8202-469f-bff8-309118903c48" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e026e-801f-00ab-5ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "3ead3ad6-8202-469f-bff8-309118903c48" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60467497-7b6a-4e94-83cb-416091f25c57" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662f4e-a01e-0034-06d3-90e1d2000000", + "Body" : "jtfsdeletediracjtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41bFri, 01 Nov 2019 16:45:14 GMT\"0x8D75EEADE62E193\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "60467497-7b6a-4e94-83cb-416091f25c57", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3555c4d6-b312-459c-b53a-7189fe4695eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705589-e01e-007c-5ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "3555c4d6-b312-459c-b53a-7189fe4695eb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirac0filesystemapitestdeletedirac21d98457ac41b", "javapathdeletedirac1filesystemapitestdeletedirac21d2306677a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[0].json new file mode 100644 index 0000000000000..c26fe98e41e30 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail992111090?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ecf5ea9-b45c-49f5-9e5d-4239d931768c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE92ACD8", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662f78-a01e-0034-2ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "6ecf5ea9-b45c-49f5-9e5d-4239d931768c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail992111090/javapathdeletediracfail16627400cc404edabe46eeb?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4251758b-c532-4c54-9b31-a6b29b81f29c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADE9BECC8", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e026f-801f-00ab-5bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:13 GMT", + "x-ms-client-request-id" : "4251758b-c532-4c54-9b31-a6b29b81f29c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail992111090/javapathdeletediracfail16627400cc404edabe46eeb?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6c5ee1c4-603f-4201-88e9-0bf550dd8b86" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0270-801f-00ab-5cd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0270-801f-00ab-5cd3-909968000000\\nTime:2019-11-01T16:45:14.6806184Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "6c5ee1c4-603f-4201-88e9-0bf550dd8b86", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a733adb2-432b-4879-a69b-b678fe5ffa80" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7055c6-e01e-007c-16d3-90d34f000000", + "Body" : "jtfsdeletediracfailjtfsdeletediracfail0filesystemapitestdeletediracfail992111090Fri, 01 Nov 2019 16:45:14 GMT\"0x8D75EEADE92ACD8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "a733adb2-432b-4879-a69b-b678fe5ffa80", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail992111090?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b9aa09e-47e6-4193-b18e-3b0e8cc49ce7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662fb9-a01e-0034-6ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "1b9aa09e-47e6-4193-b18e-3b0e8cc49ce7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletediracfail0filesystemapitestdeletediracfail992111090", "javapathdeletediracfail16627400cc404edabe46eeb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[1].json new file mode 100644 index 0000000000000..6d918fc53918a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfaila3573338c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29b0b832-6be0-4098-8f88-2de5806d5354" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADEBD3FAF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7055d8-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "29b0b832-6be0-4098-8f88-2de5806d5354" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfaila3573338c/javapathdeletediracfail14310297d95185a92f40a3a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1bf4938d-fa18-4750-a8c1-968fd60290c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADEC66251", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0271-801f-00ab-5dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "1bf4938d-fa18-4750-a8c1-968fd60290c3" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfaila3573338c/javapathdeletediracfail14310297d95185a92f40a3a?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "13896048-06f6-42ad-af6e-114a5cb2c3ad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0273-801f-00ab-5fd3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0273-801f-00ab-5fd3-909968000000\\nTime:2019-11-01T16:45:14.9618201Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "13896048-06f6-42ad-af6e-114a5cb2c3ad", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d017c6f-625e-406a-9baa-9c88139c46d6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a663002-a01e-0034-30d3-90e1d2000000", + "Body" : "jtfsdeletediracfailjtfsdeletediracfail0filesystemapitestdeletediracfaila3573338cFri, 01 Nov 2019 16:45:14 GMT\"0x8D75EEADEBD3FAF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "0d017c6f-625e-406a-9baa-9c88139c46d6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfaila3573338c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "675fbd87-0b17-4f61-97aa-6fccc15f0119" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705607-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "675fbd87-0b17-4f61-97aa-6fccc15f0119" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletediracfail0filesystemapitestdeletediracfaila3573338c", "javapathdeletediracfail14310297d95185a92f40a3a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[2].json new file mode 100644 index 0000000000000..ecb6bcc1bc41c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail3f325693d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5516c33c-6ccd-486b-9187-79d20a22eecc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADEE82F6E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a663039-a01e-0034-60d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "5516c33c-6ccd-486b-9187-79d20a22eecc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail3f325693d/javapathdeletediracfail184266ce184b5fff744e30b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf508b99-af46-4760-a7ef-3cd2c1eb8f44" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADEF49F50", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0275-801f-00ab-61d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "bf508b99-af46-4760-a7ef-3cd2c1eb8f44" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail3f325693d/javapathdeletediracfail184266ce184b5fff744e30b?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af19781c-c35a-429f-9c3f-8c70d3f71115" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0276-801f-00ab-62d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0276-801f-00ab-62d3-909968000000\\nTime:2019-11-01T16:45:15.2610343Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "af19781c-c35a-429f-9c3f-8c70d3f71115", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b69a6ccd-feac-4bad-8b94-fd52d50d01d2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc705658-e01e-007c-1fd3-90d34f000000", + "Body" : "jtfsdeletediracfailjtfsdeletediracfail0filesystemapitestdeletediracfail3f325693dFri, 01 Nov 2019 16:45:15 GMT\"0x8D75EEADEE82F6E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "b69a6ccd-feac-4bad-8b94-fd52d50d01d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail3f325693d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5bbadfe5-da1a-4e3c-ade3-de5b3f0331c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66308a-a01e-0034-26d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "5bbadfe5-da1a-4e3c-ade3-de5b3f0331c3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletediracfail0filesystemapitestdeletediracfail3f325693d", "javapathdeletediracfail184266ce184b5fff744e30b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[3].json new file mode 100644 index 0000000000000..b35bd8c29d3bf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[3].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail92a426411?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36f7c89d-687c-481c-b8fb-e3c38b2026a1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF13FACF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70566e-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "36f7c89d-687c-481c-b8fb-e3c38b2026a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail92a426411/javapathdeletediracfail112340b730cfdaa52f44f1b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "72d1d512-2569-4f9b-97a3-9e2e1c35110a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF1D411A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0277-801f-00ab-63d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "72d1d512-2569-4f9b-97a3-9e2e1c35110a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail92a426411/javapathdeletediracfail112340b730cfdaa52f44f1b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c9d41dc-e0a4-4e58-b1cd-3e9babfbe024" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:15 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", + "ETag" : "0x8D75EEADF1D411A", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:15 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a6630ea-a01e-0034-7dd3-90e1d2000000", + "x-ms-client-request-id" : "3c9d41dc-e0a4-4e58-b1cd-3e9babfbe024", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail92a426411/javapathdeletediracfail112340b730cfdaa52f44f1b?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd2b8f31-2709-47de-af5e-ea1c206fa526" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0278-801f-00ab-64d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0278-801f-00ab-64d3-909968000000\\nTime:2019-11-01T16:45:15.5782614Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:14 GMT", + "x-ms-client-request-id" : "dd2b8f31-2709-47de-af5e-ea1c206fa526", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1cd66a83-dddc-4796-b9ef-4254a7bb4fbc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7056a1-e01e-007c-61d3-90d34f000000", + "Body" : "jtfsdeletediracfailjtfsdeletediracfail0filesystemapitestdeletediracfail92a426411Fri, 01 Nov 2019 16:45:15 GMT\"0x8D75EEADF13FACF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "1cd66a83-dddc-4796-b9ef-4254a7bb4fbc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail92a426411?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b47022b-868a-4381-aa42-1ccdc282896d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66312f-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "2b47022b-868a-4381-aa42-1ccdc282896d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletediracfail0filesystemapitestdeletediracfail92a426411", "javapathdeletediracfail112340b730cfdaa52f44f1b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[4].json new file mode 100644 index 0000000000000..ae4cd98b46b69 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletediracfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail76b45920b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34dc4147-ee5f-432a-a7a2-6f58b4579d54" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF441433", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7056c8-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "34dc4147-ee5f-432a-a7a2-6f58b4579d54" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail76b45920b/javapathdeletediracfail130074d10762e7b8a84751a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fae5e8ce-bce5-4911-b391-98cdfe509ce2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF4D6C49", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0279-801f-00ab-65d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "fae5e8ce-bce5-4911-b391-98cdfe509ce2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail76b45920b/javapathdeletediracfail130074d10762e7b8a84751a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a5209d7f-bee8-463b-9800-de908dea156e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF4D6C49", + "x-ms-lease-id" : "1323075a-6cf7-4439-84f0-fa1f85fedb67", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66316f-a01e-0034-76d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "a5209d7f-bee8-463b-9800-de908dea156e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail76b45920b/javapathdeletediracfail130074d10762e7b8a84751a?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "089503cf-1ca2-4281-8268-d902c14497ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e027a-801f-00ab-66d3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e027a-801f-00ab-66d3-909968000000\\nTime:2019-11-01T16:45:15.8984906Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "089503cf-1ca2-4281-8268-d902c14497ee", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletediracfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d0bf56c-806c-4c6d-936a-3c23667bcd73" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70570c-e01e-007c-40d3-90d34f000000", + "Body" : "jtfsdeletediracfailjtfsdeletediracfail0filesystemapitestdeletediracfail76b45920bFri, 01 Nov 2019 16:45:15 GMT\"0x8D75EEADF441433\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "3d0bf56c-806c-4c6d-936a-3c23667bcd73", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletediracfail0filesystemapitestdeletediracfail76b45920b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84903592-77fb-4c47-a664-83f40a5ba969" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6631b8-a01e-0034-36d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "84903592-77fb-4c47-a664-83f40a5ba969" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletediracfail0filesystemapitestdeletediracfail76b45920b", "javapathdeletediracfail130074d10762e7b8a84751a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirdirdoesnotexistanymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirdirdoesnotexistanymore.json new file mode 100644 index 0000000000000..87d92df654f19 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirdirdoesnotexistanymore.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirdirdoesnotexistanymore014156460c618820c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b61001c0-50b5-4c3e-958f-d653b2310ae1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD51DC7B", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662bd7-a01e-0034-6cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "b61001c0-50b5-4c3e-958f-d653b2310ae1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirdirdoesnotexistanymore014156460c618820c/javapathdeletedirdirdoesnotexistanymore1812248591c6c96?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85a877ee-10d9-4bc4-8d86-b24023d28f8e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD5B3198", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0261-801f-00ab-4dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "85a877ee-10d9-4bc4-8d86-b24023d28f8e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirdirdoesnotexistanymore014156460c618820c/javapathdeletedirdirdoesnotexistanymore1812248591c6c96?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "844ddba4-7f11-4b33-a944-087875db6a3c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0262-801f-00ab-4ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "844ddba4-7f11-4b33-a944-087875db6a3c" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirdirdoesnotexistanymore014156460c618820c/javapathdeletedirdirdoesnotexistanymore1812248591c6c96", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df27be68-f864-4fce-a515-c2faaee5e70c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "dc705357-e01e-007c-02d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "df27be68-f864-4fce-a515-c2faaee5e70c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirdirdoesnotexistanymore&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76d0f300-258b-4b84-a4c0-62f2150fca4f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662c33-a01e-0034-42d3-90e1d2000000", + "Body" : "jtfsdeletedirdirdoesnotexistanymorejtfsdeletedirdirdoesnotexistanymore014156460c618820cFri, 01 Nov 2019 16:45:12 GMT\"0x8D75EEADD51DC7B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "76d0f300-258b-4b84-a4c0-62f2150fca4f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirdirdoesnotexistanymore014156460c618820c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4877034c-77aa-4c05-bb29-b208b315f4ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705369-e01e-007c-10d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "4877034c-77aa-4c05-bb29-b208b315f4ec" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirdirdoesnotexistanymore014156460c618820c", "javapathdeletedirdirdoesnotexistanymore1812248591c6c96" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirmin.json new file mode 100644 index 0000000000000..aa4154e7da8f0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirmin.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirmin0filesystemapitestdeletedirmin34c721010e8d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23eb9e75-a69e-4a48-b34f-ebf037bb313c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADCF8AFE1", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a662ab1-a01e-0034-5cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "23eb9e75-a69e-4a48-b34f-ebf037bb313c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirmin0filesystemapitestdeletedirmin34c721010e8d/javapathdeletedirmin1filesystemapitestdeletedirmin34c20309c6?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63b59f85-e630-40ae-bd4d-53f71042dbdd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD01BF79", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e025d-801f-00ab-49d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "63b59f85-e630-40ae-bd4d-53f71042dbdd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirmin0filesystemapitestdeletedirmin34c721010e8d/javapathdeletedirmin1filesystemapitestdeletedirmin34c20309c6?recursive=false", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76425809-5c41-4153-b174-749c6e0f9f1e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e025e-801f-00ab-4ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "76425809-5c41-4153-b174-749c6e0f9f1e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e63bfab1-93f3-4b80-9b2a-972ee748f92a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7052ea-e01e-007c-1fd3-90d34f000000", + "Body" : "jtfsdeletedirminjtfsdeletedirmin0filesystemapitestdeletedirmin34c721010e8dFri, 01 Nov 2019 16:45:11 GMT\"0x8D75EEADCF8AFE1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "e63bfab1-93f3-4b80-9b2a-972ee748f92a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirmin0filesystemapitestdeletedirmin34c721010e8d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a0eeed8-d8d9-4621-8aba-2466396489e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a662b24-a01e-0034-45d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "2a0eeed8-d8d9-4621-8aba-2466396489e3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirmin0filesystemapitestdeletedirmin34c721010e8d", "javapathdeletedirmin1filesystemapitestdeletedirmin34c20309c6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirrecursive.json new file mode 100644 index 0000000000000..48fbefca4b96b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletedirrecursive.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirrecursive049032b2f360f36f1a4982b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "889a52f9-0835-48df-9898-a5da15a50b96" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD293782", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705301-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "889a52f9-0835-48df-9898-a5da15a50b96" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirrecursive049032b2f360f36f1a4982b/javapathdeletedirrecursive1939950dd8b89fd81a4d1?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "925cdea1-b6a3-4cdc-ac20-41761c8c36b1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADD326F90", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e025f-801f-00ab-4bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "925cdea1-b6a3-4cdc-ac20-41761c8c36b1" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletedirrecursive049032b2f360f36f1a4982b/javapathdeletedirrecursive1939950dd8b89fd81a4d1?recursive=true", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "69c936bf-a203-4242-b57a-b7668a651999" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0260-801f-00ab-4cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "69c936bf-a203-4242-b57a-b7668a651999" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletedirrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1d47ad4-99bd-4e87-9944-f479b4b4f519" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a662ba4-a01e-0034-3ed3-90e1d2000000", + "Body" : "jtfsdeletedirrecursivejtfsdeletedirrecursive049032b2f360f36f1a4982bFri, 01 Nov 2019 16:45:12 GMT\"0x8D75EEADD293782\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:11 GMT", + "x-ms-client-request-id" : "d1d47ad4-99bd-4e87-9944-f479b4b4f519", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletedirrecursive049032b2f360f36f1a4982b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a5d1ff6f-ef7a-47fc-8ff7-f7f3e2b4705c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705329-e01e-007c-57d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:12 GMT", + "x-ms-client-request-id" : "a5d1ff6f-ef7a-47fc-8ff7-f7f3e2b4705c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletedirrecursive049032b2f360f36f1a4982b", "javapathdeletedirrecursive1939950dd8b89fd81a4d1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteerror.json new file mode 100644 index 0000000000000..56bbd4cc98ef8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeleteerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteerror0filesystemapitestdeleteerror02830715540ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d295081-7d3e-48e5-ad4c-d6eb69163f73" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD3D562A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660b65-a01e-0034-1ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "3d295081-7d3e-48e5-ad4c-d6eb69163f73" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteerror1filesystemapitestdeleteerror028470349388d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "684cfda7-643f-4994-beb5-fdf5ea28c351" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "dc703eec-e01e-007c-15d3-90d34f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dc703eec-e01e-007c-15d3-90d34f000000\nTime:2019-11-01T16:44:56.6128930Z", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "684cfda7-643f-4994-beb5-fdf5ea28c351", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeleteerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "abf4d83f-c085-46b3-97f3-020a1ff44521" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660b97-a01e-0034-49d3-90e1d2000000", + "Body" : "jtfsdeleteerrorjtfsdeleteerror0filesystemapitestdeleteerror02830715540acFri, 01 Nov 2019 16:44:56 GMT\"0x8D75EEAD3D562A0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "abf4d83f-c085-46b3-97f3-020a1ff44521", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeleteerror0filesystemapitestdeleteerror02830715540ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86bec62f-bf5c-4065-8487-3eaf5d45dafb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703f0c-e01e-007c-30d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:56 GMT", + "x-ms-client-request-id" : "86bec62f-bf5c-4065-8487-3eaf5d45dafb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeleteerror0filesystemapitestdeleteerror02830715540ac", "jtfsdeleteerror1filesystemapitestdeleteerror028470349388d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[0].json new file mode 100644 index 0000000000000..07fcc0248f76d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[0].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacd1a88046ad85?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "735aa4ef-3e66-43a4-8bd4-1730c04ac042" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7CC0D4A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661962-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "735aa4ef-3e66-43a4-8bd4-1730c04ac042" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacd1a88046ad85/javapathdeletefileac1filesystemapitestdeletefileacd1a3178429?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3d9a056-6ba1-4756-a2e5-f4c0212cbd77" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7D680C3", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0226-801f-00ab-13d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "b3d9a056-6ba1-4756-a2e5-f4c0212cbd77" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacd1a88046ad85/javapathdeletefileac1filesystemapitestdeletefileacd1a3178429", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5874b133-3dfb-4f11-9336-6f5e487083bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0227-801f-00ab-14d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "5874b133-3dfb-4f11-9336-6f5e487083bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84f90ac5-d5f3-4f99-a7c1-994492bd99c1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704864-e01e-007c-19d3-90d34f000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0filesystemapitestdeletefileacd1a88046ad85Fri, 01 Nov 2019 16:45:03 GMT\"0x8D75EEAD7CC0D4A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "84f90ac5-d5f3-4f99-a7c1-994492bd99c1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacd1a88046ad85?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45b8179b-a228-4768-8d40-0ccc9c856408" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6619bb-a01e-0034-09d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "45b8179b-a228-4768-8d40-0ccc9c856408" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0filesystemapitestdeletefileacd1a88046ad85", "javapathdeletefileac1filesystemapitestdeletefileacd1a3178429" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[1].json new file mode 100644 index 0000000000000..daf22d56fd16b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[1].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac6e8015492588?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06cf20c3-4a6f-47a5-aee3-5bc8b2d577ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7F67A0A", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70488f-e01e-007c-40d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "06cf20c3-4a6f-47a5-aee3-5bc8b2d577ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac6e8015492588/javapathdeletefileac1filesystemapitestdeletefileac6e88613636?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b979f80-1747-4a33-af60-6e70ae792734" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8007F24", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0228-801f-00ab-15d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "6b979f80-1747-4a33-af60-6e70ae792734" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac6e8015492588/javapathdeletefileac1filesystemapitestdeletefileac6e88613636", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd96f89d-f7e3-46fe-a25e-0fd1d219412e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0229-801f-00ab-16d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "bd96f89d-f7e3-46fe-a25e-0fd1d219412e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3f694150-6da4-4453-9efb-9c0dbbcf5d18" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661a21-a01e-0034-67d3-90e1d2000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0filesystemapitestdeletefileac6e8015492588Fri, 01 Nov 2019 16:45:03 GMT\"0x8D75EEAD7F67A0A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "3f694150-6da4-4453-9efb-9c0dbbcf5d18", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac6e8015492588?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5adc4a31-450b-4fbe-8f4b-c47dc16a97ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7048fe-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "5adc4a31-450b-4fbe-8f4b-c47dc16a97ec" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0filesystemapitestdeletefileac6e8015492588", "javapathdeletefileac1filesystemapitestdeletefileac6e88613636" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[2].json new file mode 100644 index 0000000000000..197334bfbefb3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[2].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacade249763e70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23c750c7-f151-47a4-89a7-2847b70a9915" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD82364CF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661a6b-a01e-0034-2ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "23c750c7-f151-47a4-89a7-2847b70a9915" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacade249763e70/javapathdeletefileac1filesystemapitestdeletefileacade76891c7?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46efb006-03f2-4da7-a7a7-5917f2a9c53e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD82D84B8", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e022a-801f-00ab-17d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "46efb006-03f2-4da7-a7a7-5917f2a9c53e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacade249763e70/javapathdeletefileac1filesystemapitestdeletefileacade76891c7", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7484cb41-187b-49f9-9f25-60e2db4d7180" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e022b-801f-00ab-18d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "7484cb41-187b-49f9-9f25-60e2db4d7180" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "577735d7-f16e-4512-a0ba-fa1a3d51198a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704962-e01e-007c-7bd3-90d34f000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0filesystemapitestdeletefileacade249763e70Fri, 01 Nov 2019 16:45:03 GMT\"0x8D75EEAD82364CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "577735d7-f16e-4512-a0ba-fa1a3d51198a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileacade249763e70?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e322cda1-9aef-4b09-9b20-fae5c6f6a86f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661ac5-a01e-0034-7ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "e322cda1-9aef-4b09-9b20-fae5c6f6a86f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0filesystemapitestdeletefileacade249763e70", "javapathdeletefileac1filesystemapitestdeletefileacade76891c7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[3].json new file mode 100644 index 0000000000000..48d8897cdbd25 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[3].json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8ccfeba-7c21-4ab8-8a93-0d6742fd0963" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD84C98CF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704989-e01e-007c-1dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "f8ccfeba-7c21-4ab8-8a93-0d6742fd0963" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9/javapathdeletefileac1filesystemapitestdeletefileac33e56316bc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d789346-7b32-4830-8aab-3c75e57c1b3d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8564D48", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e022c-801f-00ab-19d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "1d789346-7b32-4830-8aab-3c75e57c1b3d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9/javapathdeletefileac1filesystemapitestdeletefileac33e56316bc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6affe37c-3166-47a7-aac2-4823d119bd9a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:03 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", + "ETag" : "0x8D75EEAD8564D48", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:04 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a661b0a-a01e-0034-40d3-90e1d2000000", + "x-ms-client-request-id" : "6affe37c-3166-47a7-aac2-4823d119bd9a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9/javapathdeletefileac1filesystemapitestdeletefileac33e56316bc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c53e8098-f0e9-4ea5-b2bf-e704bba1caf6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e022d-801f-00ab-1ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "c53e8098-f0e9-4ea5-b2bf-e704bba1caf6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9163cb8b-c53a-464c-94ea-d1f690e97d9d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7049e8-e01e-007c-76d3-90d34f000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9Fri, 01 Nov 2019 16:45:04 GMT\"0x8D75EEAD84C98CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "9163cb8b-c53a-464c-94ea-d1f690e97d9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9befa1b-c675-466b-82da-952263655187" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661b46-a01e-0034-75d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "c9befa1b-c675-466b-82da-952263655187" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0filesystemapitestdeletefileac33e748385bf9", "javapathdeletefileac1filesystemapitestdeletefileac33e56316bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[4].json new file mode 100644 index 0000000000000..f9dbdba4ee428 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[4].json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac9070053496f8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22a79c64-cc18-41b2-814b-15bd90ec2a5a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD87EFC87", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704a12-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "22a79c64-cc18-41b2-814b-15bd90ec2a5a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac9070053496f8/javapathdeletefileac1filesystemapitestdeletefileac907172805a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ff98329-f05a-4bfc-b872-715a8aca737e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD888FEEC", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e022e-801f-00ab-1bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "0ff98329-f05a-4bfc-b872-715a8aca737e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac9070053496f8/javapathdeletefileac1filesystemapitestdeletefileac907172805a", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "27795436-9526-4fea-8717-0212244b088e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e022f-801f-00ab-1cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:03 GMT", + "x-ms-client-request-id" : "27795436-9526-4fea-8717-0212244b088e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "81689c37-9c87-4db3-b9fc-c887c9302608" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661bb3-a01e-0034-57d3-90e1d2000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0filesystemapitestdeletefileac9070053496f8Fri, 01 Nov 2019 16:45:04 GMT\"0x8D75EEAD87EFC87\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "81689c37-9c87-4db3-b9fc-c887c9302608", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac9070053496f8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87a4bfc9-509f-4c6a-9224-b269f62ab59d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704a54-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "87a4bfc9-509f-4c6a-9224-b269f62ab59d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0filesystemapitestdeletefileac9070053496f8", "javapathdeletefileac1filesystemapitestdeletefileac907172805a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[5].json new file mode 100644 index 0000000000000..563a2c0d14e92 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileac[5].json @@ -0,0 +1,127 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac7c3396294156?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "238bc3a9-86d4-46d6-a82e-0d6bbc787184" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8A94ED3", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661bdd-a01e-0034-7fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "238bc3a9-86d4-46d6-a82e-0d6bbc787184" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac7c3396294156/javapathdeletefileac1filesystemapitestdeletefileac7c324232d4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5769531e-8c17-4355-ac97-0b67d306b3b0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8B478C1", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0230-801f-00ab-1dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "5769531e-8c17-4355-ac97-0b67d306b3b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac7c3396294156/javapathdeletefileac1filesystemapitestdeletefileac7c324232d4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5f8ac50c-417e-4b1a-9af6-835a7a88e3af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8B478C1", + "x-ms-lease-id" : "9be56df4-5938-4104-930c-eeac84d19d10", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704a97-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "5f8ac50c-417e-4b1a-9af6-835a7a88e3af" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac7c3396294156/javapathdeletefileac1filesystemapitestdeletefileac7c324232d4", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c85010a-1b04-4d4d-8e0f-13de51e74f99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0231-801f-00ab-1ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "1c85010a-1b04-4d4d-8e0f-13de51e74f99" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bcef17ae-ea3d-4bee-b793-246e842e9308" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661c33-a01e-0034-51d3-90e1d2000000", + "Body" : "jtfsdeletefileacjtfsdeletefileac0filesystemapitestdeletefileac7c3396294156Fri, 01 Nov 2019 16:45:04 GMT\"0x8D75EEAD8A94ED3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "bcef17ae-ea3d-4bee-b793-246e842e9308", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileac0filesystemapitestdeletefileac7c3396294156?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "07db325b-f614-4251-9418-38c9f3119788" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704ad0-e01e-007c-49d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "07db325b-f614-4251-9418-38c9f3119788" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileac0filesystemapitestdeletefileac7c3396294156", "javapathdeletefileac1filesystemapitestdeletefileac7c324232d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[0].json new file mode 100644 index 0000000000000..0f92bace2b8e0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfaile9659001?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1836519f-0350-47a3-bd9b-e9d1d7da26e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8DB1632", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661c67-a01e-0034-01d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "1836519f-0350-47a3-bd9b-e9d1d7da26e2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfaile9659001/javapathdeletefileacfail1966246334780a12314a7e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4aeb15f6-03c8-4e34-bd54-5920a64752fc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD8E4EC68", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0232-801f-00ab-1fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "4aeb15f6-03c8-4e34-bd54-5920a64752fc" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfaile9659001/javapathdeletefileacfail1966246334780a12314a7e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48c7c80d-3abd-4692-b12c-b28683233190" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0233-801f-00ab-20d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0233-801f-00ab-20d3-909968000000\\nTime:2019-11-01T16:45:05.0937560Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "48c7c80d-3abd-4692-b12c-b28683233190", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "592be6b1-31c7-47ce-8fd8-abeca3f30fe5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704b2f-e01e-007c-21d3-90d34f000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0filesystemapitestdeletefileacfaile9659001Fri, 01 Nov 2019 16:45:04 GMT\"0x8D75EEAD8DB1632\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "592be6b1-31c7-47ce-8fd8-abeca3f30fe5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfaile9659001?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a48613f-d91c-4a0d-88d8-8f253577f71c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661cde-a01e-0034-66d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "1a48613f-d91c-4a0d-88d8-8f253577f71c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0filesystemapitestdeletefileacfaile9659001", "javapathdeletefileacfail1966246334780a12314a7e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[1].json new file mode 100644 index 0000000000000..f6c0d7c7e8c5e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail22679237?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60d7c397-0ee6-455a-903e-26166eb3c8b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD90534AB", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704b57-e01e-007c-45d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "60d7c397-0ee6-455a-903e-26166eb3c8b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail22679237/javapathdeletefileacfail133065b1e5e1d189d14ccc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e19b050-e74f-4c7e-91f7-d5a4aee801a2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD90FC544", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0234-801f-00ab-21d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "3e19b050-e74f-4c7e-91f7-d5a4aee801a2" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail22679237/javapathdeletefileacfail133065b1e5e1d189d14ccc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41ddd04a-2331-43f1-96f4-7849bf31a093" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0235-801f-00ab-22d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0235-801f-00ab-22d3-909968000000\\nTime:2019-11-01T16:45:05.3729563Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "41ddd04a-2331-43f1-96f4-7849bf31a093", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d91d61df-f28d-4f13-ab15-44e134a838e8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661d36-a01e-0034-35d3-90e1d2000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0filesystemapitestdeletefileacfail22679237Fri, 01 Nov 2019 16:45:05 GMT\"0x8D75EEAD90534AB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "d91d61df-f28d-4f13-ab15-44e134a838e8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail22679237?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54adcdf8-8718-4007-ba0d-7f88d901e18f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704b9d-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "54adcdf8-8718-4007-ba0d-7f88d901e18f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0filesystemapitestdeletefileacfail22679237", "javapathdeletefileacfail133065b1e5e1d189d14ccc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[2].json new file mode 100644 index 0000000000000..88a58e8db40b1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail07894347?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8179e488-7d0e-4f47-9807-a741a716d3a0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD92F38D6", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661d7e-a01e-0034-6fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "8179e488-7d0e-4f47-9807-a741a716d3a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail07894347/javapathdeletefileacfail1388616fa4788813fc43eb?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d4dcbc8-b7bf-4066-b2ed-4d5af66f5918" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD93902C8", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0236-801f-00ab-23d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:04 GMT", + "x-ms-client-request-id" : "6d4dcbc8-b7bf-4066-b2ed-4d5af66f5918" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail07894347/javapathdeletefileacfail1388616fa4788813fc43eb", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca0faaa5-1132-4265-a978-173a50629d3b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e0237-801f-00ab-24d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e0237-801f-00ab-24d3-909968000000\\nTime:2019-11-01T16:45:05.6421494Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "ca0faaa5-1132-4265-a978-173a50629d3b", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "972ade4a-ea74-463b-8ef4-7e18288a8b71" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704bf0-e01e-007c-59d3-90d34f000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0filesystemapitestdeletefileacfail07894347Fri, 01 Nov 2019 16:45:05 GMT\"0x8D75EEAD92F38D6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "972ade4a-ea74-463b-8ef4-7e18288a8b71", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail07894347?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42320f17-c7be-4462-a642-400e860a497f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661deb-a01e-0034-55d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "42320f17-c7be-4462-a642-400e860a497f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0filesystemapitestdeletefileacfail07894347", "javapathdeletefileacfail1388616fa4788813fc43eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[3].json new file mode 100644 index 0000000000000..c483b5b1a4f2a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71b2f2ff-6753-47cf-ab74-b8feb4384281" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD9581E83", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704c1e-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "71b2f2ff-6753-47cf-ab74-b8feb4384281" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326/javapathdeletefileacfail13169260249b583e00456f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ab2f3546-f3af-47df-b181-d002c1688a2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD961F81E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0238-801f-00ab-25d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "ab2f3546-f3af-47df-b181-d002c1688a2a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326/javapathdeletefileacfail13169260249b583e00456f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef4f7175-a3c8-4a6b-bb93-765405a6d4da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:05 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:45:05 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", + "ETag" : "0x8D75EEAD961F81E", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:45:05 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "3a661e5d-a01e-0034-38d3-90e1d2000000", + "x-ms-client-request-id" : "ef4f7175-a3c8-4a6b-bb93-765405a6d4da", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326/javapathdeletefileacfail13169260249b583e00456f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e62e57b-b127-4957-866a-ea0d53624561" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "200", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e023a-801f-00ab-27d3-909968000000", + "Body" : "{\"error\":{\"code\":\"ConditionNotMet\",\"message\":\"The condition specified using HTTP conditional header(s) is not met.\\nRequestId:aa8e023a-801f-00ab-27d3-909968000000\\nTime:2019-11-01T16:45:05.9603768Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "5e62e57b-b127-4957-866a-ea0d53624561", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f082f731-430a-4305-b8fe-f45eb156b59c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704c67-e01e-007c-47d3-90d34f000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326Fri, 01 Nov 2019 16:45:05 GMT\"0x8D75EEAD9581E83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "f082f731-430a-4305-b8fe-f45eb156b59c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d885101-0894-4378-9a63-53d4701794fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661e9e-a01e-0034-6ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "2d885101-0894-4378-9a63-53d4701794fa" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0filesystemapitestdeletefileacfail96b91326", "javapathdeletefileacfail13169260249b583e00456f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[4].json new file mode 100644 index 0000000000000..f0dcd8909ff71 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefileacfail[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da7f8875-9450-4f12-b78c-ccea236b853b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD989E5DF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc704c9e-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "da7f8875-9450-4f12-b78c-ccea236b853b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580/javapathdeletefileacfail1434356dce72b2af924e19?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d10dc48-d174-467f-a783-ddffac4f9aa4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD993C5BA", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e023c-801f-00ab-29d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "8d10dc48-d174-467f-a783-ddffac4f9aa4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580/javapathdeletefileacfail1434356dce72b2af924e19?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "683abd80-e4a9-4cfa-b754-1500bfeaaeab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD993C5BA", + "x-ms-lease-id" : "f8011b3d-a649-4175-adc2-efbaf061e2c1", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a661ef1-a01e-0034-3cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "683abd80-e4a9-4cfa-b754-1500bfeaaeab" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580/javapathdeletefileacfail1434356dce72b2af924e19", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6db742e-3a61-4dc7-bc41-a4767edca278" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseIdMismatch", + "retry-after" : "0", + "Content-Length" : "199", + "StatusCode" : "412", + "x-ms-request-id" : "aa8e023d-801f-00ab-2ad3-909968000000", + "Body" : "{\"error\":{\"code\":\"LeaseIdMismatch\",\"message\":\"The lease ID specified did not match the lease ID for the resource.\\nRequestId:aa8e023d-801f-00ab-2ad3-909968000000\\nTime:2019-11-01T16:45:06.2946165Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "f6db742e-3a61-4dc7-bc41-a4767edca278", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefileacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3cf4b440-d7f9-4cec-a389-3dbd0b2645d8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc704cf0-e01e-007c-47d3-90d34f000000", + "Body" : "jtfsdeletefileacfailjtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580Fri, 01 Nov 2019 16:45:06 GMT\"0x8D75EEAD989E5DF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:06 GMT", + "x-ms-client-request-id" : "3cf4b440-d7f9-4cec-a389-3dbd0b2645d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88f6788d-f836-4fc0-8fe0-aaaaffbcddc1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a661f3a-a01e-0034-7fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:05 GMT", + "x-ms-client-request-id" : "88f6788d-f836-4fc0-8fe0-aaaaffbcddc1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefileacfail0filesystemapitestdeletefileacfail8b103580", "javapathdeletefileacfail1434356dce72b2af924e19" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefilefiledoesnotexistanymore.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefilefiledoesnotexistanymore.json new file mode 100644 index 0000000000000..a458187dec1bf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefilefiledoesnotexistanymore.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilefiledoesnotexistanymore0216271d434fc042?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dfdb7fd2-f78e-4c00-8a13-775d84fcecd7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD79CB75C", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66189c-a01e-0034-0ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "dfdb7fd2-f78e-4c00-8a13-775d84fcecd7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilefiledoesnotexistanymore0216271d434fc042/javapathdeletefilefiledoesnotexistanymore1387086d55b853?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f730d1cd-16ac-4df3-9601-5c403484957d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7A68AA2", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0224-801f-00ab-11d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "f730d1cd-16ac-4df3-9601-5c403484957d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilefiledoesnotexistanymore0216271d434fc042/javapathdeletefilefiledoesnotexistanymore1387086d55b853", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c97ebc2f-c363-4ad7-8a85-e6fee2a12d21" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0225-801f-00ab-12d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "c97ebc2f-c363-4ad7-8a85-e6fee2a12d21" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilefiledoesnotexistanymore0216271d434fc042/javapathdeletefilefiledoesnotexistanymore1387086d55b853", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4eda1de3-bbbd-4968-b8e3-4e49a0d0f24e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "dc7047c6-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "4eda1de3-bbbd-4968-b8e3-4e49a0d0f24e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefilefiledoesnotexistanymore&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34abac6e-4c66-406c-ac49-ab5efec5f379" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66192e-a01e-0034-0ed3-90e1d2000000", + "Body" : "jtfsdeletefilefiledoesnotexistanymorejtfsdeletefilefiledoesnotexistanymore0216271d434fc042Fri, 01 Nov 2019 16:45:02 GMT\"0x8D75EEAD79CB75C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "34abac6e-4c66-406c-ac49-ab5efec5f379", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilefiledoesnotexistanymore0216271d434fc042?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a32745e3-b28e-41ae-b5b1-283af6a7980e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7047f3-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "a32745e3-b28e-41ae-b5b1-283af6a7980e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefilefiledoesnotexistanymore0216271d434fc042", "javapathdeletefilefiledoesnotexistanymore1387086d55b853" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefilemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefilemin.json new file mode 100644 index 0000000000000..c45b27d7ad180 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletefilemin.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilemin0filesystemapitestdeletefilemina6518049deb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "38c6400f-5533-410a-80c9-ced5075fc58b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD76C70AF", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7046ef-e01e-007c-4dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "38c6400f-5533-410a-80c9-ced5075fc58b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilemin0filesystemapitestdeletefilemina6518049deb/javapathdeletefilemin1filesystemapitestdeletefilemina65084204?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5dae49a-ca15-40a0-a666-1680196f379f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD7766D0C", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0222-801f-00ab-0fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "f5dae49a-ca15-40a0-a666-1680196f379f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsdeletefilemin0filesystemapitestdeletefilemina6518049deb/javapathdeletefilemin1filesystemapitestdeletefilemina65084204", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5094edb7-f3ec-42e4-87e8-42ce104ee1fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0223-801f-00ab-10d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "5094edb7-f3ec-42e4-87e8-42ce104ee1fb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletefilemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fa4bf262-2e94-4227-9190-cb6523f01f50" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a661850-a01e-0034-45d3-90e1d2000000", + "Body" : "jtfsdeletefileminjtfsdeletefilemin0filesystemapitestdeletefilemina6518049debFri, 01 Nov 2019 16:45:02 GMT\"0x8D75EEAD76C70AF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "fa4bf262-2e94-4227-9190-cb6523f01f50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletefilemin0filesystemapitestdeletefilemina6518049deb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0af3b4c1-6e6e-4f61-bdc0-003929769214" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc704753-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:02 GMT", + "x-ms-client-request-id" : "0af3b4c1-6e6e-4f61-bdc0-003929769214" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletefilemin0filesystemapitestdeletefilemina6518049deb", "javapathdeletefilemin1filesystemapitestdeletefilemina65084204" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletemin.json new file mode 100644 index 0000000000000..f795c149e0808 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestdeletemin.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0filesystemapitestdeletemin49792449b7db6cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1c3141a-aeb7-4463-9d11-e67334d7fe5d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD29E055C", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703cad-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "e1c3141a-aeb7-4463-9d11-e67334d7fe5d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0filesystemapitestdeletemin49792449b7db6cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6f69f99f-f1fe-45e7-9448-0e37e23c8b0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66071e-a01e-0034-51d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "6f69f99f-f1fe-45e7-9448-0e37e23c8b0c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsdeletemin0filesystemapitestdeletemin49792449b7db6cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc2db3f2-b25b-4401-948f-e03d8b0dfd0a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "dc703cc1-e01e-007c-30d3-90d34f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dc703cc1-e01e-007c-30d3-90d34f000000\nTime:2019-11-01T16:44:54.6274951Z", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "dc2db3f2-b25b-4401-948f-e03d8b0dfd0a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsdeletemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1206b8dc-cfe5-4945-be7a-cc6d82cf6980" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660763-a01e-0034-0dd3-90e1d2000000", + "Body" : "jtfsdeletemin", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "1206b8dc-cfe5-4945-be7a-cc6d82cf6980", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "jtfsdeletemin0filesystemapitestdeletemin49792449b7db6cc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertieserror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertieserror.json new file mode 100644 index 0000000000000..fc3719659290c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertieserror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror021730b318939a760e49d19?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e096a06-0605-428c-ae1d-ef2ea202cc1b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD06A1DF4", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703931-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "8e096a06-0605-428c-ae1d-ef2ea202cc1b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror1928117a8ea18a471a460ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "971f4a8b-d362-479d-9681-9914046399eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "3a660159-a01e-0034-2ad3-90e1d2000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3a660159-a01e-0034-2ad3-90e1d2000000\nTime:2019-11-01T16:44:50.8789656Z", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "971f4a8b-d362-479d-9681-9914046399eb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertieserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc343d71-8e81-41cf-ac91-6e7333b16213" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70394a-e01e-007c-23d3-90d34f000000", + "Body" : "jtfsgetpropertieserrorjtfsgetpropertieserror021730b318939a760e49d19Fri, 01 Nov 2019 16:44:50 GMT\"0x8D75EEAD06A1DF4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "cc343d71-8e81-41cf-ac91-6e7333b16213", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieserror021730b318939a760e49d19?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b6b8b6e9-1d67-48d2-a399-22100baa3c0f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66017b-a01e-0034-48d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "b6b8b6e9-1d67-48d2-a399-22100baa3c0f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertieserror021730b318939a760e49d19", "jtfsgetpropertieserror1928117a8ea18a471a460ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertieslease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertieslease.json new file mode 100644 index 0000000000000..cf63b5cc469d5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertieslease.json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieslease062608baceb6475bcb4fcd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6cdedd58-3fe3-432e-9748-74dfb4a45110" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD010F15B", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc7038b9-e01e-007c-21d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "6cdedd58-3fe3-432e-9748-74dfb4a45110" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieslease062608baceb6475bcb4fcd9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "beec604f-6a59-47c6-94d8-3247cf7d140e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD010F15B", + "x-ms-lease-id" : "ffa94841-9377-4947-81b7-2e90494bb3d1", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66007f-a01e-0034-65d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "beec604f-6a59-47c6-94d8-3247cf7d140e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieslease062608baceb6475bcb4fcd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86fcd247-3d8d-4aa4-a1ea-a87193e9357c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEAD010F15B", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc7038de-e01e-007c-41d3-90d34f000000", + "x-ms-client-request-id" : "86fcd247-3d8d-4aa4-a1ea-a87193e9357c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertieslease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8897b6ec-7883-4147-88d0-9e22dcb6ffe2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6600b6-a01e-0034-14d3-90e1d2000000", + "Body" : "jtfsgetpropertiesleasejtfsgetpropertieslease062608baceb6475bcb4fcd9Fri, 01 Nov 2019 16:44:50 GMT\"0x8D75EEAD010F15B\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "8897b6ec-7883-4147-88d0-9e22dcb6ffe2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieslease062608baceb6475bcb4fcd9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a97b9fd-b13f-40f1-bd91-e68471066540" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD010F15B", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7038ec-e01e-007c-4fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "6a97b9fd-b13f-40f1-bd91-e68471066540" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertieslease062608baceb6475bcb4fcd9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3dbced69-0a4e-47bc-9710-7077a04f010e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6600dd-a01e-0034-37d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "3dbced69-0a4e-47bc-9710-7077a04f010e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertieslease062608baceb6475bcb4fcd9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesleasefail.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesleasefail.json new file mode 100644 index 0000000000000..64e88dd83a136 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesleasefail.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesleasefail08396896faee43307d43c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8fbe71f4-7b60-45c9-b809-14e0b3927823" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD0477481", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc70390f-e01e-007c-6ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "8fbe71f4-7b60-45c9-b809-14e0b3927823" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesleasefail08396896faee43307d43c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0105c414-87b5-4af9-8417-ea096b9e837f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "326", + "StatusCode" : "400", + "x-ms-request-id" : "3a660112-a01e-0034-6bd3-90e1d2000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:3a660112-a01e-0034-6bd3-90e1d2000000\nTime:2019-11-01T16:44:50.6538067Zx-ms-lease-idgarbage", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "0105c414-87b5-4af9-8417-ea096b9e837f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesleasefail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e255c5e-e1f3-4c54-adc4-49ccbae029a0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703921-e01e-007c-7fd3-90d34f000000", + "Body" : "jtfsgetpropertiesleasefailjtfsgetpropertiesleasefail08396896faee43307d43cFri, 01 Nov 2019 16:44:50 GMT\"0x8D75EEAD0477481\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "6e255c5e-e1f3-4c54-adc4-49ccbae029a0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesleasefail08396896faee43307d43c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e96358dd-f387-47ff-974f-4009085c084a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660134-a01e-0034-09d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "e96358dd-f387-47ff-974f-4009085c084a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesleasefail08396896faee43307d43c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesmin.json new file mode 100644 index 0000000000000..87596a1820301 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesmin.json @@ -0,0 +1,92 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0filesystemapitestgetpropertiesmin97199921?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c2a25b20-a6e6-41bc-846c-d776401a8396" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACFEF327A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703850-e01e-007c-47d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "c2a25b20-a6e6-41bc-846c-d776401a8396" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0filesystemapitestgetpropertiesmin97199921?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31261110-02e8-4eda-81af-687295e7279e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACFEF327A", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "3a66000b-a01e-0034-01d3-90e1d2000000", + "x-ms-client-request-id" : "31261110-02e8-4eda-81af-687295e7279e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "caef2f9f-c1d5-4902-9190-62b9ad119494" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703888-e01e-007c-76d3-90d34f000000", + "Body" : "jtfsgetpropertiesminjtfsgetpropertiesmin0filesystemapitestgetpropertiesmin97199921Fri, 01 Nov 2019 16:44:50 GMT\"0x8D75EEACFEF327A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "caef2f9f-c1d5-4902-9190-62b9ad119494", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesmin0filesystemapitestgetpropertiesmin97199921?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8980f508-ced0-4dd1-949d-14e980a43c8f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660047-a01e-0034-31d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "8980f508-ced0-4dd1-949d-14e980a43c8f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesmin0filesystemapitestgetpropertiesmin97199921" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesnull.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesnull.json new file mode 100644 index 0000000000000..564bacd0482a5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestgetpropertiesnull.json @@ -0,0 +1,92 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesnull05680370f0aafcc6b7477a91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66f24348-bf1b-4aaf-bf84-66d43fa2d911" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEACFCED365", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703817-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "66f24348-bf1b-4aaf-bf84-66d43fa2d911" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesnull05680370f0aafcc6b7477a91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d0bfa4f-8944-46de-bba0-390f468fefc6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEACFCED365", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "3a65ffad-a01e-0034-29d3-90e1d2000000", + "x-ms-client-request-id" : "2d0bfa4f-8944-46de-bba0-390f468fefc6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetpropertiesnull&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "59808f0d-3b56-4782-b15a-6b6d3a4c1876" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703835-e01e-007c-2fd3-90d34f000000", + "Body" : "jtfsgetpropertiesnulljtfsgetpropertiesnull05680370f0aafcc6b7477a91Fri, 01 Nov 2019 16:44:49 GMT\"0x8D75EEACFCED365\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "59808f0d-3b56-4782-b15a-6b6d3a4c1876", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetpropertiesnull05680370f0aafcc6b7477a91?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8bc7169c-f9dc-4274-96c9-c1f606b2cf1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65ffd3-a01e-0034-4ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:49 GMT", + "x-ms-client-request-id" : "8bc7169c-f9dc-4274-96c9-c1f606b2cf1a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetpropertiesnull05680370f0aafcc6b7477a91" ] +} \ 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 new file mode 100644 index 0000000000000..95bbddfeb896e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpaths.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpaths0filesystemapitestlistpaths39208704f0ae15b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3ba0126-0cec-496f-ba3b-3a89bc53ef09" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF7677EB", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705732-e01e-007c-65d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "f3ba0126-0cec-496f-ba3b-3a89bc53ef09" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpaths0filesystemapitestlistpaths39208704f0ae15b/javapathlistpaths1filesystemapitestlistpaths39264310f346e?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f34ccff-e4e0-4fbe-a9f6-447b2ebdb727" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF7FB824", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e027b-801f-00ab-67d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "7f34ccff-e4e0-4fbe-a9f6-447b2ebdb727" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpaths0filesystemapitestlistpaths39208704f0ae15b/javapathlistpaths2filesystemapitestlistpaths39211344b0711?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e746a19c-d7e9-42b1-b2c3-29dd1f0c8498" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADF8855F9", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e027c-801f-00ab-68d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "e746a19c-d7e9-42b1-b2c3-29dd1f0c8498" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpaths0filesystemapitestlistpaths39208704f0ae15b?recursive=false&upn=false&resource=filesystem", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "011e676e-500e-4248-926c-9b21b2b9d1e5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e027d-801f-00ab-69d3-909968000000", + "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"etag\":\"0x8D75EEADF7FB824\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:16 GMT\",\"name\":\"javapathlistpaths1filesystemapitestlistpaths39264310f346e\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"},{\"contentLength\":\"0\",\"etag\":\"0x8D75EEADF8855F9\",\"group\":\"$superuser\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:16 GMT\",\"name\":\"javapathlistpaths2filesystemapitestlistpaths39211344b0711\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "011e676e-500e-4248-926c-9b21b2b9d1e5", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistpaths&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1965eb44-1114-4f59-a2f6-614765c8da44" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66326e-a01e-0034-56d3-90e1d2000000", + "Body" : "jtfslistpathsjtfslistpaths0filesystemapitestlistpaths39208704f0ae15bFri, 01 Nov 2019 16:45:16 GMT\"0x8D75EEADF7677EB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "1965eb44-1114-4f59-a2f6-614765c8da44", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpaths0filesystemapitestlistpaths39208704f0ae15b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2db84ae1-2b5b-418e-9389-e5a397409769" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705791-e01e-007c-3cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "2db84ae1-2b5b-418e-9389-e5a397409769" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistpaths0filesystemapitestlistpaths39208704f0ae15b", "javapathlistpaths1filesystemapitestlistpaths39264310f346e", "javapathlistpaths2filesystemapitestlistpaths39211344b0711" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsmaxresults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsmaxresults.json new file mode 100644 index 0000000000000..3b43de2cc1f70 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsmaxresults.json @@ -0,0 +1,150 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpathsmaxresults0080138fce63abb0b34df98?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a34b7463-e9ff-4911-9fe1-fc90e8469f98" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAE016ACF6", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6633aa-a01e-0034-72d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "a34b7463-e9ff-4911-9fe1-fc90e8469f98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsmaxresults0080138fce63abb0b34df98/javapathlistpathsmaxresults1788522edfbda3b48145a?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7999cbe-42ab-4687-8cf1-1c8498e9bdf5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAE0207846", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0284-801f-00ab-70d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "e7999cbe-42ab-4687-8cf1-1c8498e9bdf5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsmaxresults0080138fce63abb0b34df98/javapathlistpathsmaxresults20563509d89bd8ed44419?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31b25bc3-4690-403d-9fd4-e8cb0f009c7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAE028E22E", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0285-801f-00ab-71d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "31b25bc3-4690-403d-9fd4-e8cb0f009c7a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsmaxresults0080138fce63abb0b34df98?recursive=false&maxResults=1&upn=false&resource=filesystem", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68268184-762b-46d0-a15f-6b68fc88b07e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-continuation" : "NTUxNDQ1NzQ1NDYxNjU2NTQ2NSAxMzIxNzEwMDMxNzI4MjAyOTAgamF2YXBhdGhsaXN0cGF0aHNtYXhyZXN1bHRzMjA1NjM1MDlkODliZDhlZDQ0NDE5", + "x-ms-request-id" : "aa8e0286-801f-00ab-72d3-909968000000", + "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"etag\":\"0x8D75EEAE0207846\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:17 GMT\",\"name\":\"javapathlistpathsmaxresults1788522edfbda3b48145a\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"}]}\n", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "68268184-762b-46d0-a15f-6b68fc88b07e", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsmaxresults0080138fce63abb0b34df98?continuation=NTUxNDQ1NzQ1NDYxNjU2NTQ2NSAxMzIxNzEwMDMxNzI4MjAyOTAgamF2YXBhdGhsaXN0cGF0aHNtYXhyZXN1bHRzMjA1NjM1MDlkODliZDhlZDQ0NDE5&recursive=false&maxResults=1&upn=false&resource=filesystem", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "41d7f98d-8a4a-4422-aa13-5f8d0dc70096" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0287-801f-00ab-73d3-909968000000", + "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"etag\":\"0x8D75EEAE028E22E\",\"group\":\"$superuser\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:17 GMT\",\"name\":\"javapathlistpathsmaxresults20563509d89bd8ed44419\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "41d7f98d-8a4a-4422-aa13-5f8d0dc70096", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistpathsmaxresults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "365d5cec-40bf-4724-9c28-2caf9d20d2ca" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7058dd-e01e-007c-62d3-90d34f000000", + "Body" : "jtfslistpathsmaxresultsjtfslistpathsmaxresults0080138fce63abb0b34df98Fri, 01 Nov 2019 16:45:17 GMT\"0x8D75EEAE016ACF6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:17 GMT", + "x-ms-client-request-id" : "365d5cec-40bf-4724-9c28-2caf9d20d2ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpathsmaxresults0080138fce63abb0b34df98?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91d78cc2-30e5-423a-ae36-2e57ae0e0379" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66343a-a01e-0034-71d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "91d78cc2-30e5-423a-ae36-2e57ae0e0379" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistpathsmaxresults0080138fce63abb0b34df98", "javapathlistpathsmaxresults1788522edfbda3b48145a", "javapathlistpathsmaxresults20563509d89bd8ed44419" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsrecursive.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsrecursive.json new file mode 100644 index 0000000000000..ef725ae22764d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsrecursive.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpathsrecursive074494bba8819310fa41809?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6fc98384-9538-4eb2-966c-a840dfe31140" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADFAD29AC", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a66329e-a01e-0034-02d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "6fc98384-9538-4eb2-966c-a840dfe31140" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsrecursive074494bba8819310fa41809/javapathlistpathsrecursive137281ce5449c7e36846b?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a852841-cbf6-4edd-93df-2847e81aaef1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADFB69807", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e027e-801f-00ab-6ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "5a852841-cbf6-4edd-93df-2847e81aaef1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsrecursive074494bba8819310fa41809/javapathlistpathsrecursive220880aa1c6da96dc341a?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5f018235-1508-45ce-ae8b-ac298afe2301" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADFBF0971", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e027f-801f-00ab-6bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "5f018235-1508-45ce-ae8b-ac298afe2301" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsrecursive074494bba8819310fa41809?recursive=true&upn=false&resource=filesystem", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33a50e0c-665a-49f7-b199-a45d24258959" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0280-801f-00ab-6cd3-909968000000", + "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"etag\":\"0x8D75EEADFB69807\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:16 GMT\",\"name\":\"javapathlistpathsrecursive137281ce5449c7e36846b\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"},{\"contentLength\":\"0\",\"etag\":\"0x8D75EEADFBF0971\",\"group\":\"$superuser\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:16 GMT\",\"name\":\"javapathlistpathsrecursive220880aa1c6da96dc341a\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", + "Date" : "Fri, 01 Nov 2019 16:45:15 GMT", + "x-ms-client-request-id" : "33a50e0c-665a-49f7-b199-a45d24258959", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistpathsrecursive&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "088011d4-962e-4148-b5b3-6172e460d223" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc70580b-e01e-007c-28d3-90d34f000000", + "Body" : "jtfslistpathsrecursivejtfslistpathsrecursive074494bba8819310fa41809Fri, 01 Nov 2019 16:45:16 GMT\"0x8D75EEADFAD29AC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "088011d4-962e-4148-b5b3-6172e460d223", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpathsrecursive074494bba8819310fa41809?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb566270-50bd-49a6-903b-699d98d048e9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66331c-a01e-0034-72d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "cb566270-50bd-49a6-903b-699d98d048e9" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistpathsrecursive074494bba8819310fa41809", "javapathlistpathsrecursive137281ce5449c7e36846b", "javapathlistpathsrecursive220880aa1c6da96dc341a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsreturnupn.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsreturnupn.json new file mode 100644 index 0000000000000..31446b4755716 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestlistpathsreturnupn.json @@ -0,0 +1,128 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpathsreturnupn025263f0c1a05b804d4462b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e782f08-875a-46d0-a175-abbe6f8ee2b6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADFE0705F", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc705831-e01e-007c-4dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "5e782f08-875a-46d0-a175-abbe6f8ee2b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsreturnupn025263f0c1a05b804d4462b/javapathlistpathsreturnupn163439a887c55f67c6463?resource=directory", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbbd1a5f-cd38-4376-885d-2a1ff4785a4f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADFE99927", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0281-801f-00ab-6dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "dbbd1a5f-cd38-4376-885d-2a1ff4785a4f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsreturnupn025263f0c1a05b804d4462b/javapathlistpathsreturnupn237818a4dd0f35b809464?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "916fb94a-8f30-48db-8a6f-68c6b2e00afe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEADFF4D3FE", + "Last-Modified" : "Fri, 01 Nov 2019 16:45:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0282-801f-00ab-6ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "916fb94a-8f30-48db-8a6f-68c6b2e00afe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfslistpathsreturnupn025263f0c1a05b804d4462b?recursive=false&upn=true&resource=filesystem", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce70733c-faf1-4fdc-a591-e2ea9dd9e4b9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aa8e0283-801f-00ab-6fd3-909968000000", + "Body" : "{\"paths\":[{\"contentLength\":\"0\",\"etag\":\"0x8D75EEADFE99927\",\"group\":\"$superuser\",\"isDirectory\":\"true\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:16 GMT\",\"name\":\"javapathlistpathsreturnupn163439a887c55f67c6463\",\"owner\":\"$superuser\",\"permissions\":\"rwxr-x---\"},{\"contentLength\":\"0\",\"etag\":\"0x8D75EEADFF4D3FE\",\"group\":\"$superuser\",\"lastModified\":\"Fri, 01 Nov 2019 16:45:16 GMT\",\"name\":\"javapathlistpathsreturnupn237818a4dd0f35b809464\",\"owner\":\"$superuser\",\"permissions\":\"rw-r-----\"}]}\n", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "ce70733c-faf1-4fdc-a591-e2ea9dd9e4b9", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistpathsreturnupn&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe20b56d-cf53-4a78-a95e-810f8f56965f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66337d-a01e-0034-48d3-90e1d2000000", + "Body" : "jtfslistpathsreturnupnjtfslistpathsreturnupn025263f0c1a05b804d4462bFri, 01 Nov 2019 16:45:16 GMT\"0x8D75EEADFE0705F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "fe20b56d-cf53-4a78-a95e-810f8f56965f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistpathsreturnupn025263f0c1a05b804d4462b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c07ab7f-74cf-45e2-86b5-7e86ae695fe3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc705889-e01e-007c-1cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:45:16 GMT", + "x-ms-client-request-id" : "8c07ab7f-74cf-45e2-86b5-7e86ae695fe3" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistpathsreturnupn025263f0c1a05b804d4462b", "javapathlistpathsreturnupn163439a887c55f67c6463", "javapathlistpathsreturnupn237818a4dd0f35b809464" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadata.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadata.json new file mode 100644 index 0000000000000..e35d1c069cac2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadata.json @@ -0,0 +1,153 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadata0filesystemapitestsetmetadata77087094bc39b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aac2af1c-cf58-48c9-ac83-f86e056bb190" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD08B8EA2", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703961-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "aac2af1c-cf58-48c9-ac83-f86e056bb190" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadata1filesystemapitestsetmetadata770787917ac2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7840d203-1189-4d87-b67a-1d9b39b36e07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD094953D", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6601b9-a01e-0034-80d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "7840d203-1189-4d87-b67a-1d9b39b36e07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadata1filesystemapitestsetmetadata770787917ac2f?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92086aa2-df58-4504-a408-95d0cb3a142e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD09E1C18", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703998-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "92086aa2-df58-4504-a408-95d0cb3a142e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadata1filesystemapitestsetmetadata770787917ac2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "79be9a77-1f10-4774-8198-0f4c9be20e75" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEAD09E1C18", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "3a6601dd-a01e-0034-20d3-90e1d2000000", + "x-ms-client-request-id" : "79be9a77-1f10-4774-8198-0f4c9be20e75" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a87c9112-7573-4deb-a2cc-cd48153e6268" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7039b4-e01e-007c-80d3-90d34f000000", + "Body" : "jtfssetmetadatajtfssetmetadata0filesystemapitestsetmetadata77087094bc39bFri, 01 Nov 2019 16:44:51 GMT\"0x8D75EEAD08B8EA2\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfssetmetadata1filesystemapitestsetmetadata770787917ac2fFri, 01 Nov 2019 16:44:51 GMT\"0x8D75EEAD09E1C18\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "a87c9112-7573-4deb-a2cc-cd48153e6268", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadata0filesystemapitestsetmetadata77087094bc39b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bef4cb14-00f4-4a95-b361-99254960020e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660202-a01e-0034-40d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:50 GMT", + "x-ms-client-request-id" : "bef4cb14-00f4-4a95-b361-99254960020e" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadata1filesystemapitestsetmetadata770787917ac2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ef1ad55-559a-475d-8c68-0fbfaae10b2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc7039d4-e01e-007c-1dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "0ef1ad55-559a-475d-8c68-0fbfaae10b2b" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadata0filesystemapitestsetmetadata77087094bc39b", "jtfssetmetadata1filesystemapitestsetmetadata770787917ac2f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[0].json new file mode 100644 index 0000000000000..441dd767c4aab --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[0].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac0a7215985b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1166645-1f4b-45c3-808a-80d7e2e2ab4a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD1405936", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703ab8-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "e1166645-1f4b-45c3-808a-80d7e2e2ab4a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac0a7215985b0?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b402c43c-d566-4969-a1f2-cc80d6ce0a1b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD14920FC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660380-a01e-0034-16d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "b402c43c-d566-4969-a1f2-cc80d6ce0a1b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd2b9953-9c34-4676-bf41-dab99937eebe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703ad9-e01e-007c-06d3-90d34f000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0filesystemapitestsetmetadataac0a7215985b0Fri, 01 Nov 2019 16:44:52 GMT\"0x8D75EEAD14920FC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "dd2b9953-9c34-4676-bf41-dab99937eebe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac0a7215985b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a9d7b3b-abea-4287-bfb4-e0baca63e269" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660397-a01e-0034-2cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "4a9d7b3b-abea-4287-bfb4-e0baca63e269" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0filesystemapitestsetmetadataac0a7215985b0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[1].json new file mode 100644 index 0000000000000..04160d5b76513 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[1].json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac83a78712fe8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0a2f32b-540d-4ab6-8e26-de1403989e58" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD162DB92", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703af7-e01e-007c-24d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "a0a2f32b-540d-4ab6-8e26-de1403989e58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac83a78712fe8?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbfcf320-20a1-402b-b0db-b683f79cc3be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD16B7C42", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6603b4-a01e-0034-46d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "fbfcf320-20a1-402b-b0db-b683f79cc3be" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76c0af8f-4ed1-4439-82a5-76c8762e364a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703b14-e01e-007c-3cd3-90d34f000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0filesystemapitestsetmetadataac83a78712fe8Fri, 01 Nov 2019 16:44:52 GMT\"0x8D75EEAD16B7C42\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "76c0af8f-4ed1-4439-82a5-76c8762e364a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac83a78712fe8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2f6a7b2-85ea-4d98-acde-16feaf2b54e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6603d4-a01e-0034-62d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "a2f6a7b2-85ea-4d98-acde-16feaf2b54e5" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0filesystemapitestsetmetadataac83a78712fe8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[2].json new file mode 100644 index 0000000000000..2cf271631f834 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataac[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50fb9cda-522b-4c9f-888c-54d41e0d1761" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD183AFEC", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703b30-e01e-007c-55d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "50fb9cda-522b-4c9f-888c-54d41e0d1761" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c74e4c60-451f-495b-a612-b347452693bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD183AFEC", + "x-ms-lease-id" : "dee62602-6c7e-4dfb-a3d9-61dd94ce2f8c", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660424-a01e-0034-2ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "c74e4c60-451f-495b-a612-b347452693bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7f?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5391ed4e-ab85-4b74-aba5-dbb1a0292f56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD1A69420", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703b58-e01e-007c-78d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "5391ed4e-ab85-4b74-aba5-dbb1a0292f56" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a0b499f-f237-4174-86a7-c6b1a3ad3f19" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660455-a01e-0034-56d3-90e1d2000000", + "Body" : "jtfssetmetadataacjtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7fFri, 01 Nov 2019 16:44:52 GMT\"0x8D75EEAD1A69420\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "0a0b499f-f237-4174-86a7-c6b1a3ad3f19", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "712b05ea-362f-4d1f-9eb4-aa147a2e3408" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD1A69420", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703b60-e01e-007c-80d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "712b05ea-362f-4d1f-9eb4-aa147a2e3408" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34c6827d-dbee-41d1-afa8-464e1fce0e2f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660496-a01e-0034-0ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "34c6827d-dbee-41d1-afa8-464e1fce0e2f" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataac0filesystemapitestsetmetadataac6b801904c7f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacfail[0].json new file mode 100644 index 0000000000000..ba1aa48e18c01 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacfail[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail085836858c753e899b42e7ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62981866-0f5d-4876-9348-ebd6ec3a93a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD1C5F4FD", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703b81-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "62981866-0f5d-4876-9348-ebd6ec3a93a5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail085836858c753e899b42e7ba?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15c0f6e3-fb13-4879-a444-68df5a912eee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "3a6604f3-a01e-0034-61d3-90e1d2000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:3a6604f3-a01e-0034-61d3-90e1d2000000\nTime:2019-11-01T16:44:53.1575747Z", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "15c0f6e3-fb13-4879-a444-68df5a912eee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "13bbbf28-3f87-4065-998e-e6d450f006fd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703b9e-e01e-007c-38d3-90d34f000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail085836858c753e899b42e7baFri, 01 Nov 2019 16:44:53 GMT\"0x8D75EEAD1C5F4FD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "13bbbf28-3f87-4065-998e-e6d450f006fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail085836858c753e899b42e7ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fdea11f0-f22f-4de7-94b6-edba33cbd8d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660511-a01e-0034-7dd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "fdea11f0-f22f-4de7-94b6-edba33cbd8d3" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail085836858c753e899b42e7ba" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacfail[1].json new file mode 100644 index 0000000000000..a5d5ae13112c2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacfail[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0048496ade9c960f24481da5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66f80dce-18ac-460d-a99d-9571af9fbc8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD1E87755", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703bb2-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "66f80dce-18ac-460d-a99d-9571af9fbc8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0048496ade9c960f24481da5?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b26b75ed-ad91-45ee-8f97-9f4d5b56b497" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithContainerOperation", + "retry-after" : "0", + "Content-Length" : "251", + "StatusCode" : "412", + "x-ms-request-id" : "3a660549-a01e-0034-31d3-90e1d2000000", + "Body" : "LeaseNotPresentWithContainerOperationThere is currently no lease on the container.\nRequestId:3a660549-a01e-0034-31d3-90e1d2000000\nTime:2019-11-01T16:44:53.3827333Z", + "Date" : "Fri, 01 Nov 2019 16:44:52 GMT", + "x-ms-client-request-id" : "b26b75ed-ad91-45ee-8f97-9f4d5b56b497", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f5d145b-f153-4304-b562-0ab6275da296" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703bce-e01e-007c-59d3-90d34f000000", + "Body" : "jtfssetmetadataacfailjtfssetmetadataacfail0048496ade9c960f24481da5Fri, 01 Nov 2019 16:44:53 GMT\"0x8D75EEAD1E87755\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "9f5d145b-f153-4304-b562-0ab6275da296", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacfail0048496ade9c960f24481da5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4c5ec57-ba10-4ba0-81ac-d73dc4dd9af8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a66056f-a01e-0034-51d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "e4c5ec57-ba10-4ba0-81ac-d73dc4dd9af8" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacfail0048496ade9c960f24481da5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[0].json new file mode 100644 index 0000000000000..60c06f459f2bd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacillegal06129098d188e7e42f4a74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7b77a0f-b26c-44e0-a414-482a71d65269" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD208D66A", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703be8-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "f7b77a0f-b26c-44e0-a414-482a71d65269" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a537d61-f8fc-42ea-bdd6-8e2fbc434bbd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660591-a01e-0034-6bd3-90e1d2000000", + "Body" : "jtfssetmetadataacillegaljtfssetmetadataacillegal06129098d188e7e42f4a74Fri, 01 Nov 2019 16:44:53 GMT\"0x8D75EEAD208D66A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "7a537d61-f8fc-42ea-bdd6-8e2fbc434bbd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacillegal06129098d188e7e42f4a74?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76eb535c-7b4e-437d-8aab-e109d6423b4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703c04-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "76eb535c-7b4e-437d-8aab-e109d6423b4c" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacillegal06129098d188e7e42f4a74" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[1].json new file mode 100644 index 0000000000000..f04f07074eccb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacillegal0882836bc7f21c3f12423f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fdbb59c8-0232-487b-8aef-b3e0f77dc820" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD2220CBE", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6605bf-a01e-0034-14d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "fdbb59c8-0232-487b-8aef-b3e0f77dc820" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "995c2bcf-7816-40d1-b762-6bc2322f2519" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703c16-e01e-007c-18d3-90d34f000000", + "Body" : "jtfssetmetadataacillegaljtfssetmetadataacillegal0882836bc7f21c3f12423fFri, 01 Nov 2019 16:44:53 GMT\"0x8D75EEAD2220CBE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "995c2bcf-7816-40d1-b762-6bc2322f2519", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacillegal0882836bc7f21c3f12423f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d56f8bb-ef8f-4d5c-8276-af07f99cca24" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6605f1-a01e-0034-43d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "0d56f8bb-ef8f-4d5c-8276-af07f99cca24" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacillegal0882836bc7f21c3f12423f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[2].json new file mode 100644 index 0000000000000..2abf1164e5094 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataacillegal[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacillegal06775037b198154eab408a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "142799e4-338c-41ff-b640-2ff348510148" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD23BD67F", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703c28-e01e-007c-26d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "142799e4-338c-41ff-b640-2ff348510148" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71d91bec-fca7-4412-ac5c-b8d869b959b2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a660618-a01e-0034-67d3-90e1d2000000", + "Body" : "jtfssetmetadataacillegaljtfssetmetadataacillegal06775037b198154eab408aFri, 01 Nov 2019 16:44:53 GMT\"0x8D75EEAD23BD67F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "71d91bec-fca7-4412-ac5c-b8d869b959b2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataacillegal06775037b198154eab408a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0721635c-438a-423d-afe2-24ce2b37e633" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703c3a-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "0721635c-438a-423d-afe2-24ce2b37e633" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataacillegal06775037b198154eab408a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataerror.json new file mode 100644 index 0000000000000..fb8b1be3963d4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadataerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0filesystemapitestsetmetadataerrorb7e10631?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b72c8e84-8f1c-4442-80d3-f1755017ec65" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD25D99E6", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660650-a01e-0034-19d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "b72c8e84-8f1c-4442-80d3-f1755017ec65" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror1filesystemapitestsetmetadataerrorb7e39574?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8ff7716-a177-4936-aac4-d364de558120" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "dc703c5e-e01e-007c-58d3-90d34f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dc703c5e-e01e-007c-58d3-90d34f000000\nTime:2019-11-01T16:44:54.1521606Z", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "d8ff7716-a177-4936-aac4-d364de558120", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadataerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3eb9d77f-a769-414b-94d8-4c2d52f40c1d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a66067d-a01e-0034-41d3-90e1d2000000", + "Body" : "jtfssetmetadataerrorjtfssetmetadataerror0filesystemapitestsetmetadataerrorb7e10631Fri, 01 Nov 2019 16:44:54 GMT\"0x8D75EEAD25D99E6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:53 GMT", + "x-ms-client-request-id" : "3eb9d77f-a769-414b-94d8-4c2d52f40c1d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadataerror0filesystemapitestsetmetadataerrorb7e10631?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "612c16b9-fe6c-4c32-9f6d-dfb3786ad051" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703c79-e01e-007c-6fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:54 GMT", + "x-ms-client-request-id" : "612c16b9-fe6c-4c32-9f6d-dfb3786ad051" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadataerror0filesystemapitestsetmetadataerrorb7e10631", "jtfssetmetadataerror1filesystemapitestsetmetadataerrorb7e39574" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatametadata[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatametadata[0].json new file mode 100644 index 0000000000000..b67af5959878d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatametadata[0].json @@ -0,0 +1,113 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata079486661e8bd44fae4d6e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14e35b24-0478-4c13-8c2a-c1715023dd74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD0EF9298", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc703a1d-e01e-007c-5dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "14e35b24-0478-4c13-8c2a-c1715023dd74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata079486661e8bd44fae4d6e9?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50968a03-f30b-46a0-b8f1-879e9d195d07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD0F83340", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6602a6-a01e-0034-51d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "50968a03-f30b-46a0-b8f1-879e9d195d07" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata079486661e8bd44fae4d6e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "077dd119-4ad2-4010-a03f-94e89efd9b32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEAD0F83340", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc703a3f-e01e-007c-7ad3-90d34f000000", + "x-ms-client-request-id" : "077dd119-4ad2-4010-a03f-94e89efd9b32" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "977d0eda-323c-458a-8693-71acfe4028b3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a6602bb-a01e-0034-66d3-90e1d2000000", + "Body" : "jtfssetmetadatametadatajtfssetmetadatametadata079486661e8bd44fae4d6e9Fri, 01 Nov 2019 16:44:51 GMT\"0x8D75EEAD0F83340\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "977d0eda-323c-458a-8693-71acfe4028b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata079486661e8bd44fae4d6e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74167e28-39c3-4755-88f1-5ed06f06da2c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc703a59-e01e-007c-13d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "74167e28-39c3-4755-88f1-5ed06f06da2c" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatametadata079486661e8bd44fae4d6e9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatametadata[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatametadata[1].json new file mode 100644 index 0000000000000..f4f8ed13af118 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatametadata[1].json @@ -0,0 +1,115 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0886714f8fcf7400fe4813a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eca87c06-198b-4936-a6fe-4816f3f2e3a8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD116D517", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a6602e2-a01e-0034-0ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "eca87c06-198b-4936-a6fe-4816f3f2e3a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0886714f8fcf7400fe4813a?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6212fc2-1044-4137-bf3d-15faef200938" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD11F7163", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703a79-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "a6212fc2-1044-4137-bf3d-15faef200938" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0886714f8fcf7400fe4813a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3dd52fb-5134-4dc5-bb94-8464c8954b81" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-meta-foo" : "bar", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEAD11F7163", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "3a660312-a01e-0034-33d3-90e1d2000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "a3dd52fb-5134-4dc5-bb94-8464c8954b81" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatametadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8eed22ac-e16e-401b-bf28-73fa5dceab93" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc703a95-e01e-007c-4dd3-90d34f000000", + "Body" : "jtfssetmetadatametadatajtfssetmetadatametadata0886714f8fcf7400fe4813aFri, 01 Nov 2019 16:44:52 GMT\"0x8D75EEAD11F7163\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "8eed22ac-e16e-401b-bf28-73fa5dceab93", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatametadata0886714f8fcf7400fe4813a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6f49000-711b-43a6-b9ce-df44ddb9ea5c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660346-a01e-0034-63d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "c6f49000-711b-43a6-b9ce-df44ddb9ea5c" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatametadata0886714f8fcf7400fe4813a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatamin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatamin.json new file mode 100644 index 0000000000000..190baa767fc29 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/FileSystemAPITestsetmetadatamin.json @@ -0,0 +1,114 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0filesystemapitestsetmetadataminf9e90580f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e782eed9-7c1b-4c35-a4d6-f3e9722de223" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD0C79554", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a660238-a01e-0034-6fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "e782eed9-7c1b-4c35-a4d6-f3e9722de223" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0filesystemapitestsetmetadataminf9e90580f6?restype=container&comp=metadata", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50ba00d7-2f38-477a-b697-fdfa1a871ec6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAD0D07FCF", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7039f2-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "50ba00d7-2f38-477a-b697-fdfa1a871ec6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0filesystemapitestsetmetadataminf9e90580f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "55bf9f18-4e2c-4d31-8079-82b5d7d5cd12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:44:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-meta-foo" : "bar", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEAD0D07FCF", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "3a660253-a01e-0034-08d3-90e1d2000000", + "x-ms-client-request-id" : "55bf9f18-4e2c-4d31-8079-82b5d7d5cd12" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfssetmetadatamin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "164f1658-0c82-4675-afa1-47e05fce7949" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc7039fe-e01e-007c-41d3-90d34f000000", + "Body" : "jtfssetmetadataminjtfssetmetadatamin0filesystemapitestsetmetadataminf9e90580f6Fri, 01 Nov 2019 16:44:51 GMT\"0x8D75EEAD0D07FCF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "164f1658-0c82-4675-afa1-47e05fce7949", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfssetmetadatamin0filesystemapitestsetmetadataminf9e90580f6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "414dc8ff-c251-4fa5-9132-4b648c5798be" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a660277-a01e-0034-26d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:44:51 GMT", + "x-ms-client-request-id" : "414dc8ff-c251-4fa5-9132-4b648c5798be" + }, + "Exception" : null + } ], + "variables" : [ "jtfssetmetadatamin0filesystemapitestsetmetadataminf9e90580f6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[0].json new file mode 100644 index 0000000000000..8204834755b81 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[0].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease56975078f21?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1140bd80-9400-43cf-ba0a-57b6177e287a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65906ADE", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f327d-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:50 GMT", + "x-ms-client-request-id" : "1140bd80-9400-43cf-ba0a-57b6177e287a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease56975078f21/javapathacquirefilelease1leaseapitestacquirefilelease569178078?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1beee7b-368a-4028-9ed8-9d1985027b29" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA659A39E0", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa2-801f-00ab-31d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "f1beee7b-368a-4028-9ed8-9d1985027b29" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease56975078f21/javapathacquirefilelease1leaseapitestacquirefilelease569178078?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74da87b4-362a-4314-99a3-3a9f27eb2f82" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA659A39E0", + "x-ms-lease-id" : "421088ac-1117-453c-99f8-639641e21900", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f32aa-e01e-007c-50d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:50 GMT", + "x-ms-client-request-id" : "74da87b4-362a-4314-99a3-3a9f27eb2f82" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease56975078f21/javapathacquirefilelease1leaseapitestacquirefilelease569178078", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae69300a-0e3f-469a-a886-ef2b296d87d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:41:50 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", + "ETag" : "0x8D75EEA659A39E0", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f32bb-e01e-007c-61d3-90d34f000000", + "x-ms-client-request-id" : "ae69300a-0e3f-469a-a886-ef2b296d87d8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbd43ea4-260f-43e1-a8e5-28231ab93acd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f32cd-e01e-007c-71d3-90d34f000000", + "Body" : "jtfsacquirefileleasejtfsacquirefilelease0leaseapitestacquirefilelease56975078f21Fri, 01 Nov 2019 16:41:51 GMT\"0x8D75EEA65906ADE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:50 GMT", + "x-ms-client-request-id" : "dbd43ea4-260f-43e1-a8e5-28231ab93acd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease56975078f21?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90bfbfe3-4e5e-430c-b643-3477ce4aa02d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f32e7-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:50 GMT", + "x-ms-client-request-id" : "90bfbfe3-4e5e-430c-b643-3477ce4aa02d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilelease0leaseapitestacquirefilelease56975078f21", "javapathacquirefilelease1leaseapitestacquirefilelease569178078" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[1].json new file mode 100644 index 0000000000000..0cf0759a1ffc9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[1].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefileleasece270091439?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95d3fac2-3020-43d8-b768-5fde5249dae2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65C0F979", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f32fb-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:50 GMT", + "x-ms-client-request-id" : "95d3fac2-3020-43d8-b768-5fde5249dae2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefileleasece270091439/javapathacquirefilelease1leaseapitestacquirefileleasece2400986?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "936645e4-db9a-4854-af55-35120a15ba8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65CA951F", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa3-801f-00ab-32d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "936645e4-db9a-4854-af55-35120a15ba8a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefileleasece270091439/javapathacquirefilelease1leaseapitestacquirefileleasece2400986?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24b5f257-56fa-41df-970a-dd93762b405b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65CA951F", + "x-ms-lease-id" : "d5cc80ec-c800-48de-acb1-16cb05e62905", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3331-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "24b5f257-56fa-41df-970a-dd93762b405b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefileleasece270091439/javapathacquirefilelease1leaseapitestacquirefileleasece2400986", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "027a018b-28ca-42fa-bf65-9bba08422aed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16: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", + "ETag" : "0x8D75EEA65CA951F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-lease-duration" : "fixed", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f3345-e01e-007c-5fd3-90d34f000000", + "x-ms-client-request-id" : "027a018b-28ca-42fa-bf65-9bba08422aed", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a90bfe14-43e7-43ba-a9a9-1a0ec1a30796" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f335c-e01e-007c-74d3-90d34f000000", + "Body" : "jtfsacquirefileleasejtfsacquirefilelease0leaseapitestacquirefileleasece270091439Fri, 01 Nov 2019 16:41:51 GMT\"0x8D75EEA65C0F979\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "a90bfe14-43e7-43ba-a9a9-1a0ec1a30796", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefileleasece270091439?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a8c7add-a7a6-47a4-87d4-8d603b4bae66" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3377-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "5a8c7add-a7a6-47a4-87d4-8d603b4bae66" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilelease0leaseapitestacquirefileleasece270091439", "javapathacquirefilelease1leaseapitestacquirefileleasece2400986" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[2].json new file mode 100644 index 0000000000000..8e59ca598ba48 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilelease[2].json @@ -0,0 +1,139 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease32c30461474?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a50e456f-e3cd-498a-97ef-b2a808792fa0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65F00133", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3394-e01e-007c-28d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "a50e456f-e3cd-498a-97ef-b2a808792fa0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease32c30461474/javapathacquirefilelease1leaseapitestacquirefilelease32c218933?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbbf3e2e-3416-4747-bf54-2577d447af60" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65FA0586", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa4-801f-00ab-33d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "fbbf3e2e-3416-4747-bf54-2577d447af60" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease32c30461474/javapathacquirefilelease1leaseapitestacquirefilelease32c218933?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "91c2cef0-7cc6-47d9-a71b-282fbfc4bef9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA65FA0586", + "x-ms-lease-id" : "d469e99e-3028-47e8-958e-939d3a0f5fce", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f33ba-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "91c2cef0-7cc6-47d9-a71b-282fbfc4bef9" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease32c30461474/javapathacquirefilelease1leaseapitestacquirefilelease32c218933", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "458b1452-85b3-4ed1-83b0-d29ca273b7ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16: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", + "ETag" : "0x8D75EEA65FA0586", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f33ce-e01e-007c-5fd3-90d34f000000", + "x-ms-client-request-id" : "458b1452-85b3-4ed1-83b0-d29ca273b7ed", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06a96e1d-fb4c-41f7-aab6-ecb3c4fe3050" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f33e1-e01e-007c-72d3-90d34f000000", + "Body" : "jtfsacquirefileleasejtfsacquirefilelease0leaseapitestacquirefilelease32c30461474Fri, 01 Nov 2019 16:41:52 GMT\"0x8D75EEA65F00133\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "06a96e1d-fb4c-41f7-aab6-ecb3c4fe3050", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilelease0leaseapitestacquirefilelease32c30461474?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c513db3-0a13-4348-9ebc-8d82215c8b08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f33f4-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "3c513db3-0a13-4348-9ebc-8d82215c8b08" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilelease0leaseapitestacquirefilelease32c30461474", "javapathacquirefilelease1leaseapitestacquirefilelease32c218933" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[0].json new file mode 100644 index 0000000000000..ddf97c3bf5c40 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac96507402c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48185094-5d00-437d-bee2-a87f63841064" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66C13288", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f35b0-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "48185094-5d00-437d-bee2-a87f63841064" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac96507402c/javapathacquirefileleaseac116332c472f8d6a17642d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c9f99ff-b42f-4dc9-8fe3-4f08933cf7bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66CC30AD", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa9-801f-00ab-38d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "3c9f99ff-b42f-4dc9-8fe3-4f08933cf7bb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac96507402c/javapathacquirefileleaseac116332c472f8d6a17642d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68c3cbb1-923b-437a-bb7b-82314af566f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66CC30AD", + "x-ms-lease-id" : "12cab787-9e1a-448b-930a-ec1aeada041d", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f35ec-e01e-007c-5fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "68c3cbb1-923b-437a-bb7b-82314af566f1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "abac8e27-4483-4309-845e-3688905c7d21" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f35fe-e01e-007c-6fd3-90d34f000000", + "Body" : "jtfsacquirefileleaseacjtfsacquirefileleaseac0leaseapitestacquirefileleaseac96507402cFri, 01 Nov 2019 16:41:53 GMT\"0x8D75EEA66C13288\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "abac8e27-4483-4309-845e-3688905c7d21", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac96507402c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "174c0c2b-42d4-4393-973d-9ed52eab1fff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f360f-e01e-007c-7fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "174c0c2b-42d4-4393-973d-9ed52eab1fff" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseac0leaseapitestacquirefileleaseac96507402c", "javapathacquirefileleaseac116332c472f8d6a17642d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[1].json new file mode 100644 index 0000000000000..35f9564128ce3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacaca603380?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15a8ff74-caa8-4522-8248-77b22bc4c5db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66EA6CCE", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3620-e01e-007c-0fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "15a8ff74-caa8-4522-8248-77b22bc4c5db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacaca603380/javapathacquirefileleaseac1708051476752c3cad4e1?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "626869e0-bfc5-4722-bf4a-28b8ce791495" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66F5C0FF", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffaa-801f-00ab-39d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "626869e0-bfc5-4722-bf4a-28b8ce791495" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacaca603380/javapathacquirefileleaseac1708051476752c3cad4e1?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dad881c3-03d5-47c3-a72c-96a969fb924f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66F5C0FF", + "x-ms-lease-id" : "00a89044-5652-44c6-909c-df6eaf508612", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3655-e01e-007c-40d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "dad881c3-03d5-47c3-a72c-96a969fb924f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fcf55636-ecbd-4e73-b9e9-265e1242686a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f3663-e01e-007c-4ed3-90d34f000000", + "Body" : "jtfsacquirefileleaseacjtfsacquirefileleaseac0leaseapitestacquirefileleaseacaca603380Fri, 01 Nov 2019 16:41:53 GMT\"0x8D75EEA66EA6CCE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "fcf55636-ecbd-4e73-b9e9-265e1242686a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacaca603380?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bbb96149-96a9-4bad-9365-fa2feef7256f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3678-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "bbb96149-96a9-4bad-9365-fa2feef7256f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseac0leaseapitestacquirefileleaseacaca603380", "javapathacquirefileleaseac1708051476752c3cad4e1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[2].json new file mode 100644 index 0000000000000..4bf319149a24b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac46362019d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "565ce812-a20c-42d5-adb6-3c085346cae8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67141C65", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3697-e01e-007c-02d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "565ce812-a20c-42d5-adb6-3c085346cae8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac46362019d/javapathacquirefileleaseac1448540f260a448a904d4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "184e9361-d1ee-40ab-86a6-3d5507382e4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA671DE789", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffab-801f-00ab-3ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "184e9361-d1ee-40ab-86a6-3d5507382e4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac46362019d/javapathacquirefileleaseac1448540f260a448a904d4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33b57c57-eb1f-49b0-8a92-541131070043" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA671DE789", + "x-ms-lease-id" : "99ba879f-eeef-4c63-b35d-6babbd6a9239", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f36c7-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "33b57c57-eb1f-49b0-8a92-541131070043" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6debf3fb-5fab-4351-849c-94befd01aaa3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f36d8-e01e-007c-3dd3-90d34f000000", + "Body" : "jtfsacquirefileleaseacjtfsacquirefileleaseac0leaseapitestacquirefileleaseac46362019dFri, 01 Nov 2019 16:41:54 GMT\"0x8D75EEA67141C65\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "6debf3fb-5fab-4351-849c-94befd01aaa3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseac46362019d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f4697eb-f14d-4ec9-9f3c-5c445e10c9d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f36ef-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "2f4697eb-f14d-4ec9-9f3c-5c445e10c9d3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseac0leaseapitestacquirefileleaseac46362019d", "javapathacquirefileleaseac1448540f260a448a904d4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[3].json new file mode 100644 index 0000000000000..556a9fcdae776 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8e45249-2dd9-4045-aa6b-02ff7920a5eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA673BA8B5", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3702-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "f8e45249-2dd9-4045-aa6b-02ff7920a5eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160/javapathacquirefileleaseac1261177a84a7f067e146d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "22dd9f87-538e-4f91-a21f-389e30b3038a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67459600", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffac-801f-00ab-3bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "22dd9f87-538e-4f91-a21f-389e30b3038a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160/javapathacquirefileleaseac1261177a84a7f067e146d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "913d446c-7afe-4179-a72e-988da96012ce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:41:53 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", + "ETag" : "0x8D75EEA67459600", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:41:54 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f372a-e01e-007c-0bd3-90d34f000000", + "x-ms-client-request-id" : "913d446c-7afe-4179-a72e-988da96012ce", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160/javapathacquirefileleaseac1261177a84a7f067e146d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e113990-9178-4863-b948-d06a065c9583" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67459600", + "x-ms-lease-id" : "12f8afc9-6ad8-41cf-99a3-e8d09e7f93d8", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3742-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "2e113990-9178-4863-b948-d06a065c9583" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b730eadc-f43e-461f-a2a1-0cfc9f77f787" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f3759-e01e-007c-39d3-90d34f000000", + "Body" : "jtfsacquirefileleaseacjtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160Fri, 01 Nov 2019 16:41:54 GMT\"0x8D75EEA673BA8B5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "b730eadc-f43e-461f-a2a1-0cfc9f77f787", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ffe0c50c-23b7-4abc-9754-6d235aeaab8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f376b-e01e-007c-4ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "ffe0c50c-23b7-4abc-9754-6d235aeaab8d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf1c308160", "javapathacquirefileleaseac1261177a84a7f067e146d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[4].json new file mode 100644 index 0000000000000..1deb576941003 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseac[4].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf9c63297b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d303f710-fae9-408a-9253-182bc68e7967" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA676B9AFD", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f378b-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "d303f710-fae9-408a-9253-182bc68e7967" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf9c63297b/javapathacquirefileleaseac13434220499a11ab1b4ab?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "616a7650-67cf-4dd0-b582-e48ab07f0131" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67754537", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffad-801f-00ab-3cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "616a7650-67cf-4dd0-b582-e48ab07f0131" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf9c63297b/javapathacquirefileleaseac13434220499a11ab1b4ab?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adc7ca0a-7160-4d7f-a58e-444d57e9989d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67754537", + "x-ms-lease-id" : "e4a48da6-1764-49f0-8fe1-10cea1da4125", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f37c2-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "adc7ca0a-7160-4d7f-a58e-444d57e9989d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c675ec7-04c7-4a6c-b05a-dcc8a3504fb8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f37f7-e01e-007c-47d3-90d34f000000", + "Body" : "jtfsacquirefileleaseacjtfsacquirefileleaseac0leaseapitestacquirefileleaseacf9c63297bFri, 01 Nov 2019 16:41:54 GMT\"0x8D75EEA676B9AFD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "7c675ec7-04c7-4a6c-b05a-dcc8a3504fb8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf9c63297b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e41d78af-27c8-4028-b4b7-eb136d7d1e83" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3806-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:53 GMT", + "x-ms-client-request-id" : "e41d78af-27c8-4028-b4b7-eb136d7d1e83" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseac0leaseapitestacquirefileleaseacf9c63297b", "javapathacquirefileleaseac13434220499a11ab1b4ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[0].json new file mode 100644 index 0000000000000..f9d7a9f994bce --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail046316ed511c77407f480?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "647bf539-ec8e-4a34-90cb-29c5b0787cac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA679D3B3E", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f381e-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "647bf539-ec8e-4a34-90cb-29c5b0787cac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseacfail046316ed511c77407f480/javapathacquirefileleaseacfail1842235182448cf4604?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d4e516b-27de-42cf-90b3-cc3d6b5c21b5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67AA4982", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffae-801f-00ab-3dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "5d4e516b-27de-42cf-90b3-cc3d6b5c21b5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail046316ed511c77407f480/javapathacquirefileleaseacfail1842235182448cf4604?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3b3dac8-fb2c-416e-9545-aa6c511fa537" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f3863-e01e-007c-2cd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f3863-e01e-007c-2cd3-90d34f000000\nTime:2019-11-01T16:41:55.1591467Z", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "f3b3dac8-fb2c-416e-9545-aa6c511fa537", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f44e41f8-9615-484d-9282-913b416260ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f3875-e01e-007c-3cd3-90d34f000000", + "Body" : "jtfsacquirefileleaseacfailjtfsacquirefileleaseacfail046316ed511c77407f480Fri, 01 Nov 2019 16:41:54 GMT\"0x8D75EEA679D3B3E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "f44e41f8-9615-484d-9282-913b416260ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail046316ed511c77407f480?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c6f45f4-c37d-4e5c-8594-d359a6c68b07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3886-e01e-007c-4ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "1c6f45f4-c37d-4e5c-8594-d359a6c68b07" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseacfail046316ed511c77407f480", "javapathacquirefileleaseacfail1842235182448cf4604" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[1].json new file mode 100644 index 0000000000000..f3554ef61b4d7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail001646ab2397e9969247c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54ad28ab-01df-44e5-85bd-10b349717143" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67CD7BB0", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3890-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "54ad28ab-01df-44e5-85bd-10b349717143" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseacfail001646ab2397e9969247c/javapathacquirefileleaseacfail165728b0bf4e2677934?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61e14d7f-6dfd-4368-9ad5-ceaa9c1318dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67D864A8", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffaf-801f-00ab-3ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "61e14d7f-6dfd-4368-9ad5-ceaa9c1318dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail001646ab2397e9969247c/javapathacquirefileleaseacfail165728b0bf4e2677934?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2f5efa5-cbc5-496b-869f-cde8b214ed0b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f38a3-e01e-007c-61d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f38a3-e01e-007c-61d3-90d34f000000\nTime:2019-11-01T16:41:55.4283362Z", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "f2f5efa5-cbc5-496b-869f-cde8b214ed0b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4c76f4a8-cbf1-41e5-85bd-38e4ed51f06a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f38af-e01e-007c-6ad3-90d34f000000", + "Body" : "jtfsacquirefileleaseacfailjtfsacquirefileleaseacfail001646ab2397e9969247cFri, 01 Nov 2019 16:41:55 GMT\"0x8D75EEA67CD7BB0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "4c76f4a8-cbf1-41e5-85bd-38e4ed51f06a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail001646ab2397e9969247c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "180fa1e3-c357-40e3-8f60-e1fc263c188f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f38b6-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "180fa1e3-c357-40e3-8f60-e1fc263c188f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseacfail001646ab2397e9969247c", "javapathacquirefileleaseacfail165728b0bf4e2677934" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[2].json new file mode 100644 index 0000000000000..9c880903590b0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail004401a3656adc7fd647b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c29a49a1-f241-42a8-9ff4-fe99efc548eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA67F667CB", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f38c6-e01e-007c-7fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "c29a49a1-f241-42a8-9ff4-fe99efc548eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseacfail004401a3656adc7fd647b/javapathacquirefileleaseacfail16308675c1dd55d4ef4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8138206a-550a-4cf0-aa00-7d99b5f44a6a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA6800DF20", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffb0-801f-00ab-3fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "8138206a-550a-4cf0-aa00-7d99b5f44a6a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail004401a3656adc7fd647b/javapathacquirefileleaseacfail16308675c1dd55d4ef4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31d55898-a93c-4924-95b6-4bbe88daa4a5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f38e3-e01e-007c-14d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f38e3-e01e-007c-14d3-90d34f000000\nTime:2019-11-01T16:41:55.6905207Z", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "31d55898-a93c-4924-95b6-4bbe88daa4a5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a4e6da8-0165-4fd8-9fc5-f369d5449edc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f38ef-e01e-007c-1dd3-90d34f000000", + "Body" : "jtfsacquirefileleaseacfailjtfsacquirefileleaseacfail004401a3656adc7fd647bFri, 01 Nov 2019 16:41:55 GMT\"0x8D75EEA67F667CB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "8a4e6da8-0165-4fd8-9fc5-f369d5449edc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail004401a3656adc7fd647b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7df25234-9445-455a-a074-5a3dc747f96e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f38f9-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "7df25234-9445-455a-a074-5a3dc747f96e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseacfail004401a3656adc7fd647b", "javapathacquirefileleaseacfail16308675c1dd55d4ef4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[3].json new file mode 100644 index 0000000000000..2d985c7730101 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseacfail[3].json @@ -0,0 +1,138 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail0673455ae8dbb8818e4a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b047e55-9b09-45f1-abff-c2620fdb6788" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA681F05BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f390a-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:54 GMT", + "x-ms-client-request-id" : "0b047e55-9b09-45f1-abff-c2620fdb6788" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleaseacfail0673455ae8dbb8818e4a6/javapathacquirefileleaseacfail128589efb9041362904?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1222cb2a-08f8-4c19-80bf-74c2b2deb293" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA6828AB2C", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffb1-801f-00ab-40d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "1222cb2a-08f8-4c19-80bf-74c2b2deb293" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail0673455ae8dbb8818e4a6/javapathacquirefileleaseacfail128589efb9041362904", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6618d8cf-d104-4aad-b694-6bf4fb5e0305" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:41:55 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", + "ETag" : "0x8D75EEA6828AB2C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:41:55 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f3930-e01e-007c-59d3-90d34f000000", + "x-ms-client-request-id" : "6618d8cf-d104-4aad-b694-6bf4fb5e0305", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail0673455ae8dbb8818e4a6/javapathacquirefileleaseacfail128589efb9041362904?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c498c526-c0e1-4d8b-9a44-dd72c48cf64a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f3940-e01e-007c-69d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f3940-e01e-007c-69d3-90d34f000000\nTime:2019-11-01T16:41:55.9997383Z", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "c498c526-c0e1-4d8b-9a44-dd72c48cf64a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a2afbca-3f60-40b0-9391-4cf39a7a8443" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f394c-e01e-007c-73d3-90d34f000000", + "Body" : "jtfsacquirefileleaseacfailjtfsacquirefileleaseacfail0673455ae8dbb8818e4a6Fri, 01 Nov 2019 16:41:55 GMT\"0x8D75EEA681F05BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "8a2afbca-3f60-40b0-9391-4cf39a7a8443", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseacfail0673455ae8dbb8818e4a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac171333-2877-4d86-9be4-b5744eee05ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3966-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "ac171333-2877-4d86-9be4-b5744eee05ea" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseacfail0673455ae8dbb8818e4a6", "javapathacquirefileleaseacfail128589efb9041362904" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[0].json new file mode 100644 index 0000000000000..7c872c586eee1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail087703bb2ea99e4f38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9c3ce46c-820a-4263-abd0-533316c3a4f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66477FC6", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f345a-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "9c3ce46c-820a-4263-abd0-533316c3a4f1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleasedurationfail087703bb2ea99e4f38/javapathacquirefileleasedurationfail1864050448dd6042?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ec1ae4a-f4ab-4479-950b-205330927c06" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66513B35", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa6-801f-00ab-35d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "0ec1ae4a-f4ab-4479-950b-205330927c06" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail087703bb2ea99e4f38/javapathacquirefileleasedurationfail1864050448dd6042?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fbe64260-3271-4951-93be-01ff3d7f9260" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "328", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f3486-e01e-007c-11d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f3486-e01e-007c-11d3-90d34f000000\nTime:2019-11-01T16:41:52.8645316Zx-ms-lease-duration-10", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "fbe64260-3271-4951-93be-01ff3d7f9260", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleasedurationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9513105-43bf-4637-a52b-2661fc4559d8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f3490-e01e-007c-1bd3-90d34f000000", + "Body" : "jtfsacquirefileleasedurationfailjtfsacquirefileleasedurationfail087703bb2ea99e4f38Fri, 01 Nov 2019 16:41:52 GMT\"0x8D75EEA66477FC6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "a9513105-43bf-4637-a52b-2661fc4559d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail087703bb2ea99e4f38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f7025db-2a44-442e-a095-0107cadc0321" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f349d-e01e-007c-28d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "0f7025db-2a44-442e-a095-0107cadc0321" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleasedurationfail087703bb2ea99e4f38", "javapathacquirefileleasedurationfail1864050448dd6042" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[1].json new file mode 100644 index 0000000000000..14103aa984092 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail0924100cb9e602e893?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3d4bbb2-4540-45ee-bb88-f2bb8d616ab4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA666F8160", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f34ac-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "a3d4bbb2-4540-45ee-bb88-f2bb8d616ab4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleasedurationfail0924100cb9e602e893/javapathacquirefileleasedurationfail183528590ebb5cc5?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc55ff9d-d9e6-4a17-a5e4-590072fa4e8f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA667A7DF0", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa7-801f-00ab-36d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "fc55ff9d-d9e6-4a17-a5e4-590072fa4e8f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail0924100cb9e602e893/javapathacquirefileleasedurationfail183528590ebb5cc5?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23e23bb7-3c07-4fdf-8cf9-b1f5758fdfc1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f34f9-e01e-007c-7cd3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f34f9-e01e-007c-7cd3-90d34f000000\nTime:2019-11-01T16:41:53.1307190Zx-ms-lease-duration10", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "23e23bb7-3c07-4fdf-8cf9-b1f5758fdfc1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleasedurationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "87237001-9255-4963-a427-ff2d937dc3e0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f350a-e01e-007c-0bd3-90d34f000000", + "Body" : "jtfsacquirefileleasedurationfailjtfsacquirefileleasedurationfail0924100cb9e602e893Fri, 01 Nov 2019 16:41:53 GMT\"0x8D75EEA666F8160\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "87237001-9255-4963-a427-ff2d937dc3e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail0924100cb9e602e893?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d04a38e-594d-4d42-b9e0-a77dc0149595" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3522-e01e-007c-21d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "8d04a38e-594d-4d42-b9e0-a77dc0149595" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleasedurationfail0924100cb9e602e893", "javapathacquirefileleasedurationfail183528590ebb5cc5" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[2].json new file mode 100644 index 0000000000000..ee63574b5cb4f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasedurationfail[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail05297481c3c5c03977?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e103bd54-6d7e-423d-bd8d-980c5db09617" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA6698BBAA", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3539-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "e103bd54-6d7e-423d-bd8d-980c5db09617" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleasedurationfail05297481c3c5c03977/javapathacquirefileleasedurationfail186846d3e4f93a79?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc263b61-bde4-4574-bab4-d5862b83ae97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA66A3D23D", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa8-801f-00ab-37d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "dc263b61-bde4-4574-bab4-d5862b83ae97" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail05297481c3c5c03977/javapathacquirefileleasedurationfail186846d3e4f93a79?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a3eaa7c-d1e0-42ac-be16-adeb5bc36768" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f3570-e01e-007c-6bd3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f3570-e01e-007c-6bd3-90d34f000000\nTime:2019-11-01T16:41:53.4019099Zx-ms-lease-duration70", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "6a3eaa7c-d1e0-42ac-be16-adeb5bc36768", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleasedurationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d673684-aa89-476e-acc4-2f52edf91a2c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f3588-e01e-007c-02d3-90d34f000000", + "Body" : "jtfsacquirefileleasedurationfailjtfsacquirefileleasedurationfail05297481c3c5c03977Fri, 01 Nov 2019 16:41:53 GMT\"0x8D75EEA6698BBAA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "1d673684-aa89-476e-acc4-2f52edf91a2c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasedurationfail05297481c3c5c03977?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4590d848-cedd-4746-8ecc-587e5f7c4205" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3594-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "4590d848-cedd-4746-8ecc-587e5f7c4205" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleasedurationfail05297481c3c5c03977", "javapathacquirefileleasedurationfail186846d3e4f93a79" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseerror.json new file mode 100644 index 0000000000000..91e5927365a95 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseerror0053923dfbe0c3d2824f18?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c1adb8e7-ee45-4bb9-b330-68cd0778ee42" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA684D982C", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f3977-e01e-007c-1cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "c1adb8e7-ee45-4bb9-b330-68cd0778ee42" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseerror0053923dfbe0c3d2824f18/javapathacquirefileleaseerror139375c235e8e39b754f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e01afd43-40d6-45bf-b5bb-52c1e3bebd3b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "Content-Length" : "215", + "StatusCode" : "404", + "x-ms-request-id" : "dc6f3988-e01e-007c-2ad3-90d34f000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:dc6f3988-e01e-007c-2ad3-90d34f000000\nTime:2019-11-01T16:41:56.2078853Z", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "e01afd43-40d6-45bf-b5bb-52c1e3bebd3b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84f52a72-bd7d-4dc6-ba6d-04fc49ab0e87" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f3994-e01e-007c-36d3-90d34f000000", + "Body" : "jtfsacquirefileleaseerrorjtfsacquirefileleaseerror0053923dfbe0c3d2824f18Fri, 01 Nov 2019 16:41:56 GMT\"0x8D75EEA684D982C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "84f52a72-bd7d-4dc6-ba6d-04fc49ab0e87", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleaseerror0053923dfbe0c3d2824f18?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "96a0a7fd-e621-4718-934e-c129bf19ffe9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f39ab-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "96a0a7fd-e621-4718-934e-c129bf19ffe9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleaseerror0053923dfbe0c3d2824f18", "javapathacquirefileleaseerror139375c235e8e39b754f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasemin.json new file mode 100644 index 0000000000000..19031af2132b4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefileleasemin.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasemin046829a4db75195cb940148?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "609b8a57-e542-442b-bb93-2f5953fa51e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA661F2FFF", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f340a-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "609b8a57-e542-442b-bb93-2f5953fa51e4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsacquirefileleasemin046829a4db75195cb940148/javapathacquirefileleasemin132093ab081e05dc0747d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c93ef2d1-f666-4f3f-b3ad-4681a43120c2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA6628CD53", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffa5-801f-00ab-34d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:52 GMT", + "x-ms-client-request-id" : "c93ef2d1-f666-4f3f-b3ad-4681a43120c2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasemin046829a4db75195cb940148/javapathacquirefileleasemin132093ab081e05dc0747d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6df8621-63c9-4b9e-95fc-db9f7e2db329" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA6628CD53", + "x-ms-lease-id" : "f86d5d66-9b70-4c59-9103-f02af71e9c34", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f342d-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "c6df8621-63c9-4b9e-95fc-db9f7e2db329" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefileleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "21c83077-fae0-4f69-8d87-a16c30db4cd1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f343c-e01e-007c-4bd3-90d34f000000", + "Body" : "jtfsacquirefileleaseminjtfsacquirefileleasemin046829a4db75195cb940148Fri, 01 Nov 2019 16:41:52 GMT\"0x8D75EEA661F2FFF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "21c83077-fae0-4f69-8d87-a16c30db4cd1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefileleasemin046829a4db75195cb940148?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8862cfc4-526a-4d73-9262-7d52d1bbeb8f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f3449-e01e-007c-56d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:51 GMT", + "x-ms-client-request-id" : "8862cfc4-526a-4d73-9262-7d52d1bbeb8f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefileleasemin046829a4db75195cb940148", "javapathacquirefileleasemin132093ab081e05dc0747d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[0].json new file mode 100644 index 0000000000000..ccba2b68215c9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[0].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease048846301fc185746145c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3477ff3-325f-46e7-9ad8-81cf61eb5adb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C493212", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f69ae-e01e-007c-44d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "b3477ff3-325f-46e7-9ad8-81cf61eb5adb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease048846301fc185746145c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "715ec70a-2886-4599-8042-fc0208989959" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C493212", + "x-ms-lease-id" : "63da5bd2-c778-46d9-8df0-8d6271c4b4f6", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f69d6-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "715ec70a-2886-4599-8042-fc0208989959" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease048846301fc185746145c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e6759b66-e79f-4ce4-a041-f902b7a89327" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA7C493212", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f6a07-e01e-007c-1bd3-90d34f000000", + "x-ms-client-request-id" : "e6759b66-e79f-4ce4-a041-f902b7a89327" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82513b88-241d-4587-8561-b3d2ea5d8253" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6a2a-e01e-007c-39d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleasejtfsacquirefilesystemlease048846301fc185746145cFri, 01 Nov 2019 16:42:29 GMT\"0x8D75EEA7C493212\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "82513b88-241d-4587-8561-b3d2ea5d8253", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease048846301fc185746145c?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8f54c91-0d9d-4ef9-a9d9-f08eb3c1c876" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C493212", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6a39-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "b8f54c91-0d9d-4ef9-a9d9-f08eb3c1c876" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease048846301fc185746145c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7d5a473-0331-4466-b139-02bfab4b01ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6a4d-e01e-007c-5ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "f7d5a473-0331-4466-b139-02bfab4b01ea" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemlease048846301fc185746145c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[1].json new file mode 100644 index 0000000000000..7f7bead91a9bd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[1].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease00448285be8455a3dd4eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7c00e44-cba8-4953-9592-c27f7a308cb6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C8953DC", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6a6c-e01e-007c-78d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "f7c00e44-cba8-4953-9592-c27f7a308cb6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease00448285be8455a3dd4eb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "330bf401-a2bd-4e5b-b7ef-1d8ada04f95b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C8953DC", + "x-ms-lease-id" : "8e3363c6-f1f2-4dd2-85c9-fe9d24142d77", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6a82-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "330bf401-a2bd-4e5b-b7ef-1d8ada04f95b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease00448285be8455a3dd4eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e330a96-fbd2-466e-8ccf-cb79e3ccd705" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA7C8953DC", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "fixed", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f6a97-e01e-007c-1ed3-90d34f000000", + "x-ms-client-request-id" : "8e330a96-fbd2-466e-8ccf-cb79e3ccd705" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7fabae4e-a837-4175-ab78-b461e2e9742f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6aa9-e01e-007c-30d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleasejtfsacquirefilesystemlease00448285be8455a3dd4ebFri, 01 Nov 2019 16:42:30 GMT\"0x8D75EEA7C8953DC\"lockedleasedfixed$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "7fabae4e-a837-4175-ab78-b461e2e9742f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease00448285be8455a3dd4eb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7fb2b45-aab6-4c52-b83c-fb42d334a97c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C8953DC", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6abb-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "e7fb2b45-aab6-4c52-b83c-fb42d334a97c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease00448285be8455a3dd4eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "59327ce5-27ae-439e-91e2-dc31fbc9c1ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6acb-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "59327ce5-27ae-439e-91e2-dc31fbc9c1ba" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemlease00448285be8455a3dd4eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[2].json new file mode 100644 index 0000000000000..96789095a25bb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemlease[2].json @@ -0,0 +1,137 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease001904a0a59a1a4fbe470?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3dd3aa4-7052-4d1d-88ef-36f0268986a1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7CB80D63", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6ad9-e01e-007c-5fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "a3dd3aa4-7052-4d1d-88ef-36f0268986a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease001904a0a59a1a4fbe470?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f46e06f5-139d-49a3-b024-6153126edd33" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7CB80D63", + "x-ms-lease-id" : "b290a14c-a9c3-4219-8b97-b031d4ba127c", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6aef-e01e-007c-74d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "f46e06f5-139d-49a3-b024-6153126edd33" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease001904a0a59a1a4fbe470?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4557f65d-f68f-4b09-aecd-18f4186cf226" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA7CB80D63", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f6af8-e01e-007c-7cd3-90d34f000000", + "x-ms-client-request-id" : "4557f65d-f68f-4b09-aecd-18f4186cf226" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f042908-73b0-4d1a-8c85-cc0e388aac28" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6b11-e01e-007c-12d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleasejtfsacquirefilesystemlease001904a0a59a1a4fbe470Fri, 01 Nov 2019 16:42:30 GMT\"0x8D75EEA7CB80D63\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "4f042908-73b0-4d1a-8c85-cc0e388aac28", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease001904a0a59a1a4fbe470?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "31d8f3cd-bba9-4c66-8b7b-56d6badf2bdc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7CB80D63", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6b26-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "31d8f3cd-bba9-4c66-8b7b-56d6badf2bdc" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemlease001904a0a59a1a4fbe470?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f7e6fed-7110-4066-ba9b-d52656ea0157" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6b34-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "7f7e6fed-7110-4066-ba9b-d52656ea0157" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemlease001904a0a59a1a4fbe470" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[0].json new file mode 100644 index 0000000000000..9a079e31b17ff --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[0].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0615639eb94f9937774d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "693b2e16-3ec2-408b-a279-a3d9fa54ede8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7D716CAE", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6cc2-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "693b2e16-3ec2-408b-a279-a3d9fa54ede8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0615639eb94f9937774d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba74021e-ca1d-44a4-9845-f528eef404d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7D716CAE", + "x-ms-lease-id" : "3960ce87-2819-4a42-90c7-0f1f9407d01d", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6cda-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "ba74021e-ca1d-44a4-9845-f528eef404d6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b3fe518-cfcc-4843-9d27-9ee5fe50390e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6cf3-e01e-007c-4bd3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacjtfsacquirefilesystemleaseac0615639eb94f9937774dFri, 01 Nov 2019 16:42:31 GMT\"0x8D75EEA7D716CAE\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "9b3fe518-cfcc-4843-9d27-9ee5fe50390e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0615639eb94f9937774d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9cee7d35-2fb9-4884-999a-8d7b529f782f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7D716CAE", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6d07-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "9cee7d35-2fb9-4884-999a-8d7b529f782f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0615639eb94f9937774d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aeba7ea1-a5be-40b5-86fc-449749ac253d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6d51-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "aeba7ea1-a5be-40b5-86fc-449749ac253d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseac0615639eb94f9937774d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[1].json new file mode 100644 index 0000000000000..73803891a3f0e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[1].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0760322a4cb8cee87941?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8b43612-0e1b-469a-bccc-1a20eb7f5941" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DAC8483", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6d7c-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "f8b43612-0e1b-469a-bccc-1a20eb7f5941" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0760322a4cb8cee87941?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28278bff-3b0a-4cca-863f-aa7146e579b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DAC8483", + "x-ms-lease-id" : "9d0d3bf6-7c9b-4cda-95e0-10909388de9e", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6d90-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "28278bff-3b0a-4cca-863f-aa7146e579b7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3629ef6b-572f-46e2-9692-b819d37ef68f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6daf-e01e-007c-6dd3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacjtfsacquirefilesystemleaseac0760322a4cb8cee87941Fri, 01 Nov 2019 16:42:32 GMT\"0x8D75EEA7DAC8483\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "3629ef6b-572f-46e2-9692-b819d37ef68f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0760322a4cb8cee87941?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d4a3cb6-2b86-4d0b-865a-2fab3a910b5c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DAC8483", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6dbd-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "8d4a3cb6-2b86-4d0b-865a-2fab3a910b5c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0760322a4cb8cee87941?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "908a2bf5-2949-4075-a797-9f2f60d81b0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6dc8-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "908a2bf5-2949-4075-a797-9f2f60d81b0c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseac0760322a4cb8cee87941" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[2].json new file mode 100644 index 0000000000000..21456f214cc4c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[2].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0258994cc98a52b51444?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5d33b05-aa3c-42fa-8d09-2db57363523e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DD3E9BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6dd6-e01e-007c-12d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "f5d33b05-aa3c-42fa-8d09-2db57363523e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0258994cc98a52b51444?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd2b8b2a-497d-4a2f-a758-4ccc0efd2108" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DD3E9BD", + "x-ms-lease-id" : "5295e312-5dbb-41a1-9aa5-e285913c4f3e", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6de5-e01e-007c-20d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "bd2b8b2a-497d-4a2f-a758-4ccc0efd2108" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "51698c0d-93e1-4ca3-a1b5-7534e18aacb2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6df0-e01e-007c-2bd3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacjtfsacquirefilesystemleaseac0258994cc98a52b51444Fri, 01 Nov 2019 16:42:32 GMT\"0x8D75EEA7DD3E9BD\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "51698c0d-93e1-4ca3-a1b5-7534e18aacb2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0258994cc98a52b51444?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e92148e-de7b-40db-86cc-e67dccfd2ee7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DD3E9BD", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6dfe-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "8e92148e-de7b-40db-86cc-e67dccfd2ee7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac0258994cc98a52b51444?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "841db6ed-16f9-4cc3-8505-09a6078d33c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6e0e-e01e-007c-47d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "841db6ed-16f9-4cc3-8505-09a6078d33c9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseac0258994cc98a52b51444" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[3].json new file mode 100644 index 0000000000000..7d47388c3d38b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[3].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac048031635b37374e9a41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16a10ff6-c4dc-4cda-a599-6102ad45255e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DFBC43B", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6e1e-e01e-007c-57d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "16a10ff6-c4dc-4cda-a599-6102ad45255e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac048031635b37374e9a41?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1326876e-994b-4adb-b41f-fde9d5346a18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DFBC43B", + "x-ms-lease-id" : "471b9cce-b618-4bfc-aae1-62dd58dae25a", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6e32-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "1326876e-994b-4adb-b41f-fde9d5346a18" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "317e5ec9-aaac-4d16-8c2b-6d9a73f2614f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6e43-e01e-007c-78d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacjtfsacquirefilesystemleaseac048031635b37374e9a41Fri, 01 Nov 2019 16:42:32 GMT\"0x8D75EEA7DFBC43B\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "317e5ec9-aaac-4d16-8c2b-6d9a73f2614f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac048031635b37374e9a41?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "492c6874-eaa7-43d6-a86f-8ae02aeea683" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7DFBC43B", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6e57-e01e-007c-0ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "492c6874-eaa7-43d6-a86f-8ae02aeea683" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac048031635b37374e9a41?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e22c907-0c0d-432b-a4ee-28a0a5173123" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6e62-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "2e22c907-0c0d-432b-a4ee-28a0a5173123" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseac048031635b37374e9a41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[4].json new file mode 100644 index 0000000000000..42c1668071baa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseac[4].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac09552300c7e352a65a4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6bc5abfd-8746-4645-8ece-7e0d9077f01b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7E228D18", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6e78-e01e-007c-2ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "6bc5abfd-8746-4645-8ece-7e0d9077f01b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac09552300c7e352a65a4e?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f9431787-b416-47d0-8f4a-4f643daf363a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7E228D18", + "x-ms-lease-id" : "4efcfde6-c839-4594-89e8-8fc7b6ce0b5a", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6e93-e01e-007c-42d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "f9431787-b416-47d0-8f4a-4f643daf363a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "484375b8-06d7-4036-92af-438670211853" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6eb6-e01e-007c-63d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacjtfsacquirefilesystemleaseac09552300c7e352a65a4eFri, 01 Nov 2019 16:42:32 GMT\"0x8D75EEA7E228D18\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "484375b8-06d7-4036-92af-438670211853", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac09552300c7e352a65a4e?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d1f7c46-41c6-4d50-a81f-11fd7d083c86" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7E228D18", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6ed9-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "6d1f7c46-41c6-4d50-a81f-11fd7d083c86" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseac09552300c7e352a65a4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "435f1e43-a099-4cfa-931f-8eed98c71873" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6eef-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:31 GMT", + "x-ms-client-request-id" : "435f1e43-a099-4cfa-931f-8eed98c71873" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseac09552300c7e352a65a4e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseacfail[0].json new file mode 100644 index 0000000000000..5b1c66b647330 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseacfail[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseacfail069253dbab2983855a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4f88d2a-4ff4-4859-bdc7-400cb9cab654" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7E4955F5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6f02-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "c4f88d2a-4ff4-4859-bdc7-400cb9cab654" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseacfail069253dbab2983855a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c74ae8fc-b3bd-4fee-b554-bd87f4b18f11" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f6f1f-e01e-007c-44d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f6f1f-e01e-007c-44d3-90d34f000000\nTime:2019-11-01T16:42:33.0868479Z", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "c74ae8fc-b3bd-4fee-b554-bd87f4b18f11", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad070425-659a-49ad-93df-42695a121aeb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6f2f-e01e-007c-54d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacfailjtfsacquirefilesystemleaseacfail069253dbab2983855aFri, 01 Nov 2019 16:42:33 GMT\"0x8D75EEA7E4955F5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "ad070425-659a-49ad-93df-42695a121aeb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseacfail069253dbab2983855a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4676e5e0-4008-432a-998b-6e576f0af884" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6f3f-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "4676e5e0-4008-432a-998b-6e576f0af884" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseacfail069253dbab2983855a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseacfail[1].json new file mode 100644 index 0000000000000..656bf95f67aba --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseacfail[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseacfail0962947a986072c63e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a833a352-32e0-47e8-89ad-a38400dbc71f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7E68F197", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6f58-e01e-007c-79d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "a833a352-32e0-47e8-89ad-a38400dbc71f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseacfail0962947a986072c63e?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "292c860b-04c0-454d-9f2e-32de16ad1c75" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f6f69-e01e-007c-07d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f6f69-e01e-007c-07d3-90d34f000000\nTime:2019-11-01T16:42:33.2949944Z", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "292c860b-04c0-454d-9f2e-32de16ad1c75", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1cfc4623-e845-40c6-936b-ca9442db9a6a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6f74-e01e-007c-12d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseacfailjtfsacquirefilesystemleaseacfail0962947a986072c63eFri, 01 Nov 2019 16:42:33 GMT\"0x8D75EEA7E68F197\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "1cfc4623-e845-40c6-936b-ca9442db9a6a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseacfail0962947a986072c63e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b18df45d-a2e7-495f-afcc-d1f162d9f737" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6f80-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "b18df45d-a2e7-495f-afcc-d1f162d9f737" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseacfail0962947a986072c63e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[0].json new file mode 100644 index 0000000000000..215dfc661ffbb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail076350a4ecc20d6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "678fa302-2551-4f04-9e45-07951c92ca74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7D0FDA29", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6bb2-e01e-007c-2ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "678fa302-2551-4f04-9e45-07951c92ca74" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail076350a4ecc20d6?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97fce38e-4342-499b-9ef6-88b567d09b2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "328", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f6bd2-e01e-007c-48d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f6bd2-e01e-007c-48d3-90d34f000000\nTime:2019-11-01T16:42:31.0314012Zx-ms-lease-duration-10", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "97fce38e-4342-499b-9ef6-88b567d09b2a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleasedurationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90d2d6e6-7a83-41fb-842c-5b3fd94b7f3e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6bf4-e01e-007c-68d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleasedurationfailjtfsacquirefilesystemleasedurationfail076350a4ecc20d6Fri, 01 Nov 2019 16:42:30 GMT\"0x8D75EEA7D0FDA29\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "90d2d6e6-7a83-41fb-842c-5b3fd94b7f3e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail076350a4ecc20d6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "065a1a7c-0c9c-45da-a0e8-6bbcce0be1d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6c0c-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "065a1a7c-0c9c-45da-a0e8-6bbcce0be1d3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleasedurationfail076350a4ecc20d6" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[1].json new file mode 100644 index 0000000000000..9ed6c23ba2301 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail069824b2af6fb97?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "719e4b97-d5de-4450-a46d-4d86da50fcfd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7D30AE83", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6c2f-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "719e4b97-d5de-4450-a46d-4d86da50fcfd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail069824b2af6fb97?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f77b8273-51e8-4650-84b0-3b7bf10e6933" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f6c3c-e01e-007c-2ad3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f6c3c-e01e-007c-2ad3-90d34f000000\nTime:2019-11-01T16:42:31.2495548Zx-ms-lease-duration10", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "f77b8273-51e8-4650-84b0-3b7bf10e6933", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleasedurationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d58ff3b8-d717-45bb-81c5-db9cab35ffa6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6c49-e01e-007c-35d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleasedurationfailjtfsacquirefilesystemleasedurationfail069824b2af6fb97Fri, 01 Nov 2019 16:42:31 GMT\"0x8D75EEA7D30AE83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "d58ff3b8-d717-45bb-81c5-db9cab35ffa6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail069824b2af6fb97?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9009f20-fb92-4849-aaa5-4978009cba64" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6c61-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "c9009f20-fb92-4849-aaa5-4978009cba64" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleasedurationfail069824b2af6fb97" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[2].json new file mode 100644 index 0000000000000..0d36a9fe0e43e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasedurationfail[2].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail037091f6503d5ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9c374e5-beb8-466e-bf02-89ae44afdb5f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7D51A9F5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6c78-e01e-007c-5ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "e9c374e5-beb8-466e-bf02-89ae44afdb5f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail037091f6503d5ad?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "381d4c1a-a076-4eff-9100-e57a6752d9ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f6c94-e01e-007c-75d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f6c94-e01e-007c-75d3-90d34f000000\nTime:2019-11-01T16:42:31.4637051Zx-ms-lease-duration70", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "381d4c1a-a076-4eff-9100-e57a6752d9ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleasedurationfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c107e9f-ce4e-4444-99a6-e6520e100774" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6cab-e01e-007c-09d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleasedurationfailjtfsacquirefilesystemleasedurationfail037091f6503d5adFri, 01 Nov 2019 16:42:31 GMT\"0x8D75EEA7D51A9F5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "7c107e9f-ce4e-4444-99a6-e6520e100774", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasedurationfail037091f6503d5ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "999b696a-3506-4bfe-851f-42a6ef72f327" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6cb4-e01e-007c-11d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:30 GMT", + "x-ms-client-request-id" : "999b696a-3506-4bfe-851f-42a6ef72f327" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleasedurationfail037091f6503d5ad" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseerror.json new file mode 100644 index 0000000000000..ba2a9477feb73 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseerror076499eecb9cb100234?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1edd02e5-b23f-4a0b-96e7-e1b523666f17" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7E8A3B36", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6f94-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "1edd02e5-b23f-4a0b-96e7-e1b523666f17" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseerror112182983e1a2fff684?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1b1fd9a-49c5-416c-8095-3306df106a2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "dc6f6fa9-e01e-007c-42d3-90d34f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dc6f6fa9-e01e-007c-42d3-90d34f000000\nTime:2019-11-01T16:42:33.5141487Z", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "e1b1fd9a-49c5-416c-8095-3306df106a2b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae58840e-00c2-492c-93d6-701dd2a589a0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6fbc-e01e-007c-52d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseerrorjtfsacquirefilesystemleaseerror076499eecb9cb100234Fri, 01 Nov 2019 16:42:33 GMT\"0x8D75EEA7E8A3B36\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "ae58840e-00c2-492c-93d6-701dd2a589a0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleaseerror076499eecb9cb100234?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a340aacd-0007-47ee-80fa-a03ee7932a80" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6fd1-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "a340aacd-0007-47ee-80fa-a03ee7932a80" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleaseerror076499eecb9cb100234", "jtfsacquirefilesystemleaseerror112182983e1a2fff684" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasemin.json new file mode 100644 index 0000000000000..e4a9554a604e0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestacquirefilesystemleasemin.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasemin06531170b81578c32b4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "705d4661-1fcf-47e4-8024-a1205cda9368" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7CE71524", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6b47-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "705d4661-1fcf-47e4-8024-a1205cda9368" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasemin06531170b81578c32b4f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3e11e40-0bf3-4bb7-a3d8-f2389f4cbc70" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7CE71524", + "x-ms-lease-id" : "d4ad6c26-56b9-4fc0-8b39-22adbfcaf61e", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6b62-e01e-007c-60d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "f3e11e40-0bf3-4bb7-a3d8-f2389f4cbc70" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsacquirefilesystemleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1dc50f54-81f3-43f5-b3a9-b5a22cbcb945" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6b75-e01e-007c-72d3-90d34f000000", + "Body" : "jtfsacquirefilesystemleaseminjtfsacquirefilesystemleasemin06531170b81578c32b4fFri, 01 Nov 2019 16:42:30 GMT\"0x8D75EEA7CE71524\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "1dc50f54-81f3-43f5-b3a9-b5a22cbcb945", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasemin06531170b81578c32b4f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9175e62-9e00-4ece-92b5-841321c3eebf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7CE71524", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6b8d-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "d9175e62-9e00-4ece-92b5-841321c3eebf" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsacquirefilesystemleasemin06531170b81578c32b4f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c110f9bc-8988-40a3-8d9e-8f8911a658e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6b9b-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:29 GMT", + "x-ms-client-request-id" : "c110f9bc-8988-40a3-8d9e-8f8911a658e3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsacquirefilesystemleasemin06531170b81578c32b4f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[0].json new file mode 100644 index 0000000000000..765f8c1692694 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[0].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc49dfbf-386b-473b-a8f7-dfbe4b536df0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76D7D9B2", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5cab-e01e-007c-65d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "cc49dfbf-386b-473b-a8f7-dfbe4b536df0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6/javapathbreakfilelease1leaseapitestbreakfileleased80005821dc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "895501d9-da37-4ec3-b35c-ccce792352e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76E22ADF", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffe1-801f-00ab-6ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "895501d9-da37-4ec3-b35c-ccce792352e5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6/javapathbreakfilelease1leaseapitestbreakfileleased80005821dc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18cd82e6-6b88-46bc-ba39-3486060e2f13" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76E22ADF", + "x-ms-lease-id" : "d2a16661-cd9e-4685-bbc0-d3da2311e9e7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5cce-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "18cd82e6-6b88-46bc-ba39-3486060e2f13" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6/javapathbreakfilelease1leaseapitestbreakfileleased80005821dc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a09955cc-a848-4f5f-8dd7-9b8502c74428" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76E22ADF", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5ce3-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "a09955cc-a848-4f5f-8dd7-9b8502c74428" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6/javapathbreakfilelease1leaseapitestbreakfileleased80005821dc", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f935f999-8b3a-4fd1-9631-1110c0990d90" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "broken", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:19 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", + "ETag" : "0x8D75EEA76E22ADF", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:20 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f5cf6-e01e-007c-29d3-90d34f000000", + "x-ms-client-request-id" : "f935f999-8b3a-4fd1-9631-1110c0990d90", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1af0a02-648f-4d8c-9ab0-93ac7d914373" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5d0a-e01e-007c-3bd3-90d34f000000", + "Body" : "jtfsbreakfileleasejtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6Fri, 01 Nov 2019 16:42:20 GMT\"0x8D75EEA76D7D9B2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "d1af0a02-648f-4d8c-9ab0-93ac7d914373", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0bdabd13-f3a1-48c8-8bb8-8907c7b68940" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5d15-e01e-007c-46d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "0bdabd13-f3a1-48c8-8bb8-8907c7b68940" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilelease0leaseapitestbreakfileleased805932669fd6", "javapathbreakfilelease1leaseapitestbreakfileleased80005821dc", "d2a16661-cd9e-4685-bbc0-d3da2311e9e7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[1].json new file mode 100644 index 0000000000000..aa70042948ace --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[1].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8eb32176-1c21-443b-b5da-36bf625fc587" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77195B4C", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5d23-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "8eb32176-1c21-443b-b5da-36bf625fc587" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025/javapathbreakfilelease1leaseapitestbreakfileleasecc373741f9d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04868e4f-cc40-48b7-a322-04f1ed56af1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA772429A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffe8-801f-00ab-6fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "04868e4f-cc40-48b7-a322-04f1ed56af1c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025/javapathbreakfilelease1leaseapitestbreakfileleasecc373741f9d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2d33158-ffce-4093-b943-95e24ba322bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA772429A7", + "x-ms-lease-id" : "a0b3e8a6-d2f9-4d51-a4f6-b8365fdb0434", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5d5d-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "a2d33158-ffce-4093-b943-95e24ba322bd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025/javapathbreakfilelease1leaseapitestbreakfileleasecc373741f9d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82cdca18-ff1c-4610-921d-e5495a4f03f6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA772429A7", + "x-ms-lease-time" : "20", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5d6e-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "82cdca18-ff1c-4610-921d-e5495a4f03f6" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025/javapathbreakfilelease1leaseapitestbreakfileleasecc373741f9d", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "24a0593d-d406-46cc-9a37-c6b8d803a323" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "breaking", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:20 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", + "ETag" : "0x8D75EEA772429A7", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:21 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f5daa-e01e-007c-4ad3-90d34f000000", + "x-ms-client-request-id" : "24a0593d-d406-46cc-9a37-c6b8d803a323", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d99a8532-f0e3-45a8-bb07-5f2c647338af" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5db6-e01e-007c-55d3-90d34f000000", + "Body" : "jtfsbreakfileleasejtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025Fri, 01 Nov 2019 16:42:20 GMT\"0x8D75EEA77195B4C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "d99a8532-f0e3-45a8-bb07-5f2c647338af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3a0da5c-d142-4cd9-bd2d-346ce71afbda" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5dc5-e01e-007c-62d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "a3a0da5c-d142-4cd9-bd2d-346ce71afbda" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilelease0leaseapitestbreakfileleasecc380867c6025", "javapathbreakfilelease1leaseapitestbreakfileleasecc373741f9d", "a0b3e8a6-d2f9-4d51-a4f6-b8365fdb0434" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[2].json new file mode 100644 index 0000000000000..2594b73826d58 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilelease[2].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93d5caf3-f579-4870-8e34-5e7df3b842d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77653F08", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5dd9-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "93d5caf3-f579-4870-8e34-5e7df3b842d3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302/javapathbreakfilelease1leaseapitestbreakfilelease815951505ac?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "408974df-f2b0-4b6b-8758-d884df1449ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77739E40", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffe9-801f-00ab-70d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "408974df-f2b0-4b6b-8758-d884df1449ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302/javapathbreakfilelease1leaseapitestbreakfilelease815951505ac?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8358f678-4b0a-4a07-a8cf-644d53caec93" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77739E40", + "x-ms-lease-id" : "df046321-b3b3-498f-9edf-256b0a913443", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5dff-e01e-007c-1ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "8358f678-4b0a-4a07-a8cf-644d53caec93" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302/javapathbreakfilelease1leaseapitestbreakfilelease815951505ac?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "201bf030-2a27-4257-ad31-52149442781a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77739E40", + "x-ms-lease-time" : "15", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5e0b-e01e-007c-26d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "201bf030-2a27-4257-ad31-52149442781a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302/javapathbreakfilelease1leaseapitestbreakfilelease815951505ac", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b3954d72-58d8-4969-a6b5-d30e9eeb731b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "breaking", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:20 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", + "ETag" : "0x8D75EEA77739E40", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:21 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f5e1c-e01e-007c-36d3-90d34f000000", + "x-ms-client-request-id" : "b3954d72-58d8-4969-a6b5-d30e9eeb731b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9676efa1-2fa7-4218-b0d7-0e2e1b1ff407" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5e2b-e01e-007c-43d3-90d34f000000", + "Body" : "jtfsbreakfileleasejtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302Fri, 01 Nov 2019 16:42:21 GMT\"0x8D75EEA77653F08\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "9676efa1-2fa7-4218-b0d7-0e2e1b1ff407", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44e00492-0428-4fe0-be39-459d78adad04" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5e31-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "44e00492-0428-4fe0-be39-459d78adad04" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilelease0leaseapitestbreakfilelease81521275c6302", "javapathbreakfilelease1leaseapitestbreakfilelease815951505ac", "df046321-b3b3-498f-9edf-256b0a913443" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[0].json new file mode 100644 index 0000000000000..a0aee0c4a6c4f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e47d803-b072-4b72-ae9e-402cb2acdd1f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77D7EBA2", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5eb7-e01e-007c-45d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "3e47d803-b072-4b72-ae9e-402cb2acdd1f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5/javapathbreakfileleaseac1leaseapitestbreakfileleaseacd07629780?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "150de652-3782-4b91-94eb-22621691b468" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77E29299", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffeb-801f-00ab-72d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "150de652-3782-4b91-94eb-22621691b468" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5/javapathbreakfileleaseac1leaseapitestbreakfileleaseacd07629780?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a759a7b2-5120-4504-9506-e639bc51ff2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77E29299", + "x-ms-lease-id" : "f2a4ec15-13be-40c4-9cb8-a3413fe19ffa", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5edb-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "a759a7b2-5120-4504-9506-e639bc51ff2b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5/javapathbreakfileleaseac1leaseapitestbreakfileleaseacd07629780?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5ac56e2-a034-4aa1-b6ae-f757813a9ae4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77E29299", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5ee2-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "d5ac56e2-a034-4aa1-b6ae-f757813a9ae4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ebcfb68c-9b7c-40ef-a666-623417e2b670" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5ef5-e01e-007c-7ad3-90d34f000000", + "Body" : "jtfsbreakfileleaseacjtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5Fri, 01 Nov 2019 16:42:22 GMT\"0x8D75EEA77D7EBA2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "ebcfb68c-9b7c-40ef-a666-623417e2b670", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53a3c7bd-faef-4480-a45f-e35143ef5610" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5f05-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "53a3c7bd-faef-4480-a45f-e35143ef5610" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseac0leaseapitestbreakfileleaseacd0740729ab5", "javapathbreakfileleaseac1leaseapitestbreakfileleaseacd07629780" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[1].json new file mode 100644 index 0000000000000..891181a737591 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "088c87ec-7ef3-4b44-95f5-facd8f0d9e03" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7808A159", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5f17-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "088c87ec-7ef3-4b44-95f5-facd8f0d9e03" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cb/javapathbreakfileleaseac1leaseapitestbreakfileleaseac856291815?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1b1f9e22-d676-4495-83da-f5de318a8bda" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7813E846", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffec-801f-00ab-73d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "1b1f9e22-d676-4495-83da-f5de318a8bda" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cb/javapathbreakfileleaseac1leaseapitestbreakfileleaseac856291815?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cf8c267-9f81-44b1-93d6-476d59470d34" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7813E846", + "x-ms-lease-id" : "870c6033-60ce-418f-8214-55c08ed94db5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5f44-e01e-007c-44d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "0cf8c267-9f81-44b1-93d6-476d59470d34" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cb/javapathbreakfileleaseac1leaseapitestbreakfileleaseac856291815?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9e41650-98f5-45e1-9e25-e9f9ef7423c2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7813E846", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5f52-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "c9e41650-98f5-45e1-9e25-e9f9ef7423c2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7087d957-36ad-4c83-9ee2-1bfb7e38fffa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5f66-e01e-007c-66d3-90d34f000000", + "Body" : "jtfsbreakfileleaseacjtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cbFri, 01 Nov 2019 16:42:22 GMT\"0x8D75EEA7808A159\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "7087d957-36ad-4c83-9ee2-1bfb7e38fffa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b9cb589-d012-43e7-9c21-5a10665be6c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5f77-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "7b9cb589-d012-43e7-9c21-5a10665be6c0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseac0leaseapitestbreakfileleaseac856112478cb", "javapathbreakfileleaseac1leaseapitestbreakfileleaseac856291815" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[2].json new file mode 100644 index 0000000000000..9d97df75a5611 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9daf178c-fa3d-440b-a276-16ee42a79de5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA783A8FC4", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5f8d-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "9daf178c-fa3d-440b-a276-16ee42a79de5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1f/javapathbreakfileleaseac1leaseapitestbreakfileleaseacdcc42486e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba2ec3b3-fb24-4364-b7ea-7d21d9153d86" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7846B96F", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffed-801f-00ab-74d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "ba2ec3b3-fb24-4364-b7ea-7d21d9153d86" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1f/javapathbreakfileleaseac1leaseapitestbreakfileleaseacdcc42486e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08f570f1-ba0b-4648-bc6d-e21e8077d455" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7846B96F", + "x-ms-lease-id" : "7164bb0a-2f53-4c57-a5c0-4acf038d5cfc", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5fae-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "08f570f1-ba0b-4648-bc6d-e21e8077d455" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1f/javapathbreakfileleaseac1leaseapitestbreakfileleaseacdcc42486e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d984236e-2db8-4977-be4b-62fc9a6f4f12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7846B96F", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5fbe-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "d984236e-2db8-4977-be4b-62fc9a6f4f12" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "227018e4-4029-4241-884b-d2837d0e13fb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5fd3-e01e-007c-4cd3-90d34f000000", + "Body" : "jtfsbreakfileleaseacjtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1fFri, 01 Nov 2019 16:42:22 GMT\"0x8D75EEA783A8FC4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "227018e4-4029-4241-884b-d2837d0e13fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b82b0b1-27aa-4b43-839b-1b88581e676d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5fdf-e01e-007c-56d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "2b82b0b1-27aa-4b43-839b-1b88581e676d" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseac0leaseapitestbreakfileleaseacdcc22972a1f", "javapathbreakfileleaseac1leaseapitestbreakfileleaseacdcc42486e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[3].json new file mode 100644 index 0000000000000..98ccacd12f66c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "18dc9892-9c2f-483e-847d-701bf38b9d56" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA786D8FD8", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5ff7-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "18dc9892-9c2f-483e-847d-701bf38b9d56" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd/javapathbreakfileleaseac1leaseapitestbreakfileleaseac09149779b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6fccd7c5-3725-4c6c-b85e-34f6a6f2a417" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78776A9C", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffee-801f-00ab-75d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "6fccd7c5-3725-4c6c-b85e-34f6a6f2a417" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd/javapathbreakfileleaseac1leaseapitestbreakfileleaseac09149779b", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f8ce9bf-3e43-4fd2-bcf1-bad3a15b043a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:22 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", + "ETag" : "0x8D75EEA78776A9C", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:23 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f601a-e01e-007c-08d3-90d34f000000", + "x-ms-client-request-id" : "0f8ce9bf-3e43-4fd2-bcf1-bad3a15b043a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd/javapathbreakfileleaseac1leaseapitestbreakfileleaseac09149779b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c1d02846-c553-44f2-8699-992de8d3b448" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78776A9C", + "x-ms-lease-id" : "97c4ef1d-95ae-41dc-8780-12b9bec103dc", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f602e-e01e-007c-15d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "c1d02846-c553-44f2-8699-992de8d3b448" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd/javapathbreakfileleaseac1leaseapitestbreakfileleaseac09149779b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53dbd1aa-bc49-422f-a398-59f9de1ff33d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78776A9C", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f603e-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "53dbd1aa-bc49-422f-a398-59f9de1ff33d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34ed4bf1-d809-425e-aed7-71afc52ff885" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f604f-e01e-007c-34d3-90d34f000000", + "Body" : "jtfsbreakfileleaseacjtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731ddFri, 01 Nov 2019 16:42:23 GMT\"0x8D75EEA786D8FD8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "34ed4bf1-d809-425e-aed7-71afc52ff885", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7ce78864-6496-4865-afc9-4593e042eec1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6060-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "7ce78864-6496-4865-afc9-4593e042eec1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseac0leaseapitestbreakfileleaseac091836731dd", "javapathbreakfileleaseac1leaseapitestbreakfileleaseac09149779b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[4].json new file mode 100644 index 0000000000000..d76e2ce986ea4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseac[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "102664e2-a5b5-44a5-9497-daadc5b5aacc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78ADB1A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6081-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "102664e2-a5b5-44a5-9497-daadc5b5aacc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3/javapathbreakfileleaseac1leaseapitestbreakfileleaseac59a772215?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88697e5c-f7ce-4d41-8700-9edae4069587" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78B90904", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffef-801f-00ab-76d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "88697e5c-f7ce-4d41-8700-9edae4069587" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3/javapathbreakfileleaseac1leaseapitestbreakfileleaseac59a772215?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "687dc82a-a1e3-43c2-aa01-f67871255464" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78B90904", + "x-ms-lease-id" : "90500c93-579a-4689-9f10-de18c60f9b13", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f60a3-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "687dc82a-a1e3-43c2-aa01-f67871255464" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3/javapathbreakfileleaseac1leaseapitestbreakfileleaseac59a772215?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5a9a5608-7324-48a8-93e7-0cec8962bf34" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78B90904", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f60b0-e01e-007c-0fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "5a9a5608-7324-48a8-93e7-0cec8962bf34" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df3e55f4-5aad-4f2e-8f27-b8b75091e2f5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f60bd-e01e-007c-1cd3-90d34f000000", + "Body" : "jtfsbreakfileleaseacjtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3Fri, 01 Nov 2019 16:42:23 GMT\"0x8D75EEA78ADB1A7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "df3e55f4-5aad-4f2e-8f27-b8b75091e2f5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1dd8644-2bf5-4f35-a91d-35e1630448e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f60cd-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "d1dd8644-2bf5-4f35-a91d-35e1630448e3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseac0leaseapitestbreakfileleaseac59a961767b3", "javapathbreakfileleaseac1leaseapitestbreakfileleaseac59a772215" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[0].json new file mode 100644 index 0000000000000..76c116f6d46f5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail04009072f2144bf66941d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a94d467-e172-446f-8e92-b5f97e865685" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78E08AA0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f60e3-e01e-007c-40d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:22 GMT", + "x-ms-client-request-id" : "6a94d467-e172-446f-8e92-b5f97e865685" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseacfail04009072f2144bf66941d5/javapathbreakfileleaseacfail120433f9b93745c66c49?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50c4b450-61ca-4825-ad37-f684932dea1b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78EA7884", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff2-801f-00ab-79d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "50c4b450-61ca-4825-ad37-f684932dea1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail04009072f2144bf66941d5/javapathbreakfileleaseacfail120433f9b93745c66c49?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9839a12c-cb71-40d7-929c-7bd56f10d375" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA78EA7884", + "x-ms-lease-id" : "91e81685-05a4-4caa-b10d-db165981bbf5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6119-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "9839a12c-cb71-40d7-929c-7bd56f10d375" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail04009072f2144bf66941d5/javapathbreakfileleaseacfail120433f9b93745c66c49?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db09af0b-25bb-42e1-8b6e-07227e4bf4fc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f612b-e01e-007c-02d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f612b-e01e-007c-02d3-90d34f000000\nTime:2019-11-01T16:42:24.1165346Z", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "db09af0b-25bb-42e1-8b6e-07227e4bf4fc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34695e6e-6d78-4386-bcef-e0e6978559a7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6142-e01e-007c-18d3-90d34f000000", + "Body" : "jtfsbreakfileleaseacfailjtfsbreakfileleaseacfail04009072f2144bf66941d5Fri, 01 Nov 2019 16:42:23 GMT\"0x8D75EEA78E08AA0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "34695e6e-6d78-4386-bcef-e0e6978559a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail04009072f2144bf66941d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "098dab67-6504-4f7a-912f-aaad3636894f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f615e-e01e-007c-2dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "098dab67-6504-4f7a-912f-aaad3636894f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseacfail04009072f2144bf66941d5", "javapathbreakfileleaseacfail120433f9b93745c66c49" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[1].json new file mode 100644 index 0000000000000..d5a93f1249791 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail096210a1dbc0932e9c4396?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "632c09b6-d103-40c5-92ca-4347af90d099" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA791251F8", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f616a-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "632c09b6-d103-40c5-92ca-4347af90d099" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseacfail096210a1dbc0932e9c4396/javapathbreakfileleaseacfail1888899e60080dd31643?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "59e1131c-4dd3-4360-bf27-e805b6a2d5ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA792001B6", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff3-801f-00ab-7ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "59e1131c-4dd3-4360-bf27-e805b6a2d5ec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail096210a1dbc0932e9c4396/javapathbreakfileleaseacfail1888899e60080dd31643?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4a5a39df-b6c4-47c2-971e-4a635ed7c439" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA792001B6", + "x-ms-lease-id" : "fa16ad90-9e51-4c95-ac8f-3e9b7302208f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6191-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "4a5a39df-b6c4-47c2-971e-4a635ed7c439" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail096210a1dbc0932e9c4396/javapathbreakfileleaseacfail1888899e60080dd31643?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b1cb4356-fcf1-456a-89fe-6a4021a33a21" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f61a0-e01e-007c-68d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f61a0-e01e-007c-68d3-90d34f000000\nTime:2019-11-01T16:42:24.4667807Z", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "b1cb4356-fcf1-456a-89fe-6a4021a33a21", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "efbf8ce6-57f7-4eb7-a199-4334a4884964" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f61b4-e01e-007c-7ad3-90d34f000000", + "Body" : "jtfsbreakfileleaseacfailjtfsbreakfileleaseacfail096210a1dbc0932e9c4396Fri, 01 Nov 2019 16:42:24 GMT\"0x8D75EEA791251F8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "efbf8ce6-57f7-4eb7-a199-4334a4884964", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail096210a1dbc0932e9c4396?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3558cee7-a5a0-44b1-9b00-c0d2fb74376f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f61bf-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "3558cee7-a5a0-44b1-9b00-c0d2fb74376f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseacfail096210a1dbc0932e9c4396", "javapathbreakfileleaseacfail1888899e60080dd31643" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[2].json new file mode 100644 index 0000000000000..dad5608e52c58 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail03435696dbc30b81714221?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a83360d9-60a3-4394-b96e-fcf8960b150e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7945EE65", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f61d9-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "a83360d9-60a3-4394-b96e-fcf8960b150e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseacfail03435696dbc30b81714221/javapathbreakfileleaseacfail179029d9f7affc370148?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "962fee34-8484-4257-908b-cacc79b224b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7950ECE3", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff4-801f-00ab-7bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "962fee34-8484-4257-908b-cacc79b224b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail03435696dbc30b81714221/javapathbreakfileleaseacfail179029d9f7affc370148?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29fdc454-5bc3-4974-a19e-3a84b3f1ddb3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7950ECE3", + "x-ms-lease-id" : "acbd1445-facd-4063-9f5c-4401c9f42f8a", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6209-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "29fdc454-5bc3-4974-a19e-3a84b3f1ddb3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail03435696dbc30b81714221/javapathbreakfileleaseacfail179029d9f7affc370148?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef9a21fd-dae3-47a5-860c-891da4c64304" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f622f-e01e-007c-6cd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f622f-e01e-007c-6cd3-90d34f000000\nTime:2019-11-01T16:42:24.8220308Z", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "ef9a21fd-dae3-47a5-860c-891da4c64304", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9462b9e4-440f-48be-bf0b-7269730034d1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f623e-e01e-007c-7bd3-90d34f000000", + "Body" : "jtfsbreakfileleaseacfailjtfsbreakfileleaseacfail03435696dbc30b81714221Fri, 01 Nov 2019 16:42:24 GMT\"0x8D75EEA7945EE65\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "9462b9e4-440f-48be-bf0b-7269730034d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail03435696dbc30b81714221?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99b009dd-ada4-469b-bc8e-9e46748fd453" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6253-e01e-007c-0fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:23 GMT", + "x-ms-client-request-id" : "99b009dd-ada4-469b-bc8e-9e46748fd453" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseacfail03435696dbc30b81714221", "javapathbreakfileleaseacfail179029d9f7affc370148" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[3].json new file mode 100644 index 0000000000000..d345a9bbf9a10 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseacfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail0536820b61754fd2da4ff8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bf0d1dc3-2c60-490c-8d77-f2cee5d4721f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA797DAA40", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6268-e01e-007c-22d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "bf0d1dc3-2c60-490c-8d77-f2cee5d4721f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseacfail0536820b61754fd2da4ff8/javapathbreakfileleaseacfail19606055d99edeed484c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e9ddb45-9dd8-40f4-95c6-09c98e64f057" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79877A9F", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff5-801f-00ab-7cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "7e9ddb45-9dd8-40f4-95c6-09c98e64f057" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail0536820b61754fd2da4ff8/javapathbreakfileleaseacfail19606055d99edeed484c", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2dfc4a57-3611-442f-8edf-19e7737a9a8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42: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", + "ETag" : "0x8D75EEA79877A9F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:25 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f62a7-e01e-007c-5cd3-90d34f000000", + "x-ms-client-request-id" : "2dfc4a57-3611-442f-8edf-19e7737a9a8c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail0536820b61754fd2da4ff8/javapathbreakfileleaseacfail19606055d99edeed484c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2854a987-a59e-47dc-908e-36dca64d6fc9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79877A9F", + "x-ms-lease-id" : "790caa50-15f2-43c6-8153-d52e67298dd8", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f62c1-e01e-007c-72d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "2854a987-a59e-47dc-908e-36dca64d6fc9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail0536820b61754fd2da4ff8/javapathbreakfileleaseacfail19606055d99edeed484c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc82b3ea-7f01-4df5-b730-739e607b1d17" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f62df-e01e-007c-0fd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f62df-e01e-007c-0fd3-90d34f000000\nTime:2019-11-01T16:42:25.1892893Z", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "bc82b3ea-7f01-4df5-b730-739e607b1d17", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e531af6b-c2eb-4513-8bb0-1da5bf69742c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f62f3-e01e-007c-22d3-90d34f000000", + "Body" : "jtfsbreakfileleaseacfailjtfsbreakfileleaseacfail0536820b61754fd2da4ff8Fri, 01 Nov 2019 16:42:24 GMT\"0x8D75EEA797DAA40\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "e531af6b-c2eb-4513-8bb0-1da5bf69742c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseacfail0536820b61754fd2da4ff8?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "12c9f7a6-dc35-493e-a460-6e8ffd426848" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6308-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "12c9f7a6-dc35-493e-a460-6e8ffd426848" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseacfail0536820b61754fd2da4ff8", "javapathbreakfileleaseacfail19606055d99edeed484c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseerror.json new file mode 100644 index 0000000000000..0bac4b0617d74 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleaseerror.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseerror0410479222f2de45014f838?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4212ba77-bf12-4dca-b080-7d9681d3cef0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79B39106", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6333-e01e-007c-59d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "4212ba77-bf12-4dca-b080-7d9681d3cef0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleaseerror0410479222f2de45014f838/javapathbreakfileleaseerror145407f865fd28ff53489?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b93b752-9d84-4914-936f-66d783467a28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79BD732C", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff6-801f-00ab-7dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "8b93b752-9d84-4914-936f-66d783467a28" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseerror0410479222f2de45014f838/javapathbreakfileleaseerror145407f865fd28ff53489?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fb54db4c-0195-4be8-b833-a1c123ab6f1e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithLeaseOperation", + "retry-after" : "0", + "Content-Length" : "242", + "StatusCode" : "409", + "x-ms-request-id" : "dc6f637e-e01e-007c-17d3-90d34f000000", + "Body" : "LeaseNotPresentWithLeaseOperationThere is currently no lease on the blob.\nRequestId:dc6f637e-e01e-007c-17d3-90d34f000000\nTime:2019-11-01T16:42:25.4514734Z", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "fb54db4c-0195-4be8-b833-a1c123ab6f1e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4de7879-54e1-461e-af53-64a1e58e96ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6395-e01e-007c-2cd3-90d34f000000", + "Body" : "jtfsbreakfileleaseerrorjtfsbreakfileleaseerror0410479222f2de45014f838Fri, 01 Nov 2019 16:42:25 GMT\"0x8D75EEA79B39106\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "d4de7879-54e1-461e-af53-64a1e58e96ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleaseerror0410479222f2de45014f838?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "419a5e7d-e796-4c18-88b6-cd3d5b752d7e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f63b2-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "419a5e7d-e796-4c18-88b6-cd3d5b752d7e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleaseerror0410479222f2de45014f838", "javapathbreakfileleaseerror145407f865fd28ff53489" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleasemin.json new file mode 100644 index 0000000000000..7acd1a4b08ca9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfileleasemin.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83c78933-de03-4481-932f-80808ea4765d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77A11A56", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5e3c-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:20 GMT", + "x-ms-client-request-id" : "83c78933-de03-4481-932f-80808ea4765d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5/javapathbreakfileleasemin16912924f0bc30cceb4051?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f2c20360-c59f-4642-a1fd-cc087ad9a424" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77ABD884", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffea-801f-00ab-71d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "f2c20360-c59f-4642-a1fd-cc087ad9a424" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5/javapathbreakfileleasemin16912924f0bc30cceb4051?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34ee8a77-cf58-40fd-b889-0c13f62ed459" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77ABD884", + "x-ms-lease-id" : "8e96cfe3-2b71-4cb9-93e1-bfc7f5cd6496", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5e63-e01e-007c-72d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "34ee8a77-cf58-40fd-b889-0c13f62ed459" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5/javapathbreakfileleasemin16912924f0bc30cceb4051?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e306b75b-160a-45df-8e78-8892b40a6dae" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA77ABD884", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5e79-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "e306b75b-160a-45df-8e78-8892b40a6dae" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfileleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d072049e-839f-46c7-9281-0eaa929a518f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5e94-e01e-007c-22d3-90d34f000000", + "Body" : "jtfsbreakfileleaseminjtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5Fri, 01 Nov 2019 16:42:21 GMT\"0x8D75EEA77A11A56\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "d072049e-839f-46c7-9281-0eaa929a518f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7864608e-6f72-4882-bb1b-bdcba3a11b74" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5ea8-e01e-007c-36d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:21 GMT", + "x-ms-client-request-id" : "7864608e-6f72-4882-bb1b-bdcba3a11b74" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfileleasemin0leaseapitestbreakfileleaseminf2681036a5", "javapathbreakfileleasemin16912924f0bc30cceb4051" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[0].json new file mode 100644 index 0000000000000..bcfda7792b802 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[0].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease044397d7dd6ffe574546e1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf9ae0f3-f680-4cd5-abce-05ddbfc1972a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8BB19F47", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9269-e01e-007c-03d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "cf9ae0f3-f680-4cd5-abce-05ddbfc1972a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease044397d7dd6ffe574546e1?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca1c6f5d-a9bd-4e8e-81b7-55bc15864068" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8BB19F47", + "x-ms-lease-id" : "6b50c241-8271-422b-8206-0a8a733fbe8c", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9297-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "ca1c6f5d-a9bd-4e8e-81b7-55bc15864068" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease044397d7dd6ffe574546e1?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "823d6c60-d1a5-4582-9f2d-1d9f773759cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8BB19F47", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f92aa-e01e-007c-39d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "823d6c60-d1a5-4582-9f2d-1d9f773759cb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease044397d7dd6ffe574546e1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec523166-eab2-456e-b906-42b5203bed7e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "broken", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA8BB19F47", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f92c0-e01e-007c-4fd3-90d34f000000", + "x-ms-client-request-id" : "ec523166-eab2-456e-b906-42b5203bed7e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80b5740a-f6de-4ccf-8145-b7c57caceba0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f92d5-e01e-007c-64d3-90d34f000000", + "Body" : "jtfsbreakfilesystemleasejtfsbreakfilesystemlease044397d7dd6ffe574546e1Fri, 01 Nov 2019 16:42:55 GMT\"0x8D75EEA8BB19F47\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "80b5740a-f6de-4ccf-8145-b7c57caceba0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease044397d7dd6ffe574546e1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3fc211f9-9b9e-4cc2-aa84-0c68447ab10b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f92e4-e01e-007c-73d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "3fc211f9-9b9e-4cc2-aa84-0c68447ab10b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemlease044397d7dd6ffe574546e1", "6b50c241-8271-422b-8206-0a8a733fbe8c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[1].json new file mode 100644 index 0000000000000..fd768b0c57c85 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[1].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease0762680e3d3cdd979e41bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68bc2c25-704b-421b-9fff-5b07300fcd78" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8BE562C6", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f92f6-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "68bc2c25-704b-421b-9fff-5b07300fcd78" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease0762680e3d3cdd979e41bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "676dcba9-7dfc-41bf-a07b-16f1737be5cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8BE562C6", + "x-ms-lease-id" : "513f50d9-db04-4543-bf7a-7e28be57f5c3", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f930a-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "676dcba9-7dfc-41bf-a07b-16f1737be5cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease0762680e3d3cdd979e41bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "32fc29fc-cd95-4888-b615-9ac161190c8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8BE562C6", + "x-ms-lease-time" : "20", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f932a-e01e-007c-2fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "32fc29fc-cd95-4888-b615-9ac161190c8a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease0762680e3d3cdd979e41bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e1c5b20-04b0-4621-8f1a-ef1aea10d83b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "breaking", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA8BE562C6", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f9345-e01e-007c-48d3-90d34f000000", + "x-ms-client-request-id" : "8e1c5b20-04b0-4621-8f1a-ef1aea10d83b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97462fd8-3af3-4ed6-8dd3-cf45ff1563aa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fb1fb-e01e-007c-6dd3-90d34f000000", + "Body" : "jtfsbreakfilesystemleasejtfsbreakfilesystemlease0762680e3d3cdd979e41bbFri, 01 Nov 2019 16:42:55 GMT\"0x8D75EEA8BE562C6\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:16 GMT", + "x-ms-client-request-id" : "97462fd8-3af3-4ed6-8dd3-cf45ff1563aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease0762680e3d3cdd979e41bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f99fa601-92e3-45e6-bfca-fdfd770ee8f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fb218-e01e-007c-07d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:16 GMT", + "x-ms-client-request-id" : "f99fa601-92e3-45e6-bfca-fdfd770ee8f1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemlease0762680e3d3cdd979e41bb", "513f50d9-db04-4543-bf7a-7e28be57f5c3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[2].json new file mode 100644 index 0000000000000..73c4a04a75e94 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemlease[2].json @@ -0,0 +1,136 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease076228fbf5293a3ee34bae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c065141-01bf-48c1-82b5-19a9274397af" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA98016894", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fb247-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:16 GMT", + "x-ms-client-request-id" : "5c065141-01bf-48c1-82b5-19a9274397af" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease076228fbf5293a3ee34bae?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5940348f-8ba3-4e53-867b-9ae374cf34c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA98016894", + "x-ms-lease-id" : "26681786-851b-4359-9b1b-1f3b4d28983b", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fb273-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:16 GMT", + "x-ms-client-request-id" : "5940348f-8ba3-4e53-867b-9ae374cf34c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease076228fbf5293a3ee34bae?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4b843df-0bff-46e2-bb65-1f5c8a365ef2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA98016894", + "x-ms-lease-time" : "15", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fb287-e01e-007c-6dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:16 GMT", + "x-ms-client-request-id" : "d4b843df-0bff-46e2-bb65-1f5c8a365ef2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease076228fbf5293a3ee34bae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "94f3da29-6a82-48e0-9938-3bbe2be27186" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "breaking", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:16 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:43:16 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA98016894", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc6fb294-e01e-007c-79d3-90d34f000000", + "x-ms-client-request-id" : "94f3da29-6a82-48e0-9938-3bbe2be27186" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44f48907-b5c8-44a6-8222-5c9f326d31ce" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fc8ff-e01e-007c-4cd3-90d34f000000", + "Body" : "jtfsbreakfilesystemleasejtfsbreakfilesystemlease076228fbf5293a3ee34baeFri, 01 Nov 2019 16:43:16 GMT\"0x8D75EEA98016894\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "44f48907-b5c8-44a6-8222-5c9f326d31ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemlease076228fbf5293a3ee34bae?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b23844ce-2dd2-4cd3-ac38-7979a06a143c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fc910-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "b23844ce-2dd2-4cd3-ac38-7979a06a143c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemlease076228fbf5293a3ee34bae", "26681786-851b-4359-9b1b-1f3b4d28983b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[0].json new file mode 100644 index 0000000000000..4e77126990a99 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[0].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac030055c51a6abba61d446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "62620e47-023c-4c82-9c95-7939c4870d1b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA154A612", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fc9a5-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "62620e47-023c-4c82-9c95-7939c4870d1b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac030055c51a6abba61d446?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7c6d450-00f3-4e06-992e-8084f2646684" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA154A612", + "x-ms-lease-id" : "34ce5e43-4d2e-412f-9743-f966558e7cee", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fc9d4-e01e-007c-0fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "a7c6d450-00f3-4e06-992e-8084f2646684" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac030055c51a6abba61d446?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "764f8ccb-77c4-4da4-aad8-814d2f8306d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA154A612", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fc9e4-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "764f8ccb-77c4-4da4-aad8-814d2f8306d1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36b8a820-3725-4604-a6ca-0df36d27cbb2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fc9f6-e01e-007c-31d3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacjtfsbreakfilesystemleaseac030055c51a6abba61d446Fri, 01 Nov 2019 16:43:31 GMT\"0x8D75EEAA154A612\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "36b8a820-3725-4604-a6ca-0df36d27cbb2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac030055c51a6abba61d446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "228cda86-f111-4e70-8d13-886a6eff09fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fca09-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "228cda86-f111-4e70-8d13-886a6eff09fb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseac030055c51a6abba61d446" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[1].json new file mode 100644 index 0000000000000..f5f07a3e0c5a4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[1].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac012144c7f8f973382a44a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1789a24-3689-4369-b1b6-d206d11499ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1818A9B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fca21-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "f1789a24-3689-4369-b1b6-d206d11499ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac012144c7f8f973382a44a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c35532f7-d14e-43db-80ed-b13ebd01d2b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1818A9B", + "x-ms-lease-id" : "26434ef9-ff72-4cfe-83d2-07292af1c98b", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fca4c-e01e-007c-7cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "c35532f7-d14e-43db-80ed-b13ebd01d2b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac012144c7f8f973382a44a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c8e49ae4-fca3-4974-bbd3-5cb0ef9fb69c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1818A9B", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fca65-e01e-007c-13d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "c8e49ae4-fca3-4974-bbd3-5cb0ef9fb69c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "851b6f80-76d8-455e-8f9d-5e237ed18309" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fca6f-e01e-007c-1cd3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacjtfsbreakfilesystemleaseac012144c7f8f973382a44aFri, 01 Nov 2019 16:43:32 GMT\"0x8D75EEAA1818A9B\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "851b6f80-76d8-455e-8f9d-5e237ed18309", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac012144c7f8f973382a44a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a658245-65cd-4473-b86d-09219ebd4e9f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fca79-e01e-007c-26d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "7a658245-65cd-4473-b86d-09219ebd4e9f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseac012144c7f8f973382a44a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[2].json new file mode 100644 index 0000000000000..2736ba3e30921 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseac[2].json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac080337b1dc476f861d4a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f4dbcdb-e45d-4f23-98e0-7e786fd58f7d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1B2194E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcaa0-e01e-007c-4dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "2f4dbcdb-e45d-4f23-98e0-7e786fd58f7d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac080337b1dc476f861d4a2?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c00e088b-551f-4198-a685-c0d7a643b4d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1B2194E", + "x-ms-lease-id" : "5ec7d1d4-b245-4e25-96b3-05eb4d4b5b75", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcab3-e01e-007c-5fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "c00e088b-551f-4198-a685-c0d7a643b4d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac080337b1dc476f861d4a2?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "493fb60b-a19a-456b-ab36-644ded7cdcce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1B2194E", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcac9-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "493fb60b-a19a-456b-ab36-644ded7cdcce" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90a80282-fb58-4f11-af79-cb44dfa7381f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcadb-e01e-007c-06d3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacjtfsbreakfilesystemleaseac080337b1dc476f861d4a2Fri, 01 Nov 2019 16:43:32 GMT\"0x8D75EEAA1B2194E\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "90a80282-fb58-4f11-af79-cb44dfa7381f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseac080337b1dc476f861d4a2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f297c444-0684-453d-a3e9-873704fd7572" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcafc-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "f297c444-0684-453d-a3e9-873704fd7572" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseac080337b1dc476f861d4a2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacfail[0].json new file mode 100644 index 0000000000000..ce0c5f6ee5d12 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacfail[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail0132673a23606232574?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e99234e0-44f1-488b-ad25-72c52b137e9e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1DADE5A", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcb17-e01e-007c-36d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "e99234e0-44f1-488b-ad25-72c52b137e9e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail0132673a23606232574?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e93039d-c248-46dc-9d3c-9e86b9a5926b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1DADE5A", + "x-ms-lease-id" : "d9f8c690-7efc-4528-a43d-6e3ba96a6aa9", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcb2a-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "6e93039d-c248-46dc-9d3c-9e86b9a5926b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail0132673a23606232574?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c031862e-78cb-4a42-9e77-fc69869cb921" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6fcb42-e01e-007c-60d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6fcb42-e01e-007c-60d3-90d34f000000\nTime:2019-11-01T16:43:32.8109029Z", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "c031862e-78cb-4a42-9e77-fc69869cb921", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "40972cd0-7de7-4ac5-90cb-66ac4bffdd07" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcb5b-e01e-007c-79d3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacfailjtfsbreakfilesystemleaseacfail0132673a23606232574Fri, 01 Nov 2019 16:43:32 GMT\"0x8D75EEAA1DADE5A\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "40972cd0-7de7-4ac5-90cb-66ac4bffdd07", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail0132673a23606232574?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63df3898-a635-47b7-9714-398e4d4c16b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA1DADE5A", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcb72-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "63df3898-a635-47b7-9714-398e4d4c16b7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail0132673a23606232574?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f79d9e94-ff7d-4768-84da-ab4f9a163df6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcb94-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "f79d9e94-ff7d-4768-84da-ab4f9a163df6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseacfail0132673a23606232574" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacfail[1].json new file mode 100644 index 0000000000000..04aacb4dab668 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacfail[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail064120d99458bc81584?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba7b6f0c-a414-4d74-8310-ef56c7098482" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA20F6551", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcba7-e01e-007c-3bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:32 GMT", + "x-ms-client-request-id" : "ba7b6f0c-a414-4d74-8310-ef56c7098482" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail064120d99458bc81584?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44eff3af-d077-404e-9118-2bfece49897a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA20F6551", + "x-ms-lease-id" : "76711ad0-b3a4-42cd-aa1f-1b6f9a7fb046", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcbc9-e01e-007c-59d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "44eff3af-d077-404e-9118-2bfece49897a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail064120d99458bc81584?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a4e76ef-d32d-43e1-8db3-8ea264e7650e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6fcbd0-e01e-007c-60d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6fcbd0-e01e-007c-60d3-90d34f000000\nTime:2019-11-01T16:43:33.1661529Z", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "8a4e76ef-d32d-43e1-8db3-8ea264e7650e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "431ac4ec-3375-4219-99c7-df0dda73f31a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcbdc-e01e-007c-6cd3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacfailjtfsbreakfilesystemleaseacfail064120d99458bc81584Fri, 01 Nov 2019 16:43:33 GMT\"0x8D75EEAA20F6551\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "431ac4ec-3375-4219-99c7-df0dda73f31a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail064120d99458bc81584?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bcbd7979-8ca8-400d-a2e6-6a446599cea5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA20F6551", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcbe6-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "bcbd7979-8ca8-400d-a2e6-6a446599cea5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacfail064120d99458bc81584?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26719193-8b95-4d4f-98ba-1878e1e3bce6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcc04-e01e-007c-13d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "26719193-8b95-4d4f-98ba-1878e1e3bce6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseacfail064120d99458bc81584" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacillegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacillegal[0].json new file mode 100644 index 0000000000000..04bf4d5baed23 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacillegal[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacillegal0949210255a9067c2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "56cbea64-8cdc-4f9a-9436-bb15ce32d46d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA244D6CE", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcc1d-e01e-007c-2cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "56cbea64-8cdc-4f9a-9436-bb15ce32d46d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacillegal0949210255a9067c2f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e929a1d1-555a-42ce-a1c0-2af3ce121e7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithLeaseOperation", + "retry-after" : "0", + "Content-Length" : "247", + "StatusCode" : "409", + "x-ms-request-id" : "dc6fcc38-e01e-007c-44d3-90d34f000000", + "Body" : "LeaseNotPresentWithLeaseOperationThere is currently no lease on the container.\nRequestId:dc6fcc38-e01e-007c-44d3-90d34f000000\nTime:2019-11-01T16:43:33.4563567Z", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "e929a1d1-555a-42ce-a1c0-2af3ce121e7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "81006b10-c143-4699-9b2c-44f61a5db42e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcc48-e01e-007c-54d3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacillegaljtfsbreakfilesystemleaseacillegal0949210255a9067c2fFri, 01 Nov 2019 16:43:33 GMT\"0x8D75EEAA244D6CE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "81006b10-c143-4699-9b2c-44f61a5db42e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacillegal0949210255a9067c2f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c326f791-e034-4f6c-ba21-179d64f020bd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcc59-e01e-007c-65d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "c326f791-e034-4f6c-ba21-179d64f020bd" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseacillegal0949210255a9067c2f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacillegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacillegal[1].json new file mode 100644 index 0000000000000..ca11e6560ae3f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseacillegal[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacillegal037803da004984237d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c45692a-528a-41d8-859d-6b0836b1f5c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA265AB28", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcc6e-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "3c45692a-528a-41d8-859d-6b0836b1f5c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacillegal037803da004984237d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f91339cb-b6db-412a-985a-cb853b4a5745" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "LeaseNotPresentWithLeaseOperation", + "retry-after" : "0", + "Content-Length" : "247", + "StatusCode" : "409", + "x-ms-request-id" : "dc6fcc7f-e01e-007c-03d3-90d34f000000", + "Body" : "LeaseNotPresentWithLeaseOperationThere is currently no lease on the container.\nRequestId:dc6fcc7f-e01e-007c-03d3-90d34f000000\nTime:2019-11-01T16:43:33.6715086Z", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "f91339cb-b6db-412a-985a-cb853b4a5745", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7836b7fc-b8e6-4811-b4de-f1e84bc43f15" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcc97-e01e-007c-1bd3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseacillegaljtfsbreakfilesystemleaseacillegal037803da004984237dFri, 01 Nov 2019 16:43:33 GMT\"0x8D75EEAA265AB28\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "7836b7fc-b8e6-4811-b4de-f1e84bc43f15", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseacillegal037803da004984237d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da452be0-e27c-4ee0-8c0c-19f5188d37bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcca2-e01e-007c-26d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "da452be0-e27c-4ee0-8c0c-19f5188d37bc" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseacillegal037803da004984237d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseerror.json new file mode 100644 index 0000000000000..8e42b6fc4d557 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseerror056344d46814d1fd034e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93ad433f-1e29-4000-969f-40de0b527b7a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2867F83", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fccb3-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "93ad433f-1e29-4000-969f-40de0b527b7a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseerror170370c4836ad49b0540?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "816ecea8-0267-4006-a5d0-c6e17c709e81" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ContainerNotFound", + "retry-after" : "0", + "Content-Length" : "225", + "StatusCode" : "404", + "x-ms-request-id" : "dc6fccc8-e01e-007c-47d3-90d34f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dc6fccc8-e01e-007c-47d3-90d34f000000\nTime:2019-11-01T16:43:33.8866600Z", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "816ecea8-0267-4006-a5d0-c6e17c709e81", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cfe72fb6-f6b9-4cd5-abc7-81cc33f3b8ec" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fccdd-e01e-007c-57d3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseerrorjtfsbreakfilesystemleaseerror056344d46814d1fd034eFri, 01 Nov 2019 16:43:33 GMT\"0x8D75EEAA2867F83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "cfe72fb6-f6b9-4cd5-abc7-81cc33f3b8ec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleaseerror056344d46814d1fd034e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a5c8433c-3fc6-47e6-b84e-40bd3a5c1309" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcced-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "a5c8433c-3fc6-47e6-b84e-40bd3a5c1309" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleaseerror056344d46814d1fd034e", "jtfsbreakfilesystemleaseerror170370c4836ad49b0540" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleasemin.json new file mode 100644 index 0000000000000..3c03cd35a2035 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestbreakfilesystemleasemin.json @@ -0,0 +1,109 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleasemin0928029585cf67199a406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c8927e6d-1323-4ef4-8fd3-49a11b61c18f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA12A0BE0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fc943-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "c8927e6d-1323-4ef4-8fd3-49a11b61c18f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleasemin0928029585cf67199a406?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b05d5be1-4e2b-4831-bb99-01cc2c4c44a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA12A0BE0", + "x-ms-lease-id" : "63f244e2-05f3-4658-b82e-0d715e39b44a", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fc962-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "b05d5be1-4e2b-4831-bb99-01cc2c4c44a6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleasemin0928029585cf67199a406?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4af8bebf-4f68-4ec0-9116-b7011581e5f1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA12A0BE0", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fc972-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "4af8bebf-4f68-4ec0-9116-b7011581e5f1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsbreakfilesystemleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45d7930d-4bba-41bf-9ebc-ac09a1a326d2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fc97c-e01e-007c-3cd3-90d34f000000", + "Body" : "jtfsbreakfilesystemleaseminjtfsbreakfilesystemleasemin0928029585cf67199a406Fri, 01 Nov 2019 16:43:31 GMT\"0x8D75EEAA12A0BE0\"unlockedbroken$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "45d7930d-4bba-41bf-9ebc-ac09a1a326d2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsbreakfilesystemleasemin0928029585cf67199a406?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68e7a05c-9c54-4891-a003-05e5e25c24dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fc98a-e01e-007c-4ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:31 GMT", + "x-ms-client-request-id" : "68e7a05c-9c54-4891-a003-05e5e25c24dd" + }, + "Exception" : null + } ], + "variables" : [ "jtfsbreakfilesystemleasemin0928029585cf67199a406" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilelease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilelease.json new file mode 100644 index 0000000000000..53674ee9e9320 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilelease.json @@ -0,0 +1,151 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilelease0leaseapitestchangefileleasead907161f736?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "43fab36f-713d-453e-9ab4-6b0cb6aa19b0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79DF63E0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f63de-e01e-007c-6cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "43fab36f-713d-453e-9ab4-6b0cb6aa19b0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefilelease0leaseapitestchangefileleasead907161f736/javapathchangefilelease1leaseapitestchangefileleasead9189041e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d4a1679-6a82-4d5c-8caf-7534a4bcb3ca" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79EBD3EB", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff7-801f-00ab-7ed3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "8d4a1679-6a82-4d5c-8caf-7534a4bcb3ca" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilelease0leaseapitestchangefileleasead907161f736/javapathchangefilelease1leaseapitestchangefileleasead9189041e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d8e406d-2286-4620-9eaa-04b89639f3f6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79EBD3EB", + "x-ms-lease-id" : "bf238f3b-c113-4e9c-bc4c-939388fbf126", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6415-e01e-007c-1dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "6d8e406d-2286-4620-9eaa-04b89639f3f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilelease0leaseapitestchangefileleasead907161f736/javapathchangefilelease1leaseapitestchangefileleasead9189041e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dd5b3af0-85cd-4628-8c0f-1abb76b33caf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79EBD3EB", + "x-ms-lease-id" : "829a77fa-5759-467c-a33f-71036bf513d0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f642f-e01e-007c-34d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "dd5b3af0-85cd-4628-8c0f-1abb76b33caf" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilelease0leaseapitestchangefileleasead907161f736/javapathchangefilelease1leaseapitestchangefileleasead9189041e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f6afe22-410e-4a97-9d0e-c6e61a619390" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA79EBD3EB", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6449-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "9f6afe22-410e-4a97-9d0e-c6e61a619390" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afac461c-9069-4df0-af4f-8afe7ead1142" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6460-e01e-007c-5dd3-90d34f000000", + "Body" : "jtfschangefileleasejtfschangefilelease0leaseapitestchangefileleasead907161f736Fri, 01 Nov 2019 16:42:25 GMT\"0x8D75EEA79DF63E0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:24 GMT", + "x-ms-client-request-id" : "afac461c-9069-4df0-af4f-8afe7ead1142", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilelease0leaseapitestchangefileleasead907161f736?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad48f32a-4cd2-43a2-9f12-66cbc13b4d7c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6482-e01e-007c-7ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "ad48f32a-4cd2-43a2-9f12-66cbc13b4d7c" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilelease0leaseapitestchangefileleasead907161f736", "javapathchangefilelease1leaseapitestchangefileleasead9189041e", "bf238f3b-c113-4e9c-bc4c-939388fbf126", "829a77fa-5759-467c-a33f-71036bf513d0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[0].json new file mode 100644 index 0000000000000..e98bbd7018f66 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f966b525-9b61-4494-90ec-7057995e8e52" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A5C7294", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f655e-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "f966b525-9b61-4494-90ec-7057995e8e52" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5/javapathchangefileleaseac176987898f1b0bdb164a4d?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d0ba1332-f902-4ee7-85d3-e287bb5e691f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A687377", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff9-801f-00ab-80d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "d0ba1332-f902-4ee7-85d3-e287bb5e691f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5/javapathchangefileleaseac176987898f1b0bdb164a4d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e98cff8b-f657-4610-9973-aa1ae36281dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A687377", + "x-ms-lease-id" : "51d2d6c3-77d5-4aae-944f-5070d2b21b32", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f658d-e01e-007c-7ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "e98cff8b-f657-4610-9973-aa1ae36281dd" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5/javapathchangefileleaseac176987898f1b0bdb164a4d?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c65bb087-8e17-4e4c-8d12-c9006b53e350" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A687377", + "x-ms-lease-id" : "ef1540f5-f50b-4a7e-a579-92596cacf10f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f65a2-e01e-007c-13d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "c65bb087-8e17-4e4c-8d12-c9006b53e350" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9186d19-f6c4-4441-8e53-f7fb296e31a1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f65b8-e01e-007c-27d3-90d34f000000", + "Body" : "jtfschangefileleaseacjtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5Fri, 01 Nov 2019 16:42:26 GMT\"0x8D75EEA7A5C7294\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "e9186d19-f6c4-4441-8e53-f7fb296e31a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e105398e-d8bc-4ecc-b780-998349a66119" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f65c6-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "e105398e-d8bc-4ecc-b780-998349a66119" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseac0leaseapitestchangefileleaseace2872084e5", "javapathchangefileleaseac176987898f1b0bdb164a4d", "ef1540f5-f50b-4a7e-a579-92596cacf10f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[1].json new file mode 100644 index 0000000000000..ec35206f35b68 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ffbc1174-30fa-4532-99f8-35207c7eaca8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A8E881F", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f65d7-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "ffbc1174-30fa-4532-99f8-35207c7eaca8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590/javapathchangefileleaseac1544906bdf04be6ed0489e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44572b94-591c-4374-a5cc-406a619308ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A98A82B", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfffa-801f-00ab-01d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "44572b94-591c-4374-a5cc-406a619308ec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590/javapathchangefileleaseac1544906bdf04be6ed0489e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6625ef6e-6222-42a5-9626-d5a9d5f60984" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A98A82B", + "x-ms-lease-id" : "07eeed17-375b-4331-8ccc-99fca7aa33fe", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f65f8-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "6625ef6e-6222-42a5-9626-d5a9d5f60984" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590/javapathchangefileleaseac1544906bdf04be6ed0489e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53349436-aa38-4f51-b7f5-77a1f7f176e6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A98A82B", + "x-ms-lease-id" : "791a134a-194e-4fab-b95e-8cc9daf8905c", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f660f-e01e-007c-77d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "53349436-aa38-4f51-b7f5-77a1f7f176e6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5c8f0909-2a39-479a-88bf-986646b323f8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6621-e01e-007c-07d3-90d34f000000", + "Body" : "jtfschangefileleaseacjtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590Fri, 01 Nov 2019 16:42:26 GMT\"0x8D75EEA7A8E881F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "5c8f0909-2a39-479a-88bf-986646b323f8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb5f5c06-19dc-4189-a1a8-be2595e10c94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f662d-e01e-007c-11d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "cb5f5c06-19dc-4189-a1a8-be2595e10c94" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseac0leaseapitestchangefileleaseacfd66443590", "javapathchangefileleaseac1544906bdf04be6ed0489e", "791a134a-194e-4fab-b95e-8cc9daf8905c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[2].json new file mode 100644 index 0000000000000..18f5dc023aabf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "efd08f41-cb1f-460f-b402-0e475ca9e70e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7AC1D659", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f664d-e01e-007c-2fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "efd08f41-cb1f-460f-b402-0e475ca9e70e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4/javapathchangefileleaseac13327181564791212b4eb2?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ddf2bda-344b-4599-959e-7b8203e76481" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7ACC0B78", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfffb-801f-00ab-02d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "6ddf2bda-344b-4599-959e-7b8203e76481" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4/javapathchangefileleaseac13327181564791212b4eb2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b61408b-2864-4774-bd47-90dd2d846b38" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7ACC0B78", + "x-ms-lease-id" : "75ba8137-19e0-42d6-a51e-c5ebc99e3660", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6673-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "8b61408b-2864-4774-bd47-90dd2d846b38" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4/javapathchangefileleaseac13327181564791212b4eb2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f45c1dac-28b9-4f28-a270-e074c02c045f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7ACC0B78", + "x-ms-lease-id" : "c18df772-7af2-4c60-b054-77e0f5b3a141", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f667c-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "f45c1dac-28b9-4f28-a270-e074c02c045f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c260a58b-0d50-4d37-b148-8afd044bd30c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6691-e01e-007c-6ed3-90d34f000000", + "Body" : "jtfschangefileleaseacjtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4Fri, 01 Nov 2019 16:42:27 GMT\"0x8D75EEA7AC1D659\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "c260a58b-0d50-4d37-b148-8afd044bd30c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03b45902-1be4-4542-bad9-b39145974ef2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f669c-e01e-007c-79d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "03b45902-1be4-4542-bad9-b39145974ef2" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseac0leaseapitestchangefileleaseac13431114d4", "javapathchangefileleaseac13327181564791212b4eb2", "c18df772-7af2-4c60-b054-77e0f5b3a141" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[3].json new file mode 100644 index 0000000000000..ba0391e8788a0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42eb6637-f0c6-4dbd-963f-00a745fcc4aa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7AF34F83", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f66b0-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "42eb6637-f0c6-4dbd-963f-00a745fcc4aa" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384/javapathchangefileleaseac114295ef433ffba1654bcd?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f5940e7-1c90-4113-94dc-aaf6111a3e99" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7AFD17EB", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfffc-801f-00ab-03d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "2f5940e7-1c90-4113-94dc-aaf6111a3e99" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384/javapathchangefileleaseac114295ef433ffba1654bcd", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db87d887-f1d4-4d73-9a45-5e75f1d82cbb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42: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", + "ETag" : "0x8D75EEA7AFD17EB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:27 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f66e5-e01e-007c-3cd3-90d34f000000", + "x-ms-client-request-id" : "db87d887-f1d4-4d73-9a45-5e75f1d82cbb", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384/javapathchangefileleaseac114295ef433ffba1654bcd?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "575f472a-e083-4170-836c-463d88e8fc98" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7AFD17EB", + "x-ms-lease-id" : "d85b5799-5d09-49ab-9d0c-1e77fc1561cd", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f66f1-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "575f472a-e083-4170-836c-463d88e8fc98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384/javapathchangefileleaseac114295ef433ffba1654bcd?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c2e1c5d-7c0e-4ed8-9133-16b432f6157f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7AFD17EB", + "x-ms-lease-id" : "6ba32acb-999c-40bb-b63c-a913f2923878", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f66fe-e01e-007c-55d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "1c2e1c5d-7c0e-4ed8-9133-16b432f6157f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a6c598e1-9c5c-4dee-ad08-c70010c97bec" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6705-e01e-007c-5cd3-90d34f000000", + "Body" : "jtfschangefileleaseacjtfschangefileleaseac0leaseapitestchangefileleaseac8391258384Fri, 01 Nov 2019 16:42:27 GMT\"0x8D75EEA7AF34F83\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "a6c598e1-9c5c-4dee-ad08-c70010c97bec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ace2a065-27b1-4083-b394-d8ad950c3a6e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f670f-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "ace2a065-27b1-4083-b394-d8ad950c3a6e" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseac0leaseapitestchangefileleaseac8391258384", "javapathchangefileleaseac114295ef433ffba1654bcd", "6ba32acb-999c-40bb-b63c-a913f2923878" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[4].json new file mode 100644 index 0000000000000..bdcaf38bb9484 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseac[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac76d150056b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3365af1-9df2-43a6-8ecf-25c70699891d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B2A6EFD", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6720-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "f3365af1-9df2-43a6-8ecf-25c70699891d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac76d150056b/javapathchangefileleaseac174590e872872e7b9b49d6?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89cd773a-4e4f-4cb3-bfaf-626230680e47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B345F66", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfffd-801f-00ab-04d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "89cd773a-4e4f-4cb3-bfaf-626230680e47" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac76d150056b/javapathchangefileleaseac174590e872872e7b9b49d6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0145d886-c90f-4031-9d49-31bab5308779" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B345F66", + "x-ms-lease-id" : "3143aff1-e230-43c4-bf8f-2e2026e5ec30", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6735-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "0145d886-c90f-4031-9d49-31bab5308779" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac76d150056b/javapathchangefileleaseac174590e872872e7b9b49d6?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "222f5871-ca2e-41dc-95c5-722d9a65bb1c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B345F66", + "x-ms-lease-id" : "1a300aaa-8aef-4b13-95de-0f63a642fbe9", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6745-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:26 GMT", + "x-ms-client-request-id" : "222f5871-ca2e-41dc-95c5-722d9a65bb1c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97af25ac-5adb-4bb3-8fc2-5bb4ebb42fa2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6754-e01e-007c-26d3-90d34f000000", + "Body" : "jtfschangefileleaseacjtfschangefileleaseac0leaseapitestchangefileleaseac76d150056bFri, 01 Nov 2019 16:42:27 GMT\"0x8D75EEA7B2A6EFD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "97af25ac-5adb-4bb3-8fc2-5bb4ebb42fa2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseac0leaseapitestchangefileleaseac76d150056b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0be7bc62-0f9b-4581-9cbd-929a7cd32eec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f675e-e01e-007c-30d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "0be7bc62-0f9b-4581-9cbd-929a7cd32eec" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseac0leaseapitestchangefileleaseac76d150056b", "javapathchangefileleaseac174590e872872e7b9b49d6", "1a300aaa-8aef-4b13-95de-0f63a642fbe9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[0].json new file mode 100644 index 0000000000000..b8d4526039dc8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail032815fd1b79a019194608?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6ddfb3e9-d5e8-40f6-898b-6fd09b300568" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B5AAF78", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6784-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "6ddfb3e9-d5e8-40f6-898b-6fd09b300568" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseacfail032815fd1b79a019194608/javapathchangefileleaseacfail1822566c5f94211c6844?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e83b43d-c254-4018-9d8d-d0f500c21b0a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B64F5AE", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfffe-801f-00ab-05d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "6e83b43d-c254-4018-9d8d-d0f500c21b0a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail032815fd1b79a019194608/javapathchangefileleaseacfail1822566c5f94211c6844?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d1492f4-8213-43e1-a08d-ad589c34822a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B64F5AE", + "x-ms-lease-id" : "e815380e-0087-4945-919c-5b9f2b72cc7c", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f67c1-e01e-007c-07d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "4d1492f4-8213-43e1-a08d-ad589c34822a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail032815fd1b79a019194608/javapathchangefileleaseacfail1822566c5f94211c6844?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3465ceb2-eca9-4864-bc6f-70c036f4ce32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f67d0-e01e-007c-16d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f67d0-e01e-007c-16d3-90d34f000000\nTime:2019-11-01T16:42:28.2744608Z", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "3465ceb2-eca9-4864-bc6f-70c036f4ce32", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0055f9de-f3d4-4ebf-9023-cc8703e04c1c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f67df-e01e-007c-25d3-90d34f000000", + "Body" : "jtfschangefileleaseacfailjtfschangefileleaseacfail032815fd1b79a019194608Fri, 01 Nov 2019 16:42:28 GMT\"0x8D75EEA7B5AAF78\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "0055f9de-f3d4-4ebf-9023-cc8703e04c1c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail032815fd1b79a019194608?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46798651-1fdb-4618-bd56-225579db5b88" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f67f1-e01e-007c-36d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "46798651-1fdb-4618-bd56-225579db5b88" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseacfail032815fd1b79a019194608", "javapathchangefileleaseacfail1822566c5f94211c6844", "f4b1f426-dd3a-4a36-afa7-e28a4fd6a468" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[1].json new file mode 100644 index 0000000000000..979ba6a458ab4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0562400234ccecae424109?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afea9677-8a5e-4cfa-b0bd-6863561053ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B8B16FC", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6803-e01e-007c-46d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "afea9677-8a5e-4cfa-b0bd-6863561053ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseacfail0562400234ccecae424109/javapathchangefileleaseacfail1757817402153a3e5441?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e475d46-4031-40b5-9981-9ccf8ef58a84" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B96477E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffff-801f-00ab-06d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "1e475d46-4031-40b5-9981-9ccf8ef58a84" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0562400234ccecae424109/javapathchangefileleaseacfail1757817402153a3e5441?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c17bbac9-4a52-488c-a888-c9ac728070c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7B96477E", + "x-ms-lease-id" : "4f21e83e-ada3-4f14-8251-87eb093cef87", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f682c-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "c17bbac9-4a52-488c-a888-c9ac728070c9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0562400234ccecae424109/javapathchangefileleaseacfail1757817402153a3e5441?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "baac668f-8924-4120-8387-7591af893ee2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f683d-e01e-007c-78d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f683d-e01e-007c-78d3-90d34f000000\nTime:2019-11-01T16:42:28.6006899Z", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "baac668f-8924-4120-8387-7591af893ee2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "805d7486-6e6e-45f8-8003-1c7b6a62386a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f684a-e01e-007c-04d3-90d34f000000", + "Body" : "jtfschangefileleaseacfailjtfschangefileleaseacfail0562400234ccecae424109Fri, 01 Nov 2019 16:42:28 GMT\"0x8D75EEA7B8B16FC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "805d7486-6e6e-45f8-8003-1c7b6a62386a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0562400234ccecae424109?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "038a82a8-5c96-49b6-b9c6-f3d9d26d173c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6851-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "038a82a8-5c96-49b6-b9c6-f3d9d26d173c" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseacfail0562400234ccecae424109", "javapathchangefileleaseacfail1757817402153a3e5441", "83e4c1ff-499c-4e66-90eb-88f6556418bd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[2].json new file mode 100644 index 0000000000000..9c6857b08ce91 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail095580bf56cd8b813a4498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "50656ede-bc79-4e5b-ae76-4374dbecdadc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7BBF0193", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6864-e01e-007c-1cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "50656ede-bc79-4e5b-ae76-4374dbecdadc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseacfail095580bf56cd8b813a4498/javapathchangefileleaseacfail163289643744b1c5f44b?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48533aeb-7fe1-49f1-81b4-96de09582d4a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7BC921D7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0000-801f-00ab-07d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "48533aeb-7fe1-49f1-81b4-96de09582d4a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail095580bf56cd8b813a4498/javapathchangefileleaseacfail163289643744b1c5f44b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6ecf3b2-a08f-469a-b400-3d8d434cf995" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7BC921D7", + "x-ms-lease-id" : "1722a161-117b-46b7-bb03-7fa545a85444", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f688b-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "c6ecf3b2-a08f-469a-b400-3d8d434cf995" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail095580bf56cd8b813a4498/javapathchangefileleaseacfail163289643744b1c5f44b?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17a889f2-0d38-4fc9-b646-d2a8f59698ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f68a0-e01e-007c-55d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f68a0-e01e-007c-55d3-90d34f000000\nTime:2019-11-01T16:42:28.9259193Z", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "17a889f2-0d38-4fc9-b646-d2a8f59698ee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a132bd65-9b45-4772-a829-fc7a80e1de9c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f68af-e01e-007c-61d3-90d34f000000", + "Body" : "jtfschangefileleaseacfailjtfschangefileleaseacfail095580bf56cd8b813a4498Fri, 01 Nov 2019 16:42:28 GMT\"0x8D75EEA7BBF0193\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:27 GMT", + "x-ms-client-request-id" : "a132bd65-9b45-4772-a829-fc7a80e1de9c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail095580bf56cd8b813a4498?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3afffba1-7c8c-4fb7-a6a2-a213f2e7e7a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f68c4-e01e-007c-74d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "3afffba1-7c8c-4fb7-a6a2-a213f2e7e7a7" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseacfail095580bf56cd8b813a4498", "javapathchangefileleaseacfail163289643744b1c5f44b", "082ec4a7-9179-462c-9603-c6593b69230e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[3].json new file mode 100644 index 0000000000000..2dbba9ce54b29 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseacfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0122982dd2dd03e47e48f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7eeae293-b89f-4496-ba71-a62fbf468011" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7BEF9033", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f68d4-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "7eeae293-b89f-4496-ba71-a62fbf468011" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleaseacfail0122982dd2dd03e47e48f7/javapathchangefileleaseacfail189238d38caa608ffa4e?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf28a234-1b26-4fb4-a8c2-798e96a120ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7BF9B2B1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8e0001-801f-00ab-08d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "cf28a234-1b26-4fb4-a8c2-798e96a120ff" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0122982dd2dd03e47e48f7/javapathchangefileleaseacfail189238d38caa608ffa4e", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82c4e365-759b-4490-834e-43936724a7a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:28 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", + "ETag" : "0x8D75EEA7BF9B2B1", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:29 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f68fb-e01e-007c-2ad3-90d34f000000", + "x-ms-client-request-id" : "82c4e365-759b-4490-834e-43936724a7a6", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0122982dd2dd03e47e48f7/javapathchangefileleaseacfail189238d38caa608ffa4e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aa0b29ae-1b41-4cb9-89a3-4a100afe3113" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7BF9B2B1", + "x-ms-lease-id" : "990c8b17-36ec-4760-b09a-976966f49b33", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6910-e01e-007c-3cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "aa0b29ae-1b41-4cb9-89a3-4a100afe3113" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0122982dd2dd03e47e48f7/javapathchangefileleaseacfail189238d38caa608ffa4e?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92b215fe-fb10-49d9-8b84-820ddd85e2e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f6921-e01e-007c-4bd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f6921-e01e-007c-4bd3-90d34f000000\nTime:2019-11-01T16:42:29.2961803Z", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "92b215fe-fb10-49d9-8b84-820ddd85e2e3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5130abad-5a89-4982-8416-77f392cfead0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f692c-e01e-007c-55d3-90d34f000000", + "Body" : "jtfschangefileleaseacfailjtfschangefileleaseacfail0122982dd2dd03e47e48f7Fri, 01 Nov 2019 16:42:29 GMT\"0x8D75EEA7BEF9033\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "5130abad-5a89-4982-8416-77f392cfead0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseacfail0122982dd2dd03e47e48f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14cac051-da04-4ce1-a7e3-7c165e35b209" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6938-e01e-007c-60d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "14cac051-da04-4ce1-a7e3-7c165e35b209" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseacfail0122982dd2dd03e47e48f7", "javapathchangefileleaseacfail189238d38caa608ffa4e", "2daedbed-097b-425c-ab15-bce3a4904917" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseerror.json new file mode 100644 index 0000000000000..7863cacc0a6ef --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseerror08116290db5eedce174b38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae38e699-708b-4ed3-b67c-11dff0f6a4b7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7C28FA13", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6951-e01e-007c-76d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "ae38e699-708b-4ed3-b67c-11dff0f6a4b7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseerror08116290db5eedce174b38/javapathchangefileleaseerror142817314ba57d731942?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6d838d8-2749-46cb-82a0-8a91e5b1c9fb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f695f-e01e-007c-03d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f695f-e01e-007c-03d3-90d34f000000\nTime:2019-11-01T16:42:29.5213379Zx-ms-lease-idid", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "c6d838d8-2749-46cb-82a0-8a91e5b1c9fb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0314f237-b99c-40b7-b0fc-084695a13347" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f696f-e01e-007c-0fd3-90d34f000000", + "Body" : "jtfschangefileleaseerrorjtfschangefileleaseerror08116290db5eedce174b38Fri, 01 Nov 2019 16:42:29 GMT\"0x8D75EEA7C28FA13\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "0314f237-b99c-40b7-b0fc-084695a13347", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleaseerror08116290db5eedce174b38?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5171ffac-7e77-4dd8-8c36-dc7b7f91f07c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6984-e01e-007c-22d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:28 GMT", + "x-ms-client-request-id" : "5171ffac-7e77-4dd8-8c36-dc7b7f91f07c" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleaseerror08116290db5eedce174b38", "javapathchangefileleaseerror142817314ba57d731942" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleasemin.json new file mode 100644 index 0000000000000..35da70d37c842 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefileleasemin.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleasemin0leaseapitestchangefileleasemin78737909f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f373f93e-d61b-422a-a8f4-12f45d2c12a8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A1F85AA", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f64a9-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "f373f93e-d61b-422a-a8f4-12f45d2c12a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfschangefileleasemin0leaseapitestchangefileleasemin78737909f/javapathchangefileleasemin13848403e7e5cdb85b4fa?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f18a9d66-cfe3-4846-a272-fc4c0f88dda8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A297E0F", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dfff8-801f-00ab-7fd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "f18a9d66-cfe3-4846-a272-fc4c0f88dda8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleasemin0leaseapitestchangefileleasemin78737909f/javapathchangefileleasemin13848403e7e5cdb85b4fa?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71234ce5-229e-457e-aea5-980ef4bbf3b3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A297E0F", + "x-ms-lease-id" : "80a64c98-b26e-482a-b1a8-ba494da00e89", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f64eb-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "71234ce5-229e-457e-aea5-980ef4bbf3b3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleasemin0leaseapitestchangefileleasemin78737909f/javapathchangefileleasemin13848403e7e5cdb85b4fa?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d11a52b5-d433-48d0-b6fd-4c31abff69e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7A297E0F", + "x-ms-lease-id" : "1bbdb254-8460-488f-a4db-947eef13ad98", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f6502-e01e-007c-78d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "d11a52b5-d433-48d0-b6fd-4c31abff69e4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefileleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98822652-f790-4ea7-a4db-3c2cc382536a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f650d-e01e-007c-03d3-90d34f000000", + "Body" : "jtfschangefileleaseminjtfschangefileleasemin0leaseapitestchangefileleasemin78737909fFri, 01 Nov 2019 16:42:26 GMT\"0x8D75EEA7A1F85AA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "98822652-f790-4ea7-a4db-3c2cc382536a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefileleasemin0leaseapitestchangefileleasemin78737909f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d39db3c7-c01d-47f0-adc3-e3c9e28914c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f6525-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:25 GMT", + "x-ms-client-request-id" : "d39db3c7-c01d-47f0-adc3-e3c9e28914c3" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefileleasemin0leaseapitestchangefileleasemin78737909f", "javapathchangefileleasemin13848403e7e5cdb85b4fa", "1bbdb254-8460-488f-a4db-947eef13ad98" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemlease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemlease.json new file mode 100644 index 0000000000000..728c3666ed1ca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemlease.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemlease066599e22c4aebd85a4d9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1c38b33-0452-4df4-a976-4efdf6be4099" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2A77AF4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fccfb-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:33 GMT", + "x-ms-client-request-id" : "d1c38b33-0452-4df4-a976-4efdf6be4099" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemlease066599e22c4aebd85a4d9f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15edd0f5-d1ca-4eaa-96dd-85d49375bd7c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2A77AF4", + "x-ms-lease-id" : "051ae30c-870a-4a03-aba1-50a0e9eab8ae", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcd23-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "15edd0f5-d1ca-4eaa-96dd-85d49375bd7c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemlease066599e22c4aebd85a4d9f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8300f94-1a07-46d2-b38c-36e15122e5ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2A77AF4", + "x-ms-lease-id" : "3580f078-e476-4675-b71b-ea6d51de0f86", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcd40-e01e-007c-31d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "a8300f94-1a07-46d2-b38c-36e15122e5ef" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemlease066599e22c4aebd85a4d9f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a0f80964-d5c0-4686-a61c-af9a947ab53c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2A77AF4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcd54-e01e-007c-44d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "a0f80964-d5c0-4686-a61c-af9a947ab53c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c2517e2-93fb-4d68-bdab-91f8876d1365" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcd70-e01e-007c-5bd3-90d34f000000", + "Body" : "jtfschangefilesystemleasejtfschangefilesystemlease066599e22c4aebd85a4d9fFri, 01 Nov 2019 16:43:34 GMT\"0x8D75EEAA2A77AF4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "1c2517e2-93fb-4d68-bdab-91f8876d1365", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemlease066599e22c4aebd85a4d9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "200883c3-a82d-4793-95db-e9a792ce752d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcd8c-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "200883c3-a82d-4793-95db-e9a792ce752d" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemlease066599e22c4aebd85a4d9f", "3580f078-e476-4675-b71b-ea6d51de0f86" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[0].json new file mode 100644 index 0000000000000..2ea80b31e2549 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac057173f026f43bf0ef4bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8fbec18-b436-49ad-957f-2be98aaf4a60" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA30982C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fce11-e01e-007c-6fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "d8fbec18-b436-49ad-957f-2be98aaf4a60" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac057173f026f43bf0ef4bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc03745b-a737-4105-8245-a8904514b2b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA30982C2", + "x-ms-lease-id" : "d1e6d6fb-f4e1-4bea-b58a-dd2d988c41e7", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fce2c-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "bc03745b-a737-4105-8245-a8904514b2b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac057173f026f43bf0ef4bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0cc9446e-8832-4262-a244-1e4612bb09f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA30982C2", + "x-ms-lease-id" : "40defce3-2c8f-4955-b35d-b1a42a419294", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fce3c-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "0cc9446e-8832-4262-a244-1e4612bb09f5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cdaa6d77-56b3-447c-b596-06513a4afe2a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fce4c-e01e-007c-24d3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacjtfschangefilesystemleaseac057173f026f43bf0ef4bbFri, 01 Nov 2019 16:43:34 GMT\"0x8D75EEAA30982C2\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "cdaa6d77-56b3-447c-b596-06513a4afe2a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac057173f026f43bf0ef4bb?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6ca3d1a-6b3c-4902-bb74-f135a88221c9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA30982C2", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fce5b-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "c6ca3d1a-6b3c-4902-bb74-f135a88221c9" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac057173f026f43bf0ef4bb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dbd59ff4-bce5-42fe-87a1-5c5f0795198e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fce63-e01e-007c-3bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "dbd59ff4-bce5-42fe-87a1-5c5f0795198e" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseac057173f026f43bf0ef4bb", "40defce3-2c8f-4955-b35d-b1a42a419294" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[1].json new file mode 100644 index 0000000000000..83d68e6e7138a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac04889427021c6e92b54cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3df82ba-bb93-4ee5-931d-ee61390675ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA33926D8", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fce74-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "a3df82ba-bb93-4ee5-931d-ee61390675ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac04889427021c6e92b54cc?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "516b1331-6787-48da-af37-351205f8fd63" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA33926D8", + "x-ms-lease-id" : "251b3d8c-bbc2-44ac-8836-877529d7dc29", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fce88-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "516b1331-6787-48da-af37-351205f8fd63" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac04889427021c6e92b54cc?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e372293-ec57-4550-8724-94c3e417ff6a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA33926D8", + "x-ms-lease-id" : "414758a9-aec7-490c-9bde-d181e96cd247", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fce9e-e01e-007c-6ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "5e372293-ec57-4550-8724-94c3e417ff6a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97ea9c9d-f393-4f1f-b8c1-d38f227af7b6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fceb4-e01e-007c-03d3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacjtfschangefilesystemleaseac04889427021c6e92b54ccFri, 01 Nov 2019 16:43:35 GMT\"0x8D75EEAA33926D8\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "97ea9c9d-f393-4f1f-b8c1-d38f227af7b6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac04889427021c6e92b54cc?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65cb809b-5144-440b-a6df-626bb5e73145" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA33926D8", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcec0-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "65cb809b-5144-440b-a6df-626bb5e73145" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac04889427021c6e92b54cc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba42ca94-ff02-45af-881e-2029903a24a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fced0-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "ba42ca94-ff02-45af-881e-2029903a24a7" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseac04889427021c6e92b54cc", "414758a9-aec7-490c-9bde-d181e96cd247" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[2].json new file mode 100644 index 0000000000000..271911353bd78 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseac[2].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac0102001bc47de2043c4a9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f264a81b-88d6-402a-9d45-bce87ead2472" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA367440F", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcee0-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "f264a81b-88d6-402a-9d45-bce87ead2472" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac0102001bc47de2043c4a9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4ab42f8-fab9-430b-98b2-86cbe294c379" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA367440F", + "x-ms-lease-id" : "b902eed1-2cc9-419d-8c5f-c52522bf7a3c", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcef4-e01e-007c-3cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "a4ab42f8-fab9-430b-98b2-86cbe294c379" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac0102001bc47de2043c4a9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e7afa3e-e6ba-4132-9a84-9b972b601099" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA367440F", + "x-ms-lease-id" : "e0ceaa75-32f0-450d-b094-21e302aacdc3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcf01-e01e-007c-49d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "7e7afa3e-e6ba-4132-9a84-9b972b601099" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30292ee5-fa14-408c-b747-c37e456e765d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcf0a-e01e-007c-52d3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacjtfschangefilesystemleaseac0102001bc47de2043c4a9Fri, 01 Nov 2019 16:43:35 GMT\"0x8D75EEAA367440F\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "30292ee5-fa14-408c-b747-c37e456e765d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac0102001bc47de2043c4a9?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "092f9334-3a7a-4360-8927-b4c9a0a86568" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA367440F", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcf25-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "092f9334-3a7a-4360-8927-b4c9a0a86568" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseac0102001bc47de2043c4a9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d080f358-cc6f-4508-8f65-cc12d9d136a3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcf32-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "d080f358-cc6f-4508-8f65-cc12d9d136a3" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseac0102001bc47de2043c4a9", "e0ceaa75-32f0-450d-b094-21e302aacdc3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacfail[0].json new file mode 100644 index 0000000000000..123fd860701d3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacfail[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail001561cc297cf330304?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ccf91e47-bc99-46d5-8fb6-8ff5e846d078" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA395D677", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcf44-e01e-007c-07d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "ccf91e47-bc99-46d5-8fb6-8ff5e846d078" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail001561cc297cf330304?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b338f01-0a55-444f-aa68-7e85a26ba3c1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA395D677", + "x-ms-lease-id" : "d61b961a-97b9-481d-a3df-3664627ded96", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcf56-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "2b338f01-0a55-444f-aa68-7e85a26ba3c1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail001561cc297cf330304?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "692a5979-e43e-468b-8fbf-f2d3a4e9885b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6fcf6b-e01e-007c-2cd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6fcf6b-e01e-007c-2cd3-90d34f000000\nTime:2019-11-01T16:43:35.7089426Z", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "692a5979-e43e-468b-8fbf-f2d3a4e9885b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ca869b6-c694-43db-b75a-4346c1805490" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcf7a-e01e-007c-3bd3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacfailjtfschangefilesystemleaseacfail001561cc297cf330304Fri, 01 Nov 2019 16:43:35 GMT\"0x8D75EEAA395D677\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "2ca869b6-c694-43db-b75a-4346c1805490", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail001561cc297cf330304?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c0ff49b6-f936-4d2a-bfd2-9b871152531f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA395D677", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcf8e-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "c0ff49b6-f936-4d2a-bfd2-9b871152531f" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail001561cc297cf330304?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "038b93cf-556b-47e9-9d53-6bb181adeea7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcf9c-e01e-007c-59d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "038b93cf-556b-47e9-9d53-6bb181adeea7" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseacfail001561cc297cf330304", "5469f5ae-3e21-489a-a2b6-6fa5d94727bd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacfail[1].json new file mode 100644 index 0000000000000..85a66d6702b47 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacfail[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail05086179121657a1554?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "202b092e-2db8-48e9-952e-42f668f7086f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA3C2E20D", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcfad-e01e-007c-69d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "202b092e-2db8-48e9-952e-42f668f7086f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail05086179121657a1554?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "05019ec2-7c95-4a81-9337-855fab8388d6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA3C2E20D", + "x-ms-lease-id" : "a09b1735-d289-4148-89e4-28df77143c63", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcfc7-e01e-007c-80d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "05019ec2-7c95-4a81-9337-855fab8388d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail05086179121657a1554?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba558e48-f500-47c6-87ec-878a52151afb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6fcfd9-e01e-007c-0fd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6fcfd9-e01e-007c-0fd3-90d34f000000\nTime:2019-11-01T16:43:36.0041504Z", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "ba558e48-f500-47c6-87ec-878a52151afb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "230c37b7-67b9-4868-a7f5-591836451203" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcfec-e01e-007c-1fd3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacfailjtfschangefilesystemleaseacfail05086179121657a1554Fri, 01 Nov 2019 16:43:35 GMT\"0x8D75EEAA3C2E20D\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:35 GMT", + "x-ms-client-request-id" : "230c37b7-67b9-4868-a7f5-591836451203", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail05086179121657a1554?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01d8405a-bea2-4589-978a-00317c72c729" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA3C2E20D", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd007-e01e-007c-34d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "01d8405a-bea2-4589-978a-00317c72c729" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacfail05086179121657a1554?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "34d36a0e-1c58-4d88-bef7-e5cf7b5aa899" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd01d-e01e-007c-45d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "34d36a0e-1c58-4d88-bef7-e5cf7b5aa899" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseacfail05086179121657a1554", "68c2c98a-e2d4-4c55-aa10-1a471bbdcf90" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacillegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacillegal[0].json new file mode 100644 index 0000000000000..434c1515535be --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacillegal[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacillegal08079133bf7119ff2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d58125a7-c32f-4bbb-bc88-4db39efbdb0d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA3F1747D", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd035-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "d58125a7-c32f-4bbb-bc88-4db39efbdb0d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacillegal08079133bf7119ff2?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "59c6e1bf-2c82-4cb1-a501-33b227a4c0a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6fd04f-e01e-007c-70d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6fd04f-e01e-007c-70d3-90d34f000000\nTime:2019-11-01T16:43:36.2693366Zx-ms-lease-idreceived", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "59c6e1bf-2c82-4cb1-a501-33b227a4c0a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "043146cd-083f-4da2-9fde-4a1bdf446ae1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd05a-e01e-007c-7bd3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacillegaljtfschangefilesystemleaseacillegal08079133bf7119ff2Fri, 01 Nov 2019 16:43:36 GMT\"0x8D75EEAA3F1747D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "043146cd-083f-4da2-9fde-4a1bdf446ae1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacillegal08079133bf7119ff2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5864324a-1517-4f91-9668-6a5d62d82bbd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd06e-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "5864324a-1517-4f91-9668-6a5d62d82bbd" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseacillegal08079133bf7119ff2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacillegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacillegal[1].json new file mode 100644 index 0000000000000..d870fb2a86654 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseacillegal[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacillegal017509766d2b4fa3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe2e8849-08dc-4262-83cf-dd917dccffba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA411FAA9", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd08c-e01e-007c-28d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "fe2e8849-08dc-4262-83cf-dd917dccffba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacillegal017509766d2b4fa3a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5406d990-6f83-49ec-9df2-986bf0a379fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6fd0a0-e01e-007c-3ad3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6fd0a0-e01e-007c-3ad3-90d34f000000\nTime:2019-11-01T16:43:36.4764824Zx-ms-lease-idreceived", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "5406d990-6f83-49ec-9df2-986bf0a379fd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b38d1205-c771-4356-bdd4-ad09c137b52d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd0a9-e01e-007c-43d3-90d34f000000", + "Body" : "jtfschangefilesystemleaseacillegaljtfschangefilesystemleaseacillegal017509766d2b4fa3aFri, 01 Nov 2019 16:43:36 GMT\"0x8D75EEAA411FAA9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "b38d1205-c771-4356-bdd4-ad09c137b52d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseacillegal017509766d2b4fa3a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f27eaa84-3ed9-4fcf-97b5-1fd61ecf9ade" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd0b1-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "f27eaa84-3ed9-4fcf-97b5-1fd61ecf9ade" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseacillegal017509766d2b4fa3a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseerror.json new file mode 100644 index 0000000000000..ec98f0ceb7e17 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseerror07918842a9179f1f734?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e4b4d8e-e291-4200-b3d9-fc36bf33ccdc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4312102", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd0bc-e01e-007c-55d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "3e4b4d8e-e291-4200-b3d9-fc36bf33ccdc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseerror107386b54331f5ffab4?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "17a0d868-60e6-4580-b32c-008ffbe54cf4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "dc6fd0d4-e01e-007c-68d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6fd0d4-e01e-007c-68d3-90d34f000000\nTime:2019-11-01T16:43:36.6796254Zx-ms-lease-idid", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "17a0d868-60e6-4580-b32c-008ffbe54cf4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53edb859-e352-475e-b58d-b50eb4d8d5d7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd0e7-e01e-007c-79d3-90d34f000000", + "Body" : "jtfschangefilesystemleaseerrorjtfschangefilesystemleaseerror07918842a9179f1f734Fri, 01 Nov 2019 16:43:36 GMT\"0x8D75EEAA4312102\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "53edb859-e352-475e-b58d-b50eb4d8d5d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleaseerror07918842a9179f1f734?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73bf64d5-b9a9-4e5b-9f14-6b07a50c5f1a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd0f6-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "73bf64d5-b9a9-4e5b-9f14-6b07a50c5f1a" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleaseerror07918842a9179f1f734", "jtfschangefilesystemleaseerror107386b54331f5ffab4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleasemin.json new file mode 100644 index 0000000000000..0ad4a79fe9c06 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestchangefilesystemleasemin.json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleasemin089320a0b0f52f51154b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8d24c1f-080b-4079-b0e3-5defabc2fe7e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2DB8CAA", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcda7-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "e8d24c1f-080b-4079-b0e3-5defabc2fe7e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleasemin089320a0b0f52f51154b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bb9e7763-21bc-4d07-bc66-ad8fb35e1230" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2DB8CAA", + "x-ms-lease-id" : "9d17991d-c849-40a2-99ca-e30bdacfc54e", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fcdc2-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "bb9e7763-21bc-4d07-bc66-ad8fb35e1230" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleasemin089320a0b0f52f51154b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d9b9712-bc9c-419d-a2ce-a8828299913c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2DB8CAA", + "x-ms-lease-id" : "2d081272-9cc5-406c-af78-141f178b7440", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcdd4-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "2d9b9712-bc9c-419d-a2ce-a8828299913c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfschangefilesystemleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc74ea94-0ada-49ca-87b1-c66a401916ce" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fcddc-e01e-007c-3ad3-90d34f000000", + "Body" : "jtfschangefilesystemleaseminjtfschangefilesystemleasemin089320a0b0f52f51154bFri, 01 Nov 2019 16:43:34 GMT\"0x8D75EEAA2DB8CAA\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "bc74ea94-0ada-49ca-87b1-c66a401916ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleasemin089320a0b0f52f51154b?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9efd59b3-e53c-4dd5-ab1c-3986edd4b0f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA2DB8CAA", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcdee-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "9efd59b3-e53c-4dd5-ab1c-3986edd4b0f3" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfschangefilesystemleasemin089320a0b0f52f51154b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "65d5ba3f-a8d0-4ec6-976f-9cda77c77a6d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fcdff-e01e-007c-5dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:34 GMT", + "x-ms-client-request-id" : "65d5ba3f-a8d0-4ec6-976f-9cda77c77a6d" + }, + "Exception" : null + } ], + "variables" : [ "jtfschangefilesystemleasemin089320a0b0f52f51154b", "2d081272-9cc5-406c-af78-141f178b7440" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilelease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilelease.json new file mode 100644 index 0000000000000..059c7c5d5eee8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilelease.json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b669abc3-8f9e-4189-b5de-58abefe53b9c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7461861B", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5656-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "b669abc3-8f9e-4189-b5de-58abefe53b9c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba/javapathreleasefilelease1leaseapitestreleasefilelease0f6705678?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cbd4ec22-d491-4414-bc1d-f5842080e5c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA746C1CDB", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd5-801f-00ab-63d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "cbd4ec22-d491-4414-bc1d-f5842080e5c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba/javapathreleasefilelease1leaseapitestreleasefilelease0f6705678?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0b33c327-ef99-4b1a-a5da-2b7f769f0441" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA746C1CDB", + "x-ms-lease-id" : "8d66e0d7-1bb8-4a90-9a1b-35ff74ecdc2d", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5680-e01e-007c-1cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "0b33c327-ef99-4b1a-a5da-2b7f769f0441" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba/javapathreleasefilelease1leaseapitestreleasefilelease0f6705678?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b072f867-100e-484c-a02c-598503b1420d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA746C1CDB", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5687-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "b072f867-100e-484c-a02c-598503b1420d" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba/javapathreleasefilelease1leaseapitestreleasefilelease0f6705678", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8396b153-bf60-436d-8aee-fbca4fd56e7e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:15 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", + "ETag" : "0x8D75EEA746C1CDB", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:16 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f569a-e01e-007c-34d3-90d34f000000", + "x-ms-client-request-id" : "8396b153-bf60-436d-8aee-fbca4fd56e7e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad0d761f-b6a1-4f95-b510-ed77528eea27" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f56bb-e01e-007c-50d3-90d34f000000", + "Body" : "jtfsreleasefileleasejtfsreleasefilelease0leaseapitestreleasefilelease0f6734666baFri, 01 Nov 2019 16:42:16 GMT\"0x8D75EEA7461861B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "ad0d761f-b6a1-4f95-b510-ed77528eea27", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "28c77fa8-4a11-439b-83fc-95c30fd10683" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f56dc-e01e-007c-6fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "28c77fa8-4a11-439b-83fc-95c30fd10683" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilelease0leaseapitestreleasefilelease0f6734666ba", "javapathreleasefilelease1leaseapitestreleasefilelease0f6705678" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[0].json new file mode 100644 index 0000000000000..fd13e161021fe --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[0].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8279cf9c-39c0-4ee7-a316-82f2c8342b07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74D459C7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5794-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "8279cf9c-39c0-4ee7-a316-82f2c8342b07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296/javapathreleasefileleaseac12963578e2b27d189f482?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e954c57a-95bc-49f5-a325-a17218bf231a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74DE5EB0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd7-801f-00ab-65d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "e954c57a-95bc-49f5-a325-a17218bf231a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296/javapathreleasefileleaseac12963578e2b27d189f482?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45eab270-6be1-4d3b-ae7a-2dd9067fc3f6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74DE5EB0", + "x-ms-lease-id" : "d86d0681-f18d-4c13-8c51-684c45ef5602", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f57c6-e01e-007c-47d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "45eab270-6be1-4d3b-ae7a-2dd9067fc3f6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296/javapathreleasefileleaseac12963578e2b27d189f482?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "531ed3e6-82d0-4c14-b8a6-470f0e84a814" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74DE5EB0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f57e9-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "531ed3e6-82d0-4c14-b8a6-470f0e84a814" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84306ad1-0504-4d14-95d1-02751a9894ce" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5825-e01e-007c-1fd3-90d34f000000", + "Body" : "jtfsreleasefileleaseacjtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296Fri, 01 Nov 2019 16:42:17 GMT\"0x8D75EEA74D459C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "84306ad1-0504-4d14-95d1-02751a9894ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d86cffe7-263b-4ae9-af4c-849071cee605" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f583f-e01e-007c-39d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "d86cffe7-263b-4ae9-af4c-849071cee605" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbfb705296", "javapathreleasefileleaseac12963578e2b27d189f482" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[1].json new file mode 100644 index 0000000000000..6ac8b2eead875 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[1].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "46719300-242b-4cd2-93f2-25ef4a86190a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA750AB5D7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5854-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "46719300-242b-4cd2-93f2-25ef4a86190a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749/javapathreleasefileleaseac162343c3dabecf5f7b4cc?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "109d42dd-4191-4d5c-8ba0-b2f78c1e1b1e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7516888D", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd8-801f-00ab-66d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "109d42dd-4191-4d5c-8ba0-b2f78c1e1b1e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749/javapathreleasefileleaseac162343c3dabecf5f7b4cc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97b80651-b1d0-4ad8-9812-aeac8d3d6234" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7516888D", + "x-ms-lease-id" : "16fcfa6f-506e-441d-8cd8-f2f97bdb430f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5873-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "97b80651-b1d0-4ad8-9812-aeac8d3d6234" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749/javapathreleasefileleaseac162343c3dabecf5f7b4cc?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6727f44e-e856-4108-a600-dca0f6803819" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7516888D", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5892-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "6727f44e-e856-4108-a600-dca0f6803819" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2eafd2e2-9b1a-45cc-b5f0-046e04728672" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f58af-e01e-007c-26d3-90d34f000000", + "Body" : "jtfsreleasefileleaseacjtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749Fri, 01 Nov 2019 16:42:17 GMT\"0x8D75EEA750AB5D7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "2eafd2e2-9b1a-45cc-b5f0-046e04728672", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d73cbc3-c416-46c9-8b7e-8de7113574ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f58ca-e01e-007c-41d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "4d73cbc3-c416-46c9-8b7e-8de7113574ff" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseac0leaseapitestreleasefileleaseacbdb742749", "javapathreleasefileleaseac162343c3dabecf5f7b4cc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[2].json new file mode 100644 index 0000000000000..5e8a7ee0b6be6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[2].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e21b9b9-6364-4ba4-a3a1-cd62ac580c07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA753F8AFC", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f58ea-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "6e21b9b9-6364-4ba4-a3a1-cd62ac580c07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966/javapathreleasefileleaseac1582108bd43ff9c9e4493?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a09b5f21-f0f0-46bc-9f06-cdcbe0be4ca5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7549A463", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd9-801f-00ab-67d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "a09b5f21-f0f0-46bc-9f06-cdcbe0be4ca5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966/javapathreleasefileleaseac1582108bd43ff9c9e4493?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "642fd2e5-ba2f-4bf8-843b-bfffbfb142d1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7549A463", + "x-ms-lease-id" : "194431d8-96a2-46b0-90cd-da10a9793ca3", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f591a-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "642fd2e5-ba2f-4bf8-843b-bfffbfb142d1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966/javapathreleasefileleaseac1582108bd43ff9c9e4493?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4eacfca-3b82-4a5c-9a31-7c2cba792d31" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7549A463", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5937-e01e-007c-26d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "f4eacfca-3b82-4a5c-9a31-7c2cba792d31" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d1c6ba03-27d1-4f4c-8f9a-635461d64746" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f594f-e01e-007c-3ed3-90d34f000000", + "Body" : "jtfsreleasefileleaseacjtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966Fri, 01 Nov 2019 16:42:17 GMT\"0x8D75EEA753F8AFC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "d1c6ba03-27d1-4f4c-8f9a-635461d64746", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec61d0de-d54f-4ee8-9373-c87f9cfc8933" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5963-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "ec61d0de-d54f-4ee8-9373-c87f9cfc8933" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseac0leaseapitestreleasefileleaseace1f257966", "javapathreleasefileleaseac1582108bd43ff9c9e4493" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[3].json new file mode 100644 index 0000000000000..04163b695bc3b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[3].json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f14a88ff-e0fb-429c-b519-64928bd1abc1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA757067CE", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f597e-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "f14a88ff-e0fb-429c-b519-64928bd1abc1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122/javapathreleasefileleaseac143168209dbae3de4549f?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d7da1a2e-f87f-412f-bc23-88aa535c2423" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA757A4C71", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffda-801f-00ab-68d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "d7da1a2e-f87f-412f-bc23-88aa535c2423" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122/javapathreleasefileleaseac143168209dbae3de4549f", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf57c6e2-1991-4932-9642-ce85a8d91340" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:17 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", + "ETag" : "0x8D75EEA757A4C71", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:18 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f599c-e01e-007c-08d3-90d34f000000", + "x-ms-client-request-id" : "cf57c6e2-1991-4932-9642-ce85a8d91340", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122/javapathreleasefileleaseac143168209dbae3de4549f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cdca8563-359a-4f4b-9d37-f4341692bee2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA757A4C71", + "x-ms-lease-id" : "78e48ce2-0ce3-4b41-825f-9b74f8b8c06f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f59bf-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "cdca8563-359a-4f4b-9d37-f4341692bee2" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122/javapathreleasefileleaseac143168209dbae3de4549f?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08626fe0-e914-4fcb-8b65-a66ca9c2b736" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA757A4C71", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f59dd-e01e-007c-46d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "08626fe0-e914-4fcb-8b65-a66ca9c2b736" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4e758006-59ee-437d-a67e-fcc6b50c512a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5a0c-e01e-007c-6cd3-90d34f000000", + "Body" : "jtfsreleasefileleaseacjtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122Fri, 01 Nov 2019 16:42:18 GMT\"0x8D75EEA757067CE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "4e758006-59ee-437d-a67e-fcc6b50c512a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d4e3490-35b8-429b-a607-0701cd29b919" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5a1d-e01e-007c-7bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "8d4e3490-35b8-429b-a607-0701cd29b919" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseac0leaseapitestreleasefileleaseac0d0647122", "javapathreleasefileleaseac143168209dbae3de4549f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[4].json new file mode 100644 index 0000000000000..efc144e1d9196 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseac[4].json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d75eeab-cede-4bbb-8ecd-e3d1ec5f2454" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75AF77F7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5a2a-e01e-007c-08d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "6d75eeab-cede-4bbb-8ecd-e3d1ec5f2454" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477a/javapathreleasefileleaseac1834594917b7925ca04e0?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac4472e4-10b4-4f1b-85d4-29b58a0ccd01" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75B9AE3E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffdb-801f-00ab-69d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "ac4472e4-10b4-4f1b-85d4-29b58a0ccd01" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477a/javapathreleasefileleaseac1834594917b7925ca04e0?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "125a435d-722e-4e35-8fb6-5e6a0ef82074" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75B9AE3E", + "x-ms-lease-id" : "6f7c2d50-a809-40d8-9faf-dd4a40989a50", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5a66-e01e-007c-42d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "125a435d-722e-4e35-8fb6-5e6a0ef82074" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477a/javapathreleasefileleaseac1834594917b7925ca04e0?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a604e2e4-9c16-4dab-891e-b3991532aca2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75B9AE3E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5a70-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "a604e2e4-9c16-4dab-891e-b3991532aca2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5d8d0caf-99b6-45ba-9dd9-10bec0fa146e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5a80-e01e-007c-5bd3-90d34f000000", + "Body" : "jtfsreleasefileleaseacjtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477aFri, 01 Nov 2019 16:42:18 GMT\"0x8D75EEA75AF77F7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "5d8d0caf-99b6-45ba-9dd9-10bec0fa146e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b806d195-b7cc-4c9f-8b93-29fc4f196633" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5a90-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "b806d195-b7cc-4c9f-8b93-29fc4f196633" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseac0leaseapitestreleasefileleaseac58600477a", "javapathreleasefileleaseac1834594917b7925ca04e0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[0].json new file mode 100644 index 0000000000000..64d5d4e34a196 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail047158ad6e22fac4404b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1803d465-aa1b-4741-926a-63530f1c34f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75DF9152", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5aa1-e01e-007c-7bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:17 GMT", + "x-ms-client-request-id" : "1803d465-aa1b-4741-926a-63530f1c34f7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseacfail047158ad6e22fac4404b3/javapathreleasefileleaseacfail172185ea2b96e948ea4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7b79b2e3-4597-4b97-a436-33a9dae4349a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75EA32AB", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffdc-801f-00ab-6ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "7b79b2e3-4597-4b97-a436-33a9dae4349a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail047158ad6e22fac4404b3/javapathreleasefileleaseacfail172185ea2b96e948ea4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d1ad93f-0497-4abd-8971-52b14a389105" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA75EA32AB", + "x-ms-lease-id" : "1a33010d-f089-4896-8cee-5ff964c6466e", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5ac0-e01e-007c-19d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "6d1ad93f-0497-4abd-8971-52b14a389105" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail047158ad6e22fac4404b3/javapathreleasefileleaseacfail172185ea2b96e948ea4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b5123c4-62ec-4568-928a-fb5fe553cbaa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f5ad6-e01e-007c-2fd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f5ad6-e01e-007c-2fd3-90d34f000000\nTime:2019-11-01T16:42:19.0809895Z", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "3b5123c4-62ec-4568-928a-fb5fe553cbaa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4a49bfa-f2e6-4af4-8115-a0b7ac8671e1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5ae3-e01e-007c-3bd3-90d34f000000", + "Body" : "jtfsreleasefileleaseacfailjtfsreleasefileleaseacfail047158ad6e22fac4404b3Fri, 01 Nov 2019 16:42:18 GMT\"0x8D75EEA75DF9152\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "d4a49bfa-f2e6-4af4-8115-a0b7ac8671e1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail047158ad6e22fac4404b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30e3cd0f-0973-492d-ab4a-bc743afbbe7b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5afc-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "30e3cd0f-0973-492d-ab4a-bc743afbbe7b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseacfail047158ad6e22fac4404b3", "javapathreleasefileleaseacfail172185ea2b96e948ea4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[1].json new file mode 100644 index 0000000000000..0646e747b2fda --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail0275203d2fcaa28103499?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8362f0a-1c2c-4aa8-8069-df0577eac2a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA760F3567", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5b10-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "f8362f0a-1c2c-4aa8-8069-df0577eac2a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseacfail0275203d2fcaa28103499/javapathreleasefileleaseacfail121717f3866cdec4184?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ee9b2788-3619-4f27-bc2e-5bbefcb9e2b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA761BC3C2", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffde-801f-00ab-6bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "ee9b2788-3619-4f27-bc2e-5bbefcb9e2b4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail0275203d2fcaa28103499/javapathreleasefileleaseacfail121717f3866cdec4184?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6798437a-f6a6-43a5-acc9-679d6a2a92d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA761BC3C2", + "x-ms-lease-id" : "c7ab08f6-74ee-41dc-a54e-6f474aa988d0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5b36-e01e-007c-0ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "6798437a-f6a6-43a5-acc9-679d6a2a92d5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail0275203d2fcaa28103499/javapathreleasefileleaseacfail121717f3866cdec4184?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "09595340-f942-46e6-8e13-b43676ed8b9d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f5b41-e01e-007c-15d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f5b41-e01e-007c-15d3-90d34f000000\nTime:2019-11-01T16:42:19.4042175Z", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "09595340-f942-46e6-8e13-b43676ed8b9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7bff18be-2c31-4dbf-9bba-8b552a390108" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5b4d-e01e-007c-1fd3-90d34f000000", + "Body" : "jtfsreleasefileleaseacfailjtfsreleasefileleaseacfail0275203d2fcaa28103499Fri, 01 Nov 2019 16:42:19 GMT\"0x8D75EEA760F3567\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "7bff18be-2c31-4dbf-9bba-8b552a390108", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail0275203d2fcaa28103499?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53cd899d-e0f2-4334-b5dc-de728691e12c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5b5d-e01e-007c-2dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "53cd899d-e0f2-4334-b5dc-de728691e12c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseacfail0275203d2fcaa28103499", "javapathreleasefileleaseacfail121717f3866cdec4184" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[2].json new file mode 100644 index 0000000000000..7b42cdb72ac53 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail02079230b8951b40c7442?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92b4aa5b-58c0-41f1-90f6-65d7725c5301" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76473F70", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5b78-e01e-007c-47d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "92b4aa5b-58c0-41f1-90f6-65d7725c5301" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseacfail02079230b8951b40c7442/javapathreleasefileleaseacfail1522077bf221285a3e4?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0603e11-93e1-4697-be76-ea15159ae581" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76512692", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffdf-801f-00ab-6cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "e0603e11-93e1-4697-be76-ea15159ae581" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail02079230b8951b40c7442/javapathreleasefileleaseacfail1522077bf221285a3e4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "76b0537d-3f3a-4cba-82a5-429c8c0b0661" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76512692", + "x-ms-lease-id" : "ae7b957e-b5ba-441b-b5fe-7db08a8ee60f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5ba3-e01e-007c-6cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "76b0537d-3f3a-4cba-82a5-429c8c0b0661" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail02079230b8951b40c7442/javapathreleasefileleaseacfail1522077bf221285a3e4?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b41088e3-6472-44dc-9890-e782b48f0e8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f5bbe-e01e-007c-04d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f5bbe-e01e-007c-04d3-90d34f000000\nTime:2019-11-01T16:42:19.8004960Z", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "b41088e3-6472-44dc-9890-e782b48f0e8d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4e43dce-0fd2-4838-b518-04703ce8443f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5bcb-e01e-007c-0fd3-90d34f000000", + "Body" : "jtfsreleasefileleaseacfailjtfsreleasefileleaseacfail02079230b8951b40c7442Fri, 01 Nov 2019 16:42:19 GMT\"0x8D75EEA76473F70\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "e4e43dce-0fd2-4838-b518-04703ce8443f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail02079230b8951b40c7442?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93892f11-bc13-48f4-9792-814ff00852ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5bda-e01e-007c-1ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "93892f11-bc13-48f4-9792-814ff00852ea" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseacfail02079230b8951b40c7442", "javapathreleasefileleaseacfail1522077bf221285a3e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[3].json new file mode 100644 index 0000000000000..b863f20b45ee3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseacfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail03600759359f6e59a247c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9bc3810-b519-45d9-93c4-d6e59917bf5e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA767D7464", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5bf0-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:18 GMT", + "x-ms-client-request-id" : "e9bc3810-b519-45d9-93c4-d6e59917bf5e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleaseacfail03600759359f6e59a247c/javapathreleasefileleaseacfail1835544383c61998b24?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fca7e697-3732-4544-be57-067a7c594a3b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA768763EF", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffe0-801f-00ab-6dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "fca7e697-3732-4544-be57-067a7c594a3b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail03600759359f6e59a247c/javapathreleasefileleaseacfail1835544383c61998b24", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97cb117d-caf7-4c57-971e-51d0cdece1a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:19 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", + "ETag" : "0x8D75EEA768763EF", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:20 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f5c13-e01e-007c-53d3-90d34f000000", + "x-ms-client-request-id" : "97cb117d-caf7-4c57-971e-51d0cdece1a7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail03600759359f6e59a247c/javapathreleasefileleaseacfail1835544383c61998b24?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b9325d3-94e5-4110-9fef-483cb8fd145e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA768763EF", + "x-ms-lease-id" : "08b80f92-f1f0-4b46-bddd-6e3e1260b970", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5c2e-e01e-007c-6dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "2b9325d3-94e5-4110-9fef-483cb8fd145e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail03600759359f6e59a247c/javapathreleasefileleaseacfail1835544383c61998b24?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ccd2b96-93bf-400c-9f7a-d2c602b81154" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f5c3d-e01e-007c-7cd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f5c3d-e01e-007c-7cd3-90d34f000000\nTime:2019-11-01T16:42:20.1557460Z", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "2ccd2b96-93bf-400c-9f7a-d2c602b81154", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "63c832ee-1851-45d0-82b1-8b335a03dc7a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5c4e-e01e-007c-0ad3-90d34f000000", + "Body" : "jtfsreleasefileleaseacfailjtfsreleasefileleaseacfail03600759359f6e59a247cFri, 01 Nov 2019 16:42:19 GMT\"0x8D75EEA767D7464\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "63c832ee-1851-45d0-82b1-8b335a03dc7a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseacfail03600759359f6e59a247c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44e182a2-def7-47ad-9ea6-6495a1a2d5fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5c64-e01e-007c-20d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "44e182a2-def7-47ad-9ea6-6495a1a2d5fa" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseacfail03600759359f6e59a247c", "javapathreleasefileleaseacfail1835544383c61998b24" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseerror.json new file mode 100644 index 0000000000000..6113b41f1dea5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseerror09416880793eb0c95849d6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54c239af-2d70-4a46-9f75-167d9d36c973" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA76B70554", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5c7a-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "54c239af-2d70-4a46-9f75-167d9d36c973" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseerror09416880793eb0c95849d6/javapathreleasefileleaseerror171777a6b644e919154a?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3078c480-7cc2-4d40-aaee-42db4cd286da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f5c8c-e01e-007c-46d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f5c8c-e01e-007c-46d3-90d34f000000\nTime:2019-11-01T16:42:20.3829063Zx-ms-lease-idid", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "3078c480-7cc2-4d40-aaee-42db4cd286da", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6b7a9cc8-da02-45f7-bbd7-7c724ad39747" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5c90-e01e-007c-4ad3-90d34f000000", + "Body" : "jtfsreleasefileleaseerrorjtfsreleasefileleaseerror09416880793eb0c95849d6Fri, 01 Nov 2019 16:42:20 GMT\"0x8D75EEA76B70554\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "6b7a9cc8-da02-45f7-bbd7-7c724ad39747", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleaseerror09416880793eb0c95849d6?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86047f22-8670-48e9-a8d7-40759d4efd47" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5c9b-e01e-007c-55d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:19 GMT", + "x-ms-client-request-id" : "86047f22-8670-48e9-a8d7-40759d4efd47" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleaseerror09416880793eb0c95849d6", "javapathreleasefileleaseerror171777a6b644e919154a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleasemin.json new file mode 100644 index 0000000000000..baae976b6ed83 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefileleasemin.json @@ -0,0 +1,129 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleasemin0674091e4e2aee355b47668?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5f13a398-aaeb-40ca-a0cd-5bbcd41b22ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA749CC508", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f56fb-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "5f13a398-aaeb-40ca-a0cd-5bbcd41b22ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsreleasefileleasemin0674091e4e2aee355b47668/javapathreleasefileleasemin179398833a04771c90453?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a440953-0ea9-4099-b4bf-37308c249885" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74AF2543", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd6-801f-00ab-64d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "8a440953-0ea9-4099-b4bf-37308c249885" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleasemin0674091e4e2aee355b47668/javapathreleasefileleasemin179398833a04771c90453?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2253347d-b7af-4df5-889b-f5932d7b6367" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74AF2543", + "x-ms-lease-id" : "8dac9dc7-4f73-455e-9250-1c7ff399cf72", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f573a-e01e-007c-42d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "2253347d-b7af-4df5-889b-f5932d7b6367" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleasemin0674091e4e2aee355b47668/javapathreleasefileleasemin179398833a04771c90453?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "93dec56c-cefa-4d00-a68c-10b9db9ae1aa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74AF2543", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f574e-e01e-007c-55d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "93dec56c-cefa-4d00-a68c-10b9db9ae1aa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefileleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "350a18bf-1afc-4fab-b9ab-7af7bbd402ae" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5763-e01e-007c-68d3-90d34f000000", + "Body" : "jtfsreleasefileleaseminjtfsreleasefileleasemin0674091e4e2aee355b47668Fri, 01 Nov 2019 16:42:16 GMT\"0x8D75EEA749CC508\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "350a18bf-1afc-4fab-b9ab-7af7bbd402ae", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefileleasemin0674091e4e2aee355b47668?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82902bea-00a6-46fa-adbf-a2f6a7d1e958" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f577d-e01e-007c-01d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:16 GMT", + "x-ms-client-request-id" : "82902bea-00a6-46fa-adbf-a2f6a7d1e958" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefileleasemin0674091e4e2aee355b47668", "javapathreleasefileleasemin179398833a04771c90453" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemlease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemlease.json new file mode 100644 index 0000000000000..8cd84769329ab --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemlease.json @@ -0,0 +1,135 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemlease09439743786c4eaa424e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e9fc5c11-0956-4312-a22d-d1437ce26fb6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A092106", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8dd0-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "e9fc5c11-0956-4312-a22d-d1437ce26fb6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemlease09439743786c4eaa424e0?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d1a17f8-523b-470f-8fbf-b69f1b38d23a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A092106", + "x-ms-lease-id" : "58183825-b693-4ac0-bc15-7259d410e224", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8ded-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "2d1a17f8-523b-470f-8fbf-b69f1b38d23a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemlease09439743786c4eaa424e0?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e55d9a8-9e8e-4bac-b65a-e6718821e01e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A092106", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8e0c-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "3e55d9a8-9e8e-4bac-b65a-e6718821e01e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemlease09439743786c4eaa424e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bbe9c893-8498-4976-8d55-016dc331bb8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA8A092106", + "x-ms-has-immutability-policy" : "false", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f8e24-e01e-007c-1ad3-90d34f000000", + "x-ms-client-request-id" : "bbe9c893-8498-4976-8d55-016dc331bb8c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fcb632be-024a-4968-b6b5-afdcd9721f5a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8e3f-e01e-007c-32d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleasejtfsreleasefilesystemlease09439743786c4eaa424e0Fri, 01 Nov 2019 16:42:52 GMT\"0x8D75EEA8A092106\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "fcb632be-024a-4968-b6b5-afdcd9721f5a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemlease09439743786c4eaa424e0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7f6e8891-4cad-473c-a2e2-7537d29b8dc9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8e57-e01e-007c-45d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "7f6e8891-4cad-473c-a2e2-7537d29b8dc9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemlease09439743786c4eaa424e0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[0].json new file mode 100644 index 0000000000000..fb77ca62b1d63 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[0].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac020377b79aa255f4eb48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8c1b048a-da09-44ed-b21e-51bce1ba03e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A7BA68D", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8f36-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "8c1b048a-da09-44ed-b21e-51bce1ba03e5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac020377b79aa255f4eb48?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8261dcda-c95b-4fd8-8446-c5872665cd9d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A7BA68D", + "x-ms-lease-id" : "02c7f608-5521-44c2-a754-18423faecc46", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8f4c-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "8261dcda-c95b-4fd8-8446-c5872665cd9d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac020377b79aa255f4eb48?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bd165a98-6038-40f4-b16e-2a492100c215" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A7BA68D", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8f5c-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "bd165a98-6038-40f4-b16e-2a492100c215" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c15a748e-1955-4718-a8c2-e270a2a5f124" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8f71-e01e-007c-48d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacjtfsreleasefilesystemleaseac020377b79aa255f4eb48Fri, 01 Nov 2019 16:42:53 GMT\"0x8D75EEA8A7BA68D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "c15a748e-1955-4718-a8c2-e270a2a5f124", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac020377b79aa255f4eb48?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70237a3d-b24a-428f-99d7-af3867236073" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8f84-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "70237a3d-b24a-428f-99d7-af3867236073" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseac020377b79aa255f4eb48" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[1].json new file mode 100644 index 0000000000000..c2be46e1d0582 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[1].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac035333a549131e4e174d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "68193228-e892-4d5d-b559-d8b0611eb035" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8AA2E4B7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8f9a-e01e-007c-70d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "68193228-e892-4d5d-b559-d8b0611eb035" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac035333a549131e4e174d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d2fe4293-b4b5-4d56-afb9-62de4e8f0f8e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8AA2E4B7", + "x-ms-lease-id" : "b681aa95-86d6-4794-8389-09571f94dc1d", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8fb4-e01e-007c-07d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "d2fe4293-b4b5-4d56-afb9-62de4e8f0f8e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac035333a549131e4e174d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "318c4dc4-c066-4216-a6da-e1b87143227b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8AA2E4B7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8fc4-e01e-007c-15d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "318c4dc4-c066-4216-a6da-e1b87143227b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a999350a-8239-4d1e-a102-ce092b5ddf4c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8fd3-e01e-007c-24d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacjtfsreleasefilesystemleaseac035333a549131e4e174dFri, 01 Nov 2019 16:42:53 GMT\"0x8D75EEA8AA2E4B7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "a999350a-8239-4d1e-a102-ce092b5ddf4c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac035333a549131e4e174d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d724456-f95f-40ed-ae7c-d6ba98a27a0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8fdf-e01e-007c-30d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "2d724456-f95f-40ed-ae7c-d6ba98a27a0c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseac035333a549131e4e174d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[2].json new file mode 100644 index 0000000000000..53dfc51612a68 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseac[2].json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac0683401b830830cdd743?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e4b3eed2-d061-478c-a6de-de1da71b28ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8ACC943E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9005-e01e-007c-50d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "e4b3eed2-d061-478c-a6de-de1da71b28ab" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac0683401b830830cdd743?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "97f24251-9992-4531-b5a8-c90c9fda7eec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8ACC943E", + "x-ms-lease-id" : "3876f221-f1ca-4447-828c-9d9668873da1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9022-e01e-007c-6bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "97f24251-9992-4531-b5a8-c90c9fda7eec" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac0683401b830830cdd743?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ccfc88ec-f37d-4691-93d1-5771e6376bbb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8ACC943E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f902c-e01e-007c-73d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "ccfc88ec-f37d-4691-93d1-5771e6376bbb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fe7d0e0a-8adb-47be-8415-1d52a9f3087c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f9040-e01e-007c-05d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacjtfsreleasefilesystemleaseac0683401b830830cdd743Fri, 01 Nov 2019 16:42:54 GMT\"0x8D75EEA8ACC943E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "fe7d0e0a-8adb-47be-8415-1d52a9f3087c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseac0683401b830830cdd743?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8469b9aa-cf15-4034-bad7-38d1a8a281f5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f9053-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "8469b9aa-cf15-4034-bad7-38d1a8a281f5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseac0683401b830830cdd743" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacfail[0].json new file mode 100644 index 0000000000000..435562455812b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacfail[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail022203df0a3f055830?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d065c433-ed82-4f63-8713-9ab2e6702b4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8AF643D5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9066-e01e-007c-28d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "d065c433-ed82-4f63-8713-9ab2e6702b4b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail022203df0a3f055830?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71e8f16a-3a5d-4916-948c-d9709aa18575" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8AF643D5", + "x-ms-lease-id" : "02441b12-dafd-4df5-b3f5-a593d9f3d932", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9073-e01e-007c-34d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "71e8f16a-3a5d-4916-948c-d9709aa18575" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail022203df0a3f055830?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70a8c229-b0d8-4b29-924c-3d8b641440c0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f9080-e01e-007c-40d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f9080-e01e-007c-40d3-90d34f000000\nTime:2019-11-01T16:42:54.3998490Z", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "70a8c229-b0d8-4b29-924c-3d8b641440c0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "381f7920-c10a-4775-95b0-e420dd3bb9e9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f9099-e01e-007c-59d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacfailjtfsreleasefilesystemleaseacfail022203df0a3f055830Fri, 01 Nov 2019 16:42:54 GMT\"0x8D75EEA8AF643D5\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "381f7920-c10a-4775-95b0-e420dd3bb9e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail022203df0a3f055830?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8af3d600-bd5c-4353-9def-69d6bd6d5ea5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8AF643D5", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f90ad-e01e-007c-6cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "8af3d600-bd5c-4353-9def-69d6bd6d5ea5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail022203df0a3f055830?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f939db1-f57f-4e10-85c9-90eebc550b77" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f90c1-e01e-007c-7fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "1f939db1-f57f-4e10-85c9-90eebc550b77" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseacfail022203df0a3f055830" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacfail[1].json new file mode 100644 index 0000000000000..d9f70e153a8d6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacfail[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail062938f96b5558ef0d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a1eb7e3a-6b0c-43dd-84d9-4354f6f2fe95" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8B2412D1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f90d0-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "a1eb7e3a-6b0c-43dd-84d9-4354f6f2fe95" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail062938f96b5558ef0d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1ca6cbd-681b-4143-9772-5944d39855cb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8B2412D1", + "x-ms-lease-id" : "142bdc9b-b2b7-4479-a664-7519d89435f7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f90eb-e01e-007c-27d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "e1ca6cbd-681b-4143-9772-5944d39855cb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail062938f96b5558ef0d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "934c3cac-5158-45b0-9f27-374835b19bad" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f9107-e01e-007c-41d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f9107-e01e-007c-41d3-90d34f000000\nTime:2019-11-01T16:42:54.7050638Z", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "934c3cac-5158-45b0-9f27-374835b19bad", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cdec0ccb-cc70-4f09-af87-68f2ea04810e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f9120-e01e-007c-55d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacfailjtfsreleasefilesystemleaseacfail062938f96b5558ef0dFri, 01 Nov 2019 16:42:54 GMT\"0x8D75EEA8B2412D1\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "cdec0ccb-cc70-4f09-af87-68f2ea04810e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail062938f96b5558ef0d?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "44150806-5438-4bba-a4da-b8b9f8cb9655" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8B2412D1", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f9132-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "44150806-5438-4bba-a4da-b8b9f8cb9655" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacfail062938f96b5558ef0d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9696bb35-05a8-4029-a1b8-cb010e7ec839" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f913f-e01e-007c-74d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "9696bb35-05a8-4029-a1b8-cb010e7ec839" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseacfail062938f96b5558ef0d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacillegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacillegal[0].json new file mode 100644 index 0000000000000..a3e42b228b85e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacillegal[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacillegal0308388d02e614a31?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9efbaa17-d454-49f3-9d57-f2b98132be95" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8B52A546", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9156-e01e-007c-0ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "9efbaa17-d454-49f3-9d57-f2b98132be95" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacillegal0308388d02e614a31?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fcf32bee-ea06-438e-949a-f1880227b6a4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f9168-e01e-007c-19d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f9168-e01e-007c-19d3-90d34f000000\nTime:2019-11-01T16:42:54.9592427Zx-ms-lease-idreceived", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "fcf32bee-ea06-438e-949a-f1880227b6a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "60cda6ae-a8db-44cd-ab86-58344b367790" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f917e-e01e-007c-2dd3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacillegaljtfsreleasefilesystemleaseacillegal0308388d02e614a31Fri, 01 Nov 2019 16:42:54 GMT\"0x8D75EEA8B52A546\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:54 GMT", + "x-ms-client-request-id" : "60cda6ae-a8db-44cd-ab86-58344b367790", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacillegal0308388d02e614a31?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8608ae39-04e9-4ab5-a18f-dbe58895f48a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f918c-e01e-007c-3ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "8608ae39-04e9-4ab5-a18f-dbe58895f48a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseacillegal0308388d02e614a31" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacillegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacillegal[1].json new file mode 100644 index 0000000000000..f2ddbefec1338 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseacillegal[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacillegal075117ea468c7ed78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "49b4c232-b417-4495-924b-7e42996041ff" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8B7219D9", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f91ad-e01e-007c-57d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "49b4c232-b417-4495-924b-7e42996041ff" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacillegal075117ea468c7ed78?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b34c210b-9307-4e87-b25b-7f9ff67be1ba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f91cb-e01e-007c-73d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f91cb-e01e-007c-73d3-90d34f000000\nTime:2019-11-01T16:42:55.1633869Zx-ms-lease-idreceived", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "b34c210b-9307-4e87-b25b-7f9ff67be1ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8976b65-babe-4c51-b206-41580cdeeae2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f91dc-e01e-007c-03d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseacillegaljtfsreleasefilesystemleaseacillegal075117ea468c7ed78Fri, 01 Nov 2019 16:42:55 GMT\"0x8D75EEA8B7219D9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "f8976b65-babe-4c51-b206-41580cdeeae2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseacillegal075117ea468c7ed78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4f426f33-7d9c-4f32-997b-e832b05835d4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f91e9-e01e-007c-0ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "4f426f33-7d9c-4f32-997b-e832b05835d4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseacillegal075117ea468c7ed78" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseerror.json new file mode 100644 index 0000000000000..fce8bd956d3a3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseerror037290ea70176fb0234?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2683f6d6-ef01-4e4a-a32d-51ca5a45dcbe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8B918E60", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f9209-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "2683f6d6-ef01-4e4a-a32d-51ca5a45dcbe" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseerror1134234891383e0d194?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20a6601f-45ea-4f67-9c2e-e0e72cc060f3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f9224-e01e-007c-43d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f9224-e01e-007c-43d3-90d34f000000\nTime:2019-11-01T16:42:55.3695311Zx-ms-lease-idid", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "20a6601f-45ea-4f67-9c2e-e0e72cc060f3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82ca3301-682f-4a40-978b-564fc3dae494" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f9232-e01e-007c-50d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseerrorjtfsreleasefilesystemleaseerror037290ea70176fb0234Fri, 01 Nov 2019 16:42:55 GMT\"0x8D75EEA8B918E60\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "82ca3301-682f-4a40-978b-564fc3dae494", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleaseerror037290ea70176fb0234?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73dcf894-ebb5-45b2-9533-6de28c3fdb2b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f9248-e01e-007c-65d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:55 GMT", + "x-ms-client-request-id" : "73dcf894-ebb5-45b2-9533-6de28c3fdb2b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleaseerror037290ea70176fb0234", "jtfsreleasefilesystemleaseerror1134234891383e0d194" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleasemin.json new file mode 100644 index 0000000000000..603c58d0fca95 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestreleasefilesystemleasemin.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleasemin019316d8b21cbe0e9548?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1b6ac44-a67c-4abe-a3e1-421a3e82e418" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A3FCB44", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8e86-e01e-007c-6cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "f1b6ac44-a67c-4abe-a3e1-421a3e82e418" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleasemin019316d8b21cbe0e9548?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9e4a9050-dc98-4938-8644-f0b06b5cf029" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A3FCB44", + "x-ms-lease-id" : "7827a412-0c5b-4516-89a7-868d3772d8f3", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8ea8-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "9e4a9050-dc98-4938-8644-f0b06b5cf029" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleasemin019316d8b21cbe0e9548?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84b9d4a3-fda6-48a3-9c1b-2782088fe372" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8A3FCB44", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8ede-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "84b9d4a3-fda6-48a3-9c1b-2782088fe372" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsreleasefilesystemleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4fa014be-8b0a-4be5-b2df-9ba1711b74f7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8ef3-e01e-007c-54d3-90d34f000000", + "Body" : "jtfsreleasefilesystemleaseminjtfsreleasefilesystemleasemin019316d8b21cbe0e9548Fri, 01 Nov 2019 16:42:53 GMT\"0x8D75EEA8A3FCB44\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "4fa014be-8b0a-4be5-b2df-9ba1711b74f7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsreleasefilesystemleasemin019316d8b21cbe0e9548?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "02d27950-f98f-493b-bef6-f6f650273106" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8efc-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:53 GMT", + "x-ms-client-request-id" : "02d27950-f98f-493b-bef6-f6f650273106" + }, + "Exception" : null + } ], + "variables" : [ "jtfsreleasefilesystemleasemin019316d8b21cbe0e9548" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilelease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilelease.json new file mode 100644 index 0000000000000..abf7f06696775 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilelease.json @@ -0,0 +1,161 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e617b4a0-bcde-4658-9373-8103d9ce89e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA686EE1CC", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f39c2-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "e617b4a0-bcde-4658-9373-8103d9ce89e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4/javapathrenewfilelease1leaseapitestrenewfilelease8e626969e20?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "40d67bc2-fe47-4b07-b17a-d05b7ef09213" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA687A074F", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffb2-801f-00ab-41d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:41:56 GMT", + "x-ms-client-request-id" : "40d67bc2-fe47-4b07-b17a-d05b7ef09213" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4/javapathrenewfilelease1leaseapitestrenewfilelease8e626969e20?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d63a95c-184d-40ed-80b9-5292c1c9a549" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA687A074F", + "x-ms-lease-id" : "07a13dd4-80b0-47ac-8f17-92c99ed2e15b", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f39de-e01e-007c-7ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:41:55 GMT", + "x-ms-client-request-id" : "9d63a95c-184d-40ed-80b9-5292c1c9a549" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4/javapathrenewfilelease1leaseapitestrenewfilelease8e626969e20?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8d9f6a7-7b66-4f00-b12a-0d5eb5743c8a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA687A074F", + "x-ms-lease-id" : "07a13dd4-80b0-47ac-8f17-92c99ed2e15b", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f50d9-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:11 GMT", + "x-ms-client-request-id" : "e8d9f6a7-7b66-4f00-b12a-0d5eb5743c8a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4/javapathrenewfilelease1leaseapitestrenewfilelease8e626969e20", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84c4359f-e31c-4dab-949e-9bc5e8140e80" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "Last-Modified" : "Fri, 01 Nov 2019 16:41:56 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42: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", + "ETag" : "0x8D75EEA687A074F", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:41:56 GMT", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f50e6-e01e-007c-6cd3-90d34f000000", + "x-ms-client-request-id" : "84c4359f-e31c-4dab-949e-9bc5e8140e80", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilelease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "696b6e65-b8a3-4ec6-92cc-677a91881a04" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5103-e01e-007c-07d3-90d34f000000", + "Body" : "jtfsrenewfileleasejtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4Fri, 01 Nov 2019 16:41:56 GMT\"0x8D75EEA686EE1CC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:11 GMT", + "x-ms-client-request-id" : "696b6e65-b8a3-4ec6-92cc-677a91881a04", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c93a929b-2fb3-4e3e-9551-b86d10f59ad9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f510f-e01e-007c-13d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:11 GMT", + "x-ms-client-request-id" : "c93a929b-2fb3-4e3e-9551-b86d10f59ad9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilelease0leaseapitestrenewfilelease8e637256115a4", "javapathrenewfilelease1leaseapitestrenewfilelease8e626969e20" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[0].json new file mode 100644 index 0000000000000..483e613857d12 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba5b7e4b-c2bb-4bc0-b999-97298a84ade0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72725535", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f51b2-e01e-007c-2fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "ba5b7e4b-c2bb-4bc0-b999-97298a84ade0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798/javapathrenewfileleaseac1leaseapitestrenewfileleaseace3a908671?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8079fdf-9f70-4b24-baf6-615088d02ad1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA727C374E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffca-801f-00ab-58d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "f8079fdf-9f70-4b24-baf6-615088d02ad1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798/javapathrenewfileleaseac1leaseapitestrenewfileleaseace3a908671?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01ab72ba-b7ca-4bf5-9af3-719b9cf1a6e3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA727C374E", + "x-ms-lease-id" : "0ef01dca-b4c1-4015-95ed-5069bf0c133f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f51de-e01e-007c-56d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "01ab72ba-b7ca-4bf5-9af3-719b9cf1a6e3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798/javapathrenewfileleaseac1leaseapitestrenewfileleaseace3a908671?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aaadf29a-eef2-4467-a888-b8bf3564532c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA727C374E", + "x-ms-lease-id" : "0ef01dca-b4c1-4015-95ed-5069bf0c133f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f51ea-e01e-007c-62d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "aaadf29a-eef2-4467-a888-b8bf3564532c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f880d383-21fc-4cab-a778-185b66ea2f06" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f51f3-e01e-007c-6bd3-90d34f000000", + "Body" : "jtfsrenewfileleaseacjtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798Fri, 01 Nov 2019 16:42:13 GMT\"0x8D75EEA72725535\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "f880d383-21fc-4cab-a778-185b66ea2f06", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bad392c5-ba02-403b-a8bd-6eeff84d0849" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5202-e01e-007c-79d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "bad392c5-ba02-403b-a8bd-6eeff84d0849" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseac0leaseapitestrenewfileleaseace3a65929798", "javapathrenewfileleaseac1leaseapitestrenewfileleaseace3a908671" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[1].json new file mode 100644 index 0000000000000..dc73fc8d26a77 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90def604-c015-48d4-88d2-fa2d42adf24a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72A41C85", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f521d-e01e-007c-10d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "90def604-c015-48d4-88d2-fa2d42adf24a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4d/javapathrenewfileleaseac1leaseapitestrenewfileleaseac53f751833?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e6176a0-8830-41a0-9b3b-043f63be8134" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72ADF1A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffcb-801f-00ab-59d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "1e6176a0-8830-41a0-9b3b-043f63be8134" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4d/javapathrenewfileleaseac1leaseapitestrenewfileleaseac53f751833?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b698aa86-b7ef-4a75-8d66-5e7ec53fbb28" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72ADF1A0", + "x-ms-lease-id" : "01994ede-80f3-48b3-a80c-2f1f332ec5d5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5245-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "b698aa86-b7ef-4a75-8d66-5e7ec53fbb28" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4d/javapathrenewfileleaseac1leaseapitestrenewfileleaseac53f751833?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af92f4a6-ba19-4870-97de-943131c51b3c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72ADF1A0", + "x-ms-lease-id" : "01994ede-80f3-48b3-a80c-2f1f332ec5d5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5262-e01e-007c-4bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "af92f4a6-ba19-4870-97de-943131c51b3c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9f1197e1-4453-4f40-b63b-872cdb65e1f7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f527d-e01e-007c-65d3-90d34f000000", + "Body" : "jtfsrenewfileleaseacjtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4dFri, 01 Nov 2019 16:42:13 GMT\"0x8D75EEA72A41C85\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "9f1197e1-4453-4f40-b63b-872cdb65e1f7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5ad3d28-547e-4983-9ab6-c8bf64a1a3a1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5293-e01e-007c-7bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "d5ad3d28-547e-4983-9ab6-c8bf64a1a3a1" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseac0leaseapitestrenewfileleaseac53f61272e4d", "javapathrenewfileleaseac1leaseapitestrenewfileleaseac53f751833" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[2].json new file mode 100644 index 0000000000000..49439f851cfdc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a2005683-3524-4c97-a741-23b3fe4e7d18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72D60AF4", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f52ac-e01e-007c-12d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "a2005683-3524-4c97-a741-23b3fe4e7d18" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704c/javapathrenewfileleaseac1leaseapitestrenewfileleaseac89956599c?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aaa83de8-8a6c-48b1-a550-31ccdfb0edb9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72E1BE0D", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffcc-801f-00ab-5ad3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "aaa83de8-8a6c-48b1-a550-31ccdfb0edb9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704c/javapathrenewfileleaseac1leaseapitestrenewfileleaseac89956599c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03115c32-fcf2-4af0-95d6-f13bca0d7add" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72E1BE0D", + "x-ms-lease-id" : "46a75eb3-8c20-4ea7-9aed-25be8ff14a43", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f52d3-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "03115c32-fcf2-4af0-95d6-f13bca0d7add" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704c/javapathrenewfileleaseac1leaseapitestrenewfileleaseac89956599c?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dcb046ce-6f6c-4d6c-9fd8-b4d03fb942bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72E1BE0D", + "x-ms-lease-id" : "46a75eb3-8c20-4ea7-9aed-25be8ff14a43", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f52e4-e01e-007c-48d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "dcb046ce-6f6c-4d6c-9fd8-b4d03fb942bc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "48a53b37-e1b0-4ad3-bc40-3e33b1ab3d29" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f52ef-e01e-007c-53d3-90d34f000000", + "Body" : "jtfsrenewfileleaseacjtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704cFri, 01 Nov 2019 16:42:13 GMT\"0x8D75EEA72D60AF4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "48a53b37-e1b0-4ad3-bc40-3e33b1ab3d29", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e8d7f7f-e4f4-415d-b089-0ecf23efa247" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f530f-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "2e8d7f7f-e4f4-415d-b089-0ecf23efa247" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseac0leaseapitestrenewfileleaseac8993580704c", "javapathrenewfileleaseac1leaseapitestrenewfileleaseac89956599c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[3].json new file mode 100644 index 0000000000000..e74c5c9258ecb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ca9335a-306d-4897-adaf-e8a8b1a08986" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73090B09", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f532b-e01e-007c-0bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "0ca9335a-306d-4897-adaf-e8a8b1a08986" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86/javapathrenewfileleaseac1leaseapitestrenewfileleaseac5ec286214?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c09a3162-3f70-4b49-83c9-b5fe4dd0a4da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73137946", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffcd-801f-00ab-5bd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "c09a3162-3f70-4b49-83c9-b5fe4dd0a4da" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86/javapathrenewfileleaseac1leaseapitestrenewfileleaseac5ec286214", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff51514a-a9aa-41a1-bd92-b8f7773d1595" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:13 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", + "ETag" : "0x8D75EEA73137946", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:14 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f5377-e01e-007c-51d3-90d34f000000", + "x-ms-client-request-id" : "ff51514a-a9aa-41a1-bd92-b8f7773d1595", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86/javapathrenewfileleaseac1leaseapitestrenewfileleaseac5ec286214?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9f1ed46-793d-48d1-a844-76c97e8672bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73137946", + "x-ms-lease-id" : "09d3b1e4-4550-4f35-b55a-666ee7bcb792", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5391-e01e-007c-69d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "d9f1ed46-793d-48d1-a844-76c97e8672bc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86/javapathrenewfileleaseac1leaseapitestrenewfileleaseac5ec286214?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4fc4f26a-d277-4b0d-8d94-b7bdbf0fa873" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73137946", + "x-ms-lease-id" : "09d3b1e4-4550-4f35-b55a-666ee7bcb792", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f53ab-e01e-007c-02d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "4fc4f26a-d277-4b0d-8d94-b7bdbf0fa873" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2e54f074-84c8-4526-8125-fa4ef7cbd1ec" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f53b9-e01e-007c-0fd3-90d34f000000", + "Body" : "jtfsrenewfileleaseacjtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86Fri, 01 Nov 2019 16:42:14 GMT\"0x8D75EEA73090B09\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "2e54f074-84c8-4526-8125-fa4ef7cbd1ec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a114da74-a76a-457e-b98f-5ad3d9276f27" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f53c9-e01e-007c-1dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "a114da74-a76a-457e-b98f-5ad3d9276f27" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseac0leaseapitestrenewfileleaseac5ec14809f86", "javapathrenewfileleaseac1leaseapitestrenewfileleaseac5ec286214" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[4].json new file mode 100644 index 0000000000000..023a4bfae6825 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseac[4].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be71a183-5f6a-4649-ac29-f165b2289a43" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7340C6E8", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f53dd-e01e-007c-30d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "be71a183-5f6a-4649-ac29-f165b2289a43" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887e/javapathrenewfileleaseac1leaseapitestrenewfileleaseac111840844?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b33ae76-5158-4526-93e6-83c7f3fc89da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA734E2CB3", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffce-801f-00ab-5cd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "2b33ae76-5158-4526-93e6-83c7f3fc89da" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887e/javapathrenewfileleaseac1leaseapitestrenewfileleaseac111840844?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fd00048e-7bd5-473f-ae38-f5a6eb5c34c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA734E2CB3", + "x-ms-lease-id" : "191ad0eb-5a29-4430-a7da-e6164b84b0c9", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5401-e01e-007c-53d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "fd00048e-7bd5-473f-ae38-f5a6eb5c34c3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887e/javapathrenewfileleaseac1leaseapitestrenewfileleaseac111840844?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4e018c9-cb68-4455-a5d4-627785958100" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA734E2CB3", + "x-ms-lease-id" : "191ad0eb-5a29-4430-a7da-e6164b84b0c9", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5409-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "c4e018c9-cb68-4455-a5d4-627785958100" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5005eb65-97b8-48c6-93b5-abbb55c1afc3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5419-e01e-007c-68d3-90d34f000000", + "Body" : "jtfsrenewfileleaseacjtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887eFri, 01 Nov 2019 16:42:14 GMT\"0x8D75EEA7340C6E8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "5005eb65-97b8-48c6-93b5-abbb55c1afc3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a518a180-b213-4f6f-b7aa-73f35d217ebb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5428-e01e-007c-75d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "a518a180-b213-4f6f-b7aa-73f35d217ebb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseac0leaseapitestrenewfileleaseac1112755887e", "javapathrenewfileleaseac1leaseapitestrenewfileleaseac111840844" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[0].json new file mode 100644 index 0000000000000..c8e129b96fb48 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[0].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0874834c950fa6af8e420c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0d4e7d8c-09b9-47d8-a1a2-0244d3e55ac4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA737574F2", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f543d-e01e-007c-07d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:13 GMT", + "x-ms-client-request-id" : "0d4e7d8c-09b9-47d8-a1a2-0244d3e55ac4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseacfail0874834c950fa6af8e420c/javapathrenewfileleaseacfail152284a9771377e5c348?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "372b883c-ab44-4ad4-a9b1-54bc9bd60d07" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73802F85", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffcf-801f-00ab-5dd3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "372b883c-ab44-4ad4-a9b1-54bc9bd60d07" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0874834c950fa6af8e420c/javapathrenewfileleaseacfail152284a9771377e5c348?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e27dcc8b-6bba-4355-b025-e8210f719221" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73802F85", + "x-ms-lease-id" : "8144d191-9a1d-47f4-9f30-0d65f8064612", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f546f-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "e27dcc8b-6bba-4355-b025-e8210f719221" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0874834c950fa6af8e420c/javapathrenewfileleaseacfail152284a9771377e5c348?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e9a298f-13db-41d1-b6db-063594a0cb72" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f547d-e01e-007c-41d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f547d-e01e-007c-41d3-90d34f000000\nTime:2019-11-01T16:42:15.0341416Z", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "7e9a298f-13db-41d1-b6db-063594a0cb72", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b3e2db1-315a-40ff-955c-0c0607d66b4e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f548e-e01e-007c-52d3-90d34f000000", + "Body" : "jtfsrenewfileleaseacfailjtfsrenewfileleaseacfail0874834c950fa6af8e420cFri, 01 Nov 2019 16:42:14 GMT\"0x8D75EEA737574F2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "5b3e2db1-315a-40ff-955c-0c0607d66b4e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0874834c950fa6af8e420c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c77d1ab4-58c0-4449-bbe1-8eed2a419a64" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5497-e01e-007c-5bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "c77d1ab4-58c0-4449-bbe1-8eed2a419a64" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseacfail0874834c950fa6af8e420c", "javapathrenewfileleaseacfail152284a9771377e5c348" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[1].json new file mode 100644 index 0000000000000..932e645d12643 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[1].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0361410fa63915c94d48ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "05bc7e9d-33fe-4178-aed0-89ff8de45c13" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73A73C4A", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f54aa-e01e-007c-6dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "05bc7e9d-33fe-4178-aed0-89ff8de45c13" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseacfail0361410fa63915c94d48ef/javapathrenewfileleaseacfail162901d1f15e526ed840?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "69d12848-6631-4dbd-9260-a528d16d6024" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73B28B13", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd2-801f-00ab-60d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "69d12848-6631-4dbd-9260-a528d16d6024" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0361410fa63915c94d48ef/javapathrenewfileleaseacfail162901d1f15e526ed840?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ce7c448-c035-4587-b9db-055b3ad37ab8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73B28B13", + "x-ms-lease-id" : "e826c4d9-3d42-4de0-a06f-eba94a921aab", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f54cb-e01e-007c-09d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "9ce7c448-c035-4587-b9db-055b3ad37ab8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0361410fa63915c94d48ef/javapathrenewfileleaseacfail162901d1f15e526ed840?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a06846e6-6b81-4f62-af93-520d88ebadf4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f54d2-e01e-007c-10d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f54d2-e01e-007c-10d3-90d34f000000\nTime:2019-11-01T16:42:15.3613719Z", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "a06846e6-6b81-4f62-af93-520d88ebadf4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ca6b88fc-d38c-4349-af82-e44b347df0e6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f54d9-e01e-007c-17d3-90d34f000000", + "Body" : "jtfsrenewfileleaseacfailjtfsrenewfileleaseacfail0361410fa63915c94d48efFri, 01 Nov 2019 16:42:15 GMT\"0x8D75EEA73A73C4A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "ca6b88fc-d38c-4349-af82-e44b347df0e6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0361410fa63915c94d48ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "668b5bab-7f4f-488e-82e8-ee209f777e87" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f54e2-e01e-007c-20d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "668b5bab-7f4f-488e-82e8-ee209f777e87" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseacfail0361410fa63915c94d48ef", "javapathrenewfileleaseacfail162901d1f15e526ed840" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[2].json new file mode 100644 index 0000000000000..58723dd4ec706 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[2].json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0721399a856c6853f34973?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8d95b08d-f7fb-4d43-9613-e22e363b5cd5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73DA8A88", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5501-e01e-007c-39d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "8d95b08d-f7fb-4d43-9613-e22e363b5cd5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseacfail0721399a856c6853f34973/javapathrenewfileleaseacfail138421129f252e817c45?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a145fdf4-c8ff-4dde-bacb-094129fd4fe3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73E45831", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd3-801f-00ab-61d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "a145fdf4-c8ff-4dde-bacb-094129fd4fe3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0721399a856c6853f34973/javapathrenewfileleaseacfail138421129f252e817c45?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3a08b450-2227-4b72-9ad7-660ec7c0e003" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA73E45831", + "x-ms-lease-id" : "a47e89a4-142b-47d8-8831-081a0dffb896", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f552d-e01e-007c-5ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "3a08b450-2227-4b72-9ad7-660ec7c0e003" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0721399a856c6853f34973/javapathrenewfileleaseacfail138421129f252e817c45?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8ee28518-cb5a-4f73-b8bd-e606c519f951" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f553b-e01e-007c-6cd3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f553b-e01e-007c-6cd3-90d34f000000\nTime:2019-11-01T16:42:15.6845994Z", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "8ee28518-cb5a-4f73-b8bd-e606c519f951", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "134cd02b-9d6f-40e2-946b-1fb481d33e7c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5543-e01e-007c-73d3-90d34f000000", + "Body" : "jtfsrenewfileleaseacfailjtfsrenewfileleaseacfail0721399a856c6853f34973Fri, 01 Nov 2019 16:42:15 GMT\"0x8D75EEA73DA8A88\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "134cd02b-9d6f-40e2-946b-1fb481d33e7c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0721399a856c6853f34973?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "248fa830-69ba-4aa3-a7ec-c8523043218b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5557-e01e-007c-05d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "248fa830-69ba-4aa3-a7ec-c8523043218b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseacfail0721399a856c6853f34973", "javapathrenewfileleaseacfail138421129f252e817c45" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[3].json new file mode 100644 index 0000000000000..944e4a8b0ad2b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseacfail[3].json @@ -0,0 +1,160 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0833440b5b47684f2540c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f387e96b-c01a-413f-a7da-d0d98ac305ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA74099242", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5574-e01e-007c-22d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:14 GMT", + "x-ms-client-request-id" : "f387e96b-c01a-413f-a7da-d0d98ac305ac" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleaseacfail0833440b5b47684f2540c7/javapathrenewfileleaseacfail137311e881da1aab4845?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "537a6e51-34e9-4674-afec-973715818495" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA741477C8", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffd4-801f-00ab-62d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "537a6e51-34e9-4674-afec-973715818495" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0833440b5b47684f2540c7/javapathrenewfileleaseacfail137311e881da1aab4845", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef8a37c0-b4a0-4b7c-b671-2a63b64457ed" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:14 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", + "ETag" : "0x8D75EEA741477C8", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:42:15 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f55a7-e01e-007c-53d3-90d34f000000", + "x-ms-client-request-id" : "ef8a37c0-b4a0-4b7c-b671-2a63b64457ed", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0833440b5b47684f2540c7/javapathrenewfileleaseacfail137311e881da1aab4845?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8eb62c7-1a81-421f-84ed-45c07fc5307a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA741477C8", + "x-ms-lease-id" : "e406bead-fd74-471a-842c-6df3a3c6d0e5", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f55b5-e01e-007c-61d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "d8eb62c7-1a81-421f-84ed-45c07fc5307a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0833440b5b47684f2540c7/javapathrenewfileleaseacfail137311e881da1aab4845?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7c307210-77cc-4b2d-b477-653e9e8f1d0a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f55c8-e01e-007c-73d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f55c8-e01e-007c-73d3-90d34f000000\nTime:2019-11-01T16:42:16.0498569Z", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "7c307210-77cc-4b2d-b477-653e9e8f1d0a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3542484b-4f45-4d80-a5e7-a50329c73ce7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f55e7-e01e-007c-0dd3-90d34f000000", + "Body" : "jtfsrenewfileleaseacfailjtfsrenewfileleaseacfail0833440b5b47684f2540c7Fri, 01 Nov 2019 16:42:15 GMT\"0x8D75EEA74099242\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "3542484b-4f45-4d80-a5e7-a50329c73ce7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseacfail0833440b5b47684f2540c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6eef8058-e614-4f09-a142-4cd2d4c010e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5600-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "6eef8058-e614-4f09-a142-4cd2d4c010e5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseacfail0833440b5b47684f2540c7", "javapathrenewfileleaseacfail137311e881da1aab4845" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseerror.json new file mode 100644 index 0000000000000..f1716532a119e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseerror00682129c3d1bfc8f644ee9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2a494f7c-9cc6-4507-b1f6-dd0f0626e402" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA744238A7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5617-e01e-007c-3cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "2a494f7c-9cc6-4507-b1f6-dd0f0626e402" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseerror00682129c3d1bfc8f644ee9/javapathrenewfileleaseerror1951927685d56fc90e4e7?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a9201b2-b6b5-4cc8-ba6f-3bdb28a4b229" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f5626-e01e-007c-49d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f5626-e01e-007c-49d3-90d34f000000\nTime:2019-11-01T16:42:16.2650084Zx-ms-lease-idid", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "8a9201b2-b6b5-4cc8-ba6f-3bdb28a4b229", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da34d474-8f10-4ac2-9057-91d1f3bb781c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5636-e01e-007c-58d3-90d34f000000", + "Body" : "jtfsrenewfileleaseerrorjtfsrenewfileleaseerror00682129c3d1bfc8f644ee9Fri, 01 Nov 2019 16:42:16 GMT\"0x8D75EEA744238A7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "da34d474-8f10-4ac2-9057-91d1f3bb781c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleaseerror00682129c3d1bfc8f644ee9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "867f116a-2199-4654-83f7-e2b3c43305da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f5644-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:15 GMT", + "x-ms-client-request-id" : "867f116a-2199-4654-83f7-e2b3c43305da" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleaseerror00682129c3d1bfc8f644ee9", "javapathrenewfileleaseerror1951927685d56fc90e4e7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleasemin.json new file mode 100644 index 0000000000000..7fa138dd4d32a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfileleasemin.json @@ -0,0 +1,130 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cbec49d9-bb2f-4b2e-8400-921daaf059c7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA72387614", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5121-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:11 GMT", + "x-ms-client-request-id" : "cbec49d9-bb2f-4b2e-8400-921daaf059c7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082f/javapathrenewfileleasemin135655ac1f3d12e3e241d2?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4092d00-90bb-4913-aca7-f1bf17f00b9e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7242DB9A", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "aa8dffc9-801f-00ab-57d3-909968000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "f4092d00-90bb-4913-aca7-f1bf17f00b9e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082f/javapathrenewfileleasemin135655ac1f3d12e3e241d2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6c65b1a-9161-4357-83fb-0065242cd82f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7242DB9A", + "x-ms-lease-id" : "34c6f0f6-031d-4501-9529-852924b3fde1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f5159-e01e-007c-59d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "d6c65b1a-9161-4357-83fb-0065242cd82f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082f/javapathrenewfileleasemin135655ac1f3d12e3e241d2?comp=lease", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dff886a9-d6f4-4822-91dd-996182d03cf4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7242DB9A", + "x-ms-lease-id" : "34c6f0f6-031d-4501-9529-852924b3fde1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5167-e01e-007c-67d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "dff886a9-d6f4-4822-91dd-996182d03cf4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfileleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d9a4633f-2eb6-483a-9393-40b5fe913bb3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f5181-e01e-007c-7ed3-90d34f000000", + "Body" : "jtfsrenewfileleaseminjtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082fFri, 01 Nov 2019 16:42:12 GMT\"0x8D75EEA72387614\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "d9a4633f-2eb6-483a-9393-40b5fe913bb3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac2b149a-a596-4236-b03c-298d9925a74b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f51a4-e01e-007c-21d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:12 GMT", + "x-ms-client-request-id" : "ac2b149a-a596-4236-b03c-298d9925a74b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfileleasemin0leaseapitestrenewfileleasemin7be568082f", "javapathrenewfileleasemin135655ac1f3d12e3e241d2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemlease.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemlease.json new file mode 100644 index 0000000000000..3851182037506 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemlease.json @@ -0,0 +1,159 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemlease026906018279ae99644178?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e2ada48c-ef59-42f3-8879-2db386c8485a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7EA9AFC1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f6fe8-e01e-007c-77d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "e2ada48c-ef59-42f3-8879-2db386c8485a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemlease026906018279ae99644178?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23821cbc-4d0d-4566-9a15-e50c5c190fdb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7EA9AFC1", + "x-ms-lease-id" : "aa9d7dbe-6f51-43a1-98c0-7df2b257acc9", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f7005-e01e-007c-11d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:32 GMT", + "x-ms-client-request-id" : "23821cbc-4d0d-4566-9a15-e50c5c190fdb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemlease026906018279ae99644178?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5ead3123-db05-487e-b1e8-4ffdb0fc5766" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7EA9AFC1", + "x-ms-lease-id" : "aa9d7dbe-6f51-43a1-98c0-7df2b257acc9", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8961-e01e-007c-39d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:49 GMT", + "x-ms-client-request-id" : "5ead3123-db05-487e-b1e8-4ffdb0fc5766" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemlease026906018279ae99644178?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e3cb9dba-6b07-4887-8e45-3ac69eb6a494" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "locked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "leased", + "x-ms-deny-encryption-scope-override" : "false", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:42:49 GMT", + "x-ms-has-legal-hold" : "false", + "x-ms-default-encryption-scope" : "$account-encryption-key", + "ETag" : "0x8D75EEA7EA9AFC1", + "x-ms-has-immutability-policy" : "false", + "x-ms-lease-duration" : "infinite", + "Content-Length" : "0", + "x-ms-request-id" : "dc6f897f-e01e-007c-54d3-90d34f000000", + "x-ms-client-request-id" : "e3cb9dba-6b07-4887-8e45-3ac69eb6a494" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemlease&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61a42585-f2b9-4cb6-9499-e4830b019cca" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8996-e01e-007c-66d3-90d34f000000", + "Body" : "jtfsrenewfilesystemleasejtfsrenewfilesystemlease026906018279ae99644178Fri, 01 Nov 2019 16:42:33 GMT\"0x8D75EEA7EA9AFC1\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:49 GMT", + "x-ms-client-request-id" : "61a42585-f2b9-4cb6-9499-e4830b019cca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemlease026906018279ae99644178?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a3d7686d-4c06-4269-8f83-989a8c3118ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA7EA9AFC1", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f89ab-e01e-007c-7bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:49 GMT", + "x-ms-client-request-id" : "a3d7686d-4c06-4269-8f83-989a8c3118ac" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemlease026906018279ae99644178?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fa85b443-1d71-46dd-86dd-29583fb19635" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f89c9-e01e-007c-16d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:49 GMT", + "x-ms-client-request-id" : "fa85b443-1d71-46dd-86dd-29583fb19635" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemlease026906018279ae99644178" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[0].json new file mode 100644 index 0000000000000..1b418a046be29 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01720653d1b4fd3072446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03172f8e-3484-4545-88ca-e8dca09e09db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88A1AF26", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8a79-e01e-007c-3fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "03172f8e-3484-4545-88ca-e8dca09e09db" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01720653d1b4fd3072446?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36bfc826-2f9d-43be-80a9-b6b72aa5a38b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88A1AF26", + "x-ms-lease-id" : "17699e35-e6fe-41d8-9bf3-27d52aa7b796", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8a8b-e01e-007c-50d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "36bfc826-2f9d-43be-80a9-b6b72aa5a38b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01720653d1b4fd3072446?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "816311f2-36cd-4956-8af4-7a1111b41525" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88A1AF26", + "x-ms-lease-id" : "17699e35-e6fe-41d8-9bf3-27d52aa7b796", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8a95-e01e-007c-5ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "816311f2-36cd-4956-8af4-7a1111b41525" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83d892ad-3c61-4e45-8f8f-24130c24a139" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8aa8-e01e-007c-6bd3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacjtfsrenewfilesystemleaseac01720653d1b4fd3072446Fri, 01 Nov 2019 16:42:50 GMT\"0x8D75EEA88A1AF26\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "83d892ad-3c61-4e45-8f8f-24130c24a139", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01720653d1b4fd3072446?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2ddc371c-b03e-41ab-99b7-343e45c0cee5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88A1AF26", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8ab5-e01e-007c-77d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "2ddc371c-b03e-41ab-99b7-343e45c0cee5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01720653d1b4fd3072446?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "53c41666-d376-48c6-85fa-bfca04a1bb4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8ac5-e01e-007c-07d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "53c41666-d376-48c6-85fa-bfca04a1bb4c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseac01720653d1b4fd3072446" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[1].json new file mode 100644 index 0000000000000..4357bd5ae8620 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac0029283d97b407b4ee493?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9b4e1b5-ad2c-442f-a4d9-67510899088d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88D068B1", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8ad8-e01e-007c-18d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "a9b4e1b5-ad2c-442f-a4d9-67510899088d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac0029283d97b407b4ee493?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc8b8f56-ad20-4e05-99d8-375333e32ebc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88D068B1", + "x-ms-lease-id" : "6c5af835-53b4-483e-b39e-f4d49c9cfd3b", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8af1-e01e-007c-2dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "fc8b8f56-ad20-4e05-99d8-375333e32ebc" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac0029283d97b407b4ee493?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba20bd0c-4164-4398-b791-6bc9f39f6565" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88D068B1", + "x-ms-lease-id" : "6c5af835-53b4-483e-b39e-f4d49c9cfd3b", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8af8-e01e-007c-32d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "ba20bd0c-4164-4398-b791-6bc9f39f6565" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "074285af-c728-4f78-ba66-9dfe006ca07a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8b01-e01e-007c-3bd3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacjtfsrenewfilesystemleaseac0029283d97b407b4ee493Fri, 01 Nov 2019 16:42:50 GMT\"0x8D75EEA88D068B1\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "074285af-c728-4f78-ba66-9dfe006ca07a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac0029283d97b407b4ee493?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e0d6c6f4-8962-4fa4-8d1f-848546afbd91" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88D068B1", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8b0b-e01e-007c-45d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "e0d6c6f4-8962-4fa4-8d1f-848546afbd91" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac0029283d97b407b4ee493?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99a4a2ba-2dd2-428e-8ad5-4a99655ef9a9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8b19-e01e-007c-51d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "99a4a2ba-2dd2-428e-8ad5-4a99655ef9a9" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseac0029283d97b407b4ee493" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[2].json new file mode 100644 index 0000000000000..c9403489deb78 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseac[2].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01518469c66a43efe440a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "887711b7-43ce-434d-8ccc-1dfd8c57a20c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88FED40E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8b25-e01e-007c-5dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "887711b7-43ce-434d-8ccc-1dfd8c57a20c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01518469c66a43efe440a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04f87f0c-2879-48c6-ba93-927de06c5cf5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88FED40E", + "x-ms-lease-id" : "58da05de-0c38-4fb0-8e11-c800b9e0d9c0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8b5a-e01e-007c-0ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "04f87f0c-2879-48c6-ba93-927de06c5cf5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01518469c66a43efe440a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "33e4a271-440c-45f6-8aeb-e9c87e2380e4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88FED40E", + "x-ms-lease-id" : "58da05de-0c38-4fb0-8e11-c800b9e0d9c0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8b66-e01e-007c-14d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "33e4a271-440c-45f6-8aeb-e9c87e2380e4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseac&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66250178-5deb-46ee-bb8f-048ce6703c37" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8b79-e01e-007c-24d3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacjtfsrenewfilesystemleaseac01518469c66a43efe440aFri, 01 Nov 2019 16:42:50 GMT\"0x8D75EEA88FED40E\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "66250178-5deb-46ee-bb8f-048ce6703c37", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01518469c66a43efe440a?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5af5d01a-7d7a-46f6-8594-b422abbe22f8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA88FED40E", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8b89-e01e-007c-33d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "5af5d01a-7d7a-46f6-8594-b422abbe22f8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseac01518469c66a43efe440a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e6674f51-999f-454d-ba6c-3e801807fd66" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8b99-e01e-007c-43d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "e6674f51-999f-454d-ba6c-3e801807fd66" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseac01518469c66a43efe440a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacfail[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacfail[0].json new file mode 100644 index 0000000000000..3e1ba25c0ba1a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacfail[0].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail09648321fa9e1131b64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0a98094b-b091-4eee-aaf5-6dd38a974a6e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8937EFBD", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8bae-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "0a98094b-b091-4eee-aaf5-6dd38a974a6e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail09648321fa9e1131b64?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e6f4c735-cab7-415c-8b07-c24b8961e80d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8937EFBD", + "x-ms-lease-id" : "94091ce3-34b4-480b-a13c-5b54767d68ba", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8bc2-e01e-007c-68d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "e6f4c735-cab7-415c-8b07-c24b8961e80d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail09648321fa9e1131b64?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "697c2159-b8fa-4ada-a52c-6ae60b3c72fe" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f8bd0-e01e-007c-73d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f8bd0-e01e-007c-73d3-90d34f000000\nTime:2019-11-01T16:42:51.4757914Z", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "697c2159-b8fa-4ada-a52c-6ae60b3c72fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a28d7b7d-bd96-45bf-9154-165103421dab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8be0-e01e-007c-80d3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacfailjtfsrenewfilesystemleaseacfail09648321fa9e1131b64Fri, 01 Nov 2019 16:42:51 GMT\"0x8D75EEA8937EFBD\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "a28d7b7d-bd96-45bf-9154-165103421dab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail09648321fa9e1131b64?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "991d2fbf-a1b4-4296-86d7-b6bbb380786b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8937EFBD", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8bf2-e01e-007c-12d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "991d2fbf-a1b4-4296-86d7-b6bbb380786b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail09648321fa9e1131b64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9980a452-ad12-4344-83b2-fd638a1de625" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8c1e-e01e-007c-3bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "9980a452-ad12-4344-83b2-fd638a1de625" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseacfail09648321fa9e1131b64" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacfail[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacfail[1].json new file mode 100644 index 0000000000000..f84e3bef5ab64 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacfail[1].json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail041954acc9c6a82fa34?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14d4900e-52eb-49c6-91bc-c662eed4c91b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8970961E", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8c3a-e01e-007c-52d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "14d4900e-52eb-49c6-91bc-c662eed4c91b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail041954acc9c6a82fa34?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "607776f9-b552-4159-830f-368d6424116f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8970961E", + "x-ms-lease-id" : "12567a15-948c-480d-841b-c347557aa16f", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8c4f-e01e-007c-64d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "607776f9-b552-4159-830f-368d6424116f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail041954acc9c6a82fa34?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ff82cabc-1904-4f2b-a939-ec753844f209" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "ConditionNotMet", + "retry-after" : "0", + "Content-Length" : "252", + "StatusCode" : "412", + "x-ms-request-id" : "dc6f8c64-e01e-007c-77d3-90d34f000000", + "Body" : "ConditionNotMetThe condition specified using HTTP conditional header(s) is not met.\nRequestId:dc6f8c64-e01e-007c-77d3-90d34f000000\nTime:2019-11-01T16:42:51.8460515Z", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "ff82cabc-1904-4f2b-a939-ec753844f209", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseacfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7d1b0433-aa1c-4ae0-b95d-f71bfa3cb5a8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8c74-e01e-007c-07d3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacfailjtfsrenewfilesystemleaseacfail041954acc9c6a82fa34Fri, 01 Nov 2019 16:42:51 GMT\"0x8D75EEA8970961E\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "7d1b0433-aa1c-4ae0-b95d-f71bfa3cb5a8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail041954acc9c6a82fa34?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e5852bd6-4f23-45c7-9a10-9d345f2e30bf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA8970961E", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8c89-e01e-007c-18d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "e5852bd6-4f23-45c7-9a10-9d345f2e30bf" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacfail041954acc9c6a82fa34?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "14a66a70-cb2c-4e87-8ccc-aa98fa9c2ffa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8c9b-e01e-007c-29d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:51 GMT", + "x-ms-client-request-id" : "14a66a70-cb2c-4e87-8ccc-aa98fa9c2ffa" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseacfail041954acc9c6a82fa34" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacillegal[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacillegal[0].json new file mode 100644 index 0000000000000..ae458aebc9454 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacillegal[0].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacillegal035126cef87a4e3488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e5a520b2-5d71-4117-aece-2e529c1ab901" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA89A0FDA7", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8cb2-e01e-007c-3ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "e5a520b2-5d71-4117-aece-2e529c1ab901" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacillegal035126cef87a4e3488?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bce20d89-7745-4202-afca-85d0912be8c3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f8cc7-e01e-007c-52d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f8cc7-e01e-007c-52d3-90d34f000000\nTime:2019-11-01T16:42:52.1172424Zx-ms-lease-idreceived", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "bce20d89-7745-4202-afca-85d0912be8c3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c91c5d0-19eb-4b0c-baba-2bbde92ea4d6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8cde-e01e-007c-66d3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacillegaljtfsrenewfilesystemleaseacillegal035126cef87a4e3488Fri, 01 Nov 2019 16:42:52 GMT\"0x8D75EEA89A0FDA7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "2c91c5d0-19eb-4b0c-baba-2bbde92ea4d6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacillegal035126cef87a4e3488?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f52953a6-3dbc-4828-bf86-2507e8621fb5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8cec-e01e-007c-72d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "f52953a6-3dbc-4828-bf86-2507e8621fb5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseacillegal035126cef87a4e3488" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacillegal[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacillegal[1].json new file mode 100644 index 0000000000000..91a9277c8af36 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseacillegal[1].json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacillegal03484657363f2bea64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08d5fa1b-443c-46de-b948-4388593c928a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA89C15CC0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8d0a-e01e-007c-0fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "08d5fa1b-443c-46de-b948-4388593c928a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacillegal03484657363f2bea64?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c87a924d-b74a-4c4c-baa7-77eecb8452bb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "327", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f8d2c-e01e-007c-2dd3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f8d2c-e01e-007c-2dd3-90d34f000000\nTime:2019-11-01T16:42:52.3293922Zx-ms-lease-idreceived", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "c87a924d-b74a-4c4c-baa7-77eecb8452bb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseacillegal&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5db89617-41c3-4b02-b1f1-9b61379ef724" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8d3c-e01e-007c-3dd3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseacillegaljtfsrenewfilesystemleaseacillegal03484657363f2bea64Fri, 01 Nov 2019 16:42:52 GMT\"0x8D75EEA89C15CC0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "5db89617-41c3-4b02-b1f1-9b61379ef724", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseacillegal03484657363f2bea64?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3fb539e0-3751-42ff-af6a-5da7a70d4b33" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8d54-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "3fb539e0-3751-42ff-af6a-5da7a70d4b33" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseacillegal03484657363f2bea64" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseerror.json new file mode 100644 index 0000000000000..57eda9426dd19 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleaseerror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseerror006458b45da644a9fb4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8512d35a-5846-45fd-bb17-ddf11c0c5186" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA89E82599", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8d7f-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "8512d35a-5846-45fd-bb17-ddf11c0c5186" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseerror183883d4622ad0f2624f?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce34d0f6-97bf-4daf-bba8-ae93c7f9a377" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "InvalidHeaderValue", + "retry-after" : "0", + "Content-Length" : "321", + "StatusCode" : "400", + "x-ms-request-id" : "dc6f8d94-e01e-007c-10d3-90d34f000000", + "Body" : "InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format.\nRequestId:dc6f8d94-e01e-007c-10d3-90d34f000000\nTime:2019-11-01T16:42:52.5795678Zx-ms-lease-idid", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "ce34d0f6-97bf-4daf-bba8-ae93c7f9a377", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleaseerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5094032f-dad4-4c99-8f67-c345d33838ab" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8d9e-e01e-007c-1ad3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseerrorjtfsrenewfilesystemleaseerror006458b45da644a9fb4dFri, 01 Nov 2019 16:42:52 GMT\"0x8D75EEA89E82599\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "5094032f-dad4-4c99-8f67-c345d33838ab", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleaseerror006458b45da644a9fb4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "926cac06-4700-4f8d-96e0-52a03e02df12" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8db2-e01e-007c-2ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:52 GMT", + "x-ms-client-request-id" : "926cac06-4700-4f8d-96e0-52a03e02df12" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleaseerror006458b45da644a9fb4d", "jtfsrenewfilesystemleaseerror183883d4622ad0f2624f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleasemin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleasemin.json new file mode 100644 index 0000000000000..af20a7d851e6c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/LeaseAPITestrenewfilesystemleasemin.json @@ -0,0 +1,131 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleasemin001150dd5712b13201407?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d250c434-3874-4ba0-8dda-6883a6a24a8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA887035FC", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f89eb-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "d250c434-3874-4ba0-8dda-6883a6a24a8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleasemin001150dd5712b13201407?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "089258fb-e213-417b-996c-f65b6627599c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA887035FC", + "x-ms-lease-id" : "3923729c-8b48-46f5-972d-062e67b0a99b", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6f8a06-e01e-007c-4ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "089258fb-e213-417b-996c-f65b6627599c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleasemin001150dd5712b13201407?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9474dc11-ae2e-4559-8024-305cf9947651" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA887035FC", + "x-ms-lease-id" : "3923729c-8b48-46f5-972d-062e67b0a99b", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8a1e-e01e-007c-66d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "9474dc11-ae2e-4559-8024-305cf9947651" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsrenewfilesystemleasemin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54033937-fa12-4242-acae-2b8f3495aca2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6f8a35-e01e-007c-7dd3-90d34f000000", + "Body" : "jtfsrenewfilesystemleaseminjtfsrenewfilesystemleasemin001150dd5712b13201407Fri, 01 Nov 2019 16:42:50 GMT\"0x8D75EEA887035FC\"lockedleasedinfinite$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "54033937-fa12-4242-acae-2b8f3495aca2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleasemin001150dd5712b13201407?comp=lease&restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3ff1b5a0-93d3-413b-b250-0be854e06175" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA887035FC", + "x-ms-lease-time" : "0", + "Last-Modified" : "Fri, 01 Nov 2019 16:42:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8a48-e01e-007c-10d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "3ff1b5a0-93d3-413b-b250-0be854e06175" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsrenewfilesystemleasemin001150dd5712b13201407?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afe4497e-969a-40d7-a5f5-d3524e725292" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6f8a59-e01e-007c-20d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:42:50 GMT", + "x-ms-client-request-id" : "afe4497e-969a-40d7-a5f5-d3524e725292" + }, + "Exception" : null + } ], + "variables" : [ "jtfsrenewfilesystemleasemin001150dd5712b13201407" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworkcreatefilesystemfails.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworkcreatefilesystemfails.json new file mode 100644 index 0000000000000..58c2710bd90db --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworkcreatefilesystemfails.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemfails080155720eb17?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2bfab773-8855-435f-823f-40ad1a398d8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1FBB42A4", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fae3-701e-0097-01d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "2bfab773-8855-435f-823f-40ad1a398d8c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemfails154188bd1b9fd?restype=container&sv=2019-02-02&ss=b&srt=sco&se=2019-11-02T16%3A39%3A54Z&sp=r&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e52d2689-4332-48c7-9ff4-12b72160ca32" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthorizationPermissionMismatch", + "retry-after" : "0", + "Content-Length" : "279", + "StatusCode" : "403", + "x-ms-request-id" : "b520fb00-701e-0097-1dd2-902db3000000", + "Body" : "AuthorizationPermissionMismatchThis request is not authorized to perform this operation using this permission.\nRequestId:b520fb00-701e-0097-1dd2-902db3000000\nTime:2019-11-01T16:39:54.4519136Z", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "e52d2689-4332-48c7-9ff4-12b72160ca32", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsaccountsasnetworkcreatefilesystemfails&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "461c2f0c-2ac1-4bd0-adb0-ecde38722e75" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fb12-701e-0097-2ed2-902db3000000", + "Body" : "jtfsaccountsasnetworkcreatefilesystemfailsjtfsaccountsasnetworkcreatefilesystemfails080155720eb17Fri, 01 Nov 2019 16:39:54 GMT\"0x8D75EEA1FBB42A4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "461c2f0c-2ac1-4bd0-adb0-ecde38722e75", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemfails080155720eb17?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f00059f1-fca7-4f8d-8614-096f00ce897e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fb2f-701e-0097-44d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "f00059f1-fca7-4f8d-8614-096f00ce897e" + }, + "Exception" : null + } ], + "variables" : [ "jtfsaccountsasnetworkcreatefilesystemfails080155720eb17", "2019-11-01T16:39:54.413Z", "jtfsaccountsasnetworkcreatefilesystemfails154188bd1b9fd" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworkcreatefilesystemsucceeds.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworkcreatefilesystemsucceeds.json new file mode 100644 index 0000000000000..86ec0c5475d82 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworkcreatefilesystemsucceeds.json @@ -0,0 +1,105 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemsucceeds099875f5e7f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "26f18aee-74f7-46e6-b1ad-e266e2c557b6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1FDD289F", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fb4d-701e-0097-61d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "26f18aee-74f7-46e6-b1ad-e266e2c557b6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemsucceeds1858371cc775?restype=container&sv=2019-02-02&ss=b&srt=sco&se=2019-11-02T16%3A39%3A54Z&sp=rc&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2585ac2b-bc02-4638-8950-32a48e3a9611" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1FE6C74A", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fb69-701e-0097-7bd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "2585ac2b-bc02-4638-8950-32a48e3a9611" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsaccountsasnetworkcreatefilesystemsucceeds&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db324899-f750-4d78-85d0-228749be53dc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fb84-701e-0097-13d2-902db3000000", + "Body" : "jtfsaccountsasnetworkcreatefilesystemsucceedsjtfsaccountsasnetworkcreatefilesystemsucceeds099875f5e7f7Fri, 01 Nov 2019 16:39:54 GMT\"0x8D75EEA1FDD289F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfsaccountsasnetworkcreatefilesystemsucceeds1858371cc775Fri, 01 Nov 2019 16:39:54 GMT\"0x8D75EEA1FE6C74A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "db324899-f750-4d78-85d0-228749be53dc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemsucceeds099875f5e7f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6e14ed5c-8ff7-4051-bfb8-292bec753adf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fb97-701e-0097-23d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "6e14ed5c-8ff7-4051-bfb8-292bec753adf" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworkcreatefilesystemsucceeds1858371cc775?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36eedfa2-3f72-48b1-ac9b-9f5b8a719b60" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fbb3-701e-0097-3dd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "36eedfa2-3f72-48b1-ac9b-9f5b8a719b60" + }, + "Exception" : null + } ], + "variables" : [ "jtfsaccountsasnetworkcreatefilesystemsucceeds099875f5e7f7", "2019-11-01T16:39:54.641Z", "jtfsaccountsasnetworkcreatefilesystemsucceeds1858371cc775" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworktestfiledeletefails.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworktestfiledeletefails.json new file mode 100644 index 0000000000000..6ece95bb7d32f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworktestfiledeletefails.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworktestfiledeletefails001012aa90ce9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b242ce2e-9549-4681-9cc5-a9c347d34c9a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1F911DCD", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fa30-701e-0097-55d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "b242ce2e-9549-4681-9cc5-a9c347d34c9a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsaccountsasnetworktestfiledeletefails001012aa90ce9f/javapathaccountsasnetworktestfiledeletefails117284d51493?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d57272e4-01bb-48af-94ab-1e7e4a4dbdb3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1F9B188A", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3074d95b-a01f-003f-3fd2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "d57272e4-01bb-48af-94ab-1e7e4a4dbdb3" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsaccountsasnetworktestfiledeletefails001012aa90ce9f/javapathaccountsasnetworktestfiledeletefails117284d51493?sv=2019-02-02&ss=b&srt=sco&se=2019-11-02T16%3A39%3A54Z&sp=r&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4fc356b9-7e71-4213-8644-140d1aeb2c9a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "AuthorizationPermissionMismatch", + "retry-after" : "0", + "Content-Length" : "227", + "StatusCode" : "403", + "x-ms-request-id" : "3074d95c-a01f-003f-40d2-90f9a6000000", + "Body" : "{\"error\":{\"code\":\"AuthorizationPermissionMismatch\",\"message\":\"This request is not authorized to perform this operation using this permission.\\nRequestId:3074d95c-a01f-003f-40d2-90f9a6000000\\nTime:2019-11-01T16:39:54.2298369Z\"}}", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "4fc356b9-7e71-4213-8644-140d1aeb2c9a", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsaccountsasnetworktestfiledeletefails&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ac22c5d8-109d-43f6-bdb5-107540a18439" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fa99-701e-0097-38d2-902db3000000", + "Body" : "jtfsaccountsasnetworktestfiledeletefailsjtfsaccountsasnetworktestfiledeletefails001012aa90ce9fFri, 01 Nov 2019 16:39:54 GMT\"0x8D75EEA1F911DCD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "ac22c5d8-109d-43f6-bdb5-107540a18439", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworktestfiledeletefails001012aa90ce9f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1096bfa9-360f-41ee-b876-10bf155b1d9b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520faba-701e-0097-58d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "1096bfa9-360f-41ee-b876-10bf155b1d9b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsaccountsasnetworktestfiledeletefails001012aa90ce9f", "javapathaccountsasnetworktestfiledeletefails117284d51493", "2019-11-01T16:39:54.192Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworktestfileread.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworktestfileread.json new file mode 100644 index 0000000000000..ad4d8521327ca --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestaccountsasnetworktestfileread.json @@ -0,0 +1,158 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworktestfileread063774bc3e30ccc081?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0eadffed-104e-4db1-90fb-3a8794d698e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1F495981", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520f918-701e-0097-51d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "0eadffed-104e-4db1-90fb-3a8794d698e5" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsaccountsasnetworktestfileread063774bc3e30ccc081/javapathaccountsasnetworktestfileread1217387f91607bfd?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fd5f646e-235b-4cbb-b46a-97afbcf82b2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1F53A556", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3074d958-a01f-003f-3cd2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "fd5f646e-235b-4cbb-b46a-97afbcf82b2a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsaccountsasnetworktestfileread063774bc3e30ccc081/javapathaccountsasnetworktestfileread1217387f91607bfd?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "001afafc-fd7d-4345-a37a-d5688a718f26", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "3074d959-a01f-003f-3dd2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "001afafc-fd7d-4345-a37a-d5688a718f26" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsaccountsasnetworktestfileread063774bc3e30ccc081/javapathaccountsasnetworktestfileread1217387f91607bfd?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5dc6b6a4-6d25-494a-9018-1d68d229125b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1F63E895", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "3074d95a-a01f-003f-3ed2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "5dc6b6a4-6d25-494a-9018-1d68d229125b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworktestfileread063774bc3e30ccc081/javapathaccountsasnetworktestfileread1217387f91607bfd?sv=2019-02-02&ss=b&srt=sco&se=2019-11-02T16%3A39%3A53Z&sp=r&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4cbf3ae-f15d-4c6c-89c1-0b299281eb3f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:53 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D75EEA1F63E895", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:39:53 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b520f9cf-701e-0097-7ad2-902db3000000", + "Body" : "[100, 101, 102, 97, 117, 108, 116]", + "x-ms-client-request-id" : "a4cbf3ae-f15d-4c6c-89c1-0b299281eb3f", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsaccountsasnetworktestfileread&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3935d246-5da8-4626-bd1f-e3afaf60513c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f9f0-701e-0097-19d2-902db3000000", + "Body" : "jtfsaccountsasnetworktestfilereadjtfsaccountsasnetworktestfileread063774bc3e30ccc081Fri, 01 Nov 2019 16:39:53 GMT\"0x8D75EEA1F495981\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "3935d246-5da8-4626-bd1f-e3afaf60513c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsaccountsasnetworktestfileread063774bc3e30ccc081?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2d584296-7f4f-43bc-98af-713dcdf9ca96" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fa01-701e-0097-29d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "2d584296-7f4f-43bc-98af-713dcdf9ca96" + }, + "Exception" : null + } ], + "variables" : [ "jtfsaccountsasnetworktestfileread063774bc3e30ccc081", "javapathaccountsasnetworktestfileread1217387f91607bfd", "2019-11-01T16:39:53.844Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[0].json new file mode 100644 index 0000000000000..8105c148393c5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerange0sastestfilerangebdd94165687b4b702c90?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "fc4556dd-d619-4a76-a267-4e4d1b15be39" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1BBAACC3", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520ecd5-701e-0097-23d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:47 GMT", + "x-ms-client-request-id" : "fc4556dd-d619-4a76-a267-4e4d1b15be39" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilerange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8b0af2d6-c419-46a5-9058-f0a9718d7fa2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520eded-701e-0097-1ed2-902db3000000", + "Body" : "jtfsfilerangejtfsfilerange0sastestfilerangebdd94165687b4b702c90Fri, 01 Nov 2019 16:39:47 GMT\"0x8D75EEA1BBAACC3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:47 GMT", + "x-ms-client-request-id" : "8b0af2d6-c419-46a5-9058-f0a9718d7fa2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerange0sastestfilerangebdd94165687b4b702c90?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7af308ee-2a52-40bc-89f4-dd2fe17074eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520ee48-701e-0097-76d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:47 GMT", + "x-ms-client-request-id" : "7af308ee-2a52-40bc-89f4-dd2fe17074eb" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilerange0sastestfilerangebdd94165687b4b702c90" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[1].json new file mode 100644 index 0000000000000..f91856668201f --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerange0sastestfilerange12408533a832bb853343?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2312b905-4a65-41a8-a311-d4fe84333130" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1C1D02B9", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520ee6a-701e-0097-17d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "2312b905-4a65-41a8-a311-d4fe84333130" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilerange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2144112e-f1cb-4f17-af7f-a498c064764d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520ef10-701e-0097-2cd2-902db3000000", + "Body" : "jtfsfilerangejtfsfilerange0sastestfilerange12408533a832bb853343Fri, 01 Nov 2019 16:39:48 GMT\"0x8D75EEA1C1D02B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "2144112e-f1cb-4f17-af7f-a498c064764d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerange0sastestfilerange12408533a832bb853343?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b9e5d8e5-742c-46f0-be31-fe4ae732bef5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520ef1e-701e-0097-3ad2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "b9e5d8e5-742c-46f0-be31-fe4ae732bef5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilerange0sastestfilerange12408533a832bb853343" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[2].json new file mode 100644 index 0000000000000..f49c810b9ff3d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerange[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerange0sastestfilerange58d622718597c9070c30?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c870207c-7a1c-423e-8ef0-7269910b43da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1C5ED282", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520ef40-701e-0097-59d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "c870207c-7a1c-423e-8ef0-7269910b43da" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilerange&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5893e7fa-200f-42de-a502-262e446b12ac" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520ef76-701e-0097-0bd2-902db3000000", + "Body" : "jtfsfilerangejtfsfilerange0sastestfilerange58d622718597c9070c30Fri, 01 Nov 2019 16:39:48 GMT\"0x8D75EEA1C5ED282\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "5893e7fa-200f-42de-a502-262e446b12ac", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerange0sastestfilerange58d622718597c9070c30?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef0e950b-7f67-457a-8e6f-035fb55620ce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520ef8b-701e-0097-1fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "ef0e950b-7f67-457a-8e6f-035fb55620ce" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilerange0sastestfilerange58d622718597c9070c30" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerangeia[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerangeia[0].json new file mode 100644 index 0000000000000..cd07f6d41d588 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerangeia[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerangeia0sastestfilerangeia94c1962980ca9970eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "21e07bff-865f-4d92-a873-ec18f3eaf713" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1C81CA1E", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520efa6-701e-0097-38d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "21e07bff-865f-4d92-a873-ec18f3eaf713" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b4bec743-20f4-43b7-9bd6-dbcedeaa3496" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f006-701e-0097-11d2-902db3000000", + "Body" : "jtfsfilerangeiajtfsfilerangeia0sastestfilerangeia94c1962980ca9970ebFri, 01 Nov 2019 16:39:48 GMT\"0x8D75EEA1C81CA1E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "b4bec743-20f4-43b7-9bd6-dbcedeaa3496", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerangeia0sastestfilerangeia94c1962980ca9970eb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c186c85e-1303-4487-80e5-cd56d799c015" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520f01e-701e-0097-26d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:48 GMT", + "x-ms-client-request-id" : "c186c85e-1303-4487-80e5-cd56d799c015" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilerangeia0sastestfilerangeia94c1962980ca9970eb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerangeia[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerangeia[1].json new file mode 100644 index 0000000000000..826ceaf40bb37 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilerangeia[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerangeia0sastestfilerangeiad887410668f058f310?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c9f16230-6442-46b1-8191-ae79b41c4794" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1CAC160C", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520f038-701e-0097-3cd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:49 GMT", + "x-ms-client-request-id" : "c9f16230-6442-46b1-8191-ae79b41c4794" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilerangeia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "917e78df-a5d7-4baf-8feb-95e685266c9d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f13a-701e-0097-2dd2-902db3000000", + "Body" : "jtfsfilerangeiajtfsfilerangeia0sastestfilerangeiad887410668f058f310Fri, 01 Nov 2019 16:39:49 GMT\"0x8D75EEA1CAC160C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:49 GMT", + "x-ms-client-request-id" : "917e78df-a5d7-4baf-8feb-95e685266c9d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilerangeia0sastestfilerangeiad887410668f058f310?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ef397a9d-84e9-413d-95d1-d46932cfb674" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520f14e-701e-0097-3fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:49 GMT", + "x-ms-client-request-id" : "ef397a9d-84e9-413d-95d1-d46932cfb674" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilerangeia0sastestfilerangeiad887410668f058f310" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[0].json new file mode 100644 index 0000000000000..d308604d28d67 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse04634890dfddfdc6e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4715593e-6313-43f1-9c25-49164eb5a67d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2522D556", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210c41-701e-0097-1fd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "4715593e-6313-43f1-9c25-49164eb5a67d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "58ebb282-9c73-49e0-bfdb-87689bee47a1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210c76-701e-0097-4fd3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse04634890dfddfdc6e9Fri, 01 Nov 2019 16:40:03 GMT\"0x8D75EEA2522D556\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "58ebb282-9c73-49e0-bfdb-87689bee47a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse04634890dfddfdc6e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d34e1d39-a7d4-4113-91d1-53cd758e5adc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210c96-701e-0097-6dd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "d34e1d39-a7d4-4113-91d1-53cd758e5adc" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse04634890dfddfdc6e9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[1].json new file mode 100644 index 0000000000000..948e33e00e1ec --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse0621708616a10fd2cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e421cadd-83bc-466f-923a-10576d845257" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA253D18D5", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210cdb-701e-0097-28d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "e421cadd-83bc-466f-923a-10576d845257" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80d65a59-0987-439b-a3a7-961e15f80ac7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210d07-701e-0097-50d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse0621708616a10fd2cbFri, 01 Nov 2019 16:40:03 GMT\"0x8D75EEA253D18D5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "80d65a59-0987-439b-a3a7-961e15f80ac7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse0621708616a10fd2cb?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2b30e3d2-bffd-49e2-9c92-cdff150f7655" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210d28-701e-0097-6cd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "2b30e3d2-bffd-49e2-9c92-cdff150f7655" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse0621708616a10fd2cb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[2].json new file mode 100644 index 0000000000000..276cc321a507d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse04858460d9f0f32d60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d5117aa3-a16b-4d70-b390-64657b19b9e6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA25581FDB", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210d51-701e-0097-10d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "d5117aa3-a16b-4d70-b390-64657b19b9e6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "efe617b0-b750-466a-a71f-22951ba5d60a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210d82-701e-0097-3ad3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse04858460d9f0f32d60Fri, 01 Nov 2019 16:40:03 GMT\"0x8D75EEA25581FDB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "efe617b0-b750-466a-a71f-22951ba5d60a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse04858460d9f0f32d60?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "097255ee-2563-407e-8e40-5eb6b13e4fbc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210dac-701e-0097-5cd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "097255ee-2563-407e-8e40-5eb6b13e4fbc" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse04858460d9f0f32d60" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[3].json new file mode 100644 index 0000000000000..01790ab0e7112 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[3].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse007858f6de7a082842?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6657b5ad-21a2-4626-ae47-cb69bd947ed5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA257682FF", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210dd7-701e-0097-06d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "6657b5ad-21a2-4626-ae47-cb69bd947ed5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "37693ee0-2292-4218-8901-d678c8c0485b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210dfd-701e-0097-27d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse007858f6de7a082842Fri, 01 Nov 2019 16:40:04 GMT\"0x8D75EEA257682FF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "37693ee0-2292-4218-8901-d678c8c0485b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse007858f6de7a082842?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82b5876b-e869-436d-9492-d67b9c526824" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210e1b-701e-0097-41d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "82b5876b-e869-436d-9492-d67b9c526824" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse007858f6de7a082842" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[4].json new file mode 100644 index 0000000000000..5ff54f1144578 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[4].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse051076853d81e60c3f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "00a60233-5920-4a7d-9888-e3adb119ed95" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA25902A53", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210e49-701e-0097-6dd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "00a60233-5920-4a7d-9888-e3adb119ed95" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8fde327f-db06-4f8f-9299-709b31eb003d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210e69-701e-0097-0bd3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse051076853d81e60c3fFri, 01 Nov 2019 16:40:04 GMT\"0x8D75EEA25902A53\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "8fde327f-db06-4f8f-9299-709b31eb003d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse051076853d81e60c3f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6503ad1-9f8a-431b-865a-769617c3dcf4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210e81-701e-0097-21d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "f6503ad1-9f8a-431b-865a-769617c3dcf4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse051076853d81e60c3f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[5].json new file mode 100644 index 0000000000000..8a0440afb833d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[5].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse074162166f5367ddcf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "52427c53-8373-4bf2-a128-f9f543c1e658" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA25ABA6BF", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210ea4-701e-0097-3cd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "52427c53-8373-4bf2-a128-f9f543c1e658" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d28645ea-34b3-48ff-af6d-bec9a7eedd35" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210ec5-701e-0097-5bd3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse074162166f5367ddcfFri, 01 Nov 2019 16:40:04 GMT\"0x8D75EEA25ABA6BF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:03 GMT", + "x-ms-client-request-id" : "d28645ea-34b3-48ff-af6d-bec9a7eedd35", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse074162166f5367ddcf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec195219-38d5-45a9-af9b-afb44e329548" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210eeb-701e-0097-7ed3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "ec195219-38d5-45a9-af9b-afb44e329548" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse074162166f5367ddcf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[6].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[6].json new file mode 100644 index 0000000000000..f9e629bc23ef3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[6].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse0459330cb56d016b78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0ecd2d2f-69ce-42b6-bd2c-cb4bf966c873" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA25C52700", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210f11-701e-0097-1dd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "0ecd2d2f-69ce-42b6-bd2c-cb4bf966c873" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da2a8d34-c4ff-4a2d-b919-1f016603c80b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210f77-701e-0097-7bd3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse0459330cb56d016b78Fri, 01 Nov 2019 16:40:04 GMT\"0x8D75EEA25C52700\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "da2a8d34-c4ff-4a2d-b919-1f016603c80b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse0459330cb56d016b78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cf62ec48-c593-40be-b082-c945b8d6f408" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210f89-701e-0097-0bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "cf62ec48-c593-40be-b082-c945b8d6f408" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse0459330cb56d016b78" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[7].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[7].json new file mode 100644 index 0000000000000..e228adaa9a45b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparse[7].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse06108076481c26bf78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1e0cb203-9ca4-4c33-9ea3-c97ef6a4ec7b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA25ECB38F", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210fbe-701e-0097-38d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "1e0cb203-9ca4-4c33-9ea3-c97ef6a4ec7b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cebf66d0-bda4-4e2c-a9ce-d36848810286" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210ff1-701e-0097-63d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparsejtfsfilesystemsaspermissionparse06108076481c26bf78Fri, 01 Nov 2019 16:40:04 GMT\"0x8D75EEA25ECB38F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "cebf66d0-bda4-4e2c-a9ce-d36848810286", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparse06108076481c26bf78?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30d5bfb3-e8db-4ff3-a901-1bada96305ce" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5211011-701e-0097-80d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "30d5bfb3-e8db-4ff3-a901-1bada96305ce" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparse06108076481c26bf78" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparseia.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparseia.json new file mode 100644 index 0000000000000..9a7332c06f83d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissionparseia.json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparseia011805cf4c4727417?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f280312a-ebd3-49a2-afe2-e929d4d7c48a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA26076C59", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521103f-701e-0097-27d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "f280312a-ebd3-49a2-afe2-e929d4d7c48a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissionparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b872bb9-09f9-4e4b-8b84-0962f06db384" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b521105c-701e-0097-42d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissionparseiajtfsfilesystemsaspermissionparseia011805cf4c4727417Fri, 01 Nov 2019 16:40:04 GMT\"0x8D75EEA26076C59\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "3b872bb9-09f9-4e4b-8b84-0962f06db384", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissionparseia011805cf4c4727417?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23aae34e-cddb-45da-8e79-b0bcc52398f2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5211071-701e-0097-57d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:04 GMT", + "x-ms-client-request-id" : "23aae34e-cddb-45da-8e79-b0bcc52398f2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissionparseia011805cf4c4727417" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[0].json new file mode 100644 index 0000000000000..eb07b1a7d87ed --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring07531143d7512b0f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "85eabc83-4091-4dc4-b3cf-80a575b85848" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2442AD3C", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210956-701e-0097-0ed3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "85eabc83-4091-4dc4-b3cf-80a575b85848" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "427be6f2-945a-4d51-ad4d-a3684d7a8d5d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210987-701e-0097-39d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring07531143d7512b0f1Fri, 01 Nov 2019 16:40:01 GMT\"0x8D75EEA2442AD3C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "427be6f2-945a-4d51-ad4d-a3684d7a8d5d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring07531143d7512b0f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b68416cd-b0d8-4069-99d1-41caeb10d67a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52109a0-701e-0097-4ed3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "b68416cd-b0d8-4069-99d1-41caeb10d67a" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring07531143d7512b0f1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[1].json new file mode 100644 index 0000000000000..a2fe8aa81d7aa --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring0784696a8aeb5e2ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "43f755b2-e508-4ce3-80af-1985dbaa3dc2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA246B2416", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52109bb-701e-0097-66d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "43f755b2-e508-4ce3-80af-1985dbaa3dc2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "865c4ede-8193-48e6-92b9-f276037688d1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52109d7-701e-0097-7ed3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring0784696a8aeb5e2efFri, 01 Nov 2019 16:40:02 GMT\"0x8D75EEA246B2416\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "865c4ede-8193-48e6-92b9-f276037688d1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring0784696a8aeb5e2ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20281d1c-081b-4a5b-bb32-c9e971567054" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52109e7-701e-0097-0bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "20281d1c-081b-4a5b-bb32-c9e971567054" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring0784696a8aeb5e2ef" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[2].json new file mode 100644 index 0000000000000..44b07b36cee6a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring025082995c23cb12d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6713cc76-0297-4814-93d2-75558dea9c94" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA24884E46", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210a12-701e-0097-31d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "6713cc76-0297-4814-93d2-75558dea9c94" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1ccda68d-e52d-4c84-b2b7-92d552c862f9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210a2b-701e-0097-46d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring025082995c23cb12dFri, 01 Nov 2019 16:40:02 GMT\"0x8D75EEA24884E46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "1ccda68d-e52d-4c84-b2b7-92d552c862f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring025082995c23cb12d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4de863b-593d-4d29-9f43-b168f4788056" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210a45-701e-0097-60d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "d4de863b-593d-4d29-9f43-b168f4788056" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring025082995c23cb12d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[3].json new file mode 100644 index 0000000000000..3818c45856075 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[3].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring066934bef27715a4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cc41f090-6f1b-47b6-b831-05489b134f08" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA24A291BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210a6d-701e-0097-04d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "cc41f090-6f1b-47b6-b831-05489b134f08" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d598f77f-403c-4ced-8311-a48d01eace40" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210abc-701e-0097-44d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring066934bef27715a4dFri, 01 Nov 2019 16:40:02 GMT\"0x8D75EEA24A291BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "d598f77f-403c-4ced-8311-a48d01eace40", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring066934bef27715a4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1a34ad4e-b291-4720-8633-867e8346ace3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210ad6-701e-0097-5bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "1a34ad4e-b291-4720-8633-867e8346ace3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring066934bef27715a4d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[4].json new file mode 100644 index 0000000000000..c7b9401be4057 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[4].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring0549119c2ba0a131e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4311c1f8-8877-442a-a578-f25f56b750ac" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA24CE1663", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210af8-701e-0097-7bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "4311c1f8-8877-442a-a578-f25f56b750ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04394b71-60f6-4b49-9004-c1f9f313c990" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210b14-701e-0097-14d3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring0549119c2ba0a131eFri, 01 Nov 2019 16:40:02 GMT\"0x8D75EEA24CE1663\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "04394b71-60f6-4b49-9004-c1f9f313c990", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring0549119c2ba0a131e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "42ae4a8d-9e94-46c3-b86d-f728dbb13a59" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210b2d-701e-0097-28d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "42ae4a8d-9e94-46c3-b86d-f728dbb13a59" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring0549119c2ba0a131e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[5].json new file mode 100644 index 0000000000000..17262a1d73594 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[5].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring04104239b95a5fca7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a7770abf-9ae9-4f6b-97db-ee13c82d3c2a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA24E832C6", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210b4c-701e-0097-43d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "a7770abf-9ae9-4f6b-97db-ee13c82d3c2a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e1e38dcb-aca7-4a4f-808d-561f649c57b1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210b7d-701e-0097-6ed3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring04104239b95a5fca7Fri, 01 Nov 2019 16:40:03 GMT\"0x8D75EEA24E832C6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "e1e38dcb-aca7-4a4f-808d-561f649c57b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring04104239b95a5fca7?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b25a6142-327c-4f52-b451-501fed6c372c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210b94-701e-0097-04d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "b25a6142-327c-4f52-b451-501fed6c372c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring04104239b95a5fca7" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[6].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[6].json new file mode 100644 index 0000000000000..441a80fa5be4c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestfilesystemsaspermissiontostring[6].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring075424f8e11b21398?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5834a86-7793-4c98-ae57-ed97812c02e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2507F583", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210bcd-701e-0097-36d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "f5834a86-7793-4c98-ae57-ed97812c02e7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsfilesystemsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2050af5d-a6fb-4f82-9561-ba02cf81fd52" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210bf7-701e-0097-5dd3-902db3000000", + "Body" : "jtfsfilesystemsaspermissiontostringjtfsfilesystemsaspermissiontostring075424f8e11b21398Fri, 01 Nov 2019 16:40:03 GMT\"0x8D75EEA2507F583\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "2050af5d-a6fb-4f82-9561-ba02cf81fd52", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsfilesystemsaspermissiontostring075424f8e11b21398?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61c836f9-8746-4a3b-a801-fb8ca48a19a6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210c17-701e-0097-79d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:02 GMT", + "x-ms-client-request-id" : "61c836f9-8746-4a3b-a801-fb8ca48a19a6" + }, + "Exception" : null + } ], + "variables" : [ "jtfsfilesystemsaspermissiontostring075424f8e11b21398" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[0].json new file mode 100644 index 0000000000000..1d6c084356d2e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse055236cc7e9f053022426?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4d9d4f70-7dc6-4b43-9817-112dfdb8aa6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA23632177", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521069d-701e-0097-26d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "4d9d4f70-7dc6-4b43-9817-112dfdb8aa6b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3836c180-516a-4339-ae9e-1811a87cf164" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52106c8-701e-0097-4dd3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse055236cc7e9f053022426Fri, 01 Nov 2019 16:40:00 GMT\"0x8D75EEA23632177\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "3836c180-516a-4339-ae9e-1811a87cf164", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse055236cc7e9f053022426?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "930a819d-487f-4d47-bacb-232bdf157718" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52106dc-701e-0097-5ed3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "930a819d-487f-4d47-bacb-232bdf157718" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse055236cc7e9f053022426" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[1].json new file mode 100644 index 0000000000000..70d59d9ece8dc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse060344a8744378fbc0403?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "77c072ab-0f48-49fd-a12a-00f49183b185" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA238555A0", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52106f5-701e-0097-71d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "77c072ab-0f48-49fd-a12a-00f49183b185" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "99298d84-5735-415c-b553-c9246576369b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b521070a-701e-0097-03d3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse060344a8744378fbc0403Fri, 01 Nov 2019 16:40:00 GMT\"0x8D75EEA238555A0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "99298d84-5735-415c-b553-c9246576369b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse060344a8744378fbc0403?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba21ab9c-8bdc-4a02-8788-744ba774a675" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210719-701e-0097-11d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "ba21ab9c-8bdc-4a02-8788-744ba774a675" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse060344a8744378fbc0403" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[2].json new file mode 100644 index 0000000000000..a1167c4c6eec8 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse000545eca66af2743e43d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db65a5a9-4e43-4d2c-9410-c23fa7962c67" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA239E394B", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210732-701e-0097-29d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "db65a5a9-4e43-4d2c-9410-c23fa7962c67" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f4fbc234-f18e-4ba4-aaec-2ea700c56be4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210751-701e-0097-45d3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse000545eca66af2743e43dFri, 01 Nov 2019 16:40:00 GMT\"0x8D75EEA239E394B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "f4fbc234-f18e-4ba4-aaec-2ea700c56be4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse000545eca66af2743e43d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "de524333-8476-43ee-88b0-dce574dab9ef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210768-701e-0097-5bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "de524333-8476-43ee-88b0-dce574dab9ef" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse000545eca66af2743e43d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[3].json new file mode 100644 index 0000000000000..86537997305ea --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[3].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse00150332d6c9f05ff9445?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1d7a60d5-9150-4b3b-8ae4-a90da0e4c9db" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA23B71CF6", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521079d-701e-0097-0bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "1d7a60d5-9150-4b3b-8ae4-a90da0e4c9db" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "66677d17-471d-4d89-b502-179dffa43413" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52107b9-701e-0097-23d3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse00150332d6c9f05ff9445Fri, 01 Nov 2019 16:40:01 GMT\"0x8D75EEA23B71CF6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "66677d17-471d-4d89-b502-179dffa43413", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse00150332d6c9f05ff9445?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "721593c6-9db0-4c1a-9a88-292f35e99d8c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52107c8-701e-0097-31d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "721593c6-9db0-4c1a-9a88-292f35e99d8c" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse00150332d6c9f05ff9445" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[4].json new file mode 100644 index 0000000000000..17d608728a924 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[4].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse0267494fc6e214e1bf449?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9bc9b06b-0c51-4872-83e4-e3adfd18ae70" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA23D04ED0", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52107e3-701e-0097-4ad3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "9bc9b06b-0c51-4872-83e4-e3adfd18ae70" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86f4035c-5f6d-4800-b2dd-7dd8d21efd12" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52107fe-701e-0097-62d3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse0267494fc6e214e1bf449Fri, 01 Nov 2019 16:40:01 GMT\"0x8D75EEA23D04ED0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "86f4035c-5f6d-4800-b2dd-7dd8d21efd12", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse0267494fc6e214e1bf449?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ba0980f7-9ebf-41c9-82c9-54bdcbc5315e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b521081c-701e-0097-7bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "ba0980f7-9ebf-41c9-82c9-54bdcbc5315e" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse0267494fc6e214e1bf449" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[5].json new file mode 100644 index 0000000000000..29cfef3c9d399 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[5].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse000107017cedecc0bd476?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "970b7438-7d8f-443e-81b7-11783a4279dd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA23F6F095", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521085a-701e-0097-32d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "970b7438-7d8f-443e-81b7-11783a4279dd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a636b29-2e65-422c-8b22-07f26b74b670" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210875-701e-0097-4ad3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse000107017cedecc0bd476Fri, 01 Nov 2019 16:40:01 GMT\"0x8D75EEA23F6F095\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "9a636b29-2e65-422c-8b22-07f26b74b670", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse000107017cedecc0bd476?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e60a63e-af52-4946-a7e6-5d08d383a09e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b521088e-701e-0097-60d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "0e60a63e-af52-4946-a7e6-5d08d383a09e" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse000107017cedecc0bd476" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[6].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[6].json new file mode 100644 index 0000000000000..596b3a36c1d01 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparse[6].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse033962133d8b2e382f464?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20b1d36a-ff50-4f2c-b481-e15186915259" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA240FFB53", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52108a0-701e-0097-70d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "20b1d36a-ff50-4f2c-b481-e15186915259" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparse&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e9e6187-1199-4a98-91a8-e09ec56a48a4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52108c9-701e-0097-11d3-902db3000000", + "Body" : "jtfspathsaspermissionparsejtfspathsaspermissionparse033962133d8b2e382f464Fri, 01 Nov 2019 16:40:01 GMT\"0x8D75EEA240FFB53\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "7e9e6187-1199-4a98-91a8-e09ec56a48a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparse033962133d8b2e382f464?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8dc81d1c-8ad6-450b-ad33-76c118c34e18" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52108e0-701e-0097-27d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "8dc81d1c-8ad6-450b-ad33-76c118c34e18" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparse033962133d8b2e382f464" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparseia.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparseia.json new file mode 100644 index 0000000000000..1db03c2ddd6bd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissionparseia.json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparseia007554c30c4eb2282e4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b203474-8913-4ada-81d9-7d0c8eb59c31" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2428B7EB", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210903-701e-0097-48d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "9b203474-8913-4ada-81d9-7d0c8eb59c31" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissionparseia&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8ca6d0d-f128-4959-a258-33084be0c26f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210928-701e-0097-66d3-902db3000000", + "Body" : "jtfspathsaspermissionparseiajtfspathsaspermissionparseia007554c30c4eb2282e4eFri, 01 Nov 2019 16:40:01 GMT\"0x8D75EEA2428B7EB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "e8ca6d0d-f128-4959-a258-33084be0c26f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissionparseia007554c30c4eb2282e4e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "47595369-449f-4bec-ac07-049d8af75989" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210937-701e-0097-75d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:01 GMT", + "x-ms-client-request-id" : "47595369-449f-4bec-ac07-049d8af75989" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissionparseia007554c30c4eb2282e4e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[0].json new file mode 100644 index 0000000000000..7ca2e4f38e5af --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring01987059cf107cf7434e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "949ca8d7-5462-41b9-81d3-c2ae1bd24e23" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA22BBEDEB", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521046d-701e-0097-2bd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "949ca8d7-5462-41b9-81d3-c2ae1bd24e23" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e59ac04d-d765-4f7e-b902-970fce2da38f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52104c0-701e-0097-76d3-902db3000000", + "Body" : "jtfspathsaspermissiontostringjtfspathsaspermissiontostring01987059cf107cf7434eFri, 01 Nov 2019 16:39:59 GMT\"0x8D75EEA22BBEDEB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "e59ac04d-d765-4f7e-b902-970fce2da38f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring01987059cf107cf7434e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "be4d7073-39c6-44b0-a519-e6edeebbf4f9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52104e2-701e-0097-15d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "be4d7073-39c6-44b0-a519-e6edeebbf4f9" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissiontostring01987059cf107cf7434e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[1].json new file mode 100644 index 0000000000000..1e0de213fd645 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring0361931d6e1dfb4e6b4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c4736af9-8a30-4f12-9103-e47209e88cde" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA22E0E1B2", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52104f6-701e-0097-29d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "c4736af9-8a30-4f12-9103-e47209e88cde" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8f03d0e8-6465-4924-9780-36a68cfd42f0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210517-701e-0097-44d3-902db3000000", + "Body" : "jtfspathsaspermissiontostringjtfspathsaspermissiontostring0361931d6e1dfb4e6b4bFri, 01 Nov 2019 16:39:59 GMT\"0x8D75EEA22E0E1B2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "8f03d0e8-6465-4924-9780-36a68cfd42f0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring0361931d6e1dfb4e6b4b?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7e81de1-6982-42f2-ac2c-7cc2d56ce64c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210528-701e-0097-55d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "e7e81de1-6982-42f2-ac2c-7cc2d56ce64c" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissiontostring0361931d6e1dfb4e6b4b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[2].json new file mode 100644 index 0000000000000..79d15f44136f9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring03475360eabfb015ce4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cb6dbef8-4064-4137-83ed-588b53347494" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA22FAAFE8", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210547-701e-0097-73d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "cb6dbef8-4064-4137-83ed-588b53347494" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aaa48a6b-a55d-4eee-9cee-406b0a1d8f46" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b521055f-701e-0097-08d3-902db3000000", + "Body" : "jtfspathsaspermissiontostringjtfspathsaspermissiontostring03475360eabfb015ce4dFri, 01 Nov 2019 16:39:59 GMT\"0x8D75EEA22FAAFE8\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "aaa48a6b-a55d-4eee-9cee-406b0a1d8f46", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring03475360eabfb015ce4d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "406ae038-1fdf-401b-85b3-480ffdd49628" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210577-701e-0097-1dd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "406ae038-1fdf-401b-85b3-480ffdd49628" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissiontostring03475360eabfb015ce4d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[3].json new file mode 100644 index 0000000000000..69d39e2eb5aef --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[3].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring055360238572107a7146?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a0cb3b3-ea04-43c0-833f-e3d30dfc0781" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2315DDF1", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210591-701e-0097-35d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "6a0cb3b3-ea04-43c0-833f-e3d30dfc0781" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45d1ccdc-eb4a-4c61-9d98-195ba3bb39cd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52105ad-701e-0097-4bd3-902db3000000", + "Body" : "jtfspathsaspermissiontostringjtfspathsaspermissiontostring055360238572107a7146Fri, 01 Nov 2019 16:40:00 GMT\"0x8D75EEA2315DDF1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "45d1ccdc-eb4a-4c61-9d98-195ba3bb39cd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring055360238572107a7146?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f03f8783-2d22-4057-b588-563628446c6d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52105d0-701e-0097-6cd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "f03f8783-2d22-4057-b588-563628446c6d" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissiontostring055360238572107a7146" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[4].json new file mode 100644 index 0000000000000..0fadaaede8149 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[4].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring035129e2363e87c66445?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9b9d3e59-1875-4ce8-bd74-7cecc704fc2e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA232F36E2", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52105fe-701e-0097-16d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "9b9d3e59-1875-4ce8-bd74-7cecc704fc2e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1f2ec4f8-069e-44a5-a59f-40b5324ed4a8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b521061f-701e-0097-35d3-902db3000000", + "Body" : "jtfspathsaspermissiontostringjtfspathsaspermissiontostring035129e2363e87c66445Fri, 01 Nov 2019 16:40:00 GMT\"0x8D75EEA232F36E2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "1f2ec4f8-069e-44a5-a59f-40b5324ed4a8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring035129e2363e87c66445?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af72e9cf-0823-4d04-a417-6f2cfd1008e7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210635-701e-0097-48d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "af72e9cf-0823-4d04-a417-6f2cfd1008e7" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissiontostring035129e2363e87c66445" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[5].json new file mode 100644 index 0000000000000..eac1eacdf30c6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestpathsaspermissiontostring[5].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring063559c0c50fbee59b43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d8e4e24a-7974-4b72-b6a3-ee346448a17f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA23488FCE", + "Last-Modified" : "Fri, 01 Nov 2019 16:40:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210653-701e-0097-61d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "d8e4e24a-7974-4b72-b6a3-ee346448a17f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfspathsaspermissiontostring&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1f24870-9327-484a-ab34-9e62ff2995aa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210667-701e-0097-74d3-902db3000000", + "Body" : "jtfspathsaspermissiontostringjtfspathsaspermissiontostring063559c0c50fbee59b43Fri, 01 Nov 2019 16:40:00 GMT\"0x8D75EEA23488FCE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:59 GMT", + "x-ms-client-request-id" : "f1f24870-9327-484a-ab34-9e62ff2995aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfspathsaspermissiontostring063559c0c50fbee59b43?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e65367ca-9825-4a83-b1b7-babc34a3354f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210681-701e-0097-0dd3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:40:00 GMT", + "x-ms-client-request-id" : "e65367ca-9825-4a83-b1b7-babc34a3354f" + }, + "Exception" : null + } ], + "variables" : [ "jtfspathsaspermissiontostring063559c0c50fbee59b43" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[0].json new file mode 100644 index 0000000000000..08887ce172fac --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign037827c6ad873202?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9a766442-4605-4ef5-9030-263c0d4d6567" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA200E5399", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fbda-701e-0097-60d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "9a766442-4605-4ef5-9030-263c0d4d6567" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "df6f23dc-8871-4595-8764-f60edea986ba" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fbf4-701e-0097-78d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign037827c6ad873202Fri, 01 Nov 2019 16:39:54 GMT\"0x8D75EEA200E5399\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "df6f23dc-8871-4595-8764-f60edea986ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign037827c6ad873202?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ae53a5ce-c049-4e2a-9684-a3c87ad8ac0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fc02-701e-0097-06d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "ae53a5ce-c049-4e2a-9684-a3c87ad8ac0c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign037827c6ad873202" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[1].json new file mode 100644 index 0000000000000..901634d77390a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign082440a169003a2c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "89cd8bad-1663-4694-87e4-a2fd1ad5b421" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2027D3A1", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fc34-701e-0097-31d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "89cd8bad-1663-4694-87e4-a2fd1ad5b421" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "edbe4d1e-6fd8-48bc-9233-0d5b4b0a9d66" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fc66-701e-0097-5fd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign082440a169003a2cFri, 01 Nov 2019 16:39:55 GMT\"0x8D75EEA2027D3A1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "edbe4d1e-6fd8-48bc-9233-0d5b4b0a9d66", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign082440a169003a2c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "08e20b6d-240b-45bc-ae79-dfce1c2a8be3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fc82-701e-0097-78d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "08e20b6d-240b-45bc-ae79-dfce1c2a8be3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign082440a169003a2c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[2].json new file mode 100644 index 0000000000000..4434fe2c164bc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign09857879a90d749a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "02eca14f-9bb1-4cb7-9c16-e0f3fed81ddf" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2041A1D6", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fc9f-701e-0097-0fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "02eca14f-9bb1-4cb7-9c16-e0f3fed81ddf" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6278b47a-33a2-41b5-8c11-68d318d5ab8b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fcbf-701e-0097-27d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign09857879a90d749aFri, 01 Nov 2019 16:39:55 GMT\"0x8D75EEA2041A1D6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "6278b47a-33a2-41b5-8c11-68d318d5ab8b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign09857879a90d749a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "06405352-7221-49f5-8d56-8087de3a40ae" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fcd5-701e-0097-3bd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:54 GMT", + "x-ms-client-request-id" : "06405352-7221-49f5-8d56-8087de3a40ae" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign09857879a90d749a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[3].json new file mode 100644 index 0000000000000..931988cbf641a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[3].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign0551741c282e4814?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "77d4b315-4118-4ebc-b442-3a1e1fee8666" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA205DBA66", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fcf3-701e-0097-58d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "77d4b315-4118-4ebc-b442-3a1e1fee8666" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "323687bb-1bd8-41de-95c3-35ac18c23702" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fd07-701e-0097-6bd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign0551741c282e4814Fri, 01 Nov 2019 16:39:55 GMT\"0x8D75EEA205DBA66\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "323687bb-1bd8-41de-95c3-35ac18c23702", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign0551741c282e4814?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "04fbb16e-a655-427b-be64-ff54d80e5d09" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fd23-701e-0097-03d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "04fbb16e-a655-427b-be64-ff54d80e5d09" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign0551741c282e4814" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[4].json new file mode 100644 index 0000000000000..d42a5190d3d60 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[4].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign09623930ff539c88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a8e7d5af-4d65-4104-a891-a1e520643906" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2076EC43", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fd51-701e-0097-2ed2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "a8e7d5af-4d65-4104-a891-a1e520643906" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7af41148-77fa-4667-868f-e3401b457c1e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fd6c-701e-0097-45d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign09623930ff539c88Fri, 01 Nov 2019 16:39:55 GMT\"0x8D75EEA2076EC43\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "7af41148-77fa-4667-868f-e3401b457c1e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign09623930ff539c88?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c84bbd3-1723-45cd-96e8-eed7ef1bcec3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fd7d-701e-0097-55d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "3c84bbd3-1723-45cd-96e8-eed7ef1bcec3" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign09623930ff539c88" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[5].json new file mode 100644 index 0000000000000..c68c51c68a6da --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[5].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign05255514cb7566bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "23f561bf-87c1-4ff7-b597-659ea16087d8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2092415B", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fd9b-701e-0097-72d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "23f561bf-87c1-4ff7-b597-659ea16087d8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d8b6be2-9399-40ce-afa5-f83e1ddcfeb9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fdac-701e-0097-02d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign05255514cb7566bcFri, 01 Nov 2019 16:39:55 GMT\"0x8D75EEA2092415B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "9d8b6be2-9399-40ce-afa5-f83e1ddcfeb9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign05255514cb7566bc?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "86f0f087-2ac5-4a2c-80d2-7358f0259e6b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fdbd-701e-0097-13d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "86f0f087-2ac5-4a2c-80d2-7358f0259e6b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign05255514cb7566bc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[6].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[6].json new file mode 100644 index 0000000000000..a69f00697b29c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[6].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign0739494315cea834?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "30660ec8-5f34-46da-8a98-b92f38452d46" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA20AC5DBF", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fde3-701e-0097-39d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "30660ec8-5f34-46da-8a98-b92f38452d46" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f1de7970-cd25-4d75-9d14-43df2c3e6ea8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fe12-701e-0097-60d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign0739494315cea834Fri, 01 Nov 2019 16:39:55 GMT\"0x8D75EEA20AC5DBF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "f1de7970-cd25-4d75-9d14-43df2c3e6ea8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign0739494315cea834?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "580294c8-4e19-4478-bbfb-92981ea381ae" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fe3d-701e-0097-04d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "580294c8-4e19-4478-bbfb-92981ea381ae" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign0739494315cea834" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[7].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[7].json new file mode 100644 index 0000000000000..56ae4ee2dd345 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[7].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign0106942e32d3ba0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "debf5991-420c-49ad-81a6-b72cced7ab0a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA20C5B6AF", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520fe63-701e-0097-28d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "debf5991-420c-49ad-81a6-b72cced7ab0a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "58db76de-0dea-4725-bf42-47eb63287fb9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520fe79-701e-0097-3cd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign0106942e32d3ba0eFri, 01 Nov 2019 16:39:56 GMT\"0x8D75EEA20C5B6AF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "58db76de-0dea-4725-bf42-47eb63287fb9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign0106942e32d3ba0e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ec5a45e1-3f91-46c0-871b-1c23c8608953" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520fe8c-701e-0097-4fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:55 GMT", + "x-ms-client-request-id" : "ec5a45e1-3f91-46c0-871b-1c23c8608953" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign0106942e32d3ba0e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[8].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[8].json new file mode 100644 index 0000000000000..9f78ab96e98dd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosign[8].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign059246da2544bb45?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "16635aac-5980-4bf0-a6e9-2200899e37fc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA20F29B25", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520feef-701e-0097-2ad2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "16635aac-5980-4bf0-a6e9-2200899e37fc" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosign&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "88c92d0c-fea1-4bb4-a899-37e4e6fe002d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520ff05-701e-0097-3fd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignjtfsservicesassignaturesstringtosign059246da2544bb45Fri, 01 Nov 2019 16:39:56 GMT\"0x8D75EEA20F29B25\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "88c92d0c-fea1-4bb4-a899-37e4e6fe002d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosign059246da2544bb45?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "926acf50-e8db-4f17-b263-7b97c8d9d0e5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520ff1b-701e-0097-50d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "926acf50-e8db-4f17-b263-7b97c8d9d0e5" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosign059246da2544bb45" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[0].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[0].json new file mode 100644 index 0000000000000..70ace10d68adf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[0].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey03058237?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "aabe99bf-02d8-42d3-9544-fab59a95886b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA210D7AFC", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520ff36-701e-0097-6ad2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "aabe99bf-02d8-42d3-9544-fab59a95886b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29531ff2-17ed-4b2f-a2f0-064dba062683" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520ff4f-701e-0097-02d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey03058237Fri, 01 Nov 2019 16:39:56 GMT\"0x8D75EEA210D7AFC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "29531ff2-17ed-4b2f-a2f0-064dba062683", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey03058237?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "effd2074-d6b1-47af-8af0-90f5b7eeb764" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520ff69-701e-0097-17d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "effd2074-d6b1-47af-8af0-90f5b7eeb764" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey03058237" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[10].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[10].json new file mode 100644 index 0000000000000..5abb042cbfd43 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[10].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey04743298?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2c0085fa-171b-4a9a-bd6a-fb0347d9922f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA223BF884", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210304-701e-0097-63d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "2c0085fa-171b-4a9a-bd6a-fb0347d9922f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "03bc5842-5231-413a-a69c-bd497bc2bd0c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210315-701e-0097-71d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey04743298Fri, 01 Nov 2019 16:39:58 GMT\"0x8D75EEA223BF884\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "03bc5842-5231-413a-a69c-bd497bc2bd0c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey04743298?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "29e60840-6b16-43ad-9c97-2fcefdd46574" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210323-701e-0097-7fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "29e60840-6b16-43ad-9c97-2fcefdd46574" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey04743298" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[11].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[11].json new file mode 100644 index 0000000000000..d148cc88bc967 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[11].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey02427323?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7e03fc96-b463-4cbb-bccf-21faf6877373" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2256D85B", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521033c-701e-0097-15d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "7e03fc96-b463-4cbb-bccf-21faf6877373" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "484258fb-1dd4-4adc-9e77-95c9ceafee0d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210378-701e-0097-4dd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey02427323Fri, 01 Nov 2019 16:39:58 GMT\"0x8D75EEA2256D85B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "484258fb-1dd4-4adc-9e77-95c9ceafee0d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey02427323?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d440b203-3551-4d52-9f72-dc27602859bc" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210397-701e-0097-67d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "d440b203-3551-4d52-9f72-dc27602859bc" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey02427323" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[12].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[12].json new file mode 100644 index 0000000000000..527b6651a2d14 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[12].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey092375b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "83dbaaa6-7fdf-4ffb-b8a6-13b8190c984a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA22812445", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52103b7-701e-0097-06d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "83dbaaa6-7fdf-4ffb-b8a6-13b8190c984a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "27d8b707-14a1-460a-87e3-a887199f69c8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52103d6-701e-0097-23d3-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey092375b1Fri, 01 Nov 2019 16:39:59 GMT\"0x8D75EEA22812445\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "27d8b707-14a1-460a-87e3-a887199f69c8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey092375b1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "01511972-5a08-48de-8d89-20f2b26d2140" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52103ef-701e-0097-3ad3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "01511972-5a08-48de-8d89-20f2b26d2140" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey092375b1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[13].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[13].json new file mode 100644 index 0000000000000..fc45ae6d1bffd --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[13].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0301678d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1872d782-76fd-4a75-9c69-8468784afdf4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA229EC3BA", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:59 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210416-701e-0097-5ed3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "1872d782-76fd-4a75-9c69-8468784afdf4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6a0ce7c-19f4-44e0-96ee-b9d9b071a058" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210434-701e-0097-78d3-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey0301678dFri, 01 Nov 2019 16:39:59 GMT\"0x8D75EEA229EC3BA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "c6a0ce7c-19f4-44e0-96ee-b9d9b071a058", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0301678d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f3f09262-2a9d-4c54-a7eb-afe350c099f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b521044f-701e-0097-10d3-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "f3f09262-2a9d-4c54-a7eb-afe350c099f7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey0301678d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[1].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[1].json new file mode 100644 index 0000000000000..307e7d40f158e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[1].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0093742d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71f4be9a-c637-4de6-b598-b138e5f27c4f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2129455D", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520ff7e-701e-0097-2ad2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "71f4be9a-c637-4de6-b598-b138e5f27c4f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f71248fe-a78a-44df-88c0-0ec1734b7374" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520ff90-701e-0097-39d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey0093742dFri, 01 Nov 2019 16:39:56 GMT\"0x8D75EEA2129455D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "f71248fe-a78a-44df-88c0-0ec1734b7374", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0093742d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f66a556f-88d8-42e0-b221-710d928ce46f" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520ffa2-701e-0097-48d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "f66a556f-88d8-42e0-b221-710d928ce46f" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey0093742d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[2].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[2].json new file mode 100644 index 0000000000000..eab3e68e44304 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[2].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey030490ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "458c6a4b-c81b-4df1-a992-af43fa6edfba" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2144253D", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520ffb9-701e-0097-5cd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "458c6a4b-c81b-4df1-a992-af43fa6edfba" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "82169e7a-24dd-4c88-ad27-aa1466ab62b0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520ffde-701e-0097-7fd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey030490acFri, 01 Nov 2019 16:39:56 GMT\"0x8D75EEA2144253D\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "82169e7a-24dd-4c88-ad27-aa1466ab62b0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey030490ac?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "743ff75f-41c9-4746-a822-08b8132792a2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210003-701e-0097-21d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "743ff75f-41c9-4746-a822-08b8132792a2" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey030490ac" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[3].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[3].json new file mode 100644 index 0000000000000..508d783a8a930 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[3].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey080840c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db26c589-be46-4367-a53f-21066e1dc753" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2168559F", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521004f-701e-0097-62d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "db26c589-be46-4367-a53f-21066e1dc753" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a8f366f-3472-4b0a-b78e-3744abc93133" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b521005c-701e-0097-6ed2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey080840c4Fri, 01 Nov 2019 16:39:57 GMT\"0x8D75EEA2168559F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "8a8f366f-3472-4b0a-b78e-3744abc93133", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey080840c4?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a01b7245-1803-409d-b933-be06715f5985" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b521006f-701e-0097-80d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "a01b7245-1803-409d-b933-be06715f5985" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey080840c4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[4].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[4].json new file mode 100644 index 0000000000000..72045789696e5 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[4].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0269077e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e579c60-c8c6-42d3-9b66-b5c6d12e1809" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA2181AE99", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210091-701e-0097-1ed2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:56 GMT", + "x-ms-client-request-id" : "3e579c60-c8c6-42d3-9b66-b5c6d12e1809" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "15fd55e0-4a05-4f4f-825b-af4f04f29500" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52100b4-701e-0097-3ed2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey0269077eFri, 01 Nov 2019 16:39:57 GMT\"0x8D75EEA2181AE99\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "15fd55e0-4a05-4f4f-825b-af4f04f29500", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0269077e?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "77e67166-e96d-4000-b7b7-634841e28442" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52100cc-701e-0097-54d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "77e67166-e96d-4000-b7b7-634841e28442" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey0269077e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[5].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[5].json new file mode 100644 index 0000000000000..aa8ca26bf94c2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[5].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0292857f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6668b1bc-c759-4da3-a066-11349cfe0a97" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA21A19875", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521010a-701e-0097-0ed2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "6668b1bc-c759-4da3-a066-11349cfe0a97" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9fb3a8ed-61a9-4363-81e9-d66735b0588e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210122-701e-0097-23d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey0292857fFri, 01 Nov 2019 16:39:57 GMT\"0x8D75EEA21A19875\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "9fb3a8ed-61a9-4363-81e9-d66735b0588e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0292857f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c708d08e-af0c-40b0-bc18-9ed6195abc81" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210139-701e-0097-36d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "c708d08e-af0c-40b0-bc18-9ed6195abc81" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey0292857f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[6].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[6].json new file mode 100644 index 0000000000000..c9c494e1114c3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[6].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey09190835?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a9a7f64a-76ee-46d4-a102-27d6f2f2fd65" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA21BB66BD", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210154-701e-0097-4fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "a9a7f64a-76ee-46d4-a102-27d6f2f2fd65" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e25e7b93-6fa6-40b6-9fbc-2464f55dcdeb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b521017c-701e-0097-72d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey09190835Fri, 01 Nov 2019 16:39:57 GMT\"0x8D75EEA21BB66BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "e25e7b93-6fa6-40b6-9fbc-2464f55dcdeb", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey09190835?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5e00717e-4366-470c-b86d-9fd1181d0e4c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210192-701e-0097-06d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "5e00717e-4366-470c-b86d-9fd1181d0e4c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey09190835" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[7].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[7].json new file mode 100644 index 0000000000000..1d5f1b9246935 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[7].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey06530999?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4bbe526b-9a74-4efd-895d-1ac362ec9c95" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA21D55C06", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b52101aa-701e-0097-1dd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "4bbe526b-9a74-4efd-895d-1ac362ec9c95" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "36bf71e5-f15c-411a-a96d-bc96c398bf50" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52101c8-701e-0097-35d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey06530999Fri, 01 Nov 2019 16:39:57 GMT\"0x8D75EEA21D55C06\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "36bf71e5-f15c-411a-a96d-bc96c398bf50", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey06530999?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cd9f6377-2d63-46bc-8f5d-2165a097b491" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52101e3-701e-0097-4dd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "cd9f6377-2d63-46bc-8f5d-2165a097b491" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey06530999" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[8].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[8].json new file mode 100644 index 0000000000000..bb67fa7d60c26 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[8].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey05299874?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "90d524b9-9957-41bd-82f4-9e06efd09495" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA21F0B122", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b5210210-701e-0097-78d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "90d524b9-9957-41bd-82f4-9e06efd09495" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "70cb5493-8c45-4715-9911-4a3f3ce2443c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b5210235-701e-0097-1bd2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey05299874Fri, 01 Nov 2019 16:39:58 GMT\"0x8D75EEA21F0B122\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "70cb5493-8c45-4715-9911-4a3f3ce2443c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey05299874?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7891ec0-83c2-4390-8113-a3b58b56147c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5210258-701e-0097-3dd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "e7891ec0-83c2-4390-8113-a3b58b56147c" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey05299874" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[9].json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[9].json new file mode 100644 index 0000000000000..6d042f9560b1c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturesstringtosignuserdelegationkey[9].json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0200015d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b79ce52a-920e-4682-a87b-a63871acf7f4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA220C5470", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b521027b-701e-0097-5fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:57 GMT", + "x-ms-client-request-id" : "b79ce52a-920e-4682-a87b-a63871acf7f4" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturesstringtosignuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "440d4072-c439-4a5b-8002-b32027a0979a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b52102d3-701e-0097-34d2-902db3000000", + "Body" : "jtfsservicesassignaturesstringtosignuserdelegationkeyjtfsservicesassignaturesstringtosignuserdelegationkey0200015dFri, 01 Nov 2019 16:39:58 GMT\"0x8D75EEA220C5470\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "440d4072-c439-4a5b-8002-b32027a0979a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturesstringtosignuserdelegationkey0200015d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84ea51d9-be7e-4009-8252-77fa6645230b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b52102dd-701e-0097-3dd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:58 GMT", + "x-ms-client-request-id" : "84ea51d9-be7e-4009-8252-77fa6645230b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturesstringtosignuserdelegationkey0200015d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfile.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfile.json new file mode 100644 index 0000000000000..63e678c3a6bce --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfile.json @@ -0,0 +1,195 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4bcf863-ed62-46c5-8c89-57176218f63b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1D179568", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520f175-701e-0097-65d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:49 GMT", + "x-ms-client-request-id" : "d4bcf863-ed62-46c5-8c89-57176218f63b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44/javapathservicesassignaturevaluesnetworktestfile1970373304?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4dc4eef2-7408-4822-9de6-ba68e936a20b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1D5B1C5B", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3074d948-a01f-003f-32d2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "4dc4eef2-7408-4822-9de6-ba68e936a20b" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44/javapathservicesassignaturevaluesnetworktestfile1970373304?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3d35332b-5506-40e6-b655-436d17d3d85a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "3074d94b-a01f-003f-35d2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "3d35332b-5506-40e6-b655-436d17d3d85a" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44/javapathservicesassignaturevaluesnetworktestfile1970373304?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1494821a-4fc1-48f6-ae60-0c9d86faa595" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1D70569F", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "3074d94c-a01f-003f-36d2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "1494821a-4fc1-48f6-ae60-0c9d86faa595" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44/javapathservicesassignaturevaluesnetworktestfile1970373304?sv=2019-02-02&spr=https%2Chttp&st=2019-10-31T16%3A39%3A50Z&se=2019-11-02T16%3A39%3A50Z&sip=0.0.0.0-255.255.255.255&sr=b&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0569f2ae-428d-4f41-85ed-f6102b915141" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "cache", + "ETag" : "0x8D75EEA1D70569F", + "Content-Disposition" : "disposition", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:39:50 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b520f337-701e-0097-03d2-902db3000000", + "Body" : "default", + "x-ms-client-request-id" : "0569f2ae-428d-4f41-85ed-f6102b915141", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44/javapathservicesassignaturevaluesnetworktestfile1970373304?sv=2019-02-02&spr=https%2Chttp&st=2019-10-31T16%3A39%3A50Z&se=2019-11-02T16%3A39%3A50Z&sip=0.0.0.0-255.255.255.255&sr=b&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c6a01276-697d-4249-980a-891287b259d3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:50 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:39:50 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", + "Cache-Control" : "cache", + "ETag" : "0x8D75EEA1D70569F", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:39:50 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b520f380-701e-0097-45d2-902db3000000", + "x-ms-client-request-id" : "c6a01276-697d-4249-980a-891287b259d3", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturevaluesnetworktestfile&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "47bea717-d97b-4ded-b7e4-f2c7db7db0b8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f3ab-701e-0097-6cd2-902db3000000", + "Body" : "jtfsservicesassignaturevaluesnetworktestfilejtfsservicesassignaturevaluesnetworktestfile024021889c44Fri, 01 Nov 2019 16:39:49 GMT\"0x8D75EEA1D179568\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "47bea717-d97b-4ded-b7e4-f2c7db7db0b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfile024021889c44?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "adf18002-7db1-4bcd-bf4c-5527be73b588" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520f3c9-701e-0097-09d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "adf18002-7db1-4bcd-bf4c-5527be73b588" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturevaluesnetworktestfile024021889c44", "javapathservicesassignaturevaluesnetworktestfile1970373304", "2019-11-01T16:39:50.562Z", "2019-11-01T16:39:50.562Z" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfilesystemuserdelegation.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfilesystemuserdelegation.json new file mode 100644 index 0000000000000..3794e8d41a1f7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfilesystemuserdelegation.json @@ -0,0 +1,108 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfilesystemuser0097440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e7d5b361-8089-44b3-9b72-bb64645985ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1EEA5F86", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:53 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520f7bf-701e-0097-24d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:52 GMT", + "x-ms-client-request-id" : "e7d5b361-8089-44b3-9b72-bb64645985ec" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://gaprahns.blob.core.windows.net?restype=service&comp=userdelegationkey", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c89c7f64-1702-4755-86ab-7bae38bac7a7", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f897-701e-0097-5dd2-902db3000000", + "Body" : "cbe88567-c3b6-4a94-a669-62c90822fa1aac4e70b2-f708-4d63-9fa5-2a554304e4f92019-11-01T16:39:53Z2019-11-02T16:39:53Zb2019-02-02UkVEQUNURUQ=", + "Date" : "Fri, 01 Nov 2019 16:39:52 GMT", + "x-ms-client-request-id" : "c89c7f64-1702-4755-86ab-7bae38bac7a7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfilesystemuser0097440?recursive=false&upn=false&resource=filesystem&sv=2019-02-02&se=2019-11-02T16%3A39%3A53Z&skoid=c4f48289-bb84-4086-b250-6f94a8f64cee&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2019-11-01T16%3A39%3A53Z&ske=2019-11-02T16%3A39%3A53Z&sks=b&skv=2019-02-02&sr=c&sp=racwdl&sig=REDACTED", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4dfb7e82-fb00-4c36-9813-756dd84cf5dd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3074d957-a01f-003f-3bd2-90f9a6000000", + "Body" : "{\"paths\":[]}\n", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "4dfb7e82-fb00-4c36-9813-756dd84cf5dd", + "Content-Type" : "application/json;charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturevaluesnetworktestfilesystemuser&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8df2b709-b293-4698-845e-0ba197dbf581" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f8d4-701e-0097-13d2-902db3000000", + "Body" : "jtfsservicesassignaturevaluesnetworktestfilesystemuserjtfsservicesassignaturevaluesnetworktestfilesystemuser0097440Fri, 01 Nov 2019 16:39:53 GMT\"0x8D75EEA1EEA5F86\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "8df2b709-b293-4698-845e-0ba197dbf581", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfilesystemuser0097440?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2981f2be-13da-4afd-9c8f-bd3e8977ef4b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520f8fe-701e-0097-38d2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:53 GMT", + "x-ms-client-request-id" : "2981f2be-13da-4afd-9c8f-bd3e8977ef4b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturevaluesnetworktestfilesystemuser0097440", "2019-11-01T16:39:53.049Z", "c4f48289-bb84-4086-b250-6f94a8f64cee", "72f988bf-86f1-41af-91ab-2d7cd011db47" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfileuserdelegation.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfileuserdelegation.json new file mode 100644 index 0000000000000..eb6c292c3beea --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/SASTestservicesassignaturevaluesnetworktestfileuserdelegation.json @@ -0,0 +1,217 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dca4b0f0-0c0a-4767-86d0-783fbef9017e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1DB2DFF3", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b520f3ed-701e-0097-2bd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "dca4b0f0-0c0a-4767-86d0-783fbef9017e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843/5d11840843384c74aaf643899d78f43fc2dcc7d5044b400e8be80a7e2cce14de?resource=file", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0022df75-b5dc-490e-b128-22e27380e3ee" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1DBD4830", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3074d94d-a01f-003f-37d2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "0022df75-b5dc-490e-b128-22e27380e3ee" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843/5d11840843384c74aaf643899d78f43fc2dcc7d5044b400e8be80a7e2cce14de?position=0&action=append", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "afefc817-b80f-45e9-9053-f5b36f669e91", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "3074d94e-a01f-003f-38d2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "afefc817-b80f-45e9-9053-f5b36f669e91" + }, + "Exception" : null + }, { + "Method" : "PATCH", + "Uri" : "https://gaprahns.dfs.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843/5d11840843384c74aaf643899d78f43fc2dcc7d5044b400e8be80a7e2cce14de?position=7&retainUncommittedData=false&close=false&action=flush", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-file-datalake/12.0.0-preview.5 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3718df04-ae29-43f2-98d6-e181e5c8e80c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-HDFS/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEA1DD0E7AC", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:51 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-server-encrypted" : "true", + "x-ms-request-id" : "3074d94f-a01f-003f-39d2-90f9a6000000", + "Date" : "Fri, 01 Nov 2019 16:39:50 GMT", + "x-ms-client-request-id" : "3718df04-ae29-43f2-98d6-e181e5c8e80c" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://gaprahns.blob.core.windows.net?restype=service&comp=userdelegationkey", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d3cf6ebd-51e9-43b3-862f-9ee11c310b90", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f5b3-701e-0097-4bd2-902db3000000", + "Body" : "5f6750ec-3ec9-4f51-8675-2a1d587ff4f53070fecf-c88e-4679-b74b-b01fc4480c842019-11-01T16:39:52Z2019-11-02T16:39:51Zb2019-02-02UkVEQUNURUQ=", + "Date" : "Fri, 01 Nov 2019 16:39:52 GMT", + "x-ms-client-request-id" : "d3cf6ebd-51e9-43b3-862f-9ee11c310b90", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843/5d11840843384c74aaf643899d78f43fc2dcc7d5044b400e8be80a7e2cce14de?sv=2019-02-02&spr=https%2Chttp&st=2019-10-31T16%3A39%3A51Z&se=2019-11-02T16%3A39%3A51Z&sip=0.0.0.0-255.255.255.255&skoid=c4f48289-bb84-4086-b250-6f94a8f64cee&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2019-11-01T16%3A39%3A52Z&ske=2019-11-02T16%3A39%3A51Z&sks=b&skv=2019-02-02&sr=b&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d195edd-fee5-4abb-bb32-45d68ae5cf0c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:39:52 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "cache", + "ETag" : "0x8D75EEA1DD0E7AC", + "Content-Disposition" : "disposition", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:39:51 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b520f6f7-701e-0097-6ed2-902db3000000", + "Body" : "default", + "x-ms-client-request-id" : "6d195edd-fee5-4abb-bb32-45d68ae5cf0c", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843/5d11840843384c74aaf643899d78f43fc2dcc7d5044b400e8be80a7e2cce14de?sv=2019-02-02&spr=https%2Chttp&st=2019-10-31T16%3A39%3A51Z&se=2019-11-02T16%3A39%3A51Z&sip=0.0.0.0-255.255.255.255&skoid=c4f48289-bb84-4086-b250-6f94a8f64cee&sktid=72f988bf-86f1-41af-91ab-2d7cd011db47&skt=2019-11-01T16%3A39%3A52Z&ske=2019-11-02T16%3A39%3A51Z&sks=b&skv=2019-02-02&sr=b&sp=racwd&sig=REDACTED&rscc=cache&rscd=disposition&rsce=encoding&rscl=language&rsct=type", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4619e89a-4652-4085-a67b-cfd8cb97b20d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Fri, 01 Nov 2019 16:39:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Fri, 01 Nov 2019 16:39:52 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", + "Cache-Control" : "cache", + "ETag" : "0x8D75EEA1DD0E7AC", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Fri, 01 Nov 2019 16:39:51 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "b520f78c-701e-0097-74d2-902db3000000", + "x-ms-client-request-id" : "4619e89a-4652-4085-a67b-cfd8cb97b20d", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsservicesassignaturevaluesnetworktestfileuserdelega&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "529ccd9c-ce5d-4633-82a4-c404b8c3c9a3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b520f79b-701e-0097-03d2-902db3000000", + "Body" : "jtfsservicesassignaturevaluesnetworktestfileuserdelegajtfsservicesassignaturevaluesnetworktestfileuserdelega0127843Fri, 01 Nov 2019 16:39:50 GMT\"0x8D75EEA1DB2DFF3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:39:52 GMT", + "x-ms-client-request-id" : "529ccd9c-ce5d-4633-82a4-c404b8c3c9a3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "c835a82f-af50-4477-8f47-fcda8a4500d4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b520f7a7-701e-0097-0fd2-902db3000000", + "Date" : "Fri, 01 Nov 2019 16:39:52 GMT", + "x-ms-client-request-id" : "c835a82f-af50-4477-8f47-fcda8a4500d4" + }, + "Exception" : null + } ], + "variables" : [ "jtfsservicesassignaturevaluesnetworktestfileuserdelega0127843", "5d11840843384c74aaf643899d78f43fc2dcc7d5044b400e8be80a7e2cce14de", "2019-11-01T16:39:51.192Z", "2019-11-01T16:39:51.192Z", "c4f48289-bb84-4086-b250-6f94a8f64cee", "72f988bf-86f1-41af-91ab-2d7cd011db47" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkey.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkey.json new file mode 100644 index 0000000000000..9c7b3aee5f43c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkey.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetuserdelegationkey074085129a706a3e1e46f0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0e2ecd8b-b759-4ea7-9817-933007d8a3aa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA6E5C153", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd7b1-e01e-007c-2bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "0e2ecd8b-b759-4ea7-9817-933007d8a3aa" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://gaprahns.blob.core.windows.net?restype=service&comp=userdelegationkey", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6323c143-84a0-406f-9ba4-661f133e672a", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a656c14-a01e-0034-53d3-90e1d2000000", + "Body" : "d9a56ecb-02da-47d0-b2f2-684b30fc8dcb3fd621c0-6df9-4a90-9c7d-bad46b13578e2019-11-01T16:43:41Z2019-11-02T16:43:41Zb2019-02-02UkVEQUNURUQ=", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "6323c143-84a0-406f-9ba4-661f133e672a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetuserdelegationkey&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0aafd679-9a3e-4d0f-a757-f8c8062f1603" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd852-e01e-007c-44d3-90d34f000000", + "Body" : "jtfsgetuserdelegationkeyjtfsgetuserdelegationkey074085129a706a3e1e46f0Fri, 01 Nov 2019 16:43:41 GMT\"0x8D75EEAA6E5C153\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "0aafd679-9a3e-4d0f-a757-f8c8062f1603", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetuserdelegationkey074085129a706a3e1e46f0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8a3487e7-af47-4305-b2d3-982c729e087b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656c53-a01e-0034-0ad3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "8a3487e7-af47-4305-b2d3-982c729e087b" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetuserdelegationkey074085129a706a3e1e46f0" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror.json new file mode 100644 index 0000000000000..08136120d4aac --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeyerror.json @@ -0,0 +1,65 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetuserdelegationkeyerror0177312947833f79574d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "27fc04ad-55cc-4872-b6d0-3e19718fd7da" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA79B1F5C", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656dbb-a01e-0034-55d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "27fc04ad-55cc-4872-b6d0-3e19718fd7da" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetuserdelegationkeyerror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1eb97831-c206-413e-8bcf-3a5ad36ec622" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd9a2-e01e-007c-7dd3-90d34f000000", + "Body" : "jtfsgetuserdelegationkeyerrorjtfsgetuserdelegationkeyerror0177312947833f79574dFri, 01 Nov 2019 16:43:42 GMT\"0x8D75EEAA79B1F5C\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "1eb97831-c206-413e-8bcf-3a5ad36ec622", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetuserdelegationkeyerror0177312947833f79574d?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "71ea75ac-542c-47b3-89b0-3eaa433e9cf0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656de1-a01e-0034-77d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:42 GMT", + "x-ms-client-request-id" : "71ea75ac-542c-47b3-89b0-3eaa433e9cf0" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetuserdelegationkeyerror0177312947833f79574d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeymin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeymin.json new file mode 100644 index 0000000000000..97b1b9b4c7d48 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestgetuserdelegationkeymin.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetuserdelegationkeymin0310389a8c79422a74476?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "700715fd-dc8a-44a5-a661-7c6c13a9c8b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA73687F1", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd87b-e01e-007c-6ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "700715fd-dc8a-44a5-a661-7c6c13a9c8b4" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://gaprahns.blob.core.windows.net?restype=service&comp=userdelegationkey", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6d96a6d3-db1d-423e-a75c-c98ad59cc71b", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a656d10-a01e-0034-36d3-90e1d2000000", + "Body" : "3076eb8f-89c7-40cb-b48c-5442f84fbc29f95a7f6a-eace-426b-9fbe-367033ba0f602019-11-01T16:43:41Z2019-11-02T16:43:41Zb2019-02-02UkVEQUNURUQ=", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "6d96a6d3-db1d-423e-a75c-c98ad59cc71b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfsgetuserdelegationkeymin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "db5666b1-0d8e-46cf-a9f2-9ddc26104df7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd90a-e01e-007c-6fd3-90d34f000000", + "Body" : "jtfsgetuserdelegationkeyminjtfsgetuserdelegationkeymin0310389a8c79422a74476Fri, 01 Nov 2019 16:43:41 GMT\"0x8D75EEAA73687F1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "db5666b1-0d8e-46cf-a9f2-9ddc26104df7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfsgetuserdelegationkeymin0310389a8c79422a74476?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9ae743a4-cbfb-4511-9b23-407b2c6ce9c7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656d47-a01e-0034-6cd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:41 GMT", + "x-ms-client-request-id" : "9ae743a4-cbfb-4511-9b23-407b2c6ce9c7" + }, + "Exception" : null + } ], + "variables" : [ "jtfsgetuserdelegationkeymin0310389a8c79422a74476" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystems.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystems.json new file mode 100644 index 0000000000000..3635b27b99d9c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystems.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystems0serviceapitestlistfilesystemsae737054209?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "597512c9-2228-4446-9039-257dfadda2ab" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA453A35E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd10d-e01e-007c-1cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "597512c9-2228-4446-9039-257dfadda2ab" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystems&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "664bb54c-91a6-4c30-b475-0e6abeba1362" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd12c-e01e-007c-3ad3-90d34f000000", + "Body" : "jtfslistfilesystemsjtfslistfilesystems0serviceapitestlistfilesystemsae737054209Fri, 01 Nov 2019 16:43:36 GMT\"0x8D75EEAA453A35E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "664bb54c-91a6-4c30-b475-0e6abeba1362", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystems&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "54ccdcbf-217d-469e-a061-c57f9d44f17b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd134-e01e-007c-41d3-90d34f000000", + "Body" : "jtfslistfilesystemsjtfslistfilesystems0serviceapitestlistfilesystemsae737054209Fri, 01 Nov 2019 16:43:36 GMT\"0x8D75EEAA453A35E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "54ccdcbf-217d-469e-a061-c57f9d44f17b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystems0serviceapitestlistfilesystemsae737054209?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ede3f689-cf54-4893-981d-f4625df875a7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd142-e01e-007c-4ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "ede3f689-cf54-4893-981d-f4625df875a7" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystems0serviceapitestlistfilesystemsae737054209" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsdetails.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsdetails.json new file mode 100644 index 0000000000000..d5ebfe71cc300 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsdetails.json @@ -0,0 +1,126 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsdetails025381f8d96fac343347f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6cdd7d4-4222-4c77-82ae-648693c6ad88" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA56C98FE", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd3c5-e01e-007c-0cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "d6cdd7d4-4222-4c77-82ae-648693c6ad88" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/aaajtfslistfilesystemsdetails180376fae5a9782999456?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ce1698db-c1d6-4764-9ef2-5437c1063918" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA5757436", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd3e2-e01e-007c-26d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "ce1698db-c1d6-4764-9ef2-5437c1063918" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=aaajtfs&include=metadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95faa92f-5c06-4a82-8730-3f6f8848ce58" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd40c-e01e-007c-49d3-90d34f000000", + "Body" : "aaajtfsaaajtfslistfilesystemsdetails180376fae5a9782999456Fri, 01 Nov 2019 16:43:38 GMT\"0x8D75EEAA5757436\"unlockedavailable$account-encryption-keyfalsefalsefalsebar", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "95faa92f-5c06-4a82-8730-3f6f8848ce58", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/aaajtfslistfilesystemsdetails180376fae5a9782999456?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6356540d-0a7f-4bdf-910a-ff6637736f85" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd426-e01e-007c-60d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "6356540d-0a7f-4bdf-910a-ff6637736f85" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemsdetails&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "636eb102-0cfa-48aa-90c2-e792efc77f0c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd442-e01e-007c-7bd3-90d34f000000", + "Body" : "jtfslistfilesystemsdetailsjtfslistfilesystemsdetails025381f8d96fac343347fFri, 01 Nov 2019 16:43:38 GMT\"0x8D75EEAA56C98FE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "636eb102-0cfa-48aa-90c2-e792efc77f0c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsdetails025381f8d96fac343347f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2865e48b-a2a6-43cd-84fb-bb624daa8fef" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd45b-e01e-007c-12d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "2865e48b-a2a6-43cd-84fb-bb624daa8fef" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystemsdetails025381f8d96fac343347f", "jtfslistfilesystemsdetails180376fae5a9782999456" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemserror.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemserror.json new file mode 100644 index 0000000000000..8288be4745fa2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemserror.json @@ -0,0 +1,87 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemserror019690f1314b4d43e349c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1c3276e9-e90a-4d13-b489-9230a9b07d69" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA63F0308", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd643-e01e-007c-5cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "1c3276e9-e90a-4d13-b489-9230a9b07d69" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?marker=garbage%20continuation%20token&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80bf437e-2e52-48ca-99c3-83f42288e626" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "OutOfRangeInput", + "retry-after" : "0", + "Content-Length" : "226", + "StatusCode" : "400", + "x-ms-request-id" : "3a65698c-a01e-0034-13d3-90e1d2000000", + "Body" : "OutOfRangeInputOne of the request inputs is out of range.\nRequestId:3a65698c-a01e-0034-13d3-90e1d2000000\nTime:2019-11-01T16:43:40.1298162Z", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "80bf437e-2e52-48ca-99c3-83f42288e626", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemserror&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84b9e90e-e727-428b-be15-517086fb46f9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd669-e01e-007c-7fd3-90d34f000000", + "Body" : "jtfslistfilesystemserrorjtfslistfilesystemserror019690f1314b4d43e349c2Fri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA63F0308\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "84b9e90e-e727-428b-be15-517086fb46f9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemserror019690f1314b4d43e349c2?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "80b1bc84-a76a-49af-b64a-edb76939b404" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6569c1-a01e-0034-42d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "80b1bc84-a76a-49af-b64a-edb76939b404" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystemserror019690f1314b4d43e349c2" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmarker.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmarker.json new file mode 100644 index 0000000000000..3acb7d4fb3232 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmarker.json @@ -0,0 +1,486 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker0634870861cac45ed54536?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f0a2fce9-435e-4e17-acbd-db5bc47400eb" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA496FA10", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd1a2-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "f0a2fce9-435e-4e17-acbd-db5bc47400eb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker195252732386fa76ee488c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9615e9bc-b617-4a98-ae62-0752edd09a58" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA49F871B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd1ae-e01e-007c-24d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "9615e9bc-b617-4a98-ae62-0752edd09a58" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker22134759bcf916b5d24d71?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3b61549d-8b2b-4e46-97b6-ff11a2feadd3" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4A83B40", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd1c7-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "3b61549d-8b2b-4e46-97b6-ff11a2feadd3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker3554168918767accf44625?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6111d996-a3a4-4f05-a2ed-f5b736c01562" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4B0C846", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd1d1-e01e-007c-40d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "6111d996-a3a4-4f05-a2ed-f5b736c01562" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker48806442bf5cc614554a7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a4d71a54-18e7-44e0-9b43-32a967857339" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4B95551", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd1db-e01e-007c-49d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "a4d71a54-18e7-44e0-9b43-32a967857339" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker5229493adb252b1b224833?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "771d5226-7401-4fcf-8849-dcf5e61f5d4a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4C1BB44", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd1f5-e01e-007c-60d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "771d5226-7401-4fcf-8849-dcf5e61f5d4a" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker6469750b5ec5452b6949af?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f8fbe510-b97f-4df3-8516-3a51c6c3c3d9" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4CA4853", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd206-e01e-007c-6ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "f8fbe510-b97f-4df3-8516-3a51c6c3c3d9" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker761275a16822cc214a4896?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "a5ad5d4f-073a-4a42-ae07-114b283d105b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4D34A9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd21c-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "a5ad5d4f-073a-4a42-ae07-114b283d105b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker8270069bfdae6c2b7142f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "98eea9d6-288a-4ba6-bacf-70a5466d1a6e" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4DC4CEE", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd230-e01e-007c-10d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "98eea9d6-288a-4ba6-bacf-70a5466d1a6e" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker987525ca22c954a6e646b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "da28c1cb-03d5-4cc7-8aac-c7748ab37ac6" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4E4D9F4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd246-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "da28c1cb-03d5-4cc7-8aac-c7748ab37ac6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker104401905f9993d5f96424?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ed8e9ab8-171a-4f15-afd4-41492a0146c7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4ED6703", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd24f-e01e-007c-2dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "ed8e9ab8-171a-4f15-afd4-41492a0146c7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9dfb4bf1-49d6-4985-925b-3e2add7cc984" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd263-e01e-007c-40d3-90d34f000000", + "Body" : "jtfslistfilesystemsmarker0634870861cac45ed54536Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA496FA10\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker104401905f9993d5f96424Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4ED6703\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker195252732386fa76ee488cFri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA49F871B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker22134759bcf916b5d24d71Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4A83B40\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker3554168918767accf44625Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4B0C846\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker48806442bf5cc614554a7fFri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4B95551\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker5229493adb252b1b224833Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4C1BB44\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker6469750b5ec5452b6949afFri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4CA4853\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker761275a16822cc214a4896Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4D34A9E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker8270069bfdae6c2b7142f1Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4DC4CEE\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker987525ca22c954a6e646b0Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4E4D9F4\"unlockedavailable$account-encryption-keyfalsefalsefalsemyjavafilesystembasic1572562105127Thu, 31 Oct 2019 22:48:25 GMT\"0x8D75E5470D9C324\"unlockedavailable$account-encryption-keyfalsefalsefalsemyjavafilesystembasic1572562120661Thu, 31 Oct 2019 22:48:41 GMT\"0x8D75E547A1DAA46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "9dfb4bf1-49d6-4985-925b-3e2add7cc984", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemsmarker&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d4c908ed-2ebf-42f5-87af-b0bfb61862ce" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd27d-e01e-007c-58d3-90d34f000000", + "Body" : "jtfslistfilesystemsmarkerjtfslistfilesystemsmarker0634870861cac45ed54536Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA496FA10\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker104401905f9993d5f96424Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4ED6703\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker195252732386fa76ee488cFri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA49F871B\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker22134759bcf916b5d24d71Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4A83B40\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker3554168918767accf44625Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4B0C846\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker48806442bf5cc614554a7fFri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4B95551\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker5229493adb252b1b224833Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4C1BB44\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker6469750b5ec5452b6949afFri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4CA4853\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker761275a16822cc214a4896Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4D34A9E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker8270069bfdae6c2b7142f1Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4DC4CEE\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmarker987525ca22c954a6e646b0Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4E4D9F4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "d4c908ed-2ebf-42f5-87af-b0bfb61862ce", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker0634870861cac45ed54536?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "35dd0358-7d0f-43a4-9961-2116279f5cbd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd2a7-e01e-007c-7fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "35dd0358-7d0f-43a4-9961-2116279f5cbd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker104401905f9993d5f96424?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "61b414d5-6ae9-43ce-a44f-a1605d03a8f7" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd2c5-e01e-007c-17d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "61b414d5-6ae9-43ce-a44f-a1605d03a8f7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker195252732386fa76ee488c?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "95043da3-1806-4c9f-b406-c8fcd4ab5ef2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd2d3-e01e-007c-25d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "95043da3-1806-4c9f-b406-c8fcd4ab5ef2" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker22134759bcf916b5d24d71?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "25075d2a-b28d-408f-bdea-4abc5d142750" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd2e5-e01e-007c-37d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "25075d2a-b28d-408f-bdea-4abc5d142750" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker3554168918767accf44625?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "1fbb5e88-ba10-4568-8104-6a4aefff28e0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd2fd-e01e-007c-4cd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "1fbb5e88-ba10-4568-8104-6a4aefff28e0" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker48806442bf5cc614554a7f?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b05745cc-2497-4b23-b639-eff260e166ec" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd316-e01e-007c-63d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "b05745cc-2497-4b23-b639-eff260e166ec" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker5229493adb252b1b224833?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20611176-e168-4b7f-8c5b-f32656e9e783" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd330-e01e-007c-7dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "20611176-e168-4b7f-8c5b-f32656e9e783" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker6469750b5ec5452b6949af?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "4eadb426-28ee-45b3-8feb-6ba3182171e2" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd353-e01e-007c-1fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "4eadb426-28ee-45b3-8feb-6ba3182171e2" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker761275a16822cc214a4896?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3e486b94-4e97-4894-9625-da193521f28c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd379-e01e-007c-44d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "3e486b94-4e97-4894-9625-da193521f28c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker8270069bfdae6c2b7142f1?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "45232521-4210-4ea2-bd59-a360f3b3ef8d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd394-e01e-007c-5ed3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "45232521-4210-4ea2-bd59-a360f3b3ef8d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmarker987525ca22c954a6e646b0?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0f30000b-aab9-43ee-acbe-a5ab14b566fa" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd3ad-e01e-007c-77d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "0f30000b-aab9-43ee-acbe-a5ab14b566fa" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystemsmarker0634870861cac45ed54536", "jtfslistfilesystemsmarker195252732386fa76ee488c", "jtfslistfilesystemsmarker22134759bcf916b5d24d71", "jtfslistfilesystemsmarker3554168918767accf44625", "jtfslistfilesystemsmarker48806442bf5cc614554a7f", "jtfslistfilesystemsmarker5229493adb252b1b224833", "jtfslistfilesystemsmarker6469750b5ec5452b6949af", "jtfslistfilesystemsmarker761275a16822cc214a4896", "jtfslistfilesystemsmarker8270069bfdae6c2b7142f1", "jtfslistfilesystemsmarker987525ca22c954a6e646b0", "jtfslistfilesystemsmarker104401905f9993d5f96424" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmaxresults.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmaxresults.json new file mode 100644 index 0000000000000..0024b458708a6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmaxresults.json @@ -0,0 +1,307 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults093051b3e84979a98744?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "8e00e88a-8312-4744-a860-5d60c61d6ee0" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA59FE741", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd47e-e01e-007c-35d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:38 GMT", + "x-ms-client-request-id" : "8e00e88a-8312-4744-a860-5d60c61d6ee0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0461?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f5cce1df-91bd-45d5-b340-61b00a0d478b" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA5ADF389", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd4c0-e01e-007c-71d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "f5cce1df-91bd-45d5-b340-61b00a0d478b" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0462?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f6b6ed33-e1bd-4288-99c3-3180442751ea" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA5B6A7A6", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd4db-e01e-007c-0ad3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "f6b6ed33-e1bd-4288-99c3-3180442751ea" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0463?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d07e2003-d1b3-4edb-ad95-27534dc6f713" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA5BF82DE", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd4f7-e01e-007c-23d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "d07e2003-d1b3-4edb-ad95-27534dc6f713" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0464?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "eb55fd71-355a-4eac-9196-ea3359ddc593" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA5C948A5", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd512-e01e-007c-3dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "eb55fd71-355a-4eac-9196-ea3359ddc593" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0465?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "ad99d453-8f86-4056-b5ca-4ec3d514c612" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA5D1FCC3", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd531-e01e-007c-58d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "ad99d453-8f86-4056-b5ca-4ec3d514c612" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemsmaxresults121660b4e075aeaaf046&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0624b871-228f-46a4-bb41-342044aba918" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd556-e01e-007c-79d3-90d34f000000", + "Body" : "jtfslistfilesystemsmaxresults121660b4e075aeaaf0463jtfslistfilesystemsmaxresults121660b4e075aeaaf0461Fri, 01 Nov 2019 16:43:39 GMT\"0x8D75EEAA5ADF389\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmaxresults121660b4e075aeaaf0462Fri, 01 Nov 2019 16:43:39 GMT\"0x8D75EEAA5B6A7A6\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmaxresults121660b4e075aeaaf0463Fri, 01 Nov 2019 16:43:39 GMT\"0x8D75EEAA5BF82DE\"unlockedavailable$account-encryption-keyfalsefalsefalse/gaprahns/jtfslistfilesystemsmaxresults121660b4e075aeaaf0464", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "0624b871-228f-46a4-bb41-342044aba918", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemsmaxresults121660b4e075aeaaf046&marker=/gaprahns/jtfslistfilesystemsmaxresults121660b4e075aeaaf0464&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "73c89587-ef89-47b2-8115-7e20866f921a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd566-e01e-007c-09d3-90d34f000000", + "Body" : "jtfslistfilesystemsmaxresults121660b4e075aeaaf046/gaprahns/jtfslistfilesystemsmaxresults121660b4e075aeaaf04643jtfslistfilesystemsmaxresults121660b4e075aeaaf0464Fri, 01 Nov 2019 16:43:39 GMT\"0x8D75EEAA5C948A5\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemsmaxresults121660b4e075aeaaf0465Fri, 01 Nov 2019 16:43:39 GMT\"0x8D75EEAA5D1FCC3\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "73c89587-ef89-47b2-8115-7e20866f921a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0461?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "7a9036b4-09a1-4631-8756-db1e4e2bce0d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6568c5-a01e-0034-67d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "7a9036b4-09a1-4631-8756-db1e4e2bce0d" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0462?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "e8f7d368-d838-4c65-8180-f3b69ec1e5d5" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd5dd-e01e-007c-79d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "e8f7d368-d838-4c65-8180-f3b69ec1e5d5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0463?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "0378379c-c50b-482e-970a-bba7dea5ed15" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a6568f7-a01e-0034-11d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "0378379c-c50b-482e-970a-bba7dea5ed15" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0464?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b7150f49-a3f8-4d95-b9a6-5093de7959b4" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd600-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "b7150f49-a3f8-4d95-b9a6-5093de7959b4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults121660b4e075aeaaf0465?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "35e89a4b-919a-4575-b670-19ca00d551fd" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65692a-a01e-0034-3fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "35e89a4b-919a-4575-b670-19ca00d551fd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemsmaxresults&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "2f7c108c-b777-4a77-a155-e09602da6c39" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd620-e01e-007c-3bd3-90d34f000000", + "Body" : "jtfslistfilesystemsmaxresultsjtfslistfilesystemsmaxresults093051b3e84979a98744Fri, 01 Nov 2019 16:43:39 GMT\"0x8D75EEAA59FE741\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "2f7c108c-b777-4a77-a155-e09602da6c39", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmaxresults093051b3e84979a98744?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f7a0bff6-506b-417a-a39d-4cc410a1ba24" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a65694e-a01e-0034-5ed3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:39 GMT", + "x-ms-client-request-id" : "f7a0bff6-506b-417a-a39d-4cc410a1ba24" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystemsmaxresults093051b3e84979a98744", "jtfslistfilesystemsmaxresults121660b4e075aeaaf046" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmin.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmin.json new file mode 100644 index 0000000000000..d115ee8d5e5c2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemsmin.json @@ -0,0 +1,86 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmin082487d3598e272a14471e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "dc0198da-3ce9-43a9-96dd-d8609c9b4047" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA4749ECF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:37 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd153-e01e-007c-5dd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:36 GMT", + "x-ms-client-request-id" : "dc0198da-3ce9-43a9-96dd-d8609c9b4047" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "5b6ecd17-1a13-4bf9-b123-49ba2a49130c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd16a-e01e-007c-6fd3-90d34f000000", + "Body" : "jtfslistfilesystemsmin082487d3598e272a14471e9Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4749ECF\"unlockedavailable$account-encryption-keyfalsefalsefalsemyjavafilesystembasic1572562105127Thu, 31 Oct 2019 22:48:25 GMT\"0x8D75E5470D9C324\"unlockedavailable$account-encryption-keyfalsefalsefalsemyjavafilesystembasic1572562120661Thu, 31 Oct 2019 22:48:41 GMT\"0x8D75E547A1DAA46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "5b6ecd17-1a13-4bf9-b123-49ba2a49130c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemsmin&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "6a3fc85e-1ac8-4ce7-b7a8-4a9ef068f854" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd179-e01e-007c-7cd3-90d34f000000", + "Body" : "jtfslistfilesystemsminjtfslistfilesystemsmin082487d3598e272a14471e9Fri, 01 Nov 2019 16:43:37 GMT\"0x8D75EEAA4749ECF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "6a3fc85e-1ac8-4ce7-b7a8-4a9ef068f854", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemsmin082487d3598e272a14471e9?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b8f6f3d8-36e2-43b1-a068-8cc3c2a42d0a" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd181-e01e-007c-04d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:37 GMT", + "x-ms-client-request-id" : "b8f6f3d8-36e2-43b1-a068-8cc3c2a42d0a" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystemsmin082487d3598e272a14471e9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemswithtimeoutstillbackedbypagedflux.json b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemswithtimeoutstillbackedbypagedflux.json new file mode 100644 index 0000000000000..23836204593d9 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/test/resources/session-records/ServiceAPITestlistfilesystemswithtimeoutstillbackedbypagedflux.json @@ -0,0 +1,328 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux021121cf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "84123b33-042f-4973-b0bc-f0e520cfc78d" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA65F13EF", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd686-e01e-007c-1bd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "84123b33-042f-4973-b0bc-f0e520cfc78d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux13923146?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d6cb9a05-9982-4fda-8620-a3c3c1f446a8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA6680CF5", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656a07-a01e-0034-7fd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "d6cb9a05-9982-4fda-8620-a3c3c1f446a8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux245610ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "f510b5fa-edfb-4f3c-a65f-374277b0bcde" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA6713FA5", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd6a4-e01e-007c-38d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "f510b5fa-edfb-4f3c-a65f-374277b0bcde" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux37857117?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "92722f9d-8806-4c6b-bd05-2dea986933a1" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA67A5FC4", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656a4f-a01e-0034-3bd3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "92722f9d-8806-4c6b-bd05-2dea986933a1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux4678857a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "567c9991-ca18-4dea-bbcf-68ed65b92e13" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA6858E9E", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dc6fd6c6-e01e-007c-54d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "567c9991-ca18-4dea-bbcf-68ed65b92e13" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux51746933?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b079955b-a462-4698-b9de-75a75ac7381c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D75EEAA68E397B", + "Last-Modified" : "Fri, 01 Nov 2019 16:43:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3a656a8a-a01e-0034-70d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "b079955b-a462-4698-b9de-75a75ac7381c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "bc5be6e2-7b58-4dd1-bd04-9fc05ddb3da8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd6f3-e01e-007c-7dd3-90d34f000000", + "Body" : "3jtfslistfilesystemswithtimeoutstillbackedbypagedflux021121cfFri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA65F13EF\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemswithtimeoutstillbackedbypagedflux13923146Fri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA6680CF5\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemswithtimeoutstillbackedbypagedflux245610efFri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA6713FA5\"unlockedavailable$account-encryption-keyfalsefalsefalse/gaprahns/jtfslistfilesystemswithtimeoutstillbackedbypagedflux37857117", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "bc5be6e2-7b58-4dd1-bd04-9fc05ddb3da8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?marker=/gaprahns/jtfslistfilesystemswithtimeoutstillbackedbypagedflux37857117&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "b11531c6-4ed4-4465-82b8-abfa9c5d012a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3a656ab9-a01e-0034-19d3-90e1d2000000", + "Body" : "/gaprahns/jtfslistfilesystemswithtimeoutstillbackedbypagedflux378571173jtfslistfilesystemswithtimeoutstillbackedbypagedflux37857117Fri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA67A5FC4\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemswithtimeoutstillbackedbypagedflux4678857aFri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA6858E9E\"unlockedavailable$account-encryption-keyfalsefalsefalsejtfslistfilesystemswithtimeoutstillbackedbypagedflux51746933Fri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA68E397B\"unlockedavailable$account-encryption-keyfalsefalsefalse/gaprahns/myjavafilesystembasic1572562105127", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "b11531c6-4ed4-4465-82b8-abfa9c5d012a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?marker=/gaprahns/myjavafilesystembasic1572562105127&maxresults=3&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "74f64e6b-3ee0-4f34-b948-762301303fe6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd721-e01e-007c-26d3-90d34f000000", + "Body" : "/gaprahns/myjavafilesystembasic15725621051273myjavafilesystembasic1572562105127Thu, 31 Oct 2019 22:48:25 GMT\"0x8D75E5470D9C324\"unlockedavailable$account-encryption-keyfalsefalsefalsemyjavafilesystembasic1572562120661Thu, 31 Oct 2019 22:48:41 GMT\"0x8D75E547A1DAA46\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "74f64e6b-3ee0-4f34-b948-762301303fe6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux13923146?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "9d8c25b2-f118-4f65-82b5-c2407bbe2242" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656ad9-a01e-0034-37d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "9d8c25b2-f118-4f65-82b5-c2407bbe2242" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux245610ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "d40c27c4-3e67-4ea5-956a-01e55b3a212c" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd74d-e01e-007c-4fd3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "d40c27c4-3e67-4ea5-956a-01e55b3a212c" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux37857117?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "cff0299f-cac6-4a11-81b8-fb10605d9ee8" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656b09-a01e-0034-60d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "cff0299f-cac6-4a11-81b8-fb10605d9ee8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux4678857a?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "3c662262-b3f6-430d-9443-bd2814a4d247" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dc6fd77a-e01e-007c-77d3-90d34f000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "3c662262-b3f6-430d-9443-bd2814a4d247" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux51746933?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "577deadb-60fe-42fb-8d7f-3f8cdd907769" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656b3e-a01e-0034-11d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "577deadb-60fe-42fb-8d7f-3f8cdd907769" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://gaprahns.blob.core.windows.net?prefix=jtfslistfilesystemswithtimeoutstillbackedbypagedflux&comp=list", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "20835dfb-1c86-41d2-9e71-708e850a5efa" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dc6fd793-e01e-007c-0ed3-90d34f000000", + "Body" : "jtfslistfilesystemswithtimeoutstillbackedbypagedfluxjtfslistfilesystemswithtimeoutstillbackedbypagedflux021121cfFri, 01 Nov 2019 16:43:40 GMT\"0x8D75EEAA65F13EF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "20835dfb-1c86-41d2-9e71-708e850a5efa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://gaprahns.blob.core.windows.net/jtfslistfilesystemswithtimeoutstillbackedbypagedflux021121cf?restype=container", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-storage-blob/12.0.0 1.8.0_221; Windows 10 10.0", + "x-ms-client-request-id" : "af231629-275d-4bb0-9f43-bd31acd35a05" + }, + "Response" : { + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3a656b66-a01e-0034-33d3-90e1d2000000", + "Date" : "Fri, 01 Nov 2019 16:43:40 GMT", + "x-ms-client-request-id" : "af231629-275d-4bb0-9f43-bd31acd35a05" + }, + "Exception" : null + } ], + "variables" : [ "jtfslistfilesystemswithtimeoutstillbackedbypagedflux021121cf", "jtfslistfilesystemswithtimeoutstillbackedbypagedflux13923146", "jtfslistfilesystemswithtimeoutstillbackedbypagedflux245610ef", "jtfslistfilesystemswithtimeoutstillbackedbypagedflux37857117", "jtfslistfilesystemswithtimeoutstillbackedbypagedflux4678857a", "jtfslistfilesystemswithtimeoutstillbackedbypagedflux51746933" ] +} \ 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 c1cbf9c5d59e2..012f5835167e2 100644 --- a/sdk/storage/azure-storage-file-datalake/swagger/README.md +++ b/sdk/storage/azure-storage-file-datalake/swagger/README.md @@ -33,5 +33,117 @@ generate-client-interfaces: false sync-methods: none license-header: MICROSOFT_MIT_SMALL add-context-parameter: true +models-subpackage: implementation.models +custom-types: FileSystemInfo,FileSystemItem,FileSystemProperties,PathInfo,PathItem,PathProperties,ListFileSystemsOptions,PathHttpHeaders +custom-types-subpackage: models ``` +### Adds FileSystem parameter to /{filesystem}?resource=filesystem +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}?resource=filesystem"] + transform: > + let param = $.parameters[0]; + if (!param["$ref"].endsWith("FileSystem")) { + const path = param["$ref"].replace(/[#].*$/, "#/parameters/FileSystem"); + $.parameters.splice(0, 0, { "$ref": path }); + } +``` + +### Adds FileSystem and Path parameter to /{filesystem}/{path} +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}"] + transform: > + let param = $.parameters[0]; + if (!param["$ref"].endsWith("FileSystem")) { + const fileSystemPath = param["$ref"].replace(/[#].*$/, "#/parameters/FileSystem"); + const pathPath = param["$ref"].replace(/[#].*$/, "#/parameters/Path"); + $.parameters.splice(0, 0, { "$ref": fileSystemPath }); + $.parameters.splice(1, 0, { "$ref": pathPath }); + } +``` + +### Adds FileSystem and Path parameter to /{filesystem}/{path}?action=append +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}?action=append"].patch + transform: > + let param = $.parameters[0]; + if (!param["$ref"].endsWith("FileSystem")) { + const fileSystemPath = param["$ref"].replace(/[#].*$/, "#/parameters/FileSystem"); + const pathPath = param["$ref"].replace(/[#].*$/, "#/parameters/Path"); + $.parameters.splice(0, 0, { "$ref": fileSystemPath }); + $.parameters.splice(1, 0, { "$ref": pathPath }); + } +``` + +### Adds FileSystem and Path parameter to /{filesystem}/{path}?action=setAccessControl +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}?action=setAccessControl"].patch + transform: > + let param = $.parameters[0]; + if (!param["$ref"].endsWith("FileSystem")) { + const fileSystemPath = param["$ref"].replace(/[#].*$/, "#/parameters/FileSystem"); + const pathPath = param["$ref"].replace(/[#].*$/, "#/parameters/Path"); + $.parameters.splice(0, 0, { "$ref": fileSystemPath }); + $.parameters.splice(1, 0, { "$ref": pathPath }); + } +``` + +### Adds FileSystem and Path parameter to /{filesystem}/{path}?action=flush +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}?action=flush"].patch + transform: > + let param = $.parameters[0]; + if (!param["$ref"].endsWith("FileSystem")) { + const fileSystemPath = param["$ref"].replace(/[#].*$/, "#/parameters/FileSystem"); + const pathPath = param["$ref"].replace(/[#].*$/, "#/parameters/Path"); + $.parameters.splice(0, 0, { "$ref": fileSystemPath }); + $.parameters.splice(1, 0, { "$ref": pathPath }); + } +``` + +### Make the body of append octet-stream /{filesystem}/{path}?action=append +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}?action=append"] + transform: > + $.patch.consumes = ["application/octet-stream"]; +``` + + + +### Make ACL on Path Get Properties lower case +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"]["/{filesystem}/{path}"]["head"]["responses"]["200"] + transform: > + delete $.headers["x-ms-acl"]["x-ms-client-name"]; + $.headers["x-ms-acl"]["x-ms-client-name"] = "acl"; +``` + +### Rename PathHTTPHeaders to PathHttpHeaders +``` yaml +directive: +- from: swagger-document + where: $.parameters + transform: > + $.CacheControl["x-ms-parameter-grouping"].name = "path-http-headers"; + $.ContentDisposition["x-ms-parameter-grouping"].name = "path-http-headers"; + $.ContentEncoding["x-ms-parameter-grouping"].name = "path-http-headers"; + $.ContentLanguage["x-ms-parameter-grouping"].name = "path-http-headers"; + $.ContentMD5["x-ms-parameter-grouping"].name = "path-http-headers"; + $.ContentMD5["x-ms-client-name"] = "contentMd5"; + $.ContentType["x-ms-parameter-grouping"].name = "path-http-headers"; + $.TransactionalContentMD5["x-ms-parameter-grouping"].name = "path-http-headers"; +```