diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java new file mode 100644 index 000000000000..4a0766ac4284 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributeView.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.blob.nio; + +import java.io.IOException; +import java.nio.file.Path; +import java.nio.file.attribute.BasicFileAttributeView; +import java.nio.file.attribute.FileTime; + +/** + * Provides support for basic file attributes. + * + * The operations supported by this view and the attributes it reads are a strict subset of + * {@link AzureBlobFileAttributeView} and has the same network behavior. Therefore, while this type is offered for + * compliance with the NIO spec, {@link AzureBlobFileAttributeView} is generally preferred. + * + * {@link #setTimes(FileTime, FileTime, FileTime)} is not supported. + * + * {@inheritDoc} + */ +public final class AzureBasicFileAttributeView implements BasicFileAttributeView { + + private final Path path; + + AzureBasicFileAttributeView(Path path) { + this.path = path; + } + + /** + * Returns {@code "azureBasic"} + * {@inheritDoc} + */ + @Override + public String name() { + return "azureBasic"; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureBasicFileAttributes readAttributes() throws IOException { + return new AzureBasicFileAttributes(path); + } + + /** + * Unsupported. + * + * @throws UnsupportedOperationException Operation not supported. + * {@inheritDoc} + */ + @Override + public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) throws IOException { + throw new UnsupportedOperationException(); + } +} diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java new file mode 100644 index 000000000000..b6c2d555a090 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBasicFileAttributes.java @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.blob.nio; + +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.models.BlobProperties; +import com.azure.storage.blob.models.BlobStorageException; + +import java.io.IOException; +import java.nio.file.Path; +import java.nio.file.attribute.BasicFileAttributes; +import java.nio.file.attribute.FileAttribute; +import java.nio.file.attribute.FileTime; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + +/** + * Provides support for basic file attributes. + *

+ * The properties available on this type are a strict subset of {@link AzureBlobFileAttributes}, and the two types have + * the same network behavior. Therefore, while this type is offered for compliance with the NIO spec, + * {@link AzureBlobFileAttributes} is generally preferred. + *

+ * Some attributes are not supported. Refer to the javadocs on each method for more information. + * {@inheritDoc} + */ +public class AzureBasicFileAttributes implements BasicFileAttributes { + private final ClientLogger logger = new ClientLogger(AzureBasicFileAttributes.class); + + // For verifying parameters on FileSystemProvider.readAttributes + static final Set ATTRIBUTE_STRINGS; + static { + Set set = new HashSet<>(); + set.add("lastModifiedTime"); + set.add("isRegularFile"); + set.add("isDirectory"); + set.add("isSymbolicLink"); + set.add("isOther"); + set.add("size"); + set.add("creationTime"); + ATTRIBUTE_STRINGS = Collections.unmodifiableSet(set); + } + + private final BlobProperties properties; + + /* + There are some work-arounds we could do to try to accommodate virtual directories such as making a checkDirStatus + call before or after getProperties to throw an appropriate error or adding an isVirtualDirectory method. However, + the former wastes network time only to throw a slightly more specific error when we will throw on 404 anyway. The + latter introduces virtual directories into the actual code path/api surface. While we are clear in our docs about + the possible pitfalls of virtual directories, and customers should be aware of it, they shouldn't have to code + against it. Therefore, we fall back to documenting that reading attributes on a virtual directory will throw. + */ + AzureBasicFileAttributes(Path path) throws IOException { + try { + this.properties = new AzureResource(path).getBlobClient().getProperties(); + } catch (BlobStorageException e) { + throw LoggingUtility.logError(logger, new IOException(e)); + } + } + + /** + * {@inheritDoc} + */ + @Override + public FileTime lastModifiedTime() { + return FileTime.from(properties.getLastModified().toInstant()); + } + + /** + * Unsupported. + * @throws UnsupportedOperationException Operation not supported. + * {@inheritDoc} + */ + @Override + public FileTime lastAccessTime() { + throw new UnsupportedOperationException(); + } + + /** + * {@inheritDoc} + */ + @Override + public FileTime creationTime() { + return FileTime.from(properties.getCreationTime().toInstant()); + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isRegularFile() { + return !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); + } + + /** + * {@inheritDoc} + *

+ * Will only return true if the directory is a concrete directory. See + * {@link AzureFileSystemProvider#createDirectory(Path, FileAttribute[])} for more information on virtual and + * concrete directories. + */ + @Override + public boolean isDirectory() { + return !this.isRegularFile(); + } + + /** + * @return false. Symbolic links are not supported. + */ + @Override + public boolean isSymbolicLink() { + return false; + } + + /** + * @return false + */ + @Override + public boolean isOther() { + return false; + } + + /** + * {@inheritDoc} + */ + @Override + public long size() { + return properties.getBlobSize(); + } + + /** + * Unsupported. + * @throws UnsupportedOperationException Operation not supported. + * {@inheritDoc} + */ + @Override + public Object fileKey() { + throw new UnsupportedOperationException(); + } +} diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java new file mode 100644 index 000000000000..2761c54830b6 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributeView.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.blob.nio; + +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.models.AccessTier; +import com.azure.storage.blob.models.BlobHttpHeaders; +import com.azure.storage.blob.models.BlobStorageException; +import com.azure.storage.blob.specialized.BlobClientBase; + +import java.io.IOException; +import java.io.UncheckedIOException; +import java.nio.file.Path; +import java.nio.file.attribute.BasicFileAttributeView; +import java.nio.file.attribute.FileTime; +import java.util.HashMap; +import java.util.Map; +import java.util.function.Consumer; + +/** + * A file attribute view that provides a view of attributes specific to files stored as blobs in Azure Storage. + *

+ * All attributes are retrieved from the file system as a bulk operation. + *

+ * {@link #setTimes(FileTime, FileTime, FileTime)} is not supported. + */ +public final class AzureBlobFileAttributeView implements BasicFileAttributeView { + private final ClientLogger logger = new ClientLogger(AzureBlobFileAttributeView.class); + + static final String ATTR_CONSUMER_ERROR = "Exception thrown by attribute consumer"; + + private final Path path; + + AzureBlobFileAttributeView(Path path) { + this.path = path; + } + + @SuppressWarnings("unchecked") + static Map> setAttributeConsumers(AzureBlobFileAttributeView view) { + Map> map = new HashMap<>(); + map.put("blobHttpHeaders", obj -> { + try { + view.setBlobHttpHeaders((BlobHttpHeaders) obj); + } catch (IOException e) { + throw LoggingUtility.logError(view.logger, new UncheckedIOException(ATTR_CONSUMER_ERROR, e)); + } + }); + map.put("metadata", obj -> { + try { + Map m = (Map) obj; + if (m == null) { + throw LoggingUtility.logError(view.logger, new ClassCastException()); + } + view.setMetadata(m); + } catch (IOException e) { + throw LoggingUtility.logError(view.logger, new UncheckedIOException(ATTR_CONSUMER_ERROR, e)); + } + }); + map.put("tier", obj -> { + try { + view.setTier((AccessTier) obj); + } catch (IOException e) { + throw LoggingUtility.logError(view.logger, new UncheckedIOException(ATTR_CONSUMER_ERROR, e)); + } + }); + + return map; + } + + /** + * Returns "azureBlob". + * {@inheritDoc} + */ + @Override + public String name() { + return "azureBlob"; + } + + /** + * Reads the file attributes as a bulk operation. + * + * Gets a fresh copy every time it is called. + * @return {@link AzureBlobFileAttributes} + * @throws IOException if an IOException occurs. + */ + @Override + public AzureBlobFileAttributes readAttributes() throws IOException { + return new AzureBlobFileAttributes(path); + } + + /** + * Sets the {@link BlobHttpHeaders} as an atomic operation. + *

+ * See {@link BlobClientBase#setHttpHeaders(BlobHttpHeaders)} for more information. + * @param headers {@link BlobHttpHeaders} + * @throws IOException if an IOException occurs. + */ + public void setBlobHttpHeaders(BlobHttpHeaders headers) throws IOException { + try { + new AzureResource(this.path).getBlobClient().setHttpHeaders(headers); + } catch (BlobStorageException e) { + throw LoggingUtility.logError(logger, new IOException(e)); + } + } + + /** + * Sets the metadata as an atomic operation. + *

+ * See {@link BlobClientBase#setMetadata(Map)} for more information. + * @param metadata The metadata to associate with the blob + * @throws IOException if an IOException occurs. + */ + public void setMetadata(Map metadata) throws IOException { + try { + new AzureResource(this.path).getBlobClient().setMetadata(metadata); + } catch (BlobStorageException e) { + throw LoggingUtility.logError(logger, new IOException(e)); + } + } + + /** + * Sets the {@link AccessTier} on the file. + * + * See {@link BlobClientBase#setAccessTier(AccessTier)} for more information. + * @param tier {@link AccessTier} + * @throws IOException if an IOException occurs. + */ + public void setTier(AccessTier tier) throws IOException { + try { + new AzureResource(this.path).getBlobClient().setAccessTier(tier); + } catch (BlobStorageException e) { + throw LoggingUtility.logError(logger, new IOException(e)); + } + } + + /** + * Unsupported. + * + * @throws UnsupportedOperationException Operation not supported. + * {@inheritDoc} + */ + @Override + public void setTimes(FileTime fileTime, FileTime fileTime1, FileTime fileTime2) throws IOException { + throw new UnsupportedOperationException(); + } +} diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java new file mode 100644 index 000000000000..7c8c25b7fe53 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureBlobFileAttributes.java @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.blob.nio; + +import com.azure.core.util.logging.ClientLogger; +import com.azure.storage.blob.models.AccessTier; +import com.azure.storage.blob.models.ArchiveStatus; +import com.azure.storage.blob.models.BlobHttpHeaders; +import com.azure.storage.blob.models.BlobProperties; +import com.azure.storage.blob.models.BlobStorageException; +import com.azure.storage.blob.models.BlobType; +import com.azure.storage.blob.models.CopyStatusType; + +import java.io.IOException; +import java.nio.file.Path; +import java.nio.file.attribute.BasicFileAttributes; +import java.nio.file.attribute.FileAttribute; +import java.nio.file.attribute.FileTime; +import java.time.OffsetDateTime; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.function.Supplier; + +/** + * File attributes associated with a file stored as a blob in Azure Storage. + *

+ * Some of the attributes inherited from {@link BasicFileAttributes} are not supported. See the docs on each method for + * more information. + */ +public final class AzureBlobFileAttributes implements BasicFileAttributes { + /* + Some blob properties do not have getters as they do not make sense in the context of nio. These properties are: + - incremental snapshot related properties + - lease related properties + - sequence number + - encryption key sha256 + */ + + private final ClientLogger logger = new ClientLogger(AzureBlobFileAttributes.class); + + private final BlobProperties properties; + + AzureBlobFileAttributes(Path path) throws IOException { + try { + this.properties = new AzureResource(path).getBlobClient().getProperties(); + } catch (BlobStorageException e) { + throw LoggingUtility.logError(logger, new IOException("Path: " + path.toString(), e)); + } + } + + static Map> getAttributeSuppliers(AzureBlobFileAttributes attributes) { + Map> map = new HashMap<>(); + map.put("creationTime", attributes::creationTime); + map.put("lastModifiedTime", attributes::lastModifiedTime); + map.put("eTag", attributes::eTag); + map.put("blobHttpHeaders", attributes::blobHttpHeaders); + map.put("blobType", attributes::blobType); + map.put("copyId", attributes::copyId); + map.put("copyStatus", attributes::copyStatus); + map.put("copySource", attributes::copySource); + map.put("copyProgress", attributes::copyProgress); + map.put("copyCompletionTime", attributes::copyCompletionTime); + map.put("copyStatusDescription", attributes::copyStatusDescription); + map.put("isServerEncrypted", attributes::isServerEncrypted); + map.put("accessTier", attributes::accessTier); + map.put("isAccessTierInferred", attributes::isAccessTierInferred); + map.put("archiveStatus", attributes::archiveStatus); + map.put("accessTierChangeTime", attributes::accessTierChangeTime); + map.put("metadata", attributes::metadata); + map.put("committedBlockCount", attributes::committedBlockCount); + map.put("isRegularFile", attributes::isRegularFile); + map.put("isDirectory", attributes::isDirectory); + map.put("isSymbolicLink", attributes::isSymbolicLink); + map.put("isOther", attributes::isOther); + map.put("size", attributes::size); + return map; + } + + /** + * {@inheritDoc} + */ + @Override + public FileTime creationTime() { + return FileTime.from(this.properties.getCreationTime().toInstant()); + } + + /** + * {@inheritDoc} + */ + @Override + public FileTime lastModifiedTime() { + return FileTime.from(this.properties.getLastModified().toInstant()); + } + + /** + * @return the eTag of the blob + */ + public String eTag() { + return this.properties.getETag(); + } + + /** + * @return {@link BlobHttpHeaders} + */ + public BlobHttpHeaders blobHttpHeaders() { + /* + We return these all as one value so it's consistent with the way of setting, especially the setAttribute method + that accepts a string argument for the name of the property. Returning them individually would mean we have to + support setting them individually as well, which is not possible due to service constraints. + */ + return new BlobHttpHeaders() + .setContentType(this.properties.getContentType()) + .setContentLanguage(this.properties.getContentLanguage()) + .setContentMd5(this.properties.getContentMd5()) + .setContentDisposition(this.properties.getContentDisposition()) + .setContentEncoding(this.properties.getContentEncoding()) + .setCacheControl(this.properties.getCacheControl()); + } + + /** + * @return the type of the blob + */ + public BlobType blobType() { + return this.properties.getBlobType(); + } + + /** + * @return the identifier of the last copy operation. If this blob hasn't been the target of a copy operation or has + * been modified since this won't be set. + */ + public String copyId() { + return this.properties.getCopyId(); + } + + /** + * @return the status of the last copy operation. If this blob hasn't been the target of a copy operation or has + * been modified since this won't be set. + */ + public CopyStatusType copyStatus() { + return this.properties.getCopyStatus(); + } + + /** + * @return the source blob URL from the last copy operation. If this blob hasn't been the target of a copy operation + * or has been modified since this won't be set. + */ + public String copySource() { + return this.properties.getCopySource(); + } + + /** + * @return the number of bytes copied and total bytes in the source from the last copy operation (bytes copied/total + * bytes). If this blob hasn't been the target of a copy operation or has been modified since this won't be set. + */ + public String copyProgress() { + return this.properties.getCopyProgress(); + } + + /** + * @return the completion time of the last copy operation. If this blob hasn't been the target of a copy operation + * or has been modified since this won't be set. + */ + public OffsetDateTime copyCompletionTime() { + return this.properties.getCopyCompletionTime(); + } + + /** + * @return the description of the last copy failure, this is set when the {@link #copyStatus() getCopyStatus} is + * {@link CopyStatusType#FAILED failed} or {@link CopyStatusType#ABORTED aborted}. If this blob hasn't been the + * target of a copy operation or has been modified since this won't be set. + */ + public String copyStatusDescription() { + return this.properties.getCopyStatusDescription(); + } + + /** + * @return the status of the blob being encrypted on the server + */ + public Boolean isServerEncrypted() { + return this.properties.isServerEncrypted(); + } + + /** + * @return the tier of the blob. This is only set for Page blobs on a premium storage account or for Block blobs on + * blob storage or general purpose V2 account. + */ + public AccessTier accessTier() { + return this.properties.getAccessTier(); + } + + /** + * @return the status of the tier being inferred for the blob. This is only set for Page blobs on a premium storage + * account or for Block blobs on blob storage or general purpose V2 account. + */ + public Boolean isAccessTierInferred() { + return this.properties.isAccessTierInferred(); + } + + /** + * @return the archive status of the blob. This is only for blobs on a blob storage and general purpose v2 account. + */ + public ArchiveStatus archiveStatus() { + return this.properties.getArchiveStatus(); + } + + /** + * @return the time when the access tier for the blob was last changed + */ + public OffsetDateTime accessTierChangeTime() { + return this.properties.getAccessTierChangeTime(); + } + + /** + * @return the metadata associated with this blob + */ + public Map metadata() { + return Collections.unmodifiableMap(this.properties.getMetadata()); + } + + /** + * @return the number of committed blocks in the blob. This is only returned for Append blobs. + */ + public Integer committedBlockCount() { + return this.properties.getCommittedBlockCount(); + } + + /** + * Unsupported. + * @throws UnsupportedOperationException Operation not supported. + * {@inheritDoc} + */ + @Override + public FileTime lastAccessTime() { + throw new UnsupportedOperationException(); + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isRegularFile() { + return !this.properties.getMetadata().getOrDefault(AzureResource.DIR_METADATA_MARKER, "false").equals("true"); + } + + /** + * {@inheritDoc} + *

+ * Will only return true if the directory is a concrete directory. See + * {@link AzureFileSystemProvider#createDirectory(Path, FileAttribute[])} for more information on virtual and + * concrete directories. + */ + @Override + public boolean isDirectory() { + return !this.isRegularFile(); + } + + /** + * @return false. Symbolic links are not supported. + */ + @Override + public boolean isSymbolicLink() { + return false; + } + + /** + * @return false + */ + @Override + public boolean isOther() { + return false; + } + + /** + * {@inheritDoc} + */ + @Override + public long size() { + return properties.getBlobSize(); + } + + /** + * Unsupported. + * @throws UnsupportedOperationException Operation not supported. + * {@inheritDoc} + */ + @Override + public Object fileKey() { + throw new UnsupportedOperationException(); + } +} diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java index 85559e72f1df..bf5507446bef 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileStore.java @@ -114,7 +114,7 @@ public long getUnallocatedSpace() throws IOException { *

* * {@inheritDoc} @@ -129,7 +129,7 @@ public boolean supportsFileAttributeView(Class aCla * * * {@inheritDoc} diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java index 9733383d2acf..423264e135b5 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystem.java @@ -22,7 +22,6 @@ import java.nio.file.WatchService; import java.nio.file.attribute.BasicFileAttributeView; import java.nio.file.attribute.FileAttributeView; -import java.nio.file.attribute.UserDefinedFileAttributeView; import java.nio.file.attribute.UserPrincipalLookupService; import java.nio.file.spi.FileSystemProvider; @@ -129,8 +128,8 @@ public final class AzureFileSystem extends FileSystem { static { Map, String> map = new HashMap<>(); map.put(BasicFileAttributeView.class, "basic"); - map.put(UserDefinedFileAttributeView.class, "user"); - map.put(AzureStorageFileAttributeView.class, "azureStorage"); + map.put(AzureBasicFileAttributeView.class, "azureBasic"); + map.put(AzureBlobFileAttributeView.class, "azureBlob"); SUPPORTED_ATTRIBUTE_VIEWS = Collections.unmodifiableMap(map); } @@ -268,7 +267,7 @@ public Iterable getFileStores() { * * * {@inheritDoc} diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java index 25c5bd2b72d0..4be316c90c83 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureFileSystemProvider.java @@ -17,6 +17,7 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; +import java.io.UncheckedIOException; import java.net.HttpURLConnection; import java.net.URI; import java.nio.channels.SeekableByteChannel; @@ -35,6 +36,7 @@ import java.nio.file.OpenOption; import java.nio.file.Path; import java.nio.file.StandardCopyOption; +import java.nio.file.attribute.BasicFileAttributeView; import java.nio.file.StandardOpenOption; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.FileAttribute; @@ -43,11 +45,14 @@ import java.time.Duration; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; +import java.util.function.Consumer; +import java.util.function.Supplier; /** * The {@code AzureFileSystemProvider} is Azure Storage's implementation of the nio interface on top of Azure Blob @@ -646,36 +651,226 @@ public void checkAccess(Path path, AccessMode... accessModes) throws IOException } /** + * Returns a file attribute view of a given type. + * + * See {@link AzureBasicFileAttributeView} and {@link AzureBlobFileAttributeView} for more information. + * + * Reading or setting attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * {@inheritDoc} */ @Override + @SuppressWarnings("unchecked") public V getFileAttributeView(Path path, Class aClass, LinkOption... linkOptions) { - return null; + /* + No resource validation is necessary here. That can happen at the time of making a network requests internal to + the view object. + */ + if (aClass == BasicFileAttributeView.class || aClass == AzureBasicFileAttributeView.class) { + return (V) new AzureBasicFileAttributeView(path); + } else if (aClass == AzureBlobFileAttributeView.class) { + return (V) new AzureBlobFileAttributeView(path); + } else { + return null; + } } /** + * Reads a file's attributes as a bulk operation. + * + * See {@link AzureBasicFileAttributes} and {@link AzureBlobFileAttributes} for more information. + * + * Reading attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * {@inheritDoc} */ @Override + @SuppressWarnings("unchecked") public A readAttributes(Path path, Class aClass, LinkOption... linkOptions) throws IOException { - return null; + Class view; + if (aClass == BasicFileAttributes.class || aClass == AzureBasicFileAttributes.class) { + view = AzureBasicFileAttributeView.class; + } else if (aClass == AzureBlobFileAttributes.class) { + view = AzureBlobFileAttributeView.class; + } else { + throw new UnsupportedOperationException(); + } + + /* + Resource validation will happen in readAttributes of the view. We don't want to double check, and checking + internal to the view ensures it is always checked no matter which code path is taken. + */ + return (A) getFileAttributeView(path, view, linkOptions).readAttributes(); } /** + * Reads a set of file attributes as a bulk operation. + * + * See {@link AzureBasicFileAttributes} and {@link AzureBlobFileAttributes} for more information. + * + * Reading attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * {@inheritDoc} */ @Override public Map readAttributes(Path path, String s, LinkOption... linkOptions) throws IOException { - return null; + if (s == null) { + throw LoggingUtility.logError(logger, new IllegalArgumentException("Attribute string cannot be null.")); + } + + Map results = new HashMap<>(); + + /* + AzureBlobFileAttributes can do everything the basic attributes can do and more. There's no need to instantiate + one of each if both are specified somewhere in the list as that will waste a network call. This can be + generified later if we need to add more attribute types, but for now we can stick to just caching the supplier + for a single attributes object. + */ + Map> attributeSuppliers = null; // Initialized later as needed. + String viewType; + String attributeList; + String[] parts = s.split(":"); + + if (parts.length > 2) { + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Invalid format for attribute string: " + s)); + } + + if (parts.length == 1) { + viewType = "basic"; // Per jdk docs. + attributeList = s; + } else { + viewType = parts[0]; + attributeList = parts[1]; + } + + /* + For specificity, our basic implementation of BasicFileAttributes uses the name azureBasic. However, the docs + state that "basic" must be supported, so we funnel to azureBasic. + */ + if (viewType.equals("basic")) { + viewType = "azureBasic"; + } + if (!viewType.equals("azureBasic") && !viewType.equals("azureBlob")) { + throw LoggingUtility.logError(logger, + new UnsupportedOperationException("Invalid attribute view: " + viewType)); + } + + for (String attributeName : attributeList.split(",")) { + /* + We rely on the azureBlobFAV to actually do the work here as mentioned above, but if basic is specified, we + should at least validate that the attribute is available on a basic view. + */ + // TODO: Put these strings in constants + if (viewType.equals("azureBasic")) { + if (!AzureBasicFileAttributes.ATTRIBUTE_STRINGS.contains(attributeName) && !attributeName.equals("*")) { + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Invalid attribute. View: " + viewType + + ". Attribute: " + attributeName)); + } + } + + // As mentioned, azure blob can fulfill requests to both kinds of views. + // Populate the supplier if we haven't already. + if (attributeSuppliers == null) { + attributeSuppliers = AzureBlobFileAttributes.getAttributeSuppliers( + this.readAttributes(path, AzureBlobFileAttributes.class, linkOptions)); + } + + // If "*" is specified, add all of the attributes from the specified set. + if (attributeName.equals("*")) { + Set attributesToAdd; + if (viewType.equals("azureBasic")) { + for (String attr : AzureBasicFileAttributes.ATTRIBUTE_STRINGS) { + results.put(attr, attributeSuppliers.get(attr).get()); + } + } else { + // attributeSuppliers is guaranteed to have been set by this point. + for (Map.Entry> entry: attributeSuppliers.entrySet()) { + results.put(entry.getKey(), entry.getValue().get()); + } + } + + } else if (!attributeSuppliers.containsKey(attributeName)) { + // Validate that the attribute is legal and add the value returned by the supplier to the results. + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Invalid attribute. View: " + viewType + + ". Attribute: " + attributeName)); + } else { + results.put(attributeName, attributeSuppliers.get(attributeName).get()); + + } + } + + // Throw if nothing specified per jdk docs. + if (results.isEmpty()) { + throw LoggingUtility.logError(logger, + new IllegalArgumentException("No attributes were specified. Attributes: " + s)); + } + + return results; } /** + * Sets the value of a file attribute. + * + * See {@link AzureBlobFileAttributeView} for more information. + * + * Setting attributes on a virtual directory is not supported and will throw an {@link IOException}. See + * {@link #createDirectory(Path, FileAttribute[])} for more information on virtual directories. * {@inheritDoc} */ @Override public void setAttribute(Path path, String s, Object o, LinkOption... linkOptions) throws IOException { + String viewType; + String attributeName; + String[] parts = s.split(":"); + if (parts.length > 2) { + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Invalid format for attribute string: " + s)); + } + if (parts.length == 1) { + viewType = "basic"; // Per jdk docs. + attributeName = s; + } else { + viewType = parts[0]; + attributeName = parts[1]; + } + + /* + For specificity, our basic implementation of BasicFileAttributes uses the name azureBasic. However, the docs + state that "basic" must be supported, so we funnel to azureBasic. + */ + if (viewType.equals("basic")) { + viewType = "azureBasic"; + } + // We don't actually support any setters on the basic view. + if (viewType.equals("azureBasic")) { + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Invalid attribute. View: " + viewType + + ". Attribute: " + attributeName)); + } else if (viewType.equals("azureBlob")) { + Map> attributeConsumers = AzureBlobFileAttributeView.setAttributeConsumers( + this.getFileAttributeView(path, AzureBlobFileAttributeView.class, linkOptions)); + if (!attributeConsumers.containsKey(attributeName)) { + // Validate that the attribute is legal and add the value returned by the supplier to the results. + throw LoggingUtility.logError(logger, + new IllegalArgumentException("Invalid attribute. View: " + viewType + + ". Attribute: " + attributeName)); + } + try { + attributeConsumers.get(attributeName).accept(o); + } catch (UncheckedIOException e) { + if (e.getMessage().equals(AzureBlobFileAttributeView.ATTR_CONSUMER_ERROR)) { + throw LoggingUtility.logError(logger, e.getCause()); + } + } + } else { + throw LoggingUtility.logError(logger, + new UnsupportedOperationException("Invalid attribute view: " + viewType)); + } } void closeFileSystem(String fileSystemName) { diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java index 2765cba8c365..e9f3595bee0d 100644 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java +++ b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureResource.java @@ -69,7 +69,7 @@ If the parent is just the root (or null, which means the parent is implicitly th */ Path parent = this.path.getParent(); return (parent == null || parent.equals(path.getRoot())) - || new AzureResource((AzurePath) this.path.getParent()).checkDirectoryExists(); + || new AzureResource(this.path.getParent()).checkDirectoryExists(); } /** diff --git a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureStorageFileAttributeView.java b/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureStorageFileAttributeView.java deleted file mode 100644 index 39e529884761..000000000000 --- a/sdk/storage/azure-storage-blob-nio/src/main/java/com/azure/storage/blob/nio/AzureStorageFileAttributeView.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -package com.azure.storage.blob.nio; - -import java.nio.file.attribute.FileAttributeView; - -/** - * Provides support for properties specific to Azure Blob Storage such as tier. - * - * {@inheritDoc} - */ -public class AzureStorageFileAttributeView implements FileAttributeView { - - /** - * Returns {@code "azureStorage"} - * {@inheritDoc} - */ - @Override - public String name() { - return "azureStorage"; - } -} diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy new file mode 100644 index 000000000000..1a9585a9378e --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AttributeViewTest.groovy @@ -0,0 +1,242 @@ +package com.azure.storage.blob.nio + +import com.azure.storage.blob.BlobClient +import com.azure.storage.blob.models.AccessTier +import com.azure.storage.blob.models.BlobHttpHeaders +import spock.lang.Unroll + +import java.nio.file.attribute.FileTime +import java.security.MessageDigest + +class AttributeViewTest extends APISpec { + /* + Get attributes--All properties set + */ + BlobClient bc + AzureFileSystem fs + + def setup() { + fs = createFS(initializeConfigMap()) + cc = rootNameToContainerClient(getDefaultDir(fs)) + bc = cc.getBlobClient(generateBlobName()) + bc.upload(defaultInputStream.get(), defaultDataSize) + } + + def cleanup() { + cc.delete() + } + + def "AzureBasicFileAttributeView readAttributes"() { + setup: + def path = fs.getPath(bc.getBlobName()) + + when: + def attr = new AzureBasicFileAttributeView(path).readAttributes() + def props = bc.getProperties() + + then: + props.getBlobSize() == attr.size() + FileTime.from(props.getLastModified().toInstant()) == attr.lastModifiedTime() + FileTime.from(props.getCreationTime().toInstant()) == attr.creationTime() + attr.isRegularFile() + !attr.isDirectory() + !attr.isSymbolicLink() + !attr.isOther() + } + + def "AzureBasicFileAttributeView directory"() { + setup: + def path = fs.getPath(generateBlobName()) + putDirectoryBlob(new AzureResource(path).getBlobClient().getBlockBlobClient()) + + when: + def attr = new AzureBasicFileAttributeView(path).readAttributes() + + then: + attr.isDirectory() + !attr.isRegularFile() + !attr.isOther() + !attr.isSymbolicLink() + } + + def "AzureBlobFileAttributeView readAttributes"() { + setup: + def path = fs.getPath(bc.getBlobName()) + + when: + def attr = new AzureBlobFileAttributeView(path).readAttributes() + def suppliers = AzureBlobFileAttributes.getAttributeSuppliers(attr) + def props = bc.getProperties() + + then: + // getters + props.getBlobSize() == attr.size() + FileTime.from(props.getLastModified().toInstant()) == attr.lastModifiedTime() + FileTime.from(props.getCreationTime().toInstant()) == attr.creationTime() + attr.isRegularFile() + !attr.isDirectory() + !attr.isSymbolicLink() + !attr.isOther() + props.getETag() == attr.eTag() + props.getContentType() == attr.blobHttpHeaders().getContentType() + props.getContentMd5() == attr.blobHttpHeaders().getContentMd5() + props.getContentLanguage() == attr.blobHttpHeaders().getContentLanguage() + props.getContentEncoding() == attr.blobHttpHeaders().getContentEncoding() + props.getContentDisposition() == attr.blobHttpHeaders().getContentDisposition() + props.getCacheControl() == attr.blobHttpHeaders().getCacheControl() + props.getBlobType() == attr.blobType() + props.getCopyId() == attr.copyId() + props.getCopyStatus() == attr.copyStatus() + props.getCopySource() == attr.copySource() + props.getCopyProgress() == attr.copyProgress() + props.getCopyCompletionTime() == attr.copyCompletionTime() + props.getCopyStatusDescription() == attr.copyStatusDescription() + props.isServerEncrypted() == attr.isServerEncrypted() + props.getAccessTier() == attr.accessTier() + props.isAccessTierInferred() == attr.isAccessTierInferred() + props.getArchiveStatus() == attr.archiveStatus() + props.getAccessTierChangeTime() == attr.accessTierChangeTime() + props.getMetadata() == attr.metadata() + props.getCommittedBlockCount() == attr.committedBlockCount() + + /* + suppliers. Used in FileSystemProvider.readAttributes(String) + Unlike the consumers used for setting properties, we test these here rather than + on the FileSystemProvider because there are so many of them and it is more feasible this way rather + than having a test for each method like the consumers. + */ + props.getBlobSize() == suppliers.get("size").get() + FileTime.from(props.getLastModified().toInstant()) == suppliers.get("lastModifiedTime").get() + FileTime.from(props.getCreationTime().toInstant()) == suppliers.get("creationTime").get() + attr.isRegularFile() + !attr.isDirectory() + !attr.isSymbolicLink() + !attr.isOther() + props.getETag() == suppliers.get("eTag").get() + props.getContentType() == ((BlobHttpHeaders) suppliers.get("blobHttpHeaders").get()).getContentType() + props.getContentMd5() == ((BlobHttpHeaders) suppliers.get("blobHttpHeaders").get()).getContentMd5() + props.getContentLanguage() == ((BlobHttpHeaders) suppliers.get("blobHttpHeaders").get()).getContentLanguage() + props.getContentEncoding() == ((BlobHttpHeaders) suppliers.get("blobHttpHeaders").get()).getContentEncoding() + props.getContentDisposition() == ((BlobHttpHeaders) suppliers.get("blobHttpHeaders").get()) + .getContentDisposition() + props.getCacheControl() == ((BlobHttpHeaders) suppliers.get("blobHttpHeaders").get()).getCacheControl() + props.getBlobType() == suppliers.get("blobType").get() + props.getCopyId() == suppliers.get("copyId").get() + props.getCopyStatus() == suppliers.get("copyStatus").get() + props.getCopySource() == suppliers.get("copySource").get() + props.getCopyProgress() == suppliers.get("copyProgress").get() + props.getCopyCompletionTime() == suppliers.get("copyCompletionTime").get() + props.getCopyStatusDescription() == suppliers.get("copyStatusDescription").get() + props.isServerEncrypted() == suppliers.get("isServerEncrypted").get() + props.getAccessTier() == suppliers.get("accessTier").get() + props.isAccessTierInferred() == suppliers.get("isAccessTierInferred").get() + props.getArchiveStatus() == suppliers.get("archiveStatus").get() + props.getAccessTierChangeTime() == suppliers.get("accessTierChangeTime").get() + props.getMetadata() == suppliers.get("metadata").get() + props.getCommittedBlockCount() == suppliers.get("committedBlockCount").get() + } + + @Unroll + def "AzureBlobFileAttributeView setBlobHttpHeaders"() { + setup: + def path = fs.getPath(bc.getBlobName()) + def view = new AzureBlobFileAttributeView(path) + def headers = new BlobHttpHeaders().setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentMd5(contentMD5) + .setContentType(contentType) + + when: + view.setBlobHttpHeaders(headers) + def response = bc.getProperties() + + then: + response.getCacheControl() == cacheControl + response.getContentDisposition() == contentDisposition + response.getContentEncoding() == contentEncoding + response.getContentLanguage() == contentLanguage + response.getContentMd5() == contentMD5 + response.getContentType() == 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 "AzureBlobFileAttributeView setMetadata"() { + setup: + def path = fs.getPath(bc.getBlobName()) + def view = new AzureBlobFileAttributeView(path) + def metadata = new HashMap() + if (key1 != null && value1 != null) { + metadata.put(key1, value1) + } + if (key2 != null && value2 != null) { + metadata.put(key2, value2) + } + + when: + view.setMetadata(metadata) + + then: + bc.getProperties().getMetadata() == metadata + + where: + key1 | value1 | key2 | value2 || statusCode + null | null | null | null || 200 + "foo" | "bar" | "fizz" | "buzz" || 200 + "i0" | "a" | "i_" | "a" || 200 /* Test culture sensitive word sort */ + } + + @Unroll + def "AzureBlobFileAttributeView setTier"() { + setup: + def path = fs.getPath(bc.getBlobName()) + def view = new AzureBlobFileAttributeView(path) + + when: + view.setTier(tier) + + then: + bc.getProperties().getAccessTier() == tier + + where: + tier | _ + AccessTier.HOT | _ + AccessTier.COOL | _ + /* + We don't test archive because it takes a while to take effect, and testing these two demonstrates that the tier + is successfully being passed to the underlying client. + */ + } + + @Unroll + def "AttributeView setTimes unsupported"() { + setup: + def path = fs.getPath(bc.getBlobName()) + def blobView = new AzureBlobFileAttributeView(path) + def basicView = new AzureBasicFileAttributeView(path) + + when: + blobView.setTimes(t1, t2, t3) + + then: + thrown(UnsupportedOperationException) + + when: + basicView.setTimes(t1, t2, t3) + + then: + thrown(UnsupportedOperationException) + + where: + t1 | t2 | t3 + FileTime.fromMillis(System.currentTimeMillis()) | null | null + null | FileTime.fromMillis(System.currentTimeMillis()) | null + null | null | FileTime.fromMillis(System.currentTimeMillis()) + } +} diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileStoreTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileStoreTest.groovy index 3f72f525cf37..e663fb006f94 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileStoreTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileStoreTest.groovy @@ -66,8 +66,8 @@ class AzureFileStoreTest extends APISpec { where: view | viewName || supports BasicFileAttributeView.class | "basic" || true - UserDefinedFileAttributeView.class | "user" || true - AzureStorageFileAttributeView.class | "azureStorage" || true + AzureBlobFileAttributeView.class | "azureBlob" || true + AzureBasicFileAttributeView.class | "azureBasic" || true PosixFileAttributeView.class | "posix" || false } diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy index b5bff84a6160..59b5c9737b86 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemProviderTest.groovy @@ -4,6 +4,8 @@ package com.azure.storage.blob.nio import com.azure.storage.blob.BlobClient +import com.azure.storage.blob.models.AccessTier +import com.azure.storage.blob.models.BlobHttpHeaders import com.azure.storage.blob.specialized.AppendBlobClient import com.azure.storage.blob.specialized.BlockBlobClient import spock.lang.Requires @@ -18,6 +20,10 @@ import java.nio.file.FileSystemNotFoundException import java.nio.file.NoSuchFileException import java.nio.file.StandardCopyOption import java.nio.file.StandardOpenOption +import java.nio.file.attribute.BasicFileAttributeView +import java.nio.file.attribute.BasicFileAttributes +import java.nio.file.attribute.DosFileAttributeView +import java.nio.file.attribute.DosFileAttributes import java.nio.file.attribute.FileAttribute import java.security.MessageDigest @@ -908,7 +914,8 @@ class AzureFileSystemProviderTest extends APISpec { } @Unroll - @Requires({ liveMode() }) // Because we upload in blocks + @Requires({ liveMode() }) + // Because we upload in blocks def "OutputStream file system config"() { setup: def blockSize = 50L @@ -952,6 +959,322 @@ class AzureFileSystemProviderTest extends APISpec { thrown(IOException) } + @Unroll + def "GetAttributeView"() { + setup: + def fs = createFS(config) + + expect: + // No path validation is expected for getting the view + fs.provider().getFileAttributeView(fs.getPath("path"), type).class == expected + + where: + type || expected + BasicFileAttributeView.class || AzureBasicFileAttributeView.class + AzureBasicFileAttributeView.class || AzureBasicFileAttributeView.class + AzureBlobFileAttributeView.class || AzureBlobFileAttributeView.class + } + + def "GetAttributeView fail"() { + setup: + def fs = createFS(config) + + expect: + // No path validation is expected for getting the view + fs.provider().getFileAttributeView(fs.getPath("path"), DosFileAttributeView.class) == null + } + + @Unroll + def "ReadAttributes"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + expect: + fs.provider().readAttributes(path, type).class == expected + + where: + type || expected + BasicFileAttributes.class || AzureBasicFileAttributes.class + AzureBasicFileAttributes.class || AzureBasicFileAttributes.class + AzureBlobFileAttributes.class || AzureBlobFileAttributes.class + } + + def "ReadAttributes directory"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + putDirectoryBlob(new AzureResource(path).getBlobClient().getBlockBlobClient()) + + when: + fs.provider().readAttributes(path, BasicFileAttributes.class) + + then: + notThrown(IOException) + } + + def "ReadAttributes unsupported"() { + setup: + def fs = createFS(config) + + when: + fs.provider().readAttributes(fs.getPath("path"), DosFileAttributes.class) + + then: + thrown(UnsupportedOperationException) + } + + def "ReadAttributes IOException"() { + setup: + def fs = createFS(config) + + when: "Path does not exist" + // Covers virtual directory, too + fs.provider().readAttributes(fs.getPath("path"), BasicFileAttributes.class) + + then: + thrown(IOException) + } + + @Unroll + def "ReadAttributes str parsing"() { + /* + This test checks that we correctly parse the attribute string and that all the requested attributes are + represented in the return value. We can also just test a subset of attributes for parsing logic. + */ + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + when: + def result = fs.provider().readAttributes(path, attrStr) + + then: + for (String attr : attrList) { + assert result.keySet().contains(attr) + } + result.keySet().size() == attrList.size() + + where: + attrStr || attrList + "*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] + "basic:*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] + "azureBasic:*" || ["lastModifiedTime", "creationTime", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] + "azureBlob:*" || ["lastModifiedTime", "creationTime", "eTag", "blobHttpHeaders", "blobType", "copyId", "copyStatus", "copySource", "copyProgress", "copyCompletionTime", "copyStatusDescription", "isServerEncrypted", "accessTier", "isAccessTierInferred", "archiveStatus", "accessTierChangeTime", "metadata", "committedBlockCount", "isRegularFile", "isDirectory", "isSymbolicLink", "isOther", "size"] + "lastModifiedTime,creationTime" || ["lastModifiedTime", "creationTime"] + "basic:isRegularFile,isDirectory" || ["isRegularFile", "isDirectory"] + "azureBasic:size" || ["size"] + "azureBlob:eTag,blobHttpHeaders,blobType,copyId" || ["eTag", "blobHttpHeaders", "blobType", "copyId"] + } + + def "ReadAttributes str suppliers"() { + // This test checks that for each requested attribute, we call the correct supplier and that the supplier maps to the correct property + } + + def "ReadAttributes str directory"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + putDirectoryBlob(new AzureResource(path).getBlobClient().getBlockBlobClient()) + + when: + fs.provider().readAttributes(path, "creationTime") + + then: + notThrown(IOException) + } + + @Unroll + def "ReadAttributes str IA"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + + when: + fs.provider().readAttributes(path, attrStr) + + then: + thrown(IllegalArgumentException) + + where: + attrStr | _ + "azureBlob:size:foo" | _ // Invalid format + "" | _ // empty + "azureBasic:foo" | _ // Invalid property + } + + def "ReadAttributes str invalid view"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + + when: + fs.provider().readAttributes(path, "foo:size") + + then: + thrown(UnsupportedOperationException) + } + + def "ReadAttributes str IOException"() { + setup: + def fs = createFS(config) + + when: "Path does not exist" + // Covers virtual directory, too + fs.provider().readAttributes(fs.getPath("path"), "basic:creationTime") + + then: + thrown(IOException) + } + + @Unroll + def "SetAttributes headers"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + def headers = new BlobHttpHeaders().setCacheControl(cacheControl) + .setContentDisposition(contentDisposition) + .setContentEncoding(contentEncoding) + .setContentLanguage(contentLanguage) + .setContentMd5(contentMD5) + .setContentType(contentType) + + when: + fs.provider().setAttribute(path, "azureBlob:blobHttpHeaders", headers) + headers = fs.provider().readAttributes(path, AzureBlobFileAttributes.class).blobHttpHeaders() + + then: + headers.getCacheControl() == cacheControl + headers.getContentDisposition() == contentDisposition + headers.getContentEncoding() == contentEncoding + headers.getContentLanguage() == contentLanguage + headers.getContentMd5() == contentMD5 + headers.getContentType() == 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 "SetAttributes metadata"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + def metadata = new HashMap() + if (key1 != null && value1 != null) { + metadata.put(key1, value1) + } + if (key2 != null && value2 != null) { + metadata.put(key2, value2) + } + + when: + fs.provider().setAttribute(path, "azureBlob:metadata", metadata) + def returnedMetadata = fs.provider().readAttributes(path, AzureBlobFileAttributes.class).metadata() + + then: + metadata == returnedMetadata + + where: + key1 | value1 | key2 | value2 || statusCode + null | null | null | null || 200 + "foo" | "bar" | "fizz" | "buzz" || 200 + "i0" | "a" | "i_" | "a" || 200 /* Test culture sensitive word sort */ + } + + @Unroll + def "SetAttributes tier"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + def os = fs.provider().newOutputStream(path) + os.close() + + when: + fs.provider().setAttribute(path, "azureBlob:tier", tier) + + then: + fs.provider().readAttributes(path, AzureBlobFileAttributes.class).accessTier() == tier + + where: + tier | _ + AccessTier.HOT | _ + AccessTier.COOL | _ + /* + We don't test archive because it takes a while to take effect, and testing these two demonstrates that the tier + is successfully being passed to the underlying client. + */ + } + + @Unroll + def "SetAttributes directory"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + putDirectoryBlob(new AzureResource(path).getBlobClient().getBlockBlobClient()) + + when: + fs.provider().setAttribute(path, "azureBlob:tier", AccessTier.COOL) + + then: + notThrown(IOException) + } + + @Unroll + def "SetAttributes IA"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + + when: + fs.provider().setAttribute(path, attrStr, "Foo") + + then: + thrown(IllegalArgumentException) + + where: + attrStr | _ + "azureBlob:metadata:foo" | _ // Invalid format + "" | _ // empty + "azureBasic:foo" | _ // Invalid property + } + + def "SetAttributes invalid view"() { + setup: + def fs = createFS(config) + def path = fs.getPath(generateBlobName()) + + when: + fs.provider().setAttribute(path, "foo:size", "foo") + + then: + thrown(UnsupportedOperationException) + } + + def "SetAttributes IOException"() { + setup: + def fs = createFS(config) + + when: "Path does not exist" + // Covers virtual directory, too + fs.provider().setAttribute(fs.getPath("path"), "azureBlob:metadata", Collections.emptyMap()) + + then: + thrown(IOException) + } + def basicSetupForCopyTest(FileSystem fs) { // Generate resource names. // Don't use default directory to ensure we honor the root. diff --git a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemTest.groovy b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemTest.groovy index 240a0b9c8306..47a8989c410a 100644 --- a/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemTest.groovy +++ b/sdk/storage/azure-storage-blob-nio/src/test/java/com/azure/storage/blob/nio/AzureFileSystemTest.groovy @@ -216,8 +216,8 @@ class AzureFileSystemTest extends APISpec { where: view | supports "basic" | true - "user" | true - "azureStorage" | true + "azureBasic" | true + "azureBlob" | true "posix" | false } diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[0].json new file mode 100644 index 000000000000..026a41b87d22 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[0].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported182220563339f0c97?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "94913c7d-4bfc-4fb7-b96a-efb2437152f8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "c6bdc8d3-101e-0021-734d-4e7c2c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:c6bdc8d3-101e-0021-734d-4e7c2c000000\nTime:2020-06-29T19:40:27.7854484Z", + "Date" : "Mon, 29 Jun 2020 19:40:26 GMT", + "x-ms-client-request-id" : "94913c7d-4bfc-4fb7-b96a-efb2437152f8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported182220563339f0c97?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4c8a0002-bd57-49d2-9635-df4aca195313" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C644696973B", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:27 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5f26a1c6-a01e-0099-7f4d-4e9edf000000", + "Date" : "Mon, 29 Jun 2020 19:40:27 GMT", + "x-ms-client-request-id" : "4c8a0002-bd57-49d2-9635-df4aca195313" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported2611461be8ff8b7b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "218c80bd-c89a-415e-97de-295daa14ff7c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "7283252d-301e-0139-764d-4e17ec000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:7283252d-301e-0139-764d-4e17ec000000\nTime:2020-06-29T19:40:28.1121123Z", + "Date" : "Mon, 29 Jun 2020 19:40:28 GMT", + "x-ms-client-request-id" : "218c80bd-c89a-415e-97de-295daa14ff7c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported2611461be8ff8b7b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8dcca6f1-c90e-42f2-9d7c-62325623c741" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6446C606BD", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:28 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2a617360-901e-005d-444d-4ee119000000", + "Date" : "Mon, 29 Jun 2020 19:40:27 GMT", + "x-ms-client-request-id" : "8dcca6f1-c90e-42f2-9d7c-62325623c741" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported182220563339f0c97/javablobattributeviewsettimesunsupported375344def9dd57", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "93d66fbb-fbd8-49fa-afd5-94819a77a380", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:28 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:27 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C6446E1291D", + "Content-Length" : "0", + "x-ms-request-id" : "afb91a89-801e-0049-4c4d-4e227d000000", + "x-ms-client-request-id" : "93d66fbb-fbd8-49fa-afd5-94819a77a380" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported182220563339f0c97?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "01ce62c0-180d-4bc4-ab79-fcf5eb61a2bb" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9a325db1-601e-00ad-2d4d-4e3177000000", + "Date" : "Mon, 29 Jun 2020 19:40:27 GMT", + "x-ms-client-request-id" : "01ce62c0-180d-4bc4-ab79-fcf5eb61a2bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcattributeviewsettimesunsupported&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2cfefd46-11c2-4c43-bbc1-fd40465cb605" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "049b8d94-901e-00d5-754d-4e59c0000000", + "Body" : "jtcattributeviewsettimesunsupportedjtcattributeviewsettimesunsupported2611461be8ff8b7b5Mon, 29 Jun 2020 19:40:28 GMT\"0x8D81C6446C606BD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:28 GMT", + "x-ms-client-request-id" : "2cfefd46-11c2-4c43-bbc1-fd40465cb605", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported2611461be8ff8b7b5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2e339a35-b800-4a39-8f9b-d7e8aa891c4d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "e7a623a5-501e-00ae-414d-4e3270000000", + "Date" : "Mon, 29 Jun 2020 19:40:28 GMT", + "x-ms-client-request-id" : "2e339a35-b800-4a39-8f9b-d7e8aa891c4d" + }, + "Exception" : null + } ], + "variables" : [ "jtcattributeviewsettimesunsupported079975668a30ebc99", "jtcattributeviewsettimesunsupported182220563339f0c97", "jtcattributeviewsettimesunsupported2611461be8ff8b7b5", "javablobattributeviewsettimesunsupported375344def9dd57" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[1].json new file mode 100644 index 000000000000..b6a2ebbb531c --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[1].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported14552883c497ab8e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cdd4bc2c-5e71-4c54-996f-e693b5ceca88" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "3229ad26-a01e-00d6-5e4d-4e5ac7000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3229ad26-a01e-00d6-5e4d-4e5ac7000000\nTime:2020-06-29T19:40:29.0811724Z", + "Date" : "Mon, 29 Jun 2020 19:40:28 GMT", + "x-ms-client-request-id" : "cdd4bc2c-5e71-4c54-996f-e693b5ceca88", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported14552883c497ab8e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b92e7575-2f8a-49ef-80b6-333c9c573213" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64475AEF03", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "710bce92-401e-00fe-764d-4e2d78000000", + "Date" : "Mon, 29 Jun 2020 19:40:28 GMT", + "x-ms-client-request-id" : "b92e7575-2f8a-49ef-80b6-333c9c573213" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported245336fb55c1265d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "92800901-7e2c-4d46-8264-73e9154d28ba" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "d25f422c-201e-0126-524d-4eccfc000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d25f422c-201e-0126-524d-4eccfc000000\nTime:2020-06-29T19:40:29.3947049Z", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "92800901-7e2c-4d46-8264-73e9154d28ba", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported245336fb55c1265d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "71bf5119-f9b5-4a6a-87da-2f011e80b66f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C644789FF84", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:29 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7ed25047-501e-00ea-1d4d-4eee1c000000", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "71bf5119-f9b5-4a6a-87da-2f011e80b66f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported14552883c497ab8e8/javablobattributeviewsettimesunsupported3853882130875c", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "17479d21-c9fe-4b8d-ba64-ff3666f39d82", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:29 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C6447A348FF", + "Content-Length" : "0", + "x-ms-request-id" : "31a7b760-301e-0072-744d-4e6023000000", + "x-ms-client-request-id" : "17479d21-c9fe-4b8d-ba64-ff3666f39d82" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported14552883c497ab8e8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8071a635-00af-45cd-afe4-3bcf29b19971" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b5855797-301e-0036-6c4d-4ebc4f000000", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "8071a635-00af-45cd-afe4-3bcf29b19971" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcattributeviewsettimesunsupported&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "af95118a-4293-40d8-aaa6-8824e6bf87d7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "08a64c77-c01e-0023-434d-4e7ed6000000", + "Body" : "jtcattributeviewsettimesunsupportedjtcattributeviewsettimesunsupported245336fb55c1265d4Mon, 29 Jun 2020 19:40:29 GMT\"0x8D81C644789FF84\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "af95118a-4293-40d8-aaa6-8824e6bf87d7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported245336fb55c1265d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e1b87339-e041-4cfc-bda3-96e0e0728a66" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8caabc8d-001e-0113-604d-4e62a9000000", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "e1b87339-e041-4cfc-bda3-96e0e0728a66" + }, + "Exception" : null + } ], + "variables" : [ "jtcattributeviewsettimesunsupported01048582f6426c77c", "jtcattributeviewsettimesunsupported14552883c497ab8e8", "jtcattributeviewsettimesunsupported245336fb55c1265d4", "javablobattributeviewsettimesunsupported3853882130875c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[2].json new file mode 100644 index 000000000000..c2b155703880 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestattributeviewsettimesunsupported[2].json @@ -0,0 +1,174 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported1918315ba4854eae8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "94ce2105-02f0-4225-a192-277f3b463320" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "42de7f0f-a01e-00ff-6c4d-4e2c85000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:42de7f0f-a01e-00ff-6c4d-4e2c85000000\nTime:2020-06-29T19:40:30.3299951Z", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "94ce2105-02f0-4225-a192-277f3b463320", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported1918315ba4854eae8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e1ee4f21-682f-4df9-8987-f057e5d5b634" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6448198436", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "42081801-b01e-00eb-6d4d-4eefe1000000", + "Date" : "Mon, 29 Jun 2020 19:40:30 GMT", + "x-ms-client-request-id" : "e1ee4f21-682f-4df9-8987-f057e5d5b634" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported219906ff460d82fa1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "323beff7-7926-483f-8fe7-550351b2afef" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "fc1b5207-c01e-0127-3a4d-4ecd01000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fc1b5207-c01e-0127-3a4d-4ecd01000000\nTime:2020-06-29T19:40:30.6450381Z", + "Date" : "Mon, 29 Jun 2020 19:40:30 GMT", + "x-ms-client-request-id" : "323beff7-7926-483f-8fe7-550351b2afef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported219906ff460d82fa1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b0bb0127-da22-4383-bc6f-4f1c24d38f5f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6448496189", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:30 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2ef205ed-501e-004b-804d-4e2087000000", + "Date" : "Mon, 29 Jun 2020 19:40:29 GMT", + "x-ms-client-request-id" : "b0bb0127-da22-4383-bc6f-4f1c24d38f5f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported1918315ba4854eae8/javablobattributeviewsettimesunsupported3451209825b621", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4b39077d-521d-4f37-818c-c1fc9ed8a8d9", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:30 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:30 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C644860FAF6", + "Content-Length" : "0", + "x-ms-request-id" : "51e792ef-401e-00d7-6a4d-4e5b3a000000", + "x-ms-client-request-id" : "4b39077d-521d-4f37-818c-c1fc9ed8a8d9" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported1918315ba4854eae8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5e8492b7-86f9-4a86-bcb2-dfb5fc5a9a9b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "4452b5f2-801e-0060-7e4d-4e543f000000", + "Date" : "Mon, 29 Jun 2020 19:40:30 GMT", + "x-ms-client-request-id" : "5e8492b7-86f9-4a86-bcb2-dfb5fc5a9a9b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcattributeviewsettimesunsupported&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "10dd49ef-197d-4ee9-b22b-c331dc7f3781" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b666b786-401e-0114-5b4d-4e942c000000", + "Body" : "jtcattributeviewsettimesunsupportedjtcattributeviewsettimesunsupported219906ff460d82fa1Mon, 29 Jun 2020 19:40:30 GMT\"0x8D81C6448496189\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:30 GMT", + "x-ms-client-request-id" : "10dd49ef-197d-4ee9-b22b-c331dc7f3781", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcattributeviewsettimesunsupported219906ff460d82fa1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6d5f23c9-3966-4685-9dbd-08613c56e157" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b2612e00-a01e-0038-1b4d-4e5044000000", + "Date" : "Mon, 29 Jun 2020 19:40:30 GMT", + "x-ms-client-request-id" : "6d5f23c9-3966-4685-9dbd-08613c56e157" + }, + "Exception" : null + } ], + "variables" : [ "jtcattributeviewsettimesunsupported063342d335c29a208", "jtcattributeviewsettimesunsupported1918315ba4854eae8", "jtcattributeviewsettimesunsupported219906ff460d82fa1", "javablobattributeviewsettimesunsupported3451209825b621" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazurebasicfileattributeviewdirectory.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazurebasicfileattributeviewdirectory.json new file mode 100644 index 000000000000..8b03d8be495e --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazurebasicfileattributeviewdirectory.json @@ -0,0 +1,227 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory1170332acf31a01?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1344815c-bd40-42e6-8919-ac8cb3b2b983" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "4452a17b-801e-0060-194d-4e543f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:4452a17b-801e-0060-194d-4e543f000000\nTime:2020-06-29T19:40:13.0863570Z", + "Date" : "Mon, 29 Jun 2020 19:40:12 GMT", + "x-ms-client-request-id" : "1344815c-bd40-42e6-8919-ac8cb3b2b983", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory1170332acf31a01?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3c75c65e-c8e8-4567-8d3d-6964bb0a5eea" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643DD28058", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b666a53f-401e-0114-354d-4e942c000000", + "Date" : "Mon, 29 Jun 2020 19:40:12 GMT", + "x-ms-client-request-id" : "3c75c65e-c8e8-4567-8d3d-6964bb0a5eea" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory216007edc121e8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bffebd04-40c6-44f4-b044-087553763cb1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "5c8dae17-301e-00d8-584d-4eb6cc000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:5c8dae17-301e-00d8-584d-4eb6cc000000\nTime:2020-06-29T19:40:13.4173191Z", + "Date" : "Mon, 29 Jun 2020 19:40:12 GMT", + "x-ms-client-request-id" : "bffebd04-40c6-44f4-b044-087553763cb1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory216007edc121e8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4255d165-da07-49a7-b350-f7249f669535" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643E045D1A", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f3953ab5-501e-0100-214d-4e5748000000", + "Date" : "Mon, 29 Jun 2020 19:40:13 GMT", + "x-ms-client-request-id" : "4255d165-da07-49a7-b350-f7249f669535" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory1170332acf31a01/javablobazurebasicfileattributeviewdirectory396544396ecf", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "daa2201d-9c0b-4b7c-a8aa-b58026cc85a0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:13 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C643E1E1D93", + "Content-Length" : "0", + "x-ms-request-id" : "3045bc6f-a01e-00b0-5d4d-4ee89d000000", + "x-ms-client-request-id" : "daa2201d-9c0b-4b7c-a8aa-b58026cc85a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory1170332acf31a01/javablobazurebasicfileattributeviewdirectory4662394d9819?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "83c73663-d769-48a6-8e04-2108abf7bd5e", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643E47CFD5", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3c3d4973-901e-0074-134d-4e975b000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:13 GMT", + "x-ms-client-request-id" : "83c73663-d769-48a6-8e04-2108abf7bd5e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory1170332acf31a01/javablobazurebasicfileattributeviewdirectory4662394d9819", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5b7fa9cc-2df3-4796-a2c7-8fd3631de097" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:14 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-meta-hdi_isfolder" : "true", + "ETag" : "0x8D81C643E47CFD5", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:14 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2c5c19bf-301e-009c-6e4d-4e6aa0000000", + "x-ms-client-request-id" : "5b7fa9cc-2df3-4796-a2c7-8fd3631de097", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory1170332acf31a01?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f7d65cc2-5f18-4ea2-aa8f-cb9cbed55df8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "c100957d-601e-0061-1b4d-4e55c2000000", + "Date" : "Mon, 29 Jun 2020 19:40:14 GMT", + "x-ms-client-request-id" : "f7d65cc2-5f18-4ea2-aa8f-cb9cbed55df8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazurebasicfileattributeviewdirectory&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "44d1e0cc-f68f-4732-ba33-814c65c6c655" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d120d4f8-f01e-004d-3d4d-4ed7ff000000", + "Body" : "jtcazurebasicfileattributeviewdirectoryjtcazurebasicfileattributeviewdirectory216007edc121e8cMon, 29 Jun 2020 19:40:13 GMT\"0x8D81C643E045D1A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:14 GMT", + "x-ms-client-request-id" : "44d1e0cc-f68f-4732-ba33-814c65c6c655", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewdirectory216007edc121e8c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7aa503f2-7b6f-4094-9f17-a64508848a86" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ebc2c3bb-601e-0025-514d-4e89ae000000", + "Date" : "Mon, 29 Jun 2020 19:40:13 GMT", + "x-ms-client-request-id" : "7aa503f2-7b6f-4094-9f17-a64508848a86" + }, + "Exception" : null + } ], + "variables" : [ "jtcazurebasicfileattributeviewdirectory034138295640901", "jtcazurebasicfileattributeviewdirectory1170332acf31a01", "jtcazurebasicfileattributeviewdirectory216007edc121e8c", "javablobazurebasicfileattributeviewdirectory396544396ecf", "javablobazurebasicfileattributeviewdirectory4662394d9819" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazurebasicfileattributeviewreadattributes.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazurebasicfileattributeviewreadattributes.json new file mode 100644 index 000000000000..7a8a2d6e0fff --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazurebasicfileattributeviewreadattributes.json @@ -0,0 +1,232 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes174994735ae2?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "45cfd00b-89cd-4f42-967b-893127970377" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "5419cb85-b01e-004a-274d-4e217a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:5419cb85-b01e-004a-274d-4e217a000000\nTime:2020-06-29T19:40:10.7235703Z", + "Date" : "Mon, 29 Jun 2020 19:40:10 GMT", + "x-ms-client-request-id" : "45cfd00b-89cd-4f42-967b-893127970377", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes174994735ae2?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d4f59bd3-9faf-4995-b52c-bd010f250771" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643C8747D5", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "82b842e4-201e-0022-334d-4e7f2b000000", + "Date" : "Mon, 29 Jun 2020 19:40:10 GMT", + "x-ms-client-request-id" : "d4f59bd3-9faf-4995-b52c-bd010f250771" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes2108029f7818?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "63efcae4-3acc-4077-a4e0-5e14ccb44f51" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "4d48d4bd-001e-013a-6e4d-4e14eb000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:4d48d4bd-001e-013a-6e4d-4e14eb000000\nTime:2020-06-29T19:40:11.3561050Z", + "Date" : "Mon, 29 Jun 2020 19:40:10 GMT", + "x-ms-client-request-id" : "63efcae4-3acc-4077-a4e0-5e14ccb44f51", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes2108029f7818?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4ca37f69-0d00-4e09-9da2-3615acd35dc1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643CCCCD8B", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7f7cfa70-501e-000f-254d-4efceb000000", + "Date" : "Mon, 29 Jun 2020 19:40:10 GMT", + "x-ms-client-request-id" : "4ca37f69-0d00-4e09-9da2-3615acd35dc1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes174994735ae2/javablobazurebasicfileattributeviewreadattributes3272520ff4", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "47db7edd-3cf1-4843-aef2-8867c8481457", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:11 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C643CFD4BD8", + "Content-Length" : "0", + "x-ms-request-id" : "1c32a990-d01e-0037-6c4d-4ebdb2000000", + "x-ms-client-request-id" : "47db7edd-3cf1-4843-aef2-8867c8481457" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes174994735ae2/javablobazurebasicfileattributeviewreadattributes3272520ff4", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "39a606d8-5061-4bbb-8d23-dde0716a15cc" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:11 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C643CFD4BD8", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:11 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "22f49021-b01e-00af-114d-4e338d000000", + "x-ms-client-request-id" : "39a606d8-5061-4bbb-8d23-dde0716a15cc", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes174994735ae2/javablobazurebasicfileattributeviewreadattributes3272520ff4", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fbbc30b2-f7cd-47b9-885e-99da801a9ed8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:11 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:11 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C643CFD4BD8", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:11 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "fa751f89-501e-0087-224d-4e4432000000", + "x-ms-client-request-id" : "fbbc30b2-f7cd-47b9-885e-99da801a9ed8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes174994735ae2?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "acd09338-0fe3-47f5-ba7e-654bbeecb557" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "282ecac9-701e-009b-404d-4e9c25000000", + "Date" : "Mon, 29 Jun 2020 19:40:12 GMT", + "x-ms-client-request-id" : "acd09338-0fe3-47f5-ba7e-654bbeecb557" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazurebasicfileattributeviewreadattributes&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6a3b2fc5-41a1-417b-b9d3-9fa95bbe6627" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "88fed40f-d01e-0073-074d-4e61de000000", + "Body" : "jtcazurebasicfileattributeviewreadattributesjtcazurebasicfileattributeviewreadattributes2108029f7818Mon, 29 Jun 2020 19:40:11 GMT\"0x8D81C643CCCCD8B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:12 GMT", + "x-ms-client-request-id" : "6a3b2fc5-41a1-417b-b9d3-9fa95bbe6627", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazurebasicfileattributeviewreadattributes2108029f7818?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a8aa9f5c-3dac-4102-9122-2568936eb983" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "51e78253-401e-00d7-2a4d-4e5b3a000000", + "Date" : "Mon, 29 Jun 2020 19:40:12 GMT", + "x-ms-client-request-id" : "a8aa9f5c-3dac-4102-9122-2568936eb983" + }, + "Exception" : null + } ], + "variables" : [ "jtcazurebasicfileattributeviewreadattributes0420973d59a6", "jtcazurebasicfileattributeviewreadattributes174994735ae2", "jtcazurebasicfileattributeviewreadattributes2108029f7818", "javablobazurebasicfileattributeviewreadattributes3272520ff4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewreadattributes.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewreadattributes.json new file mode 100644 index 000000000000..ac30b8471f59 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewreadattributes.json @@ -0,0 +1,232 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes1243094876f1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "29099c34-24d6-46fc-935b-63cdc4b92b21" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2c7ae6a4-101e-00ed-264d-4e1899000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2c7ae6a4-101e-00ed-264d-4e1899000000\nTime:2020-06-29T19:40:14.8715676Z", + "Date" : "Mon, 29 Jun 2020 19:40:13 GMT", + "x-ms-client-request-id" : "29099c34-24d6-46fc-935b-63cdc4b92b21", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes1243094876f1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f38a24e7-53ac-487e-a093-a35a811af4aa" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643EE173E1", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "a3c1b6f0-f01e-00c5-1f4d-4e6f26000000", + "Date" : "Mon, 29 Jun 2020 19:40:14 GMT", + "x-ms-client-request-id" : "f38a24e7-53ac-487e-a093-a35a811af4aa" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes255884ba4a1c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "44423c81-a6bc-4c4b-b455-bd95f3b17413" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "ee81ec04-c01e-0089-0b4d-4ea839000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ee81ec04-c01e-0089-0b4d-4ea839000000\nTime:2020-06-29T19:40:15.1848518Z", + "Date" : "Mon, 29 Jun 2020 19:40:14 GMT", + "x-ms-client-request-id" : "44423c81-a6bc-4c4b-b455-bd95f3b17413", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes255884ba4a1c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "eb8aad86-979f-4c22-a38f-a9aaa962da98" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643F129B24", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ea7b241e-501e-0129-314d-4e210a000000", + "Date" : "Mon, 29 Jun 2020 19:40:14 GMT", + "x-ms-client-request-id" : "eb8aad86-979f-4c22-a38f-a9aaa962da98" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes1243094876f1f/javablobazureblobfileattributeviewreadattributes398226f241", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5706def7-1fee-41ab-9c4e-1c740dc333bd", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:15 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C643F2AC62A", + "Content-Length" : "0", + "x-ms-request-id" : "58de2568-b01e-0101-3b4d-4e56b5000000", + "x-ms-client-request-id" : "5706def7-1fee-41ab-9c4e-1c740dc333bd" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes1243094876f1f/javablobazureblobfileattributeviewreadattributes398226f241", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e9f12b6d-7e3b-4981-be53-be6db6f73685" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C643F2AC62A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "59a07e6c-701e-00b2-714d-4eea67000000", + "x-ms-client-request-id" : "e9f12b6d-7e3b-4981-be53-be6db6f73685", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes1243094876f1f/javablobazureblobfileattributeviewreadattributes398226f241", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b5701efe-8eed-4168-af1a-41cdd767d4f2" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C643F2AC62A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:15 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "02d9fdbe-601e-012a-5a4d-4e220d000000", + "x-ms-client-request-id" : "b5701efe-8eed-4168-af1a-41cdd767d4f2", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes1243094876f1f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3c457e69-a16a-4f31-9290-18b29acf898a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "586b1431-201e-00ee-6e4d-4e1b9e000000", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "3c457e69-a16a-4f31-9290-18b29acf898a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewreadattributes&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "feadc28e-f27b-4e13-a7f2-3713c3f55b0c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "091ab25c-e01e-009e-3c4d-4e685a000000", + "Body" : "jtcazureblobfileattributeviewreadattributesjtcazureblobfileattributeviewreadattributes255884ba4a1c7Mon, 29 Jun 2020 19:40:15 GMT\"0x8D81C643F129B24\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:15 GMT", + "x-ms-client-request-id" : "feadc28e-f27b-4e13-a7f2-3713c3f55b0c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewreadattributes255884ba4a1c7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0a40e61d-cfdf-46ca-a905-32c04b8412c1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fb0b2a83-401e-0076-6c4d-4e95a1000000", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "0a40e61d-cfdf-46ca-a905-32c04b8412c1" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewreadattributes081383f279b1f", "jtcazureblobfileattributeviewreadattributes1243094876f1f", "jtcazureblobfileattributeviewreadattributes255884ba4a1c7", "javablobazureblobfileattributeviewreadattributes398226f241" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetblobhttpheaders[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetblobhttpheaders[0].json new file mode 100644 index 000000000000..bfc974a7d528 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetblobhttpheaders[0].json @@ -0,0 +1,222 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1208245463c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "778cba62-6da2-4c4b-ab7c-ac45105d7aa4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "eabb4691-201e-00c7-0e4d-4e6ddc000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:eabb4691-201e-00c7-0e4d-4e6ddc000000\nTime:2020-06-29T19:40:16.5947228Z", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "778cba62-6da2-4c4b-ab7c-ac45105d7aa4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1208245463c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bb4d24b2-f5d4-4cf7-a0ed-9ce03b874009" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C643FED6C83", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c3db590e-601e-0103-5a4d-4e544f000000", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "bb4d24b2-f5d4-4cf7-a0ed-9ce03b874009" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders284195a5240?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "91a6a220-a1dd-40bf-9190-90726375e4b4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "58dd7bd5-701e-0117-2d4d-4e972b000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:58dd7bd5-701e-0117-2d4d-4e972b000000\nTime:2020-06-29T19:40:16.9329910Z", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "91a6a220-a1dd-40bf-9190-90726375e4b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders284195a5240?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4f8b54bc-d5f2-4cbf-9a4f-c732a4745feb" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64401E2D27", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9cc51f14-b01e-0063-124d-4e5738000000", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "4f8b54bc-d5f2-4cbf-9a4f-c732a4745feb" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1208245463c/javablobazureblobfileattributeviewsetblobhttpheaders398918a3", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9920fd45-f931-4b5a-8e61-6da030c2f191", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C644035C09D", + "Content-Length" : "0", + "x-ms-request-id" : "d5c0f134-901e-00b3-104d-4eeb9a000000", + "x-ms-client-request-id" : "9920fd45-f931-4b5a-8e61-6da030c2f191" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1208245463c/javablobazureblobfileattributeviewsetblobhttpheaders398918a3?comp=properties", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a7ee9956-daab-42f3-9c7c-bed3a8dd4936" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64405165B4", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "53b613d6-b01e-0027-344d-4e8b54000000", + "Date" : "Mon, 29 Jun 2020 19:40:16 GMT", + "x-ms-client-request-id" : "a7ee9956-daab-42f3-9c7c-bed3a8dd4936" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1208245463c/javablobazureblobfileattributeviewsetblobhttpheaders398918a3", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d0136141-9179-448e-96a9-f4b76a440a45" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:17 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C64405165B4", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:17 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "86e4a555-a01e-0077-3a4d-4e945c000000", + "x-ms-client-request-id" : "d0136141-9179-448e-96a9-f4b76a440a45" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1208245463c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0d865608-dc39-4e35-976d-187e0a051cc5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "03b07963-d01e-0078-674d-4e79aa000000", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-client-request-id" : "0d865608-dc39-4e35-976d-187e0a051cc5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsetblobhttpheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "76038228-59a8-4809-91f9-a027c0bb4736" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "51ce339b-c01e-012c-6d4d-4ed575000000", + "Body" : "jtcazureblobfileattributeviewsetblobhttpheadersjtcazureblobfileattributeviewsetblobhttpheaders284195a5240Mon, 29 Jun 2020 19:40:17 GMT\"0x8D81C64401E2D27\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-client-request-id" : "76038228-59a8-4809-91f9-a027c0bb4736", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders284195a5240?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "13fc397f-e6bc-4bd8-b7e0-acfb19a2ff58" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "913d5855-501e-00c8-224d-4e802a000000", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-client-request-id" : "13fc397f-e6bc-4bd8-b7e0-acfb19a2ff58" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsetblobhttpheaders039696ec4c9", "jtcazureblobfileattributeviewsetblobhttpheaders1208245463c", "jtcazureblobfileattributeviewsetblobhttpheaders284195a5240", "javablobazureblobfileattributeviewsetblobhttpheaders398918a3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetblobhttpheaders[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetblobhttpheaders[1].json new file mode 100644 index 000000000000..577879f5b0e0 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetblobhttpheaders[1].json @@ -0,0 +1,228 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1907764599f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a44e08a6-5a3f-4504-b739-ba0e91b37266" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "1e49c71e-c01e-00a0-534d-4ede7b000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1e49c71e-c01e-00a0-534d-4ede7b000000\nTime:2020-06-29T19:40:18.2643838Z", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-client-request-id" : "a44e08a6-5a3f-4504-b739-ba0e91b37266", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1907764599f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1b27b2a3-f051-4dd3-be4e-b468aeeb7cbb" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6440E8F9B4", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "86d8b45a-301e-0014-014d-4ed279000000", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-client-request-id" : "1b27b2a3-f051-4dd3-be4e-b468aeeb7cbb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders2516891726a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "77fcf6d3-79c0-4358-ba87-da541cd8edd1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "82e714e2-f01e-0064-3c4d-4ea1bd000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:82e714e2-f01e-0064-3c4d-4ea1bd000000\nTime:2020-06-29T19:40:18.6100852Z", + "Date" : "Mon, 29 Jun 2020 19:40:17 GMT", + "x-ms-client-request-id" : "77fcf6d3-79c0-4358-ba87-da541cd8edd1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders2516891726a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4cb3648f-57bc-4c0a-9bdb-3f5b31b634ba" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64411DC5FA", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8e31e70a-c01e-0028-6c4d-4e66a2000000", + "Date" : "Mon, 29 Jun 2020 19:40:18 GMT", + "x-ms-client-request-id" : "4cb3648f-57bc-4c0a-9bdb-3f5b31b634ba" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1907764599f/javablobazureblobfileattributeviewsetblobhttpheaders305001ad", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1127283f-5ab4-49f5-a044-1924d9d3a53f", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:18 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:18 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C64413609DE", + "Content-Length" : "0", + "x-ms-request-id" : "a6c0b9d6-201e-0000-5e4d-4e111d000000", + "x-ms-client-request-id" : "1127283f-5ab4-49f5-a044-1924d9d3a53f" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1907764599f/javablobazureblobfileattributeviewsetblobhttpheaders305001ad?comp=properties", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3fff9b6f-b32a-40a9-bdeb-e3120259bb82" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64414E0486", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "307a6246-101e-0065-154d-4ea040000000", + "Date" : "Mon, 29 Jun 2020 19:40:18 GMT", + "x-ms-client-request-id" : "3fff9b6f-b32a-40a9-bdeb-e3120259bb82" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1907764599f/javablobazureblobfileattributeviewsetblobhttpheaders305001ad", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a94200ec-b8f0-4458-b12c-ed4f705cb5b9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:19 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "d2grV20xOEQwejFENEUrUEUyNTJnZz09", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "Cache-Control" : "control", + "ETag" : "0x8D81C64414E0486", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:18 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "30042751-d01e-0051-0e4d-4e0fe8000000", + "x-ms-client-request-id" : "a94200ec-b8f0-4458-b12c-ed4f705cb5b9", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders1907764599f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1675a793-63f2-436f-86fd-5e3dd5f029a1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0efd6387-301e-003d-6c4d-4ea43b000000", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "1675a793-63f2-436f-86fd-5e3dd5f029a1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsetblobhttpheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "47d5c593-273b-4766-aec4-44b21627ef56" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2c71cf8b-d01e-0015-554d-4ed384000000", + "Body" : "jtcazureblobfileattributeviewsetblobhttpheadersjtcazureblobfileattributeviewsetblobhttpheaders2516891726aMon, 29 Jun 2020 19:40:18 GMT\"0x8D81C64411DC5FA\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "47d5c593-273b-4766-aec4-44b21627ef56", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetblobhttpheaders2516891726a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ff8f6892-318a-4b40-8884-250f0aa97dfb" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "adbffc80-b01e-008d-724d-4e5dbb000000", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "ff8f6892-318a-4b40-8884-250f0aa97dfb" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsetblobhttpheaders09257322d37", "jtcazureblobfileattributeviewsetblobhttpheaders1907764599f", "jtcazureblobfileattributeviewsetblobhttpheaders2516891726a", "javablobazureblobfileattributeviewsetblobhttpheaders305001ad" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[0].json new file mode 100644 index 000000000000..5f298938eb88 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[0].json @@ -0,0 +1,225 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata1287156eea4813?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "70fc84cf-e086-4aa7-b71d-a021d2634eca" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "9c5d4d2a-e01e-0119-074d-4e7b20000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:9c5d4d2a-e01e-0119-074d-4e7b20000000\nTime:2020-06-29T19:40:19.9080338Z", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "70fc84cf-e086-4aa7-b71d-a021d2634eca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata1287156eea4813?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cea179a2-d4a3-43b3-872d-ecc344a65bb1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6441E35194", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "20195493-001e-003e-214d-4ea73c000000", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "cea179a2-d4a3-43b3-872d-ecc344a65bb1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata279163fca7e9da?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "31e18bf9-9111-4625-a3d1-81844f6d8252" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "42e8f18a-901e-00de-3d4d-4e41b4000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:42e8f18a-901e-00de-3d4d-4e41b4000000\nTime:2020-06-29T19:40:20.2172939Z", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "31e18bf9-9111-4625-a3d1-81844f6d8252", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata279163fca7e9da?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "821c3d5e-70ec-4781-9529-937fa883ca5c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C644212184A", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "986cc358-d01e-011a-604d-4e7827000000", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "x-ms-client-request-id" : "821c3d5e-70ec-4781-9529-937fa883ca5c" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata1287156eea4813/javablobazureblobfileattributeviewsetmetadata3305536d3f34", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4b86e03a-3fa9-4d1c-af68-190ac9961e63", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:20 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:19 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C64422A426C", + "Content-Length" : "0", + "x-ms-request-id" : "59d9eb68-101e-002a-0a4d-4e6458000000", + "x-ms-client-request-id" : "4b86e03a-3fa9-4d1c-af68-190ac9961e63" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata1287156eea4813/javablobazureblobfileattributeviewsetmetadata3305536d3f34?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f7082177-0d92-448b-b2b2-bdf2b871e39b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6442457239", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9148b119-001e-00b6-494d-4e1fe5000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:20 GMT", + "x-ms-client-request-id" : "f7082177-0d92-448b-b2b2-bdf2b871e39b" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata1287156eea4813/javablobazureblobfileattributeviewsetmetadata3305536d3f34", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2a9c4dd5-b1f5-4bb5-b291-a29fb6f2896d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:20 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:20 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C6442457239", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:20 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "e4abeef3-801e-00ca-464d-4e82d0000000", + "x-ms-client-request-id" : "2a9c4dd5-b1f5-4bb5-b291-a29fb6f2896d", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata1287156eea4813?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "894b6be7-ee03-4422-a8cd-3d53f9d7bb7c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2988c8f8-f01e-0002-184d-4e13e7000000", + "Date" : "Mon, 29 Jun 2020 19:40:20 GMT", + "x-ms-client-request-id" : "894b6be7-ee03-4422-a8cd-3d53f9d7bb7c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsetmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f22db0d1-0a67-4b63-bae2-6e7810f46a25" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "e1d980e7-001e-00f2-584d-4ec389000000", + "Body" : "jtcazureblobfileattributeviewsetmetadatajtcazureblobfileattributeviewsetmetadata279163fca7e9daMon, 29 Jun 2020 19:40:20 GMT\"0x8D81C644212184A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "f22db0d1-0a67-4b63-bae2-6e7810f46a25", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata279163fca7e9da?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "175a560c-bfee-4712-8199-350af34f8d20" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "f66e798a-301e-011b-474d-4e79da000000", + "Date" : "Mon, 29 Jun 2020 19:40:20 GMT", + "x-ms-client-request-id" : "175a560c-bfee-4712-8199-350af34f8d20" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsetmetadata00333393f5fe0b", "jtcazureblobfileattributeviewsetmetadata1287156eea4813", "jtcazureblobfileattributeviewsetmetadata279163fca7e9da", "javablobazureblobfileattributeviewsetmetadata3305536d3f34" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[1].json new file mode 100644 index 000000000000..3dad97b8493c --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[1].json @@ -0,0 +1,227 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata148312f97609d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a22cab92-03cf-4952-97bf-fd928eb319b9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "e77b3974-c01e-0067-644d-4ea2ba000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:e77b3974-c01e-0067-644d-4ea2ba000000\nTime:2020-06-29T19:40:21.5072183Z", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "a22cab92-03cf-4952-97bf-fd928eb319b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata148312f97609d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1b770d4d-10a6-4714-b628-6410cdeaa384" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6442D5B8DB", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d2c7066c-f01e-00a3-224d-4edd7c000000", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "1b770d4d-10a6-4714-b628-6410cdeaa384" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata289903ced97ff8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "33adbf86-5cb3-4188-a6a6-8bffc6f02b10" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "69ef3223-101e-0003-154d-4e121a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:69ef3223-101e-0003-154d-4e121a000000\nTime:2020-06-29T19:40:21.8727187Z", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "33adbf86-5cb3-4188-a6a6-8bffc6f02b10", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata289903ced97ff8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4bcf3639-c0b6-4bf7-a7bd-b4bfa543b9e7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64430DFBB6", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9f56b4b3-e01e-007b-614d-4e7aad000000", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "4bcf3639-c0b6-4bf7-a7bd-b4bfa543b9e7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata148312f97609d5/javablobazureblobfileattributeviewsetmetadata348754339750", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "029e601e-542d-4d65-ae61-2d869efc9972", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:22 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C644327CC24", + "Content-Length" : "0", + "x-ms-request-id" : "561b890e-b01e-00a4-3d4d-4e2bf9000000", + "x-ms-client-request-id" : "029e601e-542d-4d65-ae61-2d869efc9972" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata148312f97609d5/javablobazureblobfileattributeviewsetmetadata348754339750?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "64a15ccc-90cd-45de-958c-755702fda38e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64434174E4", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2cd136c1-b01e-00e0-084d-4ef795000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "64a15ccc-90cd-45de-958c-755702fda38e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata148312f97609d5/javablobazureblobfileattributeviewsetmetadata348754339750", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "074acc39-1dfb-45b3-a010-be1a2949d322" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:22 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C64434174E4", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:22 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "a314ec56-701e-0090-544d-4e8451000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "074acc39-1dfb-45b3-a010-be1a2949d322", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata148312f97609d5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1c613d0f-9762-4ce9-8d2e-8c5cc2456074" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "c5abdfd3-701e-011c-3a4d-4e8f5f000000", + "Date" : "Mon, 29 Jun 2020 19:40:22 GMT", + "x-ms-client-request-id" : "1c613d0f-9762-4ce9-8d2e-8c5cc2456074" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsetmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7bd67191-f6eb-46be-87f9-2722a2e52ca7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "14605306-901e-00b8-4e4d-4ef3ee000000", + "Body" : "jtcazureblobfileattributeviewsetmetadatajtcazureblobfileattributeviewsetmetadata289903ced97ff8Mon, 29 Jun 2020 19:40:22 GMT\"0x8D81C64430DFBB6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:21 GMT", + "x-ms-client-request-id" : "7bd67191-f6eb-46be-87f9-2722a2e52ca7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata289903ced97ff8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e3aedc72-f5f2-4e78-8371-b3534c9f53dd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d582816d-401e-0054-1b4d-4efb97000000", + "Date" : "Mon, 29 Jun 2020 19:40:22 GMT", + "x-ms-client-request-id" : "e3aedc72-f5f2-4e78-8371-b3534c9f53dd" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsetmetadata0727936d06d434", "jtcazureblobfileattributeviewsetmetadata148312f97609d5", "jtcazureblobfileattributeviewsetmetadata289903ced97ff8", "javablobazureblobfileattributeviewsetmetadata348754339750" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[2].json new file mode 100644 index 000000000000..fbcba48165d1 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsetmetadata[2].json @@ -0,0 +1,227 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata142301485adc3d?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "dc77676e-ad75-4e76-819f-fd596ae57e37" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "f47dc1f5-b01e-0068-2e4d-4e4f4c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:f47dc1f5-b01e-0068-2e4d-4e4f4c000000\nTime:2020-06-29T19:40:23.1728842Z", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-client-request-id" : "dc77676e-ad75-4e76-819f-fd596ae57e37", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata142301485adc3d?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "090ac837-bbd3-4e48-a76f-8bba73bf7b75" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6443D4C551", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "81d02ca4-501e-00e1-474d-4ef668000000", + "Date" : "Mon, 29 Jun 2020 19:40:22 GMT", + "x-ms-client-request-id" : "090ac837-bbd3-4e48-a76f-8bba73bf7b75" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata25792548be6df6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "54694ec0-f88b-40e5-86db-4908f41577af" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "98da0bb8-501e-00a5-5a4d-4e2a04000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:98da0bb8-501e-00a5-5a4d-4e2a04000000\nTime:2020-06-29T19:40:23.4748585Z", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-client-request-id" : "54694ec0-f88b-40e5-86db-4908f41577af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata25792548be6df6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1b447276-7b06-4d55-b2d5-a5854487f981" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64440592A4", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5badda8c-b01e-0005-1f4d-4ee562000000", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-client-request-id" : "1b447276-7b06-4d55-b2d5-a5854487f981" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata142301485adc3d/javablobazureblobfileattributeviewsetmetadata380542cec541", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "51e0672f-4b99-4738-8ceb-7a2f4160a6a0", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:23 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C64441E4F37", + "Content-Length" : "0", + "x-ms-request-id" : "6fb867c2-b01e-0041-5a4d-4e390e000000", + "x-ms-client-request-id" : "51e0672f-4b99-4738-8ceb-7a2f4160a6a0" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata142301485adc3d/javablobazureblobfileattributeviewsetmetadata380542cec541?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "888419c8-632d-4349-a6cb-a5e053fc9451" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C644435AD83", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "bb253f8b-801e-0109-624d-4e4dc6000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-client-request-id" : "888419c8-632d-4349-a6cb-a5e053fc9451" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata142301485adc3d/javablobazureblobfileattributeviewsetmetadata380542cec541", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3ce915d2-140a-43fd-a25d-a8df6588d4ad" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:40:23 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-meta-i_" : "a", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "ETag" : "0x8D81C644435AD83", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:40:23 GMT", + "Content-Length" : "7", + "x-ms-meta-i0" : "a", + "x-ms-request-id" : "266d4e72-501e-0069-554d-4e4eb1000000", + "x-ms-client-request-id" : "3ce915d2-140a-43fd-a25d-a8df6588d4ad", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata142301485adc3d?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c67477dc-9985-4a8f-9d1c-373df50adaf3" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ef11234d-901e-0019-144d-4e3d75000000", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-client-request-id" : "c67477dc-9985-4a8f-9d1c-373df50adaf3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsetmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fb40324c-de86-427a-a354-a4179fb5aa5c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "4e738b91-601e-00e2-774d-4ef56f000000", + "Body" : "jtcazureblobfileattributeviewsetmetadatajtcazureblobfileattributeviewsetmetadata25792548be6df6Mon, 29 Jun 2020 19:40:23 GMT\"0x8D81C64440592A4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:40:23 GMT", + "x-ms-client-request-id" : "fb40324c-de86-427a-a354-a4179fb5aa5c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsetmetadata25792548be6df6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7e3bf435-3366-4a33-85ff-2d49644a7613" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "99295a1b-401e-00ba-384d-4ef114000000", + "Date" : "Mon, 29 Jun 2020 19:40:24 GMT", + "x-ms-client-request-id" : "7e3bf435-3366-4a33-85ff-2d49644a7613" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsetmetadata0838483b91d445", "jtcazureblobfileattributeviewsetmetadata142301485adc3d", "jtcazureblobfileattributeviewsetmetadata25792548be6df6", "javablobazureblobfileattributeviewsetmetadata380542cec541" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsettier[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsettier[0].json new file mode 100644 index 000000000000..d25d1f4febd2 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsettier[0].json @@ -0,0 +1,224 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier16403717bac9fde3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e67a1913-8d3a-4d86-bc4a-cc31e5535e32" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "94ab526a-801e-0087-804d-4e01fb000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:94ab526a-801e-0087-804d-4e01fb000000\nTime:2020-06-29T19:42:05.6979964Z", + "Date" : "Mon, 29 Jun 2020 19:42:05 GMT", + "x-ms-client-request-id" : "e67a1913-8d3a-4d86-bc4a-cc31e5535e32", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier16403717bac9fde3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d12ffd05-80d4-4582-af0f-f528e1f77efe" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C648105E4EC", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9503a53d-001e-005a-064d-4e5255000000", + "Date" : "Mon, 29 Jun 2020 19:42:05 GMT", + "x-ms-client-request-id" : "d12ffd05-80d4-4582-af0f-f528e1f77efe" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier28785554ed0c1983?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "75f9a02b-b3a2-4c18-8611-14f02768dd19" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "aab76c63-301e-0130-3d4d-4e48ab000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:aab76c63-301e-0130-3d4d-4e48ab000000\nTime:2020-06-29T19:42:06.2673923Z", + "Date" : "Mon, 29 Jun 2020 19:42:05 GMT", + "x-ms-client-request-id" : "75f9a02b-b3a2-4c18-8611-14f02768dd19", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier28785554ed0c1983?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "eff4608b-ee70-4ea8-b96a-01e149987561" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64814BB9B9", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "996947dc-601e-0027-544d-4ece9d000000", + "Date" : "Mon, 29 Jun 2020 19:42:05 GMT", + "x-ms-client-request-id" : "eff4608b-ee70-4ea8-b96a-01e149987561" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier16403717bac9fde3/javablobazureblobfileattributeviewsettier3622648397f146", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "02e713bf-9d6a-44d0-a572-b5f65d2fec55", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:06 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:42:06 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C64817623DD", + "Content-Length" : "0", + "x-ms-request-id" : "d02510fa-001e-0111-524d-4e259a000000", + "x-ms-client-request-id" : "02e713bf-9d6a-44d0-a572-b5f65d2fec55" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier16403717bac9fde3/javablobazureblobfileattributeviewsettier3622648397f146?comp=tier", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ab3ef49b-eeb2-4797-988b-6abc27f67104" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f976cd99-001e-0133-554d-4e4bac000000", + "Date" : "Mon, 29 Jun 2020 19:42:06 GMT", + "x-ms-client-request-id" : "ab3ef49b-eeb2-4797-988b-6abc27f67104" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier16403717bac9fde3/javablobazureblobfileattributeviewsettier3622648397f146", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2ae52def-193b-4684-8c00-38735b056980" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:06 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Mon, 29 Jun 2020 19:42:06 GMT", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:42:06 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C64817623DD", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:42:06 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "d9b42df1-f01e-0066-314d-4ee68e000000", + "x-ms-client-request-id" : "2ae52def-193b-4684-8c00-38735b056980", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier16403717bac9fde3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3d14d0ba-00af-4ccf-8c17-78d24cd91d58" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "35599041-e01e-001f-6f4d-4e8fc4000000", + "Date" : "Mon, 29 Jun 2020 19:42:06 GMT", + "x-ms-client-request-id" : "3d14d0ba-00af-4ccf-8c17-78d24cd91d58" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsettier&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f60989f8-b3be-420d-ad50-6e228e01c22f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f154804f-f01e-004f-0b4d-4e90cc000000", + "Body" : "jtcazureblobfileattributeviewsettierjtcazureblobfileattributeviewsettier28785554ed0c1983Mon, 29 Jun 2020 19:42:06 GMT\"0x8D81C64814BB9B9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:42:07 GMT", + "x-ms-client-request-id" : "f60989f8-b3be-420d-ad50-6e228e01c22f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier28785554ed0c1983?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0d7bc3ea-6ce9-40df-afb1-c382aa186013" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "e1aa1f9c-f01e-0022-2b4d-4e3ae2000000", + "Date" : "Mon, 29 Jun 2020 19:42:07 GMT", + "x-ms-client-request-id" : "0d7bc3ea-6ce9-40df-afb1-c382aa186013" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsettier05054601aef07cf2", "jtcazureblobfileattributeviewsettier16403717bac9fde3", "jtcazureblobfileattributeviewsettier28785554ed0c1983", "javablobazureblobfileattributeviewsettier3622648397f146" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsettier[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsettier[1].json new file mode 100644 index 000000000000..02bec207e790 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AttributeViewTestazureblobfileattributeviewsettier[1].json @@ -0,0 +1,224 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier1757622a024031c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9d4216ba-e55e-4b9f-aa98-d86c32b25d54" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2b562259-d01e-001c-1a4d-4e8cc3000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2b562259-d01e-001c-1a4d-4e8cc3000000\nTime:2020-06-29T19:42:07.9535880Z", + "Date" : "Mon, 29 Jun 2020 19:42:07 GMT", + "x-ms-client-request-id" : "9d4216ba-e55e-4b9f-aa98-d86c32b25d54", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier1757622a024031c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c57cb720-d23d-408e-b259-cfcf07d82987" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64824DFE73", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "73b50610-d01e-007a-564d-4e3e99000000", + "Date" : "Mon, 29 Jun 2020 19:42:07 GMT", + "x-ms-client-request-id" : "c57cb720-d23d-408e-b259-cfcf07d82987" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier2330897c44b6c432?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e6d2124c-48c4-47e7-b6be-2d3d03cc30d8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "9ddcf8c6-a01e-0075-464d-4ed36f000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:9ddcf8c6-a01e-0075-464d-4ed36f000000\nTime:2020-06-29T19:42:08.3300756Z", + "Date" : "Mon, 29 Jun 2020 19:42:08 GMT", + "x-ms-client-request-id" : "e6d2124c-48c4-47e7-b6be-2d3d03cc30d8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier2330897c44b6c432?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "55a0701c-bdf9-41a1-961b-2d66b06678b1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6482838410", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5c614b57-e01e-0097-5e4d-4e371d000000", + "Date" : "Mon, 29 Jun 2020 19:42:07 GMT", + "x-ms-client-request-id" : "55a0701c-bdf9-41a1-961b-2d66b06678b1" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier1757622a024031c6/javablobazureblobfileattributeviewsettier346219b60f98ce", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9c61684a-c4c3-4ebf-9cb8-72c70980cfa3", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "6RYQPwaVsyQ=", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:42:08 GMT", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "ETag" : "0x8D81C64829ED551", + "Content-Length" : "0", + "x-ms-request-id" : "fd473b76-501e-0042-544d-4e7fc0000000", + "x-ms-client-request-id" : "9c61684a-c4c3-4ebf-9cb8-72c70980cfa3" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier1757622a024031c6/javablobazureblobfileattributeviewsettier346219b60f98ce?comp=tier", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c821b4c7-a09f-450c-87b4-9c2f43a2f4c7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0d141355-101e-00a0-2a4d-4e9bb2000000", + "Date" : "Mon, 29 Jun 2020 19:42:08 GMT", + "x-ms-client-request-id" : "c821b4c7-a09f-450c-87b4-9c2f43a2f4c7" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier1757622a024031c6/javablobazureblobfileattributeviewsettier346219b60f98ce", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d2ff5e6b-48c0-4b38-be5c-1350e01ff144" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:42:08 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Mon, 29 Jun 2020 19:42:08 GMT", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:42:08 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Cool", + "ETag" : "0x8D81C64829ED551", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:42:08 GMT", + "Content-Length" : "7", + "x-ms-request-id" : "23f41045-601e-004a-794d-4e64b3000000", + "x-ms-client-request-id" : "d2ff5e6b-48c0-4b38-be5c-1350e01ff144", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier1757622a024031c6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "897a88be-aebe-45c4-bfc7-9397056313e0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "66c55342-301e-001d-304d-4e8d3e000000", + "Date" : "Mon, 29 Jun 2020 19:42:09 GMT", + "x-ms-client-request-id" : "897a88be-aebe-45c4-bfc7-9397056313e0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcazureblobfileattributeviewsettier&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a87fe5e6-93bb-46a5-8814-617ea0331785" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fefc6e13-301e-00f3-4e4d-4e87bd000000", + "Body" : "jtcazureblobfileattributeviewsettierjtcazureblobfileattributeviewsettier2330897c44b6c432Mon, 29 Jun 2020 19:42:08 GMT\"0x8D81C6482838410\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:42:08 GMT", + "x-ms-client-request-id" : "a87fe5e6-93bb-46a5-8814-617ea0331785", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcazureblobfileattributeviewsettier2330897c44b6c432?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0e57924e-6aad-4f0c-b0d0-4f43bca9cec6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2c4d3e4b-901e-00b1-344d-4eaca9000000", + "Date" : "Mon, 29 Jun 2020 19:42:08 GMT", + "x-ms-client-request-id" : "0e57924e-6aad-4f0c-b0d0-4f43bca9cec6" + }, + "Exception" : null + } ], + "variables" : [ "jtcazureblobfileattributeviewsettier0324329d575cd932", "jtcazureblobfileattributeviewsettier1757622a024031c6", "jtcazureblobfileattributeviewsettier2330897c44b6c432", "javablobazureblobfileattributeviewsettier346219b60f98ce" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[0].json new file mode 100644 index 000000000000..d0c6b839c2c1 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[0].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview1827023ff8b88e0ee844bd849?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "919109d6-f52c-474e-8ac5-eafb661f9556" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "c79c8124-901e-00dc-1f4d-4e0687000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:c79c8124-901e-00dc-1f4d-4e0687000000\nTime:2020-06-29T19:45:31.7824720Z", + "Date" : "Mon, 29 Jun 2020 19:45:31 GMT", + "x-ms-client-request-id" : "919109d6-f52c-474e-8ac5-eafb661f9556", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview1827023ff8b88e0ee844bd849?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d2e77d49-0dfb-45f3-8233-0bb4d884b8b3" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FBC6A221", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:31 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "36bb7247-101e-0127-544d-4e88c8000000", + "Date" : "Mon, 29 Jun 2020 19:45:31 GMT", + "x-ms-client-request-id" : "d2e77d49-0dfb-45f3-8233-0bb4d884b8b3" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview299157358ef0c781e245f8b49?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "52e1deac-f712-451b-8f2d-a5a18099fbf5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "3b34bc79-101e-0045-184d-4e8945000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3b34bc79-101e-0045-184d-4e8945000000\nTime:2020-06-29T19:45:32.1182007Z", + "Date" : "Mon, 29 Jun 2020 19:45:31 GMT", + "x-ms-client-request-id" : "52e1deac-f712-451b-8f2d-a5a18099fbf5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview299157358ef0c781e245f8b49?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c282bc41-035d-409a-af11-a0056b3ccf07" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FBFA09FB", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:32 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f602f130-d01e-0017-804d-4e94b7000000", + "Date" : "Mon, 29 Jun 2020 19:45:31 GMT", + "x-ms-client-request-id" : "c282bc41-035d-409a-af11-a0056b3ccf07" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcgetattributeview&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f5f14aec-4bb3-4f44-b830-16aba06d9420" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f71e29fc-201e-008a-434d-4eeef7000000", + "Body" : "jtcgetattributeviewjtcgetattributeview1827023ff8b88e0ee844bd849Mon, 29 Jun 2020 19:45:31 GMT\"0x8D81C64FBC6A221\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcgetattributeview299157358ef0c781e245f8b49Mon, 29 Jun 2020 19:45:32 GMT\"0x8D81C64FBFA09FB\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:31 GMT", + "x-ms-client-request-id" : "f5f14aec-4bb3-4f44-b830-16aba06d9420", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview1827023ff8b88e0ee844bd849?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7c74e59d-374b-434e-af9b-9d187ed7d013" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "8ccc5dc4-001e-0138-3b4d-4e53d8000000", + "Date" : "Mon, 29 Jun 2020 19:45:32 GMT", + "x-ms-client-request-id" : "7c74e59d-374b-434e-af9b-9d187ed7d013" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview299157358ef0c781e245f8b49?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "48fa325b-fa23-422b-948b-648c3957abcd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1c1c0428-b01e-0043-584d-4e7e3d000000", + "Date" : "Mon, 29 Jun 2020 19:45:32 GMT", + "x-ms-client-request-id" : "48fa325b-fa23-422b-948b-648c3957abcd" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetattributeview0505232cefeeac4acc4777980", "jtcgetattributeview1827023ff8b88e0ee844bd849", "jtcgetattributeview299157358ef0c781e245f8b49" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[1].json new file mode 100644 index 000000000000..02b1b86bafd2 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[1].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview1721429ff3dcd4f42b4c77826?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4b8734a6-107b-47f0-ae12-c2b71508db18" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "33a3e1a3-e01e-00f1-534d-4e8547000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:33a3e1a3-e01e-00f1-534d-4e8547000000\nTime:2020-06-29T19:45:32.9264757Z", + "Date" : "Mon, 29 Jun 2020 19:45:32 GMT", + "x-ms-client-request-id" : "4b8734a6-107b-47f0-ae12-c2b71508db18", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview1721429ff3dcd4f42b4c77826?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c7fcd0e5-bd14-4061-9cff-4bf310cb6245" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FC75C8C3", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c6bc61da-a01e-009b-634d-4ed9ec000000", + "Date" : "Mon, 29 Jun 2020 19:45:32 GMT", + "x-ms-client-request-id" : "c7fcd0e5-bd14-4061-9cff-4bf310cb6245" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview2351514c448dc0352e44a49fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8a1b7de2-0164-401b-93ea-4587cd9ae3aa" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "489b55fb-101e-000a-0b4d-4e4d5d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:489b55fb-101e-000a-0b4d-4e4d5d000000\nTime:2020-06-29T19:45:33.2324703Z", + "Date" : "Mon, 29 Jun 2020 19:45:32 GMT", + "x-ms-client-request-id" : "8a1b7de2-0164-401b-93ea-4587cd9ae3aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview2351514c448dc0352e44a49fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7caef204-3769-41d9-a5b2-4148b824798d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FCA55265", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:33 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "373fdf96-601e-002c-504d-4ed6e9000000", + "Date" : "Mon, 29 Jun 2020 19:45:33 GMT", + "x-ms-client-request-id" : "7caef204-3769-41d9-a5b2-4148b824798d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcgetattributeview&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9e984eaa-0331-4d7d-846a-2818e614496d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9d0cb172-901e-0076-104d-4ed068000000", + "Body" : "jtcgetattributeviewjtcgetattributeview1721429ff3dcd4f42b4c77826Mon, 29 Jun 2020 19:45:33 GMT\"0x8D81C64FC75C8C3\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcgetattributeview2351514c448dc0352e44a49feMon, 29 Jun 2020 19:45:33 GMT\"0x8D81C64FCA55265\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:32 GMT", + "x-ms-client-request-id" : "9e984eaa-0331-4d7d-846a-2818e614496d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview1721429ff3dcd4f42b4c77826?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0b379038-bb62-4682-9d6f-5488aed702e4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "dae7ece7-c01e-0021-194d-4e39e5000000", + "Date" : "Mon, 29 Jun 2020 19:45:33 GMT", + "x-ms-client-request-id" : "0b379038-bb62-4682-9d6f-5488aed702e4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview2351514c448dc0352e44a49fe?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "043f3a00-f55e-41b2-b278-7c560a4d08eb" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "74e2a720-b01e-0007-134d-4ea251000000", + "Date" : "Mon, 29 Jun 2020 19:45:33 GMT", + "x-ms-client-request-id" : "043f3a00-f55e-41b2-b278-7c560a4d08eb" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetattributeview08965633c78a85d79e4864aff", "jtcgetattributeview1721429ff3dcd4f42b4c77826", "jtcgetattributeview2351514c448dc0352e44a49fe" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[2].json new file mode 100644 index 000000000000..e8d664a2e835 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeview[2].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview14190618282686d1264fdfb77?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "172f8eb2-d379-43dc-ab86-9837d670f047" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "49882869-c01e-002a-484d-4e2191000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:49882869-c01e-002a-484d-4e2191000000\nTime:2020-06-29T19:45:34.0847958Z", + "Date" : "Mon, 29 Jun 2020 19:45:33 GMT", + "x-ms-client-request-id" : "172f8eb2-d379-43dc-ab86-9837d670f047", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview14190618282686d1264fdfb77?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c741d296-e6a9-4e71-8e32-92eeb5c0923f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FD274EB5", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f9c5ee71-901e-0010-6b4d-4e6232000000", + "Date" : "Mon, 29 Jun 2020 19:45:33 GMT", + "x-ms-client-request-id" : "c741d296-e6a9-4e71-8e32-92eeb5c0923f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview238785f95f5967d1f44512a23?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5c6d7b43-6377-48c9-b47f-b158465ac75d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2ed4943d-101e-010e-6f4d-4efe8a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2ed4943d-101e-010e-6f4d-4efe8a000000\nTime:2020-06-29T19:45:34.4057381Z", + "Date" : "Mon, 29 Jun 2020 19:45:34 GMT", + "x-ms-client-request-id" : "5c6d7b43-6377-48c9-b47f-b158465ac75d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview238785f95f5967d1f44512a23?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ac0d4317-ea62-4e74-89f4-30e2bd5a3046" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FD56F5B1", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:34 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "344d69e5-801e-00a5-7c4d-4e6fcd000000", + "Date" : "Mon, 29 Jun 2020 19:45:34 GMT", + "x-ms-client-request-id" : "ac0d4317-ea62-4e74-89f4-30e2bd5a3046" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcgetattributeview&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "314db43c-4903-4347-893e-c67e744adf39" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "464e79de-501e-012b-5a4d-4e6639000000", + "Body" : "jtcgetattributeviewjtcgetattributeview14190618282686d1264fdfb77Mon, 29 Jun 2020 19:45:34 GMT\"0x8D81C64FD274EB5\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcgetattributeview238785f95f5967d1f44512a23Mon, 29 Jun 2020 19:45:34 GMT\"0x8D81C64FD56F5B1\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:34 GMT", + "x-ms-client-request-id" : "314db43c-4903-4347-893e-c67e744adf39", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview14190618282686d1264fdfb77?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "932eaef7-388a-45df-b469-1a2df095aff5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b9f03348-e01e-0139-794d-4e5225000000", + "Date" : "Mon, 29 Jun 2020 19:45:34 GMT", + "x-ms-client-request-id" : "932eaef7-388a-45df-b469-1a2df095aff5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeview238785f95f5967d1f44512a23?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "75d0e120-2ead-4c21-bf5a-e741715dea61" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "448600de-101e-006c-6e4d-4eff07000000", + "Date" : "Mon, 29 Jun 2020 19:45:35 GMT", + "x-ms-client-request-id" : "75d0e120-2ead-4c21-bf5a-e741715dea61" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetattributeview082365367a3876622347139b6", "jtcgetattributeview14190618282686d1264fdfb77", "jtcgetattributeview238785f95f5967d1f44512a23" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeviewfail.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeviewfail.json new file mode 100644 index 000000000000..3bea5cec8736 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestgetattributeviewfail.json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeviewfail156895e91684fbfd724bcca?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a3b49de1-6ce6-47a8-aa92-ab3adadaffa3" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "0f9dcdd8-c01e-00a2-7c4d-4e9948000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0f9dcdd8-c01e-00a2-7c4d-4e9948000000\nTime:2020-06-29T19:45:35.2906740Z", + "Date" : "Mon, 29 Jun 2020 19:45:34 GMT", + "x-ms-client-request-id" : "a3b49de1-6ce6-47a8-aa92-ab3adadaffa3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeviewfail156895e91684fbfd724bcca?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "42ad1d5f-acb2-45c8-a3a7-b783e0a30500" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FDDEDE20", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "12d65cac-201e-00ec-3b4d-4e5cad000000", + "Date" : "Mon, 29 Jun 2020 19:45:34 GMT", + "x-ms-client-request-id" : "42ad1d5f-acb2-45c8-a3a7-b783e0a30500" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeviewfail24734322f202a38c4941a28?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0174281e-f209-44c9-aef4-8dc640c7ac2d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "fa3f01b6-701e-0137-424d-4ebe2e000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fa3f01b6-701e-0137-424d-4ebe2e000000\nTime:2020-06-29T19:45:35.6081996Z", + "Date" : "Mon, 29 Jun 2020 19:45:35 GMT", + "x-ms-client-request-id" : "0174281e-f209-44c9-aef4-8dc640c7ac2d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeviewfail24734322f202a38c4941a28?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "966605ab-c303-4c30-8d86-38f34d190e8e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FE10E9E4", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:35 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d18ee765-a01e-00b9-014d-4eb7da000000", + "Date" : "Mon, 29 Jun 2020 19:45:35 GMT", + "x-ms-client-request-id" : "966605ab-c303-4c30-8d86-38f34d190e8e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcgetattributeviewfail&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "dbde5fb0-a89e-4560-88f8-fd12da230fcf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "98e74895-f01e-0000-484d-4e54d4000000", + "Body" : "jtcgetattributeviewfailjtcgetattributeviewfail156895e91684fbfd724bccaMon, 29 Jun 2020 19:45:35 GMT\"0x8D81C64FDDEDE20\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcgetattributeviewfail24734322f202a38c4941a28Mon, 29 Jun 2020 19:45:35 GMT\"0x8D81C64FE10E9E4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:35 GMT", + "x-ms-client-request-id" : "dbde5fb0-a89e-4560-88f8-fd12da230fcf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeviewfail156895e91684fbfd724bcca?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8b31b859-25ea-4479-976e-fbb3768bb3b5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "5e64d9d4-d01e-013a-7a4d-4e5122000000", + "Date" : "Mon, 29 Jun 2020 19:45:35 GMT", + "x-ms-client-request-id" : "8b31b859-25ea-4479-976e-fbb3768bb3b5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcgetattributeviewfail24734322f202a38c4941a28?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "dadf4174-5e71-4a73-b465-c6a92a04d129" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "93efcd44-d01e-0058-014d-4e50af000000", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-client-request-id" : "dadf4174-5e71-4a73-b465-c6a92a04d129" + }, + "Exception" : null + } ], + "variables" : [ "jtcgetattributeviewfail0358107f8dc065e633464c9", "jtcgetattributeviewfail156895e91684fbfd724bcca", "jtcgetattributeviewfail24734322f202a38c4941a28" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[0].json new file mode 100644 index 000000000000..c0314b940817 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[0].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1701372bf64e5ff9c9491c8e30?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5ebf5246-af1d-40da-8b7d-3a2b6331870b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "a7368318-e01e-011b-384d-4e3c13000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:a7368318-e01e-011b-384d-4e3c13000000\nTime:2020-06-29T19:45:36.4498207Z", + "Date" : "Mon, 29 Jun 2020 19:45:35 GMT", + "x-ms-client-request-id" : "5ebf5246-af1d-40da-8b7d-3a2b6331870b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1701372bf64e5ff9c9491c8e30?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8822fc42-9917-4b51-914d-c1d0b488a6df" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FE8E8FF5", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e081ee5e-901e-0039-504d-4e1470000000", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-client-request-id" : "8822fc42-9917-4b51-914d-c1d0b488a6df" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes24408765e81ae966394273ad0f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2a4a00b1-cfce-4c82-9c17-58659025e417" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "d026901e-a01e-00d4-674d-4e1df4000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d026901e-a01e-00d4-674d-4e1df4000000\nTime:2020-06-29T19:45:36.7652195Z", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-client-request-id" : "2a4a00b1-cfce-4c82-9c17-58659025e417", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes24408765e81ae966394273ad0f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a3bdb9c0-1c8a-479c-9dd2-86134b5b6def" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FEBF99DD", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:36 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d692dba9-701e-011e-584d-4ec86c000000", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-client-request-id" : "a3bdb9c0-1c8a-479c-9dd2-86134b5b6def" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1701372bf64e5ff9c9491c8e30?prefix=javablobreadattributes3693385eb34037e92e4a88b&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "789af3cf-f516-4d9c-84fd-93bde30c4efd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "c56d9bfe-101e-012c-104d-4e90bc000000", + "Body" : "javablobreadattributes3693385eb34037e92e4a88b2/", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-client-request-id" : "789af3cf-f516-4d9c-84fd-93bde30c4efd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1701372bf64e5ff9c9491c8e30/javablobreadattributes3693385eb34037e92e4a88b", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8ba5ea6f-1675-4741-b61b-6ce459984804", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:37 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C64FEEE9E23", + "Content-Length" : "0", + "x-ms-request-id" : "4ed71c9c-901e-005f-804d-4ea62a000000", + "x-ms-client-request-id" : "8ba5ea6f-1675-4741-b61b-6ce459984804" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1701372bf64e5ff9c9491c8e30/javablobreadattributes3693385eb34037e92e4a88b", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9855ca12-5fa6-4e07-a2a4-87cfc301262a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:37 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C64FEEE9E23", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:37 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "85bebb0e-a01e-0135-7d4d-4ebcd4000000", + "x-ms-client-request-id" : "9855ca12-5fa6-4e07-a2a4-87cfc301262a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributes&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "996f094f-99e5-4498-b9dd-9085cb44b672" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "3814873c-b01e-008f-594d-4e1a88000000", + "Body" : "jtcreadattributesjtcreadattributes1701372bf64e5ff9c9491c8e30Mon, 29 Jun 2020 19:45:36 GMT\"0x8D81C64FE8E8FF5\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributes24408765e81ae966394273ad0fMon, 29 Jun 2020 19:45:36 GMT\"0x8D81C64FEBF99DD\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:36 GMT", + "x-ms-client-request-id" : "996f094f-99e5-4498-b9dd-9085cb44b672", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1701372bf64e5ff9c9491c8e30?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "451227d9-0cf4-4175-9923-1583a146052b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fc01e6c2-101e-00c6-1d4d-4e29e8000000", + "Date" : "Mon, 29 Jun 2020 19:45:37 GMT", + "x-ms-client-request-id" : "451227d9-0cf4-4175-9923-1583a146052b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes24408765e81ae966394273ad0f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d912a0c6-5540-4285-89a5-d7c6e8cfe4da" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "963db55e-501e-00e8-564d-4ea92f000000", + "Date" : "Mon, 29 Jun 2020 19:45:37 GMT", + "x-ms-client-request-id" : "d912a0c6-5540-4285-89a5-d7c6e8cfe4da" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributes0317549337817c77e8481fbc4f", "jtcreadattributes1701372bf64e5ff9c9491c8e30", "jtcreadattributes24408765e81ae966394273ad0f", "javablobreadattributes3693385eb34037e92e4a88b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[1].json new file mode 100644 index 000000000000..7f0e5640495a --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[1].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes188730e6217dbdcf414473ad26?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8f37e18b-e22a-496e-afe5-364f562079ee" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "8d3595d3-701e-001a-304d-4e7bbb000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8d3595d3-701e-001a-304d-4e7bbb000000\nTime:2020-06-29T19:45:38.0408267Z", + "Date" : "Mon, 29 Jun 2020 19:45:37 GMT", + "x-ms-client-request-id" : "8f37e18b-e22a-496e-afe5-364f562079ee", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes188730e6217dbdcf414473ad26?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c212d180-a01b-4568-8113-f33ffc2090f9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FF81E251", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b4674025-e01e-0079-134d-4e3d9e000000", + "Date" : "Mon, 29 Jun 2020 19:45:37 GMT", + "x-ms-client-request-id" : "c212d180-a01b-4568-8113-f33ffc2090f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes28969347c47658b8c04cecb7f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f866213f-8d3e-4de4-8a82-57f9f1740385" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "8de9392f-601e-00af-2f4d-4e7644000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:8de9392f-601e-00af-2f4d-4e7644000000\nTime:2020-06-29T19:45:38.4168297Z", + "Date" : "Mon, 29 Jun 2020 19:45:38 GMT", + "x-ms-client-request-id" : "f866213f-8d3e-4de4-8a82-57f9f1740385", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes28969347c47658b8c04cecb7f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "efc0856d-0c1b-4d32-8f03-0d2298c037a6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C64FFBAB970", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:38 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c5bb1034-101e-0082-2d4d-4ef584000000", + "Date" : "Mon, 29 Jun 2020 19:45:37 GMT", + "x-ms-client-request-id" : "efc0856d-0c1b-4d32-8f03-0d2298c037a6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes188730e6217dbdcf414473ad26?prefix=javablobreadattributes3342827d9aa5914c1244308&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "039543d5-9394-4ab9-bda3-798048d4c1a4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "325aedef-001e-00d2-184d-4eea8c000000", + "Body" : "javablobreadattributes3342827d9aa5914c12443082/", + "Date" : "Mon, 29 Jun 2020 19:45:38 GMT", + "x-ms-client-request-id" : "039543d5-9394-4ab9-bda3-798048d4c1a4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes188730e6217dbdcf414473ad26/javablobreadattributes3342827d9aa5914c1244308", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c2fc7258-558f-4876-992d-3b07027f6ebb", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:38 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:38 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C64FFEC400A", + "Content-Length" : "0", + "x-ms-request-id" : "a8598dac-f01e-00cc-4a4d-4e3061000000", + "x-ms-client-request-id" : "c2fc7258-558f-4876-992d-3b07027f6ebb" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes188730e6217dbdcf414473ad26/javablobreadattributes3342827d9aa5914c1244308", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5b2d59a5-d439-442b-8135-8f46ead3415e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:38 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:38 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C64FFEC400A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:38 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "2c1c1843-101e-00ef-804d-4e5faa000000", + "x-ms-client-request-id" : "5b2d59a5-d439-442b-8135-8f46ead3415e", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributes&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0ea33eba-9495-4f76-bb0e-4a090d9f1a12" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "ef2254a6-501e-00c1-044d-4edf6d000000", + "Body" : "jtcreadattributesjtcreadattributes188730e6217dbdcf414473ad26Mon, 29 Jun 2020 19:45:38 GMT\"0x8D81C64FF81E251\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributes28969347c47658b8c04cecb7f7Mon, 29 Jun 2020 19:45:38 GMT\"0x8D81C64FFBAB970\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:38 GMT", + "x-ms-client-request-id" : "0ea33eba-9495-4f76-bb0e-4a090d9f1a12", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes188730e6217dbdcf414473ad26?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d29b0a23-f8e0-42bc-ae2a-17e253dabdfa" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d436d6ec-401e-0134-434d-4ebd29000000", + "Date" : "Mon, 29 Jun 2020 19:45:38 GMT", + "x-ms-client-request-id" : "d29b0a23-f8e0-42bc-ae2a-17e253dabdfa" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes28969347c47658b8c04cecb7f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9c0c872a-9fde-410a-b11a-0fb5443a4c4d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "de6193bf-001e-011a-144d-4e3dee000000", + "Date" : "Mon, 29 Jun 2020 19:45:39 GMT", + "x-ms-client-request-id" : "9c0c872a-9fde-410a-b11a-0fb5443a4c4d" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributes001507e20f03db712b4d67a87e", "jtcreadattributes188730e6217dbdcf414473ad26", "jtcreadattributes28969347c47658b8c04cecb7f7", "javablobreadattributes3342827d9aa5914c1244308" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[2].json new file mode 100644 index 000000000000..47465f92176f --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributes[2].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1249039482debd86814bbeaec3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "217e6fee-e6b6-4567-a6ea-3c0a115a88c3" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2b313f3a-c01e-00c4-0a4d-4e2b12000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2b313f3a-c01e-00c4-0a4d-4e2b12000000\nTime:2020-06-29T19:45:39.6906407Z", + "Date" : "Mon, 29 Jun 2020 19:45:39 GMT", + "x-ms-client-request-id" : "217e6fee-e6b6-4567-a6ea-3c0a115a88c3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1249039482debd86814bbeaec3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ba4077f1-698a-496e-8952-e4d415430238" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6500814B57", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:39 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0ff6ee00-f01e-000b-384d-4e4ca0000000", + "Date" : "Mon, 29 Jun 2020 19:45:39 GMT", + "x-ms-client-request-id" : "ba4077f1-698a-496e-8952-e4d415430238" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes2336411fa00cf302254d739da4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fe87a3c3-c865-4b89-a66f-070c9eed54f6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "4b82c03e-701e-0055-2b4d-4ebfa3000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:4b82c03e-701e-0055-2b4d-4ebfa3000000\nTime:2020-06-29T19:45:40.0472253Z", + "Date" : "Mon, 29 Jun 2020 19:45:39 GMT", + "x-ms-client-request-id" : "fe87a3c3-c865-4b89-a66f-070c9eed54f6", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes2336411fa00cf302254d739da4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cd9e8401-5b30-4b19-bbc9-091c4528fca5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6500B47482", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:40 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0173c7ca-d01e-009f-134d-4e2c6e000000", + "Date" : "Mon, 29 Jun 2020 19:45:39 GMT", + "x-ms-client-request-id" : "cd9e8401-5b30-4b19-bbc9-091c4528fca5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1249039482debd86814bbeaec3?prefix=javablobreadattributes37757417d0194ecbdb478e9&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "48c186ed-4b55-4cfa-9111-444453749b4c" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2f1a627b-601e-0086-4f4d-4e0006000000", + "Body" : "javablobreadattributes37757417d0194ecbdb478e92/", + "Date" : "Mon, 29 Jun 2020 19:45:40 GMT", + "x-ms-client-request-id" : "48c186ed-4b55-4cfa-9111-444453749b4c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1249039482debd86814bbeaec3/javablobreadattributes37757417d0194ecbdb478e9", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0ebb452e-b3aa-4982-a5cd-848ebe3a3b1a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:40 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:39 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C6500E329DF", + "Content-Length" : "0", + "x-ms-request-id" : "33a59dec-201e-00a8-0f4d-4e80c1000000", + "x-ms-client-request-id" : "0ebb452e-b3aa-4982-a5cd-848ebe3a3b1a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1249039482debd86814bbeaec3/javablobreadattributes37757417d0194ecbdb478e9", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8995a16f-7749-46d5-b538-1943c8e0a133" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:40 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:40 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C6500E329DF", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:40 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "1b7f9427-201e-00a3-2c4d-4e98b5000000", + "x-ms-client-request-id" : "8995a16f-7749-46d5-b538-1943c8e0a133", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributes&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2b35bb39-2197-40c2-a127-3ec2eff93a17" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b459d9cb-901e-013d-634d-4ea7a7000000", + "Body" : "jtcreadattributesjtcreadattributes1249039482debd86814bbeaec3Mon, 29 Jun 2020 19:45:39 GMT\"0x8D81C6500814B57\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributes2336411fa00cf302254d739da4Mon, 29 Jun 2020 19:45:40 GMT\"0x8D81C6500B47482\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:40 GMT", + "x-ms-client-request-id" : "2b35bb39-2197-40c2-a127-3ec2eff93a17", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes1249039482debd86814bbeaec3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "444d63b1-2b24-4f83-8741-393dee6974c8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9ca18bbb-e01e-00d3-764d-4eeb71000000", + "Date" : "Mon, 29 Jun 2020 19:45:40 GMT", + "x-ms-client-request-id" : "444d63b1-2b24-4f83-8741-393dee6974c8" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributes2336411fa00cf302254d739da4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8f3904fe-e4b6-40d9-ab3f-27332c9606cf" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "79fb9928-b01e-00e2-1c4d-4eb0a6000000", + "Date" : "Mon, 29 Jun 2020 19:45:41 GMT", + "x-ms-client-request-id" : "8f3904fe-e4b6-40d9-ab3f-27332c9606cf" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributes002837e88f0423c88d40d48faf", "jtcreadattributes1249039482debd86814bbeaec3", "jtcreadattributes2336411fa00cf302254d739da4", "javablobreadattributes37757417d0194ecbdb478e9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesdirectory.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesdirectory.json new file mode 100644 index 000000000000..6c51f7999441 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesdirectory.json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory162437360ab1310d42475?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7e7d43bd-3d74-4904-9294-50462edaf1e5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "b9b81df8-e01e-0014-2f4d-4e97b0000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b9b81df8-e01e-0014-2f4d-4e97b0000000\nTime:2020-06-29T19:45:41.3119277Z", + "Date" : "Mon, 29 Jun 2020 19:45:40 GMT", + "x-ms-client-request-id" : "7e7d43bd-3d74-4904-9294-50462edaf1e5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory162437360ab1310d42475?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9d194481-2242-4bd1-8a5d-5136286e2b97" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650175B149", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "59d8b0b8-e01e-0036-5d4d-4ef986000000", + "Date" : "Mon, 29 Jun 2020 19:45:41 GMT", + "x-ms-client-request-id" : "9d194481-2242-4bd1-8a5d-5136286e2b97" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory27186960f0a7d13bab4d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e52a9c9e-cf58-4f73-8df3-8f18bd1cb3be" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "3bd7dfcb-201e-0081-3b4d-4ef683000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3bd7dfcb-201e-0081-3b4d-4ef683000000\nTime:2020-06-29T19:45:41.7794948Z", + "Date" : "Mon, 29 Jun 2020 19:45:41 GMT", + "x-ms-client-request-id" : "e52a9c9e-cf58-4f73-8df3-8f18bd1cb3be", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory27186960f0a7d13bab4d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7c073c45-8783-4b1e-b0d4-35fac081b0a4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6501BEDDDE", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:41 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "30e3af5e-301e-00b7-444d-4e5bd1000000", + "Date" : "Mon, 29 Jun 2020 19:45:41 GMT", + "x-ms-client-request-id" : "7c073c45-8783-4b1e-b0d4-35fac081b0a4" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory162437360ab1310d42475/javablobreadattributesdirectory327075ca52baf00cc14?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3c5e983e-7e58-4698-8f91-1a80d1dba2e2", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6501D72D28", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:42 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "40a34408-801e-0026-594d-4ecf60000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:42 GMT", + "x-ms-client-request-id" : "3c5e983e-7e58-4698-8f91-1a80d1dba2e2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory162437360ab1310d42475/javablobreadattributesdirectory327075ca52baf00cc14", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c575a2a1-9201-451e-acfc-976f794c67a7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:42 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:42 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" : "0x8D81C6501D72D28", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:42 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "68597a5a-201e-0020-2b4d-4e3818000000", + "x-ms-client-request-id" : "c575a2a1-9201-451e-acfc-976f794c67a7", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesdirectory&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "98a569fc-e9cb-45ee-983b-be8d52edc3ef" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2b70da53-901e-00ba-354d-4eb4dd000000", + "Body" : "jtcreadattributesdirectoryjtcreadattributesdirectory162437360ab1310d42475Mon, 29 Jun 2020 19:45:41 GMT\"0x8D81C650175B149\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesdirectory27186960f0a7d13bab4d8Mon, 29 Jun 2020 19:45:41 GMT\"0x8D81C6501BEDDDE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:42 GMT", + "x-ms-client-request-id" : "98a569fc-e9cb-45ee-983b-be8d52edc3ef", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory162437360ab1310d42475?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f30b7b92-f6fc-4d04-bbd2-92911d2a4077" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "4353650a-301e-0119-2f4d-4e3ee9000000", + "Date" : "Mon, 29 Jun 2020 19:45:41 GMT", + "x-ms-client-request-id" : "f30b7b92-f6fc-4d04-bbd2-92911d2a4077" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesdirectory27186960f0a7d13bab4d8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6a01d731-4643-4c89-a7ee-0c2f51a2a339" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "50338e76-101e-0023-714d-4e3b1f000000", + "Date" : "Mon, 29 Jun 2020 19:45:41 GMT", + "x-ms-client-request-id" : "6a01d731-4643-4c89-a7ee-0c2f51a2a339" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesdirectory05749974cef0f23e5a463", "jtcreadattributesdirectory162437360ab1310d42475", "jtcreadattributesdirectory27186960f0a7d13bab4d8", "javablobreadattributesdirectory327075ca52baf00cc14" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesioexception.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesioexception.json new file mode 100644 index 000000000000..52fd0b8c70e7 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesioexception.json @@ -0,0 +1,168 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception1645772aa59e3137fe49?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8b159379-fd00-4224-839d-70f3e2dc60a1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "11dd51d8-001e-001e-554d-4e8e39000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:11dd51d8-001e-001e-554d-4e8e39000000\nTime:2020-06-29T19:45:44.0362766Z", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "8b159379-fd00-4224-839d-70f3e2dc60a1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception1645772aa59e3137fe49?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7c043cc0-298e-49d7-9798-1f0dc1efe7bb" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65031402B8", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9c39190e-701e-00f4-344d-4e7138000000", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "7c043cc0-298e-49d7-9798-1f0dc1efe7bb" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception2146718c5b5586c54347?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d120c6d0-6b04-4860-bd10-655db57ca6df" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "3ec94882-601e-0063-2a4d-4e12f1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3ec94882-601e-0063-2a4d-4e12f1000000\nTime:2020-06-29T19:45:44.3361724Z", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "d120c6d0-6b04-4860-bd10-655db57ca6df", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception2146718c5b5586c54347?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a3e3e72c-9c9d-4972-8db3-a10cc1ce73ae" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650344176F", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:44 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ef34da3c-401e-00d5-6f4d-4e1c09000000", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "a3e3e72c-9c9d-4972-8db3-a10cc1ce73ae" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception1645772aa59e3137fe49/path", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "44a8b5d2-67fe-417c-8b26-9f59f4edc7c5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "8d8857f6-c01e-0080-014d-4ef77e000000", + "Date" : "Mon, 29 Jun 2020 19:45:44 GMT", + "x-ms-client-request-id" : "44a8b5d2-67fe-417c-8b26-9f59f4edc7c5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesioexception&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e0d1c4e1-d01a-41f4-831f-cd44b78e66bc" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "45c1fe3b-301e-0052-194d-4e4926000000", + "Body" : "jtcreadattributesioexceptionjtcreadattributesioexception1645772aa59e3137fe49Mon, 29 Jun 2020 19:45:44 GMT\"0x8D81C65031402B8\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesioexception2146718c5b5586c54347Mon, 29 Jun 2020 19:45:44 GMT\"0x8D81C650344176F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:44 GMT", + "x-ms-client-request-id" : "e0d1c4e1-d01a-41f4-831f-cd44b78e66bc", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception1645772aa59e3137fe49?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2706d3f4-fa84-47a4-a2c4-a64786c1512a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ff35b983-f01e-0088-7e4d-4eec0d000000", + "Date" : "Mon, 29 Jun 2020 19:45:44 GMT", + "x-ms-client-request-id" : "2706d3f4-fa84-47a4-a2c4-a64786c1512a" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesioexception2146718c5b5586c54347?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "998e9ddd-50e1-44f0-a6d7-bd73ac0b5b22" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ba026985-001e-00fb-794d-4e9cce000000", + "Date" : "Mon, 29 Jun 2020 19:45:44 GMT", + "x-ms-client-request-id" : "998e9ddd-50e1-44f0-a6d7-bd73ac0b5b22" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesioexception034559c3dc66b8a10646", "jtcreadattributesioexception1645772aa59e3137fe49", "jtcreadattributesioexception2146718c5b5586c54347" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrdirectory.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrdirectory.json new file mode 100644 index 000000000000..c01f9630e6ea --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrdirectory.json @@ -0,0 +1,204 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory1288954a09bcd8e8dd43?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "20e5688a-8a18-46e3-9be3-57791e02321c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "565222fd-301e-013b-484d-4e50df000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:565222fd-301e-013b-484d-4e50df000000\nTime:2020-06-29T19:46:00.1386865Z", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "20e5688a-8a18-46e3-9be3-57791e02321c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory1288954a09bcd8e8dd43?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "be90cec9-c2d2-4277-8434-64b113831c90" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650CAF4F5D", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fe3da62c-301e-0059-0f4d-4e5152000000", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "be90cec9-c2d2-4277-8434-64b113831c90" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory258201710c9c2e59554c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "89582767-41f0-403d-ab96-ffd2b7bcb10d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "1206af24-801e-0004-284d-4ea156000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1206af24-801e-0004-284d-4ea156000000\nTime:2020-06-29T19:46:00.4566065Z", + "Date" : "Mon, 29 Jun 2020 19:45:59 GMT", + "x-ms-client-request-id" : "89582767-41f0-403d-ab96-ffd2b7bcb10d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory258201710c9c2e59554c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bd31e406-1de4-4958-8bbe-b52886c6384d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650CDE708A", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "018590b4-801e-0062-324d-4e130c000000", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "bd31e406-1de4-4958-8bbe-b52886c6384d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory1288954a09bcd8e8dd43/javablobreadattributesstrdirectory391788216c5da8933?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "108313bb-7a2b-4367-9b35-6cb5f4810ba2", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650D00C79D", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:00 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0d3d1dae-b01e-000c-644d-4eba25000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "108313bb-7a2b-4367-9b35-6cb5f4810ba2" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory1288954a09bcd8e8dd43/javablobreadattributesstrdirectory391788216c5da8933", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1f0b4f4d-4603-4f08-95d4-dd3b20cef7fa" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:00 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46: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" : "0x8D81C650D00C79D", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:00 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "837d4c67-501e-002f-144d-4ed5ee000000", + "x-ms-client-request-id" : "1f0b4f4d-4603-4f08-95d4-dd3b20cef7fa", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrdirectory&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "729f161e-20e2-46c6-82b3-37a45bf77713" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "81f3ce43-e01e-003d-0b4d-4ee1f2000000", + "Body" : "jtcreadattributesstrdirectoryjtcreadattributesstrdirectory1288954a09bcd8e8dd43Mon, 29 Jun 2020 19:46:00 GMT\"0x8D81C650CAF4F5D\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrdirectory258201710c9c2e59554cMon, 29 Jun 2020 19:46:00 GMT\"0x8D81C650CDE708A\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "729f161e-20e2-46c6-82b3-37a45bf77713", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory1288954a09bcd8e8dd43?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f6058650-4153-4f82-be6a-9e771d602241" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "94ad1887-801e-0087-804d-4e01fb000000", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "f6058650-4153-4f82-be6a-9e771d602241" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrdirectory258201710c9c2e59554c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "57d9931d-79eb-4307-a970-3102bf6c8f6c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "5cc003d5-901e-0114-654d-4ed1e5000000", + "Date" : "Mon, 29 Jun 2020 19:46:00 GMT", + "x-ms-client-request-id" : "57d9931d-79eb-4307-a970-3102bf6c8f6c" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrdirectory054503ad87649db68d4f", "jtcreadattributesstrdirectory1288954a09bcd8e8dd43", "jtcreadattributesstrdirectory258201710c9c2e59554c", "javablobreadattributesstrdirectory391788216c5da8933" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[0].json new file mode 100644 index 000000000000..c7872046b065 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[0].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria1063257e4e44d5fe5d4204a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8eb3d0f3-ebc8-4e0a-bf3e-a4913bfc0afa" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "7f542411-f01e-010f-414d-4eff77000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:7f542411-f01e-010f-414d-4eff77000000\nTime:2020-06-29T19:46:01.6479718Z", + "Date" : "Mon, 29 Jun 2020 19:46:01 GMT", + "x-ms-client-request-id" : "8eb3d0f3-ebc8-4e0a-bf3e-a4913bfc0afa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria1063257e4e44d5fe5d4204a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5b1a134c-f594-4fe7-8670-b7cecb51331f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650D9560F3", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:01 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "dbf768e9-401e-0091-5f4d-4ec065000000", + "Date" : "Mon, 29 Jun 2020 19:46:01 GMT", + "x-ms-client-request-id" : "5b1a134c-f594-4fe7-8670-b7cecb51331f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria2255822cba2dc284d845ee8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "75d6dbd2-453d-4064-9db5-ffd760f80ae8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "970ec66a-401e-013f-5e4d-4ea55d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:970ec66a-401e-013f-5e4d-4ea55d000000\nTime:2020-06-29T19:46:01.9811699Z", + "Date" : "Mon, 29 Jun 2020 19:46:01 GMT", + "x-ms-client-request-id" : "75d6dbd2-453d-4064-9db5-ffd760f80ae8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria2255822cba2dc284d845ee8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "68088a83-2830-421f-9abd-95431d35dc0a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650DC71747", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0b5c4108-501e-0085-664d-4e0301000000", + "Date" : "Mon, 29 Jun 2020 19:46:01 GMT", + "x-ms-client-request-id" : "68088a83-2830-421f-9abd-95431d35dc0a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstria&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e410daa0-b9d5-4c23-9911-6df946008abe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0317e4e9-101e-00e4-664d-4e47de000000", + "Body" : "jtcreadattributesstriajtcreadattributesstria1063257e4e44d5fe5d4204aMon, 29 Jun 2020 19:46:01 GMT\"0x8D81C650D9560F3\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstria2255822cba2dc284d845ee8Mon, 29 Jun 2020 19:46:02 GMT\"0x8D81C650DC71747\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:02 GMT", + "x-ms-client-request-id" : "e410daa0-b9d5-4c23-9911-6df946008abe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria1063257e4e44d5fe5d4204a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4c5ba2bd-1478-4381-94ae-baef847e4296" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "7053979e-301e-0016-0f4d-4e954a000000", + "Date" : "Mon, 29 Jun 2020 19:46:02 GMT", + "x-ms-client-request-id" : "4c5ba2bd-1478-4381-94ae-baef847e4296" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria2255822cba2dc284d845ee8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "564803e8-d76c-489b-882c-e0b44e6b602d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0f5c0d7a-b01e-0025-044d-4ecc67000000", + "Date" : "Mon, 29 Jun 2020 19:46:02 GMT", + "x-ms-client-request-id" : "564803e8-d76c-489b-882c-e0b44e6b602d" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstria03801473cad8121c064f358", "jtcreadattributesstria1063257e4e44d5fe5d4204a", "jtcreadattributesstria2255822cba2dc284d845ee8", "javablobreadattributesstria3174865accc9ffb1264d3" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[1].json new file mode 100644 index 000000000000..d20e48ff2eac --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[1].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria122127a643a84684ea488ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0f437c6c-8b0b-4253-a823-64b446b5a1dd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "b6714767-701e-0033-7d4d-4e0df9000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:b6714767-701e-0033-7d4d-4e0df9000000\nTime:2020-06-29T19:46:02.8418164Z", + "Date" : "Mon, 29 Jun 2020 19:46:01 GMT", + "x-ms-client-request-id" : "0f437c6c-8b0b-4253-a823-64b446b5a1dd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria122127a643a84684ea488ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1e5a6fd7-e458-454d-ba04-f0485a3fe7c8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650E494FDC", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:02 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "79e48092-101e-00cd-4d4d-4e319c000000", + "Date" : "Mon, 29 Jun 2020 19:46:02 GMT", + "x-ms-client-request-id" : "1e5a6fd7-e458-454d-ba04-f0485a3fe7c8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria213211dbb6827b3f7644148?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "371b1314-4d25-4f47-87e8-4b858a2f38b4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "e4297890-e01e-0050-364d-4e4bdc000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:e4297890-e01e-0050-364d-4e4bdc000000\nTime:2020-06-29T19:46:03.1775361Z", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "371b1314-4d25-4f47-87e8-4b858a2f38b4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria213211dbb6827b3f7644148?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5b9087ca-2a29-40e4-8402-685a93fd55fd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650E802AA0", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:03 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7391d095-e01e-0072-334d-4e25ea000000", + "Date" : "Mon, 29 Jun 2020 19:46:02 GMT", + "x-ms-client-request-id" : "5b9087ca-2a29-40e4-8402-685a93fd55fd" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstria&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cda3221c-365c-4360-ada0-d2000e1b2aa8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "c9a3b711-d01e-00bd-464d-4e4258000000", + "Body" : "jtcreadattributesstriajtcreadattributesstria122127a643a84684ea488abMon, 29 Jun 2020 19:46:02 GMT\"0x8D81C650E494FDC\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstria213211dbb6827b3f7644148Mon, 29 Jun 2020 19:46:03 GMT\"0x8D81C650E802AA0\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "cda3221c-365c-4360-ada0-d2000e1b2aa8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria122127a643a84684ea488ab?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "91425939-e86e-48f6-a1a1-648d27cffd04" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9c24674a-201e-002b-764d-4e206c000000", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "91425939-e86e-48f6-a1a1-648d27cffd04" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria213211dbb6827b3f7644148?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b16b1a20-abd0-466b-8d4c-4544c86d255e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fdbd510a-b01e-0061-584d-4e100b000000", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "b16b1a20-abd0-466b-8d4c-4544c86d255e" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstria030767f48d0b5856cf4c9db", "jtcreadattributesstria122127a643a84684ea488ab", "jtcreadattributesstria213211dbb6827b3f7644148", "javablobreadattributesstria3099491e6b18c72e704d9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[2].json new file mode 100644 index 000000000000..28ff87721f21 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstria[2].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria101057ca8847ea7734413fb?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ab94dda3-33d4-4fcc-9555-ca5ca9647449" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "3d033f35-301e-0034-3a4d-4efb7c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:3d033f35-301e-0034-3a4d-4efb7c000000\nTime:2020-06-29T19:46:03.9901542Z", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "ab94dda3-33d4-4fcc-9555-ca5ca9647449", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria101057ca8847ea7734413fb?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1d3f809c-35b9-4176-908e-42c1e1a6845c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650EF9E2D2", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3fd19be6-b01e-006a-214d-4e087f000000", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "1d3f809c-35b9-4176-908e-42c1e1a6845c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria204232aa0cee27e7874599a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ef68eb25-55e8-4063-8f0f-1b57bffb450b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "f174ad8f-d01e-0118-054d-4e3f14000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:f174ad8f-d01e-0118-054d-4e3f14000000\nTime:2020-06-29T19:46:04.3008958Z", + "Date" : "Mon, 29 Jun 2020 19:46:03 GMT", + "x-ms-client-request-id" : "ef68eb25-55e8-4063-8f0f-1b57bffb450b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria204232aa0cee27e7874599a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c2d536d8-291b-46b0-941d-b0fa116a50d8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650F2BEFEE", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:04 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "89c224ee-001e-0037-484d-4ef87b000000", + "Date" : "Mon, 29 Jun 2020 19:46:04 GMT", + "x-ms-client-request-id" : "c2d536d8-291b-46b0-941d-b0fa116a50d8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstria&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "174f64eb-3bdb-45e1-8aa7-3487931f16af" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "cad683bc-201e-010d-424d-4efd8d000000", + "Body" : "jtcreadattributesstriajtcreadattributesstria101057ca8847ea7734413fbMon, 29 Jun 2020 19:46:04 GMT\"0x8D81C650EF9E2D2\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstria204232aa0cee27e7874599aMon, 29 Jun 2020 19:46:04 GMT\"0x8D81C650F2BEFEE\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:04 GMT", + "x-ms-client-request-id" : "174f64eb-3bdb-45e1-8aa7-3487931f16af", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria101057ca8847ea7734413fb?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "71ef133f-a485-415f-abf4-83a8c5b625de" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fc6e357e-a01e-0090-1c4d-4ec198000000", + "Date" : "Mon, 29 Jun 2020 19:46:04 GMT", + "x-ms-client-request-id" : "71ef133f-a485-415f-abf4-83a8c5b625de" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstria204232aa0cee27e7874599a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a5159cae-5498-4296-a9c7-7c5fa50dfdbd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "52fca39d-a01e-003a-4c4d-4e1777000000", + "Date" : "Mon, 29 Jun 2020 19:46:04 GMT", + "x-ms-client-request-id" : "a5159cae-5498-4296-a9c7-7c5fa50dfdbd" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstria0559611e5910f7ff6f48cbb", "jtcreadattributesstria101057ca8847ea7734413fb", "jtcreadattributesstria204232aa0cee27e7874599a", "javablobreadattributesstria3270706fecab428fb84e4" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrinvalidview.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrinvalidview.json new file mode 100644 index 000000000000..1419e225bc53 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrinvalidview.json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrinvalidview1268437afbbc40b1784?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "698a651e-9ec0-4273-9898-2490ab55969b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "af9d43f8-501e-00ac-0d4d-4e7543000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:af9d43f8-501e-00ac-0d4d-4e7543000000\nTime:2020-06-29T19:46:05.1177092Z", + "Date" : "Mon, 29 Jun 2020 19:46:04 GMT", + "x-ms-client-request-id" : "698a651e-9ec0-4273-9898-2490ab55969b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrinvalidview1268437afbbc40b1784?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "00099c01-569b-4534-b5a0-29ff30bef8b1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650FA50D80", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fc46908b-a01e-0057-764d-4ebd59000000", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "00099c01-569b-4534-b5a0-29ff30bef8b1" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrinvalidview214629e2fad2cfcef34?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e8e0a70d-17f1-453c-9265-7b4ec4e10e76" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "02d29d5e-f01e-012d-354d-4e9141000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:02d29d5e-f01e-012d-354d-4e9141000000\nTime:2020-06-29T19:46:05.4201804Z", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "e8e0a70d-17f1-453c-9265-7b4ec4e10e76", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrinvalidview214629e2fad2cfcef34?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6737f5ed-9fef-48c7-b936-bf68f8f14109" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650FD4F916", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:05 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "ce8eadff-801e-000f-774d-4eb922000000", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "6737f5ed-9fef-48c7-b936-bf68f8f14109" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrinvalidview&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3fcbe570-b9c6-4678-87e9-545d902e6d22" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "bbd9111a-e01e-00be-804d-4e415f000000", + "Body" : "jtcreadattributesstrinvalidviewjtcreadattributesstrinvalidview1268437afbbc40b1784Mon, 29 Jun 2020 19:46:05 GMT\"0x8D81C650FA50D80\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrinvalidview214629e2fad2cfcef34Mon, 29 Jun 2020 19:46:05 GMT\"0x8D81C650FD4F916\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:04 GMT", + "x-ms-client-request-id" : "3fcbe570-b9c6-4678-87e9-545d902e6d22", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrinvalidview1268437afbbc40b1784?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "15548c2c-c779-4060-a620-eb86bad04fb5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "55e794f3-a01e-0018-684d-4e7941000000", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "15548c2c-c779-4060-a620-eb86bad04fb5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrinvalidview214629e2fad2cfcef34?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8858ecd6-a113-45b2-a387-974be40edaf7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "6501e0ac-b01e-012a-664d-4e67c4000000", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "8858ecd6-a113-45b2-a387-974be40edaf7" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrinvalidview043222224583d43f824", "jtcreadattributesstrinvalidview1268437afbbc40b1784", "jtcreadattributesstrinvalidview214629e2fad2cfcef34", "javablobreadattributesstrinvalidview3096368095bd22cf" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrioexception.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrioexception.json new file mode 100644 index 000000000000..602c82aa1fd0 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrioexception.json @@ -0,0 +1,168 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception11836991ef307f61714?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6a95aa2b-0c7d-4bf9-9ce2-8decb3f9f916" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "5c61dd58-701e-0099-6a4d-4edb16000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:5c61dd58-701e-0099-6a4d-4edb16000000\nTime:2020-06-29T19:46:06.1998142Z", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "6a95aa2b-0c7d-4bf9-9ce2-8decb3f9f916", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception11836991ef307f61714?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cfbf51e6-e270-4c0f-8cba-34270e3ba7ac" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65104A5778", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fff86a37-901e-001b-284d-4e7a46000000", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "cfbf51e6-e270-4c0f-8cba-34270e3ba7ac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception2208528d849c033c194?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6712417e-7626-4c31-a8a2-055508eb1016" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "178dae0c-201e-0002-294d-4e562e000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:178dae0c-201e-0002-294d-4e562e000000\nTime:2020-06-29T19:46:06.5040571Z", + "Date" : "Mon, 29 Jun 2020 19:46:05 GMT", + "x-ms-client-request-id" : "6712417e-7626-4c31-a8a2-055508eb1016", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception2208528d849c033c194?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b6ba9532-244b-4ff6-b847-2b2a331a977e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65107943D2", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:06 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "97b9c603-401e-0074-024d-4ed292000000", + "Date" : "Mon, 29 Jun 2020 19:46:06 GMT", + "x-ms-client-request-id" : "b6ba9532-244b-4ff6-b847-2b2a331a977e" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception11836991ef307f61714/path", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d93ec05d-25c5-4faa-8575-c05f766bc270" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-error-code" : "BlobNotFound", + "retry-after" : "0", + "StatusCode" : "404", + "x-ms-request-id" : "605823a0-c01e-006e-6a4d-4efdfd000000", + "Date" : "Mon, 29 Jun 2020 19:46:06 GMT", + "x-ms-client-request-id" : "d93ec05d-25c5-4faa-8575-c05f766bc270" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrioexception&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a4a3fbf4-d522-43a5-9707-87ac1e198caf" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "76b9ae6f-801e-002d-254d-4ed714000000", + "Body" : "jtcreadattributesstrioexceptionjtcreadattributesstrioexception11836991ef307f61714Mon, 29 Jun 2020 19:46:06 GMT\"0x8D81C65104A5778\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrioexception2208528d849c033c194Mon, 29 Jun 2020 19:46:06 GMT\"0x8D81C65107943D2\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:06 GMT", + "x-ms-client-request-id" : "a4a3fbf4-d522-43a5-9707-87ac1e198caf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception11836991ef307f61714?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fadb441d-cc5c-4ac0-b7c4-8190ad15c993" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0f5320ad-a01e-0013-4d4d-4e6135000000", + "Date" : "Mon, 29 Jun 2020 19:46:06 GMT", + "x-ms-client-request-id" : "fadb441d-cc5c-4ac0-b7c4-8190ad15c993" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrioexception2208528d849c033c194?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6ae3ef8b-61c8-4dbc-8033-58db9dfed3d1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1f3f41f7-501e-000d-6f4d-4ebbd8000000", + "Date" : "Mon, 29 Jun 2020 19:46:06 GMT", + "x-ms-client-request-id" : "6ae3ef8b-61c8-4dbc-8033-58db9dfed3d1" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrioexception04135470eda43b8f984", "jtcreadattributesstrioexception11836991ef307f61714", "jtcreadattributesstrioexception2208528d849c033c194" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[0].json new file mode 100644 index 000000000000..a10f381105b6 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[0].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1599825bbe9ce55c12422?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "05933fa5-1d3b-498c-8b9f-c6fb68feaf9f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "718b90fd-801e-0069-194d-4e0b78000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:718b90fd-801e-0069-194d-4e0b78000000\nTime:2020-06-29T19:45:45.2854397Z", + "Date" : "Mon, 29 Jun 2020 19:45:44 GMT", + "x-ms-client-request-id" : "05933fa5-1d3b-498c-8b9f-c6fb68feaf9f", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1599825bbe9ce55c12422?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7b728e47-e0ea-4186-8140-e0d962c49f3d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6503D73609", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "81d20bd3-701e-0077-524d-4ed195000000", + "Date" : "Mon, 29 Jun 2020 19:45:45 GMT", + "x-ms-client-request-id" : "7b728e47-e0ea-4186-8140-e0d962c49f3d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing27031942a3041d9cbb4de?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d7de70ab-4aec-4902-9a48-b6bbdc979bc7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "adabe838-601e-00c2-144d-4edc6a000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:adabe838-601e-00c2-144d-4edc6a000000\nTime:2020-06-29T19:45:45.6263562Z", + "Date" : "Mon, 29 Jun 2020 19:45:45 GMT", + "x-ms-client-request-id" : "d7de70ab-4aec-4902-9a48-b6bbdc979bc7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing27031942a3041d9cbb4de?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6155a69f-4533-45b5-84c8-29d6808f47c5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65040A8320", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:45 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0817200e-501e-0120-174d-4e7e4d000000", + "Date" : "Mon, 29 Jun 2020 19:45:45 GMT", + "x-ms-client-request-id" : "6155a69f-4533-45b5-84c8-29d6808f47c5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1599825bbe9ce55c12422?prefix=javablobreadattributesstrparsing33406094c10292fdc8&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d1fc373c-52ee-4f33-8d30-59c940bd8e65" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5dc8087d-201e-012f-174d-4e93bb000000", + "Body" : "javablobreadattributesstrparsing33406094c10292fdc82/", + "Date" : "Mon, 29 Jun 2020 19:45:45 GMT", + "x-ms-client-request-id" : "d1fc373c-52ee-4f33-8d30-59c940bd8e65", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1599825bbe9ce55c12422/javablobreadattributesstrparsing33406094c10292fdc8", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a7376577-1e86-45a6-b37a-0799a48d77e8", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:46 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:45 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C65043EDB6A", + "Content-Length" : "0", + "x-ms-request-id" : "b860c49d-201e-00c5-3a4d-4e2aef000000", + "x-ms-client-request-id" : "a7376577-1e86-45a6-b37a-0799a48d77e8" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1599825bbe9ce55c12422/javablobreadattributesstrparsing33406094c10292fdc8", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "04897224-d8e7-4114-966f-37138727bd5a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:46 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:45 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C65043EDB6A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:46 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "1d82a6f2-101e-00ab-384d-4e83c6000000", + "x-ms-client-request-id" : "04897224-d8e7-4114-966f-37138727bd5a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "236ea21f-4424-493f-830e-dbc184f7cd5b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "bc3f8b67-b01e-002e-304d-4ed413000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing1599825bbe9ce55c12422Mon, 29 Jun 2020 19:45:45 GMT\"0x8D81C6503D73609\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing27031942a3041d9cbb4deMon, 29 Jun 2020 19:45:45 GMT\"0x8D81C65040A8320\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "236ea21f-4424-493f-830e-dbc184f7cd5b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1599825bbe9ce55c12422?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bff959c1-a15a-47a3-80d3-a0d1442216ec" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "74b6fd8d-801e-00c8-354d-4ec5e3000000", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "bff959c1-a15a-47a3-80d3-a0d1442216ec" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing27031942a3041d9cbb4de?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d83d83f0-b82a-45c7-a79f-22720c7d6081" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0ba9978d-f01e-0126-704d-4e8935000000", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "d83d83f0-b82a-45c7-a79f-22720c7d6081" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing062721e7ac1272bdaa4af", "jtcreadattributesstrparsing1599825bbe9ce55c12422", "jtcreadattributesstrparsing27031942a3041d9cbb4de", "javablobreadattributesstrparsing33406094c10292fdc8" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[1].json new file mode 100644 index 000000000000..d42cd547472d --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[1].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing12464428ddc82da870406?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "71163638-fa80-4f47-bc32-aecdcf3cd6ec" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "dbd2c7c8-301e-0095-804d-4e35e7000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dbd2c7c8-301e-0095-804d-4e35e7000000\nTime:2020-06-29T19:45:47.0185976Z", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "71163638-fa80-4f47-bc32-aecdcf3cd6ec", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing12464428ddc82da870406?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f0ce797b-8561-433c-bc13-f45f5facc964" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6504DA985F", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "5202a330-b01e-00cb-604d-4ec6e4000000", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "f0ce797b-8561-433c-bc13-f45f5facc964" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing233861aa64407f7ae747c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "508a440e-8a25-4a58-9b7a-2104b557fb58" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "10cdb53a-601e-0101-644d-4e137c000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:10cdb53a-601e-0101-644d-4e137c000000\nTime:2020-06-29T19:45:47.3307274Z", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "508a440e-8a25-4a58-9b7a-2104b557fb58", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing233861aa64407f7ae747c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f1176cb0-8302-4d58-963b-7fadd29f29ed" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65050AB4CF", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:47 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "718c3cc4-301e-0070-5a4d-4e2710000000", + "Date" : "Mon, 29 Jun 2020 19:45:47 GMT", + "x-ms-client-request-id" : "f1176cb0-8302-4d58-963b-7fadd29f29ed" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing12464428ddc82da870406?prefix=javablobreadattributesstrparsing3896495c7f0942432d&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "549fc9ae-255e-45eb-b402-92ee430941ed" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9fd291ac-701e-0092-124d-4ec362000000", + "Body" : "javablobreadattributesstrparsing3896495c7f0942432d2/", + "Date" : "Mon, 29 Jun 2020 19:45:46 GMT", + "x-ms-client-request-id" : "549fc9ae-255e-45eb-b402-92ee430941ed", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing12464428ddc82da870406/javablobreadattributesstrparsing3896495c7f0942432d", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e7616fe0-c5e3-41ea-93e7-23c7357126bf", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:47 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:47 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C65053D40FB", + "Content-Length" : "0", + "x-ms-request-id" : "905de893-001e-0051-2e4d-4e4a21000000", + "x-ms-client-request-id" : "e7616fe0-c5e3-41ea-93e7-23c7357126bf" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing12464428ddc82da870406/javablobreadattributesstrparsing3896495c7f0942432d", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0077dc19-3eba-4b35-91d1-276049803745" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:47 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:47 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C65053D40FB", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:47 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "e3fff69b-601e-00eb-3a4d-4eaa28000000", + "x-ms-client-request-id" : "0077dc19-3eba-4b35-91d1-276049803745", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "429c45bd-702a-4dc7-ae18-880aa8b63584" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9ef2eb5d-f01e-006d-124d-4efefa000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing12464428ddc82da870406Mon, 29 Jun 2020 19:45:47 GMT\"0x8D81C6504DA985F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing233861aa64407f7ae747cMon, 29 Jun 2020 19:45:47 GMT\"0x8D81C65050AB4CF\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:47 GMT", + "x-ms-client-request-id" : "429c45bd-702a-4dc7-ae18-880aa8b63584", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing12464428ddc82da870406?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d9eb347c-2560-4d10-b4d8-37d73669b989" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "54ab23b1-601e-0068-624d-4e0a85000000", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "x-ms-client-request-id" : "d9eb347c-2560-4d10-b4d8-37d73669b989" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing233861aa64407f7ae747c?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4bf2327b-21cd-47c5-80a6-f98738c55c95" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "830b098b-401e-0116-7d4d-4ed31f000000", + "Date" : "Mon, 29 Jun 2020 19:45:47 GMT", + "x-ms-client-request-id" : "4bf2327b-21cd-47c5-80a6-f98738c55c95" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing038408dffeb0759784405", "jtcreadattributesstrparsing12464428ddc82da870406", "jtcreadattributesstrparsing233861aa64407f7ae747c", "javablobreadattributesstrparsing3896495c7f0942432d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[2].json new file mode 100644 index 000000000000..50d4ef598a51 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[2].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing149586db092918bda1457?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b7f73e74-e66f-4fa6-a14d-a09bb0692966" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "cb00cba2-401e-005d-3a4d-4ea4d0000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:cb00cba2-401e-005d-3a4d-4ea4d0000000\nTime:2020-06-29T19:45:48.7324680Z", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "x-ms-client-request-id" : "b7f73e74-e66f-4fa6-a14d-a09bb0692966", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing149586db092918bda1457?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d80e825a-3878-47c9-86ec-28d8d599dcf0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6505E19B5A", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:48 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "2e3c772f-901e-0093-0a4d-4ec29f000000", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "x-ms-client-request-id" : "d80e825a-3878-47c9-86ec-28d8d599dcf0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing216357e08fe9ef94344a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "50c69155-760b-4cdc-8b24-fcb8b4940a73" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "d74355b3-101e-0105-3f4d-4ee6fe000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d74355b3-101e-0105-3f4d-4ee6fe000000\nTime:2020-06-29T19:45:49.0434646Z", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "x-ms-client-request-id" : "50c69155-760b-4cdc-8b24-fcb8b4940a73", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing216357e08fe9ef94344a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "00f7e147-9409-47ba-b104-9d7551a6c2c9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650610CA15", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:49 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "22053958-601e-0128-5a4d-4e653e000000", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "x-ms-client-request-id" : "00f7e147-9409-47ba-b104-9d7551a6c2c9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing149586db092918bda1457?prefix=javablobreadattributesstrparsing332083e51890468dfb&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "001ca767-23d3-4f97-b618-b26adcde88c3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8a1f0469-901e-0032-264d-4e0c04000000", + "Body" : "javablobreadattributesstrparsing332083e51890468dfb2/", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "x-ms-client-request-id" : "001ca767-23d3-4f97-b618-b26adcde88c3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing149586db092918bda1457/javablobreadattributesstrparsing332083e51890468dfb", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b63a2aee-1270-45fa-9368-aaa2c6726a80", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:49 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:48 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C650641C1E6", + "Content-Length" : "0", + "x-ms-request-id" : "b3f5007e-b01e-0108-7f4d-4e09f2000000", + "x-ms-client-request-id" : "b63a2aee-1270-45fa-9368-aaa2c6726a80" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing149586db092918bda1457/javablobreadattributesstrparsing332083e51890468dfb", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5e0f67dc-df73-4e44-b9e3-c542700f4160" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:49 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:49 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C650641C1E6", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:49 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "12592d92-b01e-0103-714d-4e1186000000", + "x-ms-client-request-id" : "5e0f67dc-df73-4e44-b9e3-c542700f4160", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7fa27b2f-c4c6-4a76-9e86-bb035140462a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "e8a4b06c-a01e-00fd-2e4d-4e6bb6000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing149586db092918bda1457Mon, 29 Jun 2020 19:45:48 GMT\"0x8D81C6505E19B5A\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing216357e08fe9ef94344a6Mon, 29 Jun 2020 19:45:49 GMT\"0x8D81C650610CA15\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:49 GMT", + "x-ms-client-request-id" : "7fa27b2f-c4c6-4a76-9e86-bb035140462a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing149586db092918bda1457?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3a0f2524-0ecf-4fe0-8ddb-3cef2651e295" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fa8da8fe-401e-00f7-604d-4e723f000000", + "Date" : "Mon, 29 Jun 2020 19:45:49 GMT", + "x-ms-client-request-id" : "3a0f2524-0ecf-4fe0-8ddb-3cef2651e295" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing216357e08fe9ef94344a6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4deccebd-a849-4a74-abb7-4b796fcf642c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "71c3463f-d01e-003e-544d-4ee2f5000000", + "Date" : "Mon, 29 Jun 2020 19:45:49 GMT", + "x-ms-client-request-id" : "4deccebd-a849-4a74-abb7-4b796fcf642c" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing0923923f1cdcf6c932468", "jtcreadattributesstrparsing149586db092918bda1457", "jtcreadattributesstrparsing216357e08fe9ef94344a6", "javablobreadattributesstrparsing332083e51890468dfb" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[3].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[3].json new file mode 100644 index 000000000000..25bf6b08262a --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[3].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing16675405bf0ecd64a8495?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "103f0e52-6ce5-4c68-97a9-982cbac0a434" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "6d6fd6d3-e01e-00d8-204d-4ef305000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:6d6fd6d3-e01e-00d8-204d-4ef305000000\nTime:2020-06-29T19:45:50.3425003Z", + "Date" : "Mon, 29 Jun 2020 19:45:50 GMT", + "x-ms-client-request-id" : "103f0e52-6ce5-4c68-97a9-982cbac0a434", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing16675405bf0ecd64a8495?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ab449581-7934-4046-a0a6-3c7afdc602b0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6506D6D266", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "69847465-201e-006f-0d4d-4efc00000000", + "Date" : "Mon, 29 Jun 2020 19:45:49 GMT", + "x-ms-client-request-id" : "ab449581-7934-4046-a0a6-3c7afdc602b0" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing271835abf5db0fba0946f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d126d336-fe24-4847-8f67-178cb9281145" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "974b69e9-601e-0005-4e4d-4ea0ab000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:974b69e9-601e-0005-4e4d-4ea0ab000000\nTime:2020-06-29T19:45:50.6575389Z", + "Date" : "Mon, 29 Jun 2020 19:45:50 GMT", + "x-ms-client-request-id" : "d126d336-fe24-4847-8f67-178cb9281145", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing271835abf5db0fba0946f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "686c76f3-5c2f-48c9-a557-0aa54fb0097b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650708F641", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:50 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "4694580c-401e-00b3-494d-4eae53000000", + "Date" : "Mon, 29 Jun 2020 19:45:50 GMT", + "x-ms-client-request-id" : "686c76f3-5c2f-48c9-a557-0aa54fb0097b" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing16675405bf0ecd64a8495?prefix=javablobreadattributesstrparsing328094f63c91872f06&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fc657eef-db05-4751-9ca5-b8d0f6606b80" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "04e8dbeb-901e-00fe-214d-4e68b1000000", + "Body" : "javablobreadattributesstrparsing328094f63c91872f062/", + "Date" : "Mon, 29 Jun 2020 19:45:50 GMT", + "x-ms-client-request-id" : "fc657eef-db05-4751-9ca5-b8d0f6606b80", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing16675405bf0ecd64a8495/javablobreadattributesstrparsing328094f63c91872f06", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "92a6af7d-f6ca-4964-aeee-67e847795442", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:51 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:51 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C65073B6B5D", + "Content-Length" : "0", + "x-ms-request-id" : "05b4ff47-d01e-0094-764d-4e341a000000", + "x-ms-client-request-id" : "92a6af7d-f6ca-4964-aeee-67e847795442" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing16675405bf0ecd64a8495/javablobreadattributesstrparsing328094f63c91872f06", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3eaf57c3-0072-4dfa-96a2-5663f397729a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:51 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:50 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C65073B6B5D", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:51 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "8b6336ff-d01e-00b6-264d-4e5a2c000000", + "x-ms-client-request-id" : "3eaf57c3-0072-4dfa-96a2-5663f397729a", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bc0d52c4-4b57-476f-b311-2028ef228781" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "16f4023c-701e-0011-204d-4e63cf000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing16675405bf0ecd64a8495Mon, 29 Jun 2020 19:45:50 GMT\"0x8D81C6506D6D266\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing271835abf5db0fba0946fMon, 29 Jun 2020 19:45:50 GMT\"0x8D81C650708F641\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:50 GMT", + "x-ms-client-request-id" : "bc0d52c4-4b57-476f-b311-2028ef228781", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing16675405bf0ecd64a8495?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "859de538-e342-4625-817c-8b300fccffc7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2b6340ae-001e-00bf-724d-4e40a2000000", + "Date" : "Mon, 29 Jun 2020 19:45:51 GMT", + "x-ms-client-request-id" : "859de538-e342-4625-817c-8b300fccffc7" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing271835abf5db0fba0946f?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "802b3a6a-961f-4ad8-a181-d4385b479be6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "82f8538f-601e-010a-3c4d-4e0b08000000", + "Date" : "Mon, 29 Jun 2020 19:45:51 GMT", + "x-ms-client-request-id" : "802b3a6a-961f-4ad8-a181-d4385b479be6" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing050764d51d97fda8a341c", "jtcreadattributesstrparsing16675405bf0ecd64a8495", "jtcreadattributesstrparsing271835abf5db0fba0946f", "javablobreadattributesstrparsing328094f63c91872f06" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[4].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[4].json new file mode 100644 index 000000000000..f7d3032b7312 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[4].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing133804b1153ac902fe497?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9d2d009e-1d74-4a78-ab85-8763248bd995" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "87607b05-201e-0064-384d-4ee474000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:87607b05-201e-0064-384d-4ee474000000\nTime:2020-06-29T19:45:51.9802102Z", + "Date" : "Mon, 29 Jun 2020 19:45:51 GMT", + "x-ms-client-request-id" : "9d2d009e-1d74-4a78-ab85-8763248bd995", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing133804b1153ac902fe497?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "984e2026-6813-4912-84b3-8a606720849c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6507D0DE51", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c7b7bc3f-801e-00ae-444d-4e77b9000000", + "Date" : "Mon, 29 Jun 2020 19:45:51 GMT", + "x-ms-client-request-id" : "984e2026-6813-4912-84b3-8a606720849c" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing2977318cb3e7517e3947e?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8b20b8e3-e269-4afa-af17-617d7b409f98" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "7b3e54ef-301e-00d1-7d4d-4ee98b000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:7b3e54ef-301e-00d1-7d4d-4ee98b000000\nTime:2020-06-29T19:45:52.3588220Z", + "Date" : "Mon, 29 Jun 2020 19:45:51 GMT", + "x-ms-client-request-id" : "8b20b8e3-e269-4afa-af17-617d7b409f98", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing2977318cb3e7517e3947e?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a848b8d3-0227-42e3-b453-4223d4aa2cac" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65080B1250", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:52 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "b27fa243-d01e-0053-6a4d-4e48db000000", + "Date" : "Mon, 29 Jun 2020 19:45:52 GMT", + "x-ms-client-request-id" : "a848b8d3-0227-42e3-b453-4223d4aa2cac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing133804b1153ac902fe497?prefix=javablobreadattributesstrparsing3959986138e04c5c8e&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3f61f556-56d0-4729-9dc8-fadc48a70518" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "7e5a4ea8-001e-00d9-0e4d-4ef2f8000000", + "Body" : "javablobreadattributesstrparsing3959986138e04c5c8e2/", + "Date" : "Mon, 29 Jun 2020 19:45:52 GMT", + "x-ms-client-request-id" : "3f61f556-56d0-4729-9dc8-fadc48a70518", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing133804b1153ac902fe497/javablobreadattributesstrparsing3959986138e04c5c8e", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9bf3f342-37af-4ea9-a6b0-8f55a4dffb26", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:52 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:52 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C65084A008F", + "Content-Length" : "0", + "x-ms-request-id" : "daf113d0-901e-0098-564d-4edaeb000000", + "x-ms-client-request-id" : "9bf3f342-37af-4ea9-a6b0-8f55a4dffb26" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing133804b1153ac902fe497/javablobreadattributesstrparsing3959986138e04c5c8e", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9b37ac53-b760-41af-a20b-1533eb9dabfd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:52 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:52 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C65084A008F", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:52 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "af998795-501e-0006-3b4d-4ea3ac000000", + "x-ms-client-request-id" : "9b37ac53-b760-41af-a20b-1533eb9dabfd", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "761c8cd2-3ce9-4dff-869c-a0a8b3cacbe7" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "c7a64da0-101e-0001-354d-4e5529000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing133804b1153ac902fe497Mon, 29 Jun 2020 19:45:52 GMT\"0x8D81C6507D0DE51\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing2977318cb3e7517e3947eMon, 29 Jun 2020 19:45:52 GMT\"0x8D81C65080B1250\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:53 GMT", + "x-ms-client-request-id" : "761c8cd2-3ce9-4dff-869c-a0a8b3cacbe7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing133804b1153ac902fe497?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5333482d-bf9d-4aaa-918e-177c7d5685bd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "4aaa45e5-901e-00d7-654d-4e1ef3000000", + "Date" : "Mon, 29 Jun 2020 19:45:52 GMT", + "x-ms-client-request-id" : "5333482d-bf9d-4aaa-918e-177c7d5685bd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing2977318cb3e7517e3947e?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bcaea292-6ecd-468a-b2b6-0f5e3f4f348a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "2b083647-201e-0009-594d-4e4e5a000000", + "Date" : "Mon, 29 Jun 2020 19:45:53 GMT", + "x-ms-client-request-id" : "bcaea292-6ecd-468a-b2b6-0f5e3f4f348a" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing058758baa3f357c4c14ef", "jtcreadattributesstrparsing133804b1153ac902fe497", "jtcreadattributesstrparsing2977318cb3e7517e3947e", "javablobreadattributesstrparsing3959986138e04c5c8e" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[5].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[5].json new file mode 100644 index 000000000000..13aad4e17f73 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[5].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1200198131a07776d5409?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d3167a15-9bdd-43dd-98fc-04b091eabcc2" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "7fce459b-601e-00a4-454d-4e6e30000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:7fce459b-601e-00a4-454d-4e6e30000000\nTime:2020-06-29T19:45:54.8036995Z", + "Date" : "Mon, 29 Jun 2020 19:45:54 GMT", + "x-ms-client-request-id" : "d3167a15-9bdd-43dd-98fc-04b091eabcc2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1200198131a07776d5409?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6af93c08-8eb9-4be5-ac6b-0f2ad6a7b759" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65097F4F2F", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:54 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "f0c66984-a01e-013e-7e4d-4ea4a0000000", + "Date" : "Mon, 29 Jun 2020 19:45:54 GMT", + "x-ms-client-request-id" : "6af93c08-8eb9-4be5-ac6b-0f2ad6a7b759" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing2929762b48d08a9359439?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "79e2f1e1-8d63-4c28-bc01-2d13590bc88c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "890c4593-e01e-0110-634d-4e2467000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:890c4593-e01e-0110-634d-4e2467000000\nTime:2020-06-29T19:45:55.1348170Z", + "Date" : "Mon, 29 Jun 2020 19:45:54 GMT", + "x-ms-client-request-id" : "79e2f1e1-8d63-4c28-bc01-2d13590bc88c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing2929762b48d08a9359439?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "abd73142-a669-4ba4-b8a9-38cb43a1cfd8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6509B24373", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:55 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c3bba817-501e-00a7-1f4d-4e6d37000000", + "Date" : "Mon, 29 Jun 2020 19:45:54 GMT", + "x-ms-client-request-id" : "abd73142-a669-4ba4-b8a9-38cb43a1cfd8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1200198131a07776d5409?prefix=javablobreadattributesstrparsing371954c0faa80697ab&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "50c9a484-c686-4a81-85c4-cbb76296d9ca" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "4b2434ef-f01e-00a1-354d-4e9a4f000000", + "Body" : "javablobreadattributesstrparsing371954c0faa80697ab2/", + "Date" : "Mon, 29 Jun 2020 19:45:55 GMT", + "x-ms-client-request-id" : "50c9a484-c686-4a81-85c4-cbb76296d9ca", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1200198131a07776d5409/javablobreadattributesstrparsing371954c0faa80697ab", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7e42ee5e-264c-46b2-9372-ae2aa6f2cc0a", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:55 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:54 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C6509E7345D", + "Content-Length" : "0", + "x-ms-request-id" : "2a49b2a8-d01e-0113-5e4d-4e2760000000", + "x-ms-client-request-id" : "7e42ee5e-264c-46b2-9372-ae2aa6f2cc0a" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1200198131a07776d5409/javablobreadattributesstrparsing371954c0faa80697ab", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d4cc3c4f-8574-438d-9248-291358c03f3c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:55 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:55 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C6509E7345D", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:55 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "95056e1d-001e-005a-434d-4e5255000000", + "x-ms-client-request-id" : "d4cc3c4f-8574-438d-9248-291358c03f3c", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0ac05e59-b79d-4887-9865-2be9f0c4a220" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "aab876e1-301e-0130-694d-4e48ab000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing1200198131a07776d5409Mon, 29 Jun 2020 19:45:54 GMT\"0x8D81C65097F4F2F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing2929762b48d08a9359439Mon, 29 Jun 2020 19:45:55 GMT\"0x8D81C6509B24373\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:55 GMT", + "x-ms-client-request-id" : "0ac05e59-b79d-4887-9865-2be9f0c4a220", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1200198131a07776d5409?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "688faff2-c113-45fd-b1e0-5f7a0208e368" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "996bd7ea-601e-0027-1c4d-4ece9d000000", + "Date" : "Mon, 29 Jun 2020 19:45:55 GMT", + "x-ms-client-request-id" : "688faff2-c113-45fd-b1e0-5f7a0208e368" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing2929762b48d08a9359439?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "637dc294-5dbe-47ea-a113-bf3eb77d5e6d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d027a5fa-001e-0111-574d-4e259a000000", + "Date" : "Mon, 29 Jun 2020 19:45:55 GMT", + "x-ms-client-request-id" : "637dc294-5dbe-47ea-a113-bf3eb77d5e6d" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing0228370c759517a46e439", "jtcreadattributesstrparsing1200198131a07776d5409", "jtcreadattributesstrparsing2929762b48d08a9359439", "javablobreadattributesstrparsing371954c0faa80697ab" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[6].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[6].json new file mode 100644 index 000000000000..299986d73906 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[6].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1633256c19c31cbfd9424?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4662b9ec-4233-4b57-8db6-c980820bfed0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "f979e035-001e-0133-2e4d-4e4bac000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:f979e035-001e-0133-2e4d-4e4bac000000\nTime:2020-06-29T19:45:56.7178339Z", + "Date" : "Mon, 29 Jun 2020 19:45:55 GMT", + "x-ms-client-request-id" : "4662b9ec-4233-4b57-8db6-c980820bfed0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1633256c19c31cbfd9424?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3dae43e3-09ca-422d-b062-09cfe0da4240" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650AA3A296", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:56 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d9b670f2-f01e-0066-0d4d-4ee68e000000", + "Date" : "Mon, 29 Jun 2020 19:45:56 GMT", + "x-ms-client-request-id" : "3dae43e3-09ca-422d-b062-09cfe0da4240" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing265256429b07ba3f994b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1bd6382b-ee13-4269-8204-e8522f5ff34a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "aac9b7de-701e-0038-434d-4e158d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:aac9b7de-701e-0038-434d-4e158d000000\nTime:2020-06-29T19:45:57.1486609Z", + "Date" : "Mon, 29 Jun 2020 19:45:56 GMT", + "x-ms-client-request-id" : "1bd6382b-ee13-4269-8204-e8522f5ff34a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing265256429b07ba3f994b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3d4fadfd-c55b-4ad2-974c-fe1e59fa889e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650AE5BE71", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:57 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "355c8bb2-e01e-001f-2c4d-4e8fc4000000", + "Date" : "Mon, 29 Jun 2020 19:45:56 GMT", + "x-ms-client-request-id" : "3d4fadfd-c55b-4ad2-974c-fe1e59fa889e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1633256c19c31cbfd9424?prefix=javablobreadattributesstrparsing32471202c51554913b&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8c8d270f-8725-4a1a-ba9d-c5243df742dd" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f20f134b-901e-007d-2b4d-4ec81c000000", + "Body" : "javablobreadattributesstrparsing32471202c51554913b2/", + "Date" : "Mon, 29 Jun 2020 19:45:57 GMT", + "x-ms-client-request-id" : "8c8d270f-8725-4a1a-ba9d-c5243df742dd", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1633256c19c31cbfd9424/javablobreadattributesstrparsing32471202c51554913b", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f83b2870-9be2-4dda-b8b7-1c062e740906", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:57 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:57 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C650B21EAB6", + "Content-Length" : "0", + "x-ms-request-id" : "f157b301-f01e-004f-734d-4e90cc000000", + "x-ms-client-request-id" : "f83b2870-9be2-4dda-b8b7-1c062e740906" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1633256c19c31cbfd9424/javablobreadattributesstrparsing32471202c51554913b", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c53c39bd-811c-40ac-ac2e-4c4b7a3c39fd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:57 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:57 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C650B21EAB6", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:57 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "e1ac61ba-f01e-0022-7a4d-4e3ae2000000", + "x-ms-client-request-id" : "c53c39bd-811c-40ac-ac2e-4c4b7a3c39fd", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "222ddd39-9d29-42a8-bc27-8681d98e146d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2b596be5-d01e-001c-3c4d-4e8cc3000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing1633256c19c31cbfd9424Mon, 29 Jun 2020 19:45:56 GMT\"0x8D81C650AA3A296\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing265256429b07ba3f994b3Mon, 29 Jun 2020 19:45:57 GMT\"0x8D81C650AE5BE71\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:57 GMT", + "x-ms-client-request-id" : "222ddd39-9d29-42a8-bc27-8681d98e146d", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing1633256c19c31cbfd9424?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f168138b-4249-4512-a820-c7773b8451af" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "73b8104f-d01e-007a-044d-4e3e99000000", + "Date" : "Mon, 29 Jun 2020 19:45:57 GMT", + "x-ms-client-request-id" : "f168138b-4249-4512-a820-c7773b8451af" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing265256429b07ba3f994b3?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7c6bfe45-c10b-49a2-b30b-4f0338e25f64" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3e91f47d-201e-004d-244d-4e9236000000", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "x-ms-client-request-id" : "7c6bfe45-c10b-49a2-b30b-4f0338e25f64" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing096523654c178d9dde4a9", "jtcreadattributesstrparsing1633256c19c31cbfd9424", "jtcreadattributesstrparsing265256429b07ba3f994b3", "javablobreadattributesstrparsing32471202c51554913b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[7].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[7].json new file mode 100644 index 000000000000..9f10e0638fcb --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesstrparsing[7].json @@ -0,0 +1,226 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing195374cd18ae750a5b4ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0a543490-5165-4fe5-96e0-a62868eae5f8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "5c629bc2-e01e-0097-0d4d-4e371d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:5c629bc2-e01e-0097-0d4d-4e371d000000\nTime:2020-06-29T19:45:58.4885041Z", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "x-ms-client-request-id" : "0a543490-5165-4fe5-96e0-a62868eae5f8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing195374cd18ae750a5b4ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "689b951c-5478-4183-8078-b450038e1823" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650BB3088F", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fd48d9ed-501e-0042-0d4d-4e7fc0000000", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "x-ms-client-request-id" : "689b951c-5478-4183-8078-b450038e1823" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing204292b1a8608c41b245a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "38a8e382-04c1-478d-ad87-9922ca05cf0e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "0d15b57a-101e-00a0-3e4d-4e9bb2000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0d15b57a-101e-00a0-3e4d-4e9bb2000000\nTime:2020-06-29T19:45:58.8007445Z", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "x-ms-client-request-id" : "38a8e382-04c1-478d-ad87-9922ca05cf0e", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing204292b1a8608c41b245a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9d239ef9-775e-4aad-ad49-2ea0b2948836" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C650BE1A493", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:58 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "74f45c32-401e-009a-544d-4ed811000000", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "x-ms-client-request-id" : "9d239ef9-775e-4aad-ad49-2ea0b2948836" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing195374cd18ae750a5b4ef?prefix=javablobreadattributesstrparsing34827756c39bd8e59f&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7554f6dc-40b4-4429-88bd-fef864b02ca4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "66c74b72-301e-001d-7a4d-4e8d3e000000", + "Body" : "javablobreadattributesstrparsing34827756c39bd8e59f2/", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "x-ms-client-request-id" : "7554f6dc-40b4-4429-88bd-fef864b02ca4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing195374cd18ae750a5b4ef/javablobreadattributesstrparsing34827756c39bd8e59f", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1c4a2a6d-6bb7-4c1f-b5c1-965cb86b9ae5", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:59 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:45:58 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C650C150352", + "Content-Length" : "0", + "x-ms-request-id" : "feff2579-301e-00f3-754d-4e87bd000000", + "x-ms-client-request-id" : "1c4a2a6d-6bb7-4c1f-b5c1-965cb86b9ae5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing195374cd18ae750a5b4ef/javablobreadattributesstrparsing34827756c39bd8e59f", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7ea0025e-6d52-4509-a79e-79198f580b9b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:59 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:45:59 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C650C150352", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:45:59 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "18fbdc08-001e-009d-424d-4e2e94000000", + "x-ms-client-request-id" : "7ea0025e-6d52-4509-a79e-79198f580b9b", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesstrparsing&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "36691de3-3aff-4071-b420-244eadd6da37" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5e5db541-201e-0124-344d-4e8bcf000000", + "Body" : "jtcreadattributesstrparsingjtcreadattributesstrparsing195374cd18ae750a5b4efMon, 29 Jun 2020 19:45:58 GMT\"0x8D81C650BB3088F\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesstrparsing204292b1a8608c41b245aMon, 29 Jun 2020 19:45:58 GMT\"0x8D81C650BE1A493\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:59 GMT", + "x-ms-client-request-id" : "36691de3-3aff-4071-b420-244eadd6da37", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing195374cd18ae750a5b4ef?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ab09e2bd-24e1-4b40-b5ce-184337262d1b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fc2f7398-201e-00ce-634d-4e329b000000", + "Date" : "Mon, 29 Jun 2020 19:45:59 GMT", + "x-ms-client-request-id" : "ab09e2bd-24e1-4b40-b5ce-184337262d1b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesstrparsing204292b1a8608c41b245a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "09ec0f61-37aa-4189-9843-956ec7d838df" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "500a9dc2-c01e-0065-064d-4ee589000000", + "Date" : "Mon, 29 Jun 2020 19:45:59 GMT", + "x-ms-client-request-id" : "09ec0f61-37aa-4189-9843-956ec7d838df" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesstrparsing065375d2a2758cd48b45f", "jtcreadattributesstrparsing195374cd18ae750a5b4ef", "jtcreadattributesstrparsing204292b1a8608c41b245a", "javablobreadattributesstrparsing34827756c39bd8e59f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesunsupported.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesunsupported.json new file mode 100644 index 000000000000..803712c7ce41 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestreadattributesunsupported.json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesunsupported164923c34882698db54a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cf3bf2da-3e0b-475a-a145-9e12a5c816e9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "f3c418d3-f01e-00aa-2b4d-4e823b000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:f3c418d3-f01e-00aa-2b4d-4e823b000000\nTime:2020-06-29T19:45:42.9355595Z", + "Date" : "Mon, 29 Jun 2020 19:45:42 GMT", + "x-ms-client-request-id" : "cf3bf2da-3e0b-475a-a145-9e12a5c816e9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesunsupported164923c34882698db54a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "40c7ab51-6981-45e2-9cf9-345dc8168d96" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65026DCDEB", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c12dd213-a01e-011c-494d-4eca96000000", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "40c7ab51-6981-45e2-9cf9-345dc8168d96" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesunsupported246930c0b44fefe7a64b?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "28075f0e-fe4b-4766-8954-7f2115925ae4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "0003baed-301e-009e-544d-4e2d93000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0003baed-301e-009e-544d-4e2d93000000\nTime:2020-06-29T19:45:43.2570938Z", + "Date" : "Mon, 29 Jun 2020 19:45:42 GMT", + "x-ms-client-request-id" : "28075f0e-fe4b-4766-8954-7f2115925ae4", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesunsupported246930c0b44fefe7a64b?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "703b2a73-4b4b-4144-9783-8ee99457f942" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65029F07C7", + "Last-Modified" : "Mon, 29 Jun 2020 19:45:43 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7db2c778-d01e-0035-3d4d-4efa81000000", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "703b2a73-4b4b-4144-9783-8ee99457f942" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcreadattributesunsupported&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4aec31a5-9225-4cdb-b36e-78caaf901dad" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f8c3e7a1-401e-007f-6f4d-4ecae6000000", + "Body" : "jtcreadattributesunsupportedjtcreadattributesunsupported164923c34882698db54aMon, 29 Jun 2020 19:45:43 GMT\"0x8D81C65026DCDEB\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcreadattributesunsupported246930c0b44fefe7a64bMon, 29 Jun 2020 19:45:43 GMT\"0x8D81C65029F07C7\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:45:42 GMT", + "x-ms-client-request-id" : "4aec31a5-9225-4cdb-b36e-78caaf901dad", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesunsupported164923c34882698db54a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d20b9358-8564-491a-887c-ab4d277d3ccd" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "3d526401-e01e-00b5-564d-4e592b000000", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "d20b9358-8564-491a-887c-ab4d277d3ccd" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcreadattributesunsupported246930c0b44fefe7a64b?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6e2cec86-3d8b-426c-902a-9c0db631c228" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "575cd768-701e-013c-4d4d-4ea65a000000", + "Date" : "Mon, 29 Jun 2020 19:45:43 GMT", + "x-ms-client-request-id" : "6e2cec86-3d8b-426c-902a-9c0db631c228" + }, + "Exception" : null + } ], + "variables" : [ "jtcreadattributesunsupported045742a8798ea960cf46", "jtcreadattributesunsupported164923c34882698db54a", "jtcreadattributesunsupported246930c0b44fefe7a64b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesdirectory.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesdirectory.json new file mode 100644 index 000000000000..69b59952ba07 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesdirectory.json @@ -0,0 +1,192 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory166595c040d69d3c414eac?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1a4b56e0-5e6d-497c-9dfd-508b592fd9f5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "39d762f6-301e-0112-4b4d-4e269d000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:39d762f6-301e-0112-4b4d-4e269d000000\nTime:2020-06-29T19:46:20.3613308Z", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-client-request-id" : "1a4b56e0-5e6d-497c-9dfd-508b592fd9f5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory166595c040d69d3c414eac?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "72e0be11-d371-4227-9c22-a4d1ebc4ae0e" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6518BB067A", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9017a3f9-b01e-0121-034d-4e7fb0000000", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "72e0be11-d371-4227-9c22-a4d1ebc4ae0e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory285721ecd8f4ec22d54cd1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8d0f7c74-2530-4419-a880-faffcf7c9496" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "6922d245-c01e-0003-554d-4e57d3000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:6922d245-c01e-0003-554d-4e57d3000000\nTime:2020-06-29T19:46:20.6675576Z", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "8d0f7c74-2530-4419-a880-faffcf7c9496", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory285721ecd8f4ec22d54cd1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9c046eda-7ad5-4bb5-b3ab-6723c9d9f0be" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6518EAE7C9", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d99fa4e0-101e-004e-0e4d-4e9131000000", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "9c046eda-7ad5-4bb5-b3ab-6723c9d9f0be" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory166595c040d69d3c414eac/javablobsetattributesdirectory332512e8b07c487d964?comp=blocklist", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5efcd4cf-e5a0-44dd-b8cf-833fc4cfbb8d", + "Content-Type" : "application/xml; charset=utf-8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65190581A0", + "x-ms-content-crc64" : "p1vsGtjjPsk=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:20 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "30d848ad-b01e-0084-4d4d-4e02fc000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "5efcd4cf-e5a0-44dd-b8cf-833fc4cfbb8d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory166595c040d69d3c414eac/javablobsetattributesdirectory332512e8b07c487d964?comp=tier", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cee29a72-4f13-4f21-a061-cbc109918b39" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "d86f8ff1-b01e-00a6-294d-4e6cca000000", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "cee29a72-4f13-4f21-a061-cbc109918b39" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesdirectory&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e4f7489b-c9c6-497e-80fa-09acadbbeb89" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5535c9ad-701e-00dd-234d-4e077a000000", + "Body" : "jtcsetattributesdirectoryjtcsetattributesdirectory166595c040d69d3c414eacMon, 29 Jun 2020 19:46:20 GMT\"0x8D81C6518BB067A\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesdirectory285721ecd8f4ec22d54cd1Mon, 29 Jun 2020 19:46:20 GMT\"0x8D81C6518EAE7C9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "e4f7489b-c9c6-497e-80fa-09acadbbeb89", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory166595c040d69d3c414eac?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "94d72afe-4c05-4410-bc8e-b751ce12bae5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "0d2d7c6b-801e-00c3-204d-4edd97000000", + "Date" : "Mon, 29 Jun 2020 19:46:21 GMT", + "x-ms-client-request-id" : "94d72afe-4c05-4410-bc8e-b751ce12bae5" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesdirectory285721ecd8f4ec22d54cd1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a04d8526-b98f-46b2-b369-84e8e54697c3" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "080e018d-c01e-00e6-494d-4e4524000000", + "Date" : "Mon, 29 Jun 2020 19:46:20 GMT", + "x-ms-client-request-id" : "a04d8526-b98f-46b2-b369-84e8e54697c3" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesdirectory054127802b12bf68f44bfa", "jtcsetattributesdirectory166595c040d69d3c414eac", "jtcsetattributesdirectory285721ecd8f4ec22d54cd1", "javablobsetattributesdirectory332512e8b07c487d964" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesheaders[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesheaders[0].json new file mode 100644 index 000000000000..499a89dc7e2a --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesheaders[0].json @@ -0,0 +1,245 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9f3170e5-e810-43c2-8291-6c6b3c8780c5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2b5d0acc-c01e-0008-734d-4e4fa7000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2b5d0acc-c01e-0008-734d-4e4fa7000000\nTime:2020-06-29T19:46:07.5174812Z", + "Date" : "Mon, 29 Jun 2020 19:46:06 GMT", + "x-ms-client-request-id" : "9f3170e5-e810-43c2-8291-6c6b3c8780c5", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5097795f-ac1d-4b4f-83f2-b8971eef8160" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6511156EF0", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:07 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "fe4cdcfb-d01e-00f2-184d-4e8640000000", + "Date" : "Mon, 29 Jun 2020 19:46:07 GMT", + "x-ms-client-request-id" : "5097795f-ac1d-4b4f-83f2-b8971eef8160" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders292182f5f82bede16443d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "74c09439-28e7-4443-a230-84b639f2588c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "1d87bf6d-e01e-009c-284d-4e2f69000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1d87bf6d-e01e-009c-284d-4e2f69000000\nTime:2020-06-29T19:46:07.9150846Z", + "Date" : "Mon, 29 Jun 2020 19:46:07 GMT", + "x-ms-client-request-id" : "74c09439-28e7-4443-a230-84b639f2588c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders292182f5f82bede16443d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2e1591b5-7bc8-4e00-ac92-2edb15e92515" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6511511EBC", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "4e96fb3c-601e-0123-184d-4e7d4a000000", + "Date" : "Mon, 29 Jun 2020 19:46:07 GMT", + "x-ms-client-request-id" : "2e1591b5-7bc8-4e00-ac92-2edb15e92515" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8?prefix=javablobsetattributesheaders3043924aad8d41482d41&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2b960956-d95f-470c-b885-6c9c96f470db" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "0e9a2078-401e-011d-6d4d-4ecb6b000000", + "Body" : "javablobsetattributesheaders3043924aad8d41482d412/", + "Date" : "Mon, 29 Jun 2020 19:46:07 GMT", + "x-ms-client-request-id" : "2b960956-d95f-470c-b885-6c9c96f470db", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8/javablobsetattributesheaders3043924aad8d41482d41", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "dc0eda63-f971-472c-b385-b43bd1bbaf49", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:08 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C6511818098", + "Content-Length" : "0", + "x-ms-request-id" : "b7434ca6-101e-0028-2e4d-4e236b000000", + "x-ms-client-request-id" : "dc0eda63-f971-472c-b385-b43bd1bbaf49" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8/javablobsetattributesheaders3043924aad8d41482d41?comp=properties", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f2bd53b7-ae7e-4b3d-a426-07c7b32c4660" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65119DC06A", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:08 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a1e89ba3-701e-00d6-5c4d-4e1f0e000000", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "x-ms-client-request-id" : "f2bd53b7-ae7e-4b3d-a426-07c7b32c4660" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8/javablobsetattributesheaders3043924aad8d41482d41", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bad5828f-f8e0-4246-bd9d-ff951b95cce6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:08 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46:08 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" : "0x8D81C65119DC06A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:08 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "a728a49d-c01e-010c-024d-4efc70000000", + "x-ms-client-request-id" : "bad5828f-f8e0-4246-bd9d-ff951b95cce6" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7dad69e3-c8df-42af-837c-c5fac5d9533a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "a87a006c-101e-0067-1b4d-4ee773000000", + "Body" : "jtcsetattributesheadersjtcsetattributesheaders139367cc0595bb7033488c8Mon, 29 Jun 2020 19:46:07 GMT\"0x8D81C6511156EF0\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesheaders292182f5f82bede16443d8aMon, 29 Jun 2020 19:46:08 GMT\"0x8D81C6511511EBC\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "x-ms-client-request-id" : "7dad69e3-c8df-42af-837c-c5fac5d9533a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders139367cc0595bb7033488c8?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d2789f64-3257-4514-abd0-ac7f9ee3bea0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "13164c9b-101e-0089-234d-4eedf0000000", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "x-ms-client-request-id" : "d2789f64-3257-4514-abd0-ac7f9ee3bea0" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders292182f5f82bede16443d8a?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "92b434d8-9e20-4a93-964d-8c19faa4825f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9c7a537e-a01e-005c-754d-4ea52d000000", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "x-ms-client-request-id" : "92b434d8-9e20-4a93-964d-8c19faa4825f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesheaders010671ad08ddbcaaad4e7a8", "jtcsetattributesheaders139367cc0595bb7033488c8", "jtcsetattributesheaders292182f5f82bede16443d8a", "javablobsetattributesheaders3043924aad8d41482d41" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesheaders[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesheaders[1].json new file mode 100644 index 000000000000..14ba2f780116 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesheaders[1].json @@ -0,0 +1,251 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a30c8293-730c-4238-83e6-923c5e5d4b66" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "657020c5-401e-0056-614d-4ebca4000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:657020c5-401e-0056-614d-4ebca4000000\nTime:2020-06-29T19:46:09.3766519Z", + "Date" : "Mon, 29 Jun 2020 19:46:09 GMT", + "x-ms-client-request-id" : "a30c8293-730c-4238-83e6-923c5e5d4b66", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cb3415c8-bed4-4718-95d8-8ded67439c58" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6512323072", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "c79ce22b-901e-00dc-4d4d-4e0687000000", + "Date" : "Mon, 29 Jun 2020 19:46:09 GMT", + "x-ms-client-request-id" : "cb3415c8-bed4-4718-95d8-8ded67439c58" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders26576677ed2fcbd1e747fb9?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2fb9b2d6-6b08-4342-8402-caeaa38e6dde" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "36bbe296-101e-0127-284d-4e88c8000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:36bbe296-101e-0127-284d-4e88c8000000\nTime:2020-06-29T19:46:09.7043334Z", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "x-ms-client-request-id" : "2fb9b2d6-6b08-4342-8402-caeaa38e6dde", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders26576677ed2fcbd1e747fb9?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "406c629b-7b7c-4ac2-b198-4d7859d3d207" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651261C44F", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:09 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "3b35239a-101e-0045-0b4d-4e8945000000", + "Date" : "Mon, 29 Jun 2020 19:46:08 GMT", + "x-ms-client-request-id" : "406c629b-7b7c-4ac2-b198-4d7859d3d207" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b?prefix=javablobsetattributesheaders381324cc426dc48db34b&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f8a7532c-0fbe-48e4-8405-905186cb770a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f6031899-d01e-0017-5d4d-4e94b7000000", + "Body" : "javablobsetattributesheaders381324cc426dc48db34b2/", + "Date" : "Mon, 29 Jun 2020 19:46:09 GMT", + "x-ms-client-request-id" : "f8a7532c-0fbe-48e4-8405-905186cb770a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b/javablobsetattributesheaders381324cc426dc48db34b", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5fb7d9fa-ac81-4e8c-b82b-b99bea032448", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:10 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:09 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C651292D523", + "Content-Length" : "0", + "x-ms-request-id" : "f71e7dc1-201e-008a-474d-4eeef7000000", + "x-ms-client-request-id" : "5fb7d9fa-ac81-4e8c-b82b-b99bea032448" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b/javablobsetattributesheaders381324cc426dc48db34b?comp=properties", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e63bba33-723f-4545-9e43-9029baee3528" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6512AF14F9", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:10 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8cccc8b7-001e-0138-764d-4e53d8000000", + "Date" : "Mon, 29 Jun 2020 19:46:09 GMT", + "x-ms-client-request-id" : "e63bba33-723f-4545-9e43-9029baee3528" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b/javablobsetattributesheaders381324cc426dc48db34b", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "cb11112f-4c74-4084-baf6-e9a29743e51f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:10 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46: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" : "0x8D81C6512AF14F9", + "Content-Disposition" : "disposition", + "Content-Encoding" : "encoding", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:10 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "1c1c4bc7-b01e-0043-214d-4e7e3d000000", + "x-ms-client-request-id" : "cb11112f-4c74-4084-baf6-e9a29743e51f", + "Content-Language" : "language", + "Content-Type" : "type" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesheaders&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1237a329-fbf8-4612-b8aa-e8fed9b578fe" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "33a43d4c-e01e-00f1-2a4d-4e8547000000", + "Body" : "jtcsetattributesheadersjtcsetattributesheaders1785294f40da8ca21046d3bMon, 29 Jun 2020 19:46:09 GMT\"0x8D81C6512323072\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesheaders26576677ed2fcbd1e747fb9Mon, 29 Jun 2020 19:46:09 GMT\"0x8D81C651261C44F\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "1237a329-fbf8-4612-b8aa-e8fed9b578fe", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders1785294f40da8ca21046d3b?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e3a0ee10-5b76-45f9-b81d-9da8804a0ac4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "c6bca916-a01e-009b-164d-4ed9ec000000", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "e3a0ee10-5b76-45f9-b81d-9da8804a0ac4" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesheaders26576677ed2fcbd1e747fb9?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "14adc144-7959-4f07-89e9-bdbcd8e6d27b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "489bab3e-101e-000a-414d-4e4d5d000000", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "14adc144-7959-4f07-89e9-bdbcd8e6d27b" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesheaders042989951874eeca4b436eb", "jtcsetattributesheaders1785294f40da8ca21046d3b", "jtcsetattributesheaders26576677ed2fcbd1e747fb9", "javablobsetattributesheaders381324cc426dc48db34b" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[0].json new file mode 100644 index 000000000000..76868814dc60 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[0].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia1431794a4f70fb31454f11a62?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e9305356-998b-4a2f-9f3c-a8dc7d5015aa" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2661b124-701e-007c-2e4d-4ec9e1000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2661b124-701e-007c-2e4d-4ec9e1000000\nTime:2020-06-29T19:46:21.8051013Z", + "Date" : "Mon, 29 Jun 2020 19:46:21 GMT", + "x-ms-client-request-id" : "e9305356-998b-4a2f-9f3c-a8dc7d5015aa", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia1431794a4f70fb31454f11a62?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3c7fd169-3243-4a73-a8c5-d706387cb743" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65199802DE", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:21 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "49bc7c4b-401e-0012-664d-4e60c8000000", + "Date" : "Mon, 29 Jun 2020 19:46:21 GMT", + "x-ms-client-request-id" : "3c7fd169-3243-4a73-a8c5-d706387cb743" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia26338965e416068c9b406fae4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c825a53b-33e1-4260-86c9-c2f3764673b9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "ef14c393-d01e-0071-284d-4e26ed000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ef14c393-d01e-0071-284d-4e26ed000000\nTime:2020-06-29T19:46:22.1114342Z", + "Date" : "Mon, 29 Jun 2020 19:46:21 GMT", + "x-ms-client-request-id" : "c825a53b-33e1-4260-86c9-c2f3764673b9", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia26338965e416068c9b406fae4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f3cd4232-763a-4216-a07c-352859207fa5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6519CD838E", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:22 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "731f6aff-501e-00e3-154d-4eb15b000000", + "Date" : "Mon, 29 Jun 2020 19:46:21 GMT", + "x-ms-client-request-id" : "f3cd4232-763a-4216-a07c-352859207fa5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ba5d8845-27a7-487e-a998-b719ae22b4b3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "59c83c85-f01e-0029-6f4d-4e2296000000", + "Body" : "jtcsetattributesiajtcsetattributesia1431794a4f70fb31454f11a62Mon, 29 Jun 2020 19:46:21 GMT\"0x8D81C65199802DE\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesia26338965e416068c9b406fae4Mon, 29 Jun 2020 19:46:22 GMT\"0x8D81C6519CD838E\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:21 GMT", + "x-ms-client-request-id" : "ba5d8845-27a7-487e-a998-b719ae22b4b3", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia1431794a4f70fb31454f11a62?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1452c74c-ce61-4a17-b1ba-6f63191cf6c2" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "45c25a73-301e-0052-794d-4e4926000000", + "Date" : "Mon, 29 Jun 2020 19:46:22 GMT", + "x-ms-client-request-id" : "1452c74c-ce61-4a17-b1ba-6f63191cf6c2" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia26338965e416068c9b406fae4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2159208a-b405-483f-a1ac-45db89ad031f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "ff35fcab-f01e-0088-3d4d-4eec0d000000", + "Date" : "Mon, 29 Jun 2020 19:46:22 GMT", + "x-ms-client-request-id" : "2159208a-b405-483f-a1ac-45db89ad031f" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesia02607084ea496dc25443da931", "jtcsetattributesia1431794a4f70fb31454f11a62", "jtcsetattributesia26338965e416068c9b406fae4", "javablobsetattributesia356667236fe2034d184d909" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[1].json new file mode 100644 index 000000000000..de367230ad14 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[1].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia189608499d330175354b47b29?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "01d441fb-33bb-4c1a-8beb-12a404f2ed39" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "ba02a953-001e-00fb-4f4d-4e9cce000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:ba02a953-001e-00fb-4f4d-4e9cce000000\nTime:2020-06-29T19:46:22.9716996Z", + "Date" : "Mon, 29 Jun 2020 19:46:22 GMT", + "x-ms-client-request-id" : "01d441fb-33bb-4c1a-8beb-12a404f2ed39", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia189608499d330175354b47b29?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4f53b443-6fd4-4969-9847-73e9443010f5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651A4A3BEF", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "718c19ae-801e-0069-274d-4e0b78000000", + "Date" : "Mon, 29 Jun 2020 19:46:22 GMT", + "x-ms-client-request-id" : "4f53b443-6fd4-4969-9847-73e9443010f5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia2126696cd46c7020b3461cbe6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "82cebbd2-22ec-4760-9c65-b5332ea43d31" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "81d230e8-701e-0077-4e4d-4ed195000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:81d230e8-701e-0077-4e4d-4ed195000000\nTime:2020-06-29T19:46:23.2786451Z", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "82cebbd2-22ec-4760-9c65-b5332ea43d31", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia2126696cd46c7020b3461cbe6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fd5926e7-da69-4059-b305-3e263a2cabac" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651A798B64", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:23 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "adac49c1-601e-00c2-474d-4edc6a000000", + "Date" : "Mon, 29 Jun 2020 19:46:22 GMT", + "x-ms-client-request-id" : "fd5926e7-da69-4059-b305-3e263a2cabac" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5225e43a-9496-4a0b-8629-d5a07ac2dbae" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "08179c1f-501e-0120-5b4d-4e7e4d000000", + "Body" : "jtcsetattributesiajtcsetattributesia189608499d330175354b47b29Mon, 29 Jun 2020 19:46:23 GMT\"0x8D81C651A4A3BEF\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesia2126696cd46c7020b3461cbe6Mon, 29 Jun 2020 19:46:23 GMT\"0x8D81C651A798B64\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:22 GMT", + "x-ms-client-request-id" : "5225e43a-9496-4a0b-8629-d5a07ac2dbae", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia189608499d330175354b47b29?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "375015d7-b06e-4b39-83d2-c2640b0e540b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "5dc83080-201e-012f-134d-4e93bb000000", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "375015d7-b06e-4b39-83d2-c2640b0e540b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia2126696cd46c7020b3461cbe6?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "034da564-1ae9-4ad3-9902-eb188c77e76a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b86111a9-201e-00c5-4f4d-4e2aef000000", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "034da564-1ae9-4ad3-9902-eb188c77e76a" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesia047710d7f5d19b926145b5afb", "jtcsetattributesia189608499d330175354b47b29", "jtcsetattributesia2126696cd46c7020b3461cbe6", "javablobsetattributesia345110b3ee9bcef06c4f1e9" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[2].json new file mode 100644 index 000000000000..e79a2cc8374a --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesia[2].json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia1097105d22c32fd1d94491a14?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "adabd76d-e150-4901-8234-a198c60f1649" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "1d82f792-101e-00ab-324d-4e83c6000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:1d82f792-101e-00ab-324d-4e83c6000000\nTime:2020-06-29T19:46:24.1097423Z", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "adabd76d-e150-4901-8234-a198c60f1649", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia1097105d22c32fd1d94491a14?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b74be643-8b03-41e3-8062-352c642751c2" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651AFC7B60", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "bc400346-b01e-002e-2a4d-4ed413000000", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "b74be643-8b03-41e3-8062-352c642751c2" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia212576b9ef23cd182c45ee888?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "09a5d45e-cea9-4507-a140-ec9099671eb7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "74b75b91-801e-00c8-254d-4ec5e3000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:74b75b91-801e-00c8-254d-4ec5e3000000\nTime:2020-06-29T19:46:24.4737862Z", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "09a5d45e-cea9-4507-a140-ec9099671eb7", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia212576b9ef23cd182c45ee888?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f41d9259-1a7e-40cc-8904-e5e9409d5df5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651B2FE432", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:24 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "0ba9ee25-f01e-0126-3a4d-4e8935000000", + "Date" : "Mon, 29 Jun 2020 19:46:23 GMT", + "x-ms-client-request-id" : "f41d9259-1a7e-40cc-8904-e5e9409d5df5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesia&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2f6c30a0-cfc6-42c8-9286-00996a266d04" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "dbd2f875-301e-0095-014d-4e35e7000000", + "Body" : "jtcsetattributesiajtcsetattributesia1097105d22c32fd1d94491a14Mon, 29 Jun 2020 19:46:24 GMT\"0x8D81C651AFC7B60\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesia212576b9ef23cd182c45ee888Mon, 29 Jun 2020 19:46:24 GMT\"0x8D81C651B2FE432\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:24 GMT", + "x-ms-client-request-id" : "2f6c30a0-cfc6-42c8-9286-00996a266d04", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia1097105d22c32fd1d94491a14?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b3aaa4a9-21d9-48f1-a9e7-e61df300e4ce" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "5203057b-b01e-00cb-294d-4ec6e4000000", + "Date" : "Mon, 29 Jun 2020 19:46:24 GMT", + "x-ms-client-request-id" : "b3aaa4a9-21d9-48f1-a9e7-e61df300e4ce" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesia212576b9ef23cd182c45ee888?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ed6e3228-9817-4082-b18b-c47a46e881c6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "10ce243b-601e-0101-694d-4e137c000000", + "Date" : "Mon, 29 Jun 2020 19:46:24 GMT", + "x-ms-client-request-id" : "ed6e3228-9817-4082-b18b-c47a46e881c6" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesia015307cfecd7b5676b4099850", "jtcsetattributesia1097105d22c32fd1d94491a14", "jtcsetattributesia212576b9ef23cd182c45ee888", "javablobsetattributesia30885792ae4c6d643a4d59a" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesinvalidview.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesinvalidview.json new file mode 100644 index 000000000000..c85b6c43c6e9 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesinvalidview.json @@ -0,0 +1,149 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesinvalidview10195996dce7a2667c456?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "56024e7d-127d-4ccf-8af7-29519bc8780c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "718cb782-301e-0070-2a4d-4e2710000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:718cb782-301e-0070-2a4d-4e2710000000\nTime:2020-06-29T19:46:25.2902253Z", + "Date" : "Mon, 29 Jun 2020 19:46:24 GMT", + "x-ms-client-request-id" : "56024e7d-127d-4ccf-8af7-29519bc8780c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesinvalidview10195996dce7a2667c456?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4f34ae47-08f6-45fa-a1d8-221d64f1664a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651BAB80D1", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9fd30435-701e-0092-7a4d-4ec362000000", + "Date" : "Mon, 29 Jun 2020 19:46:24 GMT", + "x-ms-client-request-id" : "4f34ae47-08f6-45fa-a1d8-221d64f1664a" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesinvalidview239979f211dd4a30334ec?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "970f8af5-e479-4cf9-8961-24a83e82cfbf" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "905e3889-001e-0051-4c4d-4e4a21000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:905e3889-001e-0051-4c4d-4e4a21000000\nTime:2020-06-29T19:46:25.6061533Z", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "970f8af5-e479-4cf9-8961-24a83e82cfbf", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesinvalidview239979f211dd4a30334ec?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9377ae76-07b3-47d9-8304-84e9dba8e9f9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651BDFADA6", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:25 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "e400634d-601e-00eb-794d-4eaa28000000", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "9377ae76-07b3-47d9-8304-84e9dba8e9f9" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesinvalidview&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b1a0c7b3-1937-4f81-af15-01292c731d56" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9ef3506c-f01e-006d-234d-4efefa000000", + "Body" : "jtcsetattributesinvalidviewjtcsetattributesinvalidview10195996dce7a2667c456Mon, 29 Jun 2020 19:46:25 GMT\"0x8D81C651BAB80D1\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesinvalidview239979f211dd4a30334ecMon, 29 Jun 2020 19:46:25 GMT\"0x8D81C651BDFADA6\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "b1a0c7b3-1937-4f81-af15-01292c731d56", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesinvalidview10195996dce7a2667c456?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b2a1a9a3-9657-4f43-b1dc-607c8882471b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "54ababd7-601e-0068-554d-4e0a85000000", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "b2a1a9a3-9657-4f43-b1dc-607c8882471b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesinvalidview239979f211dd4a30334ec?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f12a485b-e273-40c0-b9b2-014eef7b2337" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "830b54e3-401e-0116-164d-4ed31f000000", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "f12a485b-e273-40c0-b9b2-014eef7b2337" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesinvalidview03556455e76d600eee417", "jtcsetattributesinvalidview10195996dce7a2667c456", "jtcsetattributesinvalidview239979f211dd4a30334ec", "javablobsetattributesinvalidview31079768cb82c94fdc" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesioexception.json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesioexception.json new file mode 100644 index 000000000000..2594f31bbeb5 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesioexception.json @@ -0,0 +1,171 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception13246557fd78d1281e4e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e0f3a2a6-11df-4094-807c-921331950359" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "cb0141d9-401e-005d-474d-4ea4d0000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:cb0141d9-401e-005d-474d-4ea4d0000000\nTime:2020-06-29T19:46:26.4552276Z", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "e0f3a2a6-11df-4094-807c-921331950359", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception13246557fd78d1281e4e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "35cd546b-c07e-406e-8460-4edec5e8c835" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651C5C3834", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d743a70f-101e-0105-584d-4ee6fe000000", + "Date" : "Mon, 29 Jun 2020 19:46:25 GMT", + "x-ms-client-request-id" : "35cd546b-c07e-406e-8460-4edec5e8c835" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception297532009d1c1bcd324c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "813f297f-1b80-4603-82f3-90c5b638ce28" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "2205a733-601e-0128-384d-4e653e000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:2205a733-601e-0128-384d-4e653e000000\nTime:2020-06-29T19:46:26.7623851Z", + "Date" : "Mon, 29 Jun 2020 19:46:26 GMT", + "x-ms-client-request-id" : "813f297f-1b80-4603-82f3-90c5b638ce28", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception297532009d1c1bcd324c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "45ba9e32-8625-4b69-b6b3-f3e34d0070d6" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651C8E23F5", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:26 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "8a1f8208-901e-0032-6f4d-4e0c04000000", + "Date" : "Mon, 29 Jun 2020 19:46:26 GMT", + "x-ms-client-request-id" : "45ba9e32-8625-4b69-b6b3-f3e34d0070d6" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception13246557fd78d1281e4e7/path?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e0bb7c7d-a5fa-4b20-a748-6e0d517c4c18" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "b3f58cf0-b01e-0108-294d-4e09f2000000", + "Body" : "BlobNotFoundThe specified blob does not exist.\nRequestId:b3f58cf0-b01e-0108-294d-4e09f2000000\nTime:2020-06-29T19:46:27.0966509Z", + "Date" : "Mon, 29 Jun 2020 19:46:26 GMT", + "x-ms-client-request-id" : "e0bb7c7d-a5fa-4b20-a748-6e0d517c4c18", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesioexception&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fc00eec3-6989-41c0-833b-4ba793b73c73" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "1259689e-b01e-0103-2f4d-4e1186000000", + "Body" : "jtcsetattributesioexceptionjtcsetattributesioexception13246557fd78d1281e4e7Mon, 29 Jun 2020 19:46:26 GMT\"0x8D81C651C5C3834\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesioexception297532009d1c1bcd324c1Mon, 29 Jun 2020 19:46:26 GMT\"0x8D81C651C8E23F5\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:27 GMT", + "x-ms-client-request-id" : "fc00eec3-6989-41c0-833b-4ba793b73c73", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception13246557fd78d1281e4e7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7b8b5e4d-115f-4c9b-9ec0-d54f816a7065" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "e8a51b17-a01e-00fd-064d-4e6bb6000000", + "Date" : "Mon, 29 Jun 2020 19:46:27 GMT", + "x-ms-client-request-id" : "7b8b5e4d-115f-4c9b-9ec0-d54f816a7065" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesioexception297532009d1c1bcd324c1?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c2eefbcb-7fa3-43c3-8cf3-3abd264ce104" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "fa8de6a7-401e-00f7-7a4d-4e723f000000", + "Date" : "Mon, 29 Jun 2020 19:46:26 GMT", + "x-ms-client-request-id" : "c2eefbcb-7fa3-43c3-8cf3-3abd264ce104" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesioexception03109155dc124b9bdb446", "jtcsetattributesioexception13246557fd78d1281e4e7", "jtcsetattributesioexception297532009d1c1bcd324c1" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[0].json new file mode 100644 index 000000000000..01844f4cd605 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[0].json @@ -0,0 +1,248 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "275de155-7ef2-4aac-8555-0ed20cb0b6a2" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "37401f95-601e-002c-2d4d-4ed6e9000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:37401f95-601e-002c-2d4d-4ed6e9000000\nTime:2020-06-29T19:46:11.1587958Z", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "275de155-7ef2-4aac-8555-0ed20cb0b6a2", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "002ba182-c514-4c23-a481-e1d8d3c7e814" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651340D21D", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "9d0ce495-901e-0076-654d-4ed068000000", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "002ba182-c514-4c23-a481-e1d8d3c7e814" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata228246a7ce7818ff554076?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a8d8d1e2-4ceb-4c83-bdff-ed36cff3176a" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "dae87fd7-c01e-0021-304d-4e39e5000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:dae87fd7-c01e-0021-304d-4e39e5000000\nTime:2020-06-29T19:46:11.4780606Z", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "a8d8d1e2-4ceb-4c83-bdff-ed36cff3176a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata228246a7ce7818ff554076?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a7fd3177-e609-4d69-ae7e-dd913a6028b5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65136FCA51", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:11 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "74e2ff42-b01e-0007-024d-4ea251000000", + "Date" : "Mon, 29 Jun 2020 19:46:10 GMT", + "x-ms-client-request-id" : "a7fd3177-e609-4d69-ae7e-dd913a6028b5" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7?prefix=javablobsetattributesmetadata373507c87ccd01513d42&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "64dce5ec-022e-4abb-9f24-1f55ac357034" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "4988749b-c01e-002a-314d-4e2191000000", + "Body" : "javablobsetattributesmetadata373507c87ccd01513d422/", + "Date" : "Mon, 29 Jun 2020 19:46:11 GMT", + "x-ms-client-request-id" : "64dce5ec-022e-4abb-9f24-1f55ac357034", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7/javablobsetattributesmetadata373507c87ccd01513d42", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e8ccb93d-ab33-48de-bc6e-a3080d80cf49", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:11 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:11 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C65139DC027", + "Content-Length" : "0", + "x-ms-request-id" : "f9c65c16-901e-0010-114d-4e6232000000", + "x-ms-client-request-id" : "e8ccb93d-ab33-48de-bc6e-a3080d80cf49" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7/javablobsetattributesmetadata373507c87ccd01513d42?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e46c5681-5e92-4a6f-9acd-d2c552dfd160" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6513B7193A", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:12 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2ed50b2b-101e-010e-6c4d-4efe8a000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:11 GMT", + "x-ms-client-request-id" : "e46c5681-5e92-4a6f-9acd-d2c552dfd160" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7/javablobsetattributesmetadata373507c87ccd01513d42", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "afe9dfdf-15d5-402b-b772-d4fcf1d42727" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:12 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46:11 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C6513B7193A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:11 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "344d94d4-801e-00a5-5f4d-4e6fcd000000", + "x-ms-client-request-id" : "afe9dfdf-15d5-402b-b772-d4fcf1d42727", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e230c591-71ff-4f2c-91f8-388ff1692a3a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "464ecc53-501e-012b-694d-4e6639000000", + "Body" : "jtcsetattributesmetadatajtcsetattributesmetadata1311914e9520535e7941f7Mon, 29 Jun 2020 19:46:11 GMT\"0x8D81C651340D21D\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesmetadata228246a7ce7818ff554076Mon, 29 Jun 2020 19:46:11 GMT\"0x8D81C65136FCA51\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:11 GMT", + "x-ms-client-request-id" : "e230c591-71ff-4f2c-91f8-388ff1692a3a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata1311914e9520535e7941f7?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "46f0a37f-cf9d-4984-bd8c-b1091a82a370" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b9f0c41d-e01e-0139-344d-4e5225000000", + "Date" : "Mon, 29 Jun 2020 19:46:12 GMT", + "x-ms-client-request-id" : "46f0a37f-cf9d-4984-bd8c-b1091a82a370" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata228246a7ce7818ff554076?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d4b9842a-f98e-4f09-a3d0-841f50fb84a1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "4486704f-101e-006c-6c4d-4eff07000000", + "Date" : "Mon, 29 Jun 2020 19:46:12 GMT", + "x-ms-client-request-id" : "d4b9842a-f98e-4f09-a3d0-841f50fb84a1" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesmetadata082602b72d220f87d742e7", "jtcsetattributesmetadata1311914e9520535e7941f7", "jtcsetattributesmetadata228246a7ce7818ff554076", "javablobsetattributesmetadata373507c87ccd01513d42" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[1].json new file mode 100644 index 000000000000..7bec711cb4a4 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[1].json @@ -0,0 +1,250 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "63bcb1fa-4740-4dee-894c-be6691ebf8c0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "0f9e28b4-c01e-00a2-0d4d-4e9948000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0f9e28b4-c01e-00a2-0d4d-4e9948000000\nTime:2020-06-29T19:46:13.1023701Z", + "Date" : "Mon, 29 Jun 2020 19:46:12 GMT", + "x-ms-client-request-id" : "63bcb1fa-4740-4dee-894c-be6691ebf8c0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "41e8e88b-7f70-4c8e-86b9-12c9d6888906" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651467AF50", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "12d6dd8f-201e-00ec-4a4d-4e5cad000000", + "Date" : "Mon, 29 Jun 2020 19:46:12 GMT", + "x-ms-client-request-id" : "41e8e88b-7f70-4c8e-86b9-12c9d6888906" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata272618ac80c21c9cbe47f5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "44a50224-1e3a-4823-9a44-cf6454bacb42" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "fa3f7bcf-701e-0137-6a4d-4ebe2e000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:fa3f7bcf-701e-0137-6a4d-4ebe2e000000\nTime:2020-06-29T19:46:13.4434999Z", + "Date" : "Mon, 29 Jun 2020 19:46:12 GMT", + "x-ms-client-request-id" : "44a50224-1e3a-4823-9a44-cf6454bacb42", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata272618ac80c21c9cbe47f5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "204aacd3-de14-4c33-af35-29d321b473c7" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65149B277B", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:13 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "d18f3c42-a01e-00b9-334d-4eb7da000000", + "Date" : "Mon, 29 Jun 2020 19:46:13 GMT", + "x-ms-client-request-id" : "204aacd3-de14-4c33-af35-29d321b473c7" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4?prefix=javablobsetattributesmetadata3748048f5c4070dd334c&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "dd23ddab-10b5-4d2d-ac63-dac127504d2a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "98e7a47e-f01e-0000-6d4d-4e54d4000000", + "Body" : "javablobsetattributesmetadata3748048f5c4070dd334c2/", + "Date" : "Mon, 29 Jun 2020 19:46:12 GMT", + "x-ms-client-request-id" : "dd23ddab-10b5-4d2d-ac63-dac127504d2a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4/javablobsetattributesmetadata3748048f5c4070dd334c", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "81f7ed01-89bb-4dbb-9822-196b2d4585d7", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:13 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:13 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C6514CC17F8", + "Content-Length" : "0", + "x-ms-request-id" : "5e6559e7-d01e-013a-2c4d-4e5122000000", + "x-ms-client-request-id" : "81f7ed01-89bb-4dbb-9822-196b2d4585d7" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4/javablobsetattributesmetadata3748048f5c4070dd334c?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f5be4230-e13b-4949-97a7-e5a382ce53a5" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6514E48684", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:14 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "93f0515d-d01e-0058-484d-4e50af000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:13 GMT", + "x-ms-client-request-id" : "f5be4230-e13b-4949-97a7-e5a382ce53a5" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4/javablobsetattributesmetadata3748048f5c4070dd334c", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "271baa3a-639e-4bdd-bcb9-75c4da19f8ec" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:14 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46:13 GMT", + "x-ms-meta-foo" : "bar", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C6514E48684", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:13 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "a736c263-e01e-011b-6e4d-4e3c13000000", + "x-ms-meta-fizz" : "buzz", + "x-ms-client-request-id" : "271baa3a-639e-4bdd-bcb9-75c4da19f8ec", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "27679aa2-a967-4a89-9790-9d19dc4c8971" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "e0822f65-901e-0039-524d-4e1470000000", + "Body" : "jtcsetattributesmetadatajtcsetattributesmetadata196747e58e60b41a2645d4Mon, 29 Jun 2020 19:46:13 GMT\"0x8D81C651467AF50\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesmetadata272618ac80c21c9cbe47f5Mon, 29 Jun 2020 19:46:13 GMT\"0x8D81C65149B277B\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "27679aa2-a967-4a89-9790-9d19dc4c8971", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata196747e58e60b41a2645d4?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "56ed206e-2f80-4baf-84d7-b51e11e2cd6b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d026ad7b-a01e-00d4-074d-4e1df4000000", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "56ed206e-2f80-4baf-84d7-b51e11e2cd6b" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata272618ac80c21c9cbe47f5?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9bc5588c-a535-43b6-8e6c-8ed1b08c4b92" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "d69336ed-701e-011e-704d-4ec86c000000", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "9bc5588c-a535-43b6-8e6c-8ed1b08c4b92" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesmetadata0478544438f0549bad48d4", "jtcsetattributesmetadata196747e58e60b41a2645d4", "jtcsetattributesmetadata272618ac80c21c9cbe47f5", "javablobsetattributesmetadata3748048f5c4070dd334c" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[2].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[2].json new file mode 100644 index 000000000000..d33041f1cdf3 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributesmetadata[2].json @@ -0,0 +1,250 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6e9c5ee1-196a-4d0c-81d5-fa0aebbe9de0" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "c56e1f54-101e-012c-4b4d-4e90bc000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:c56e1f54-101e-012c-4b4d-4e90bc000000\nTime:2020-06-29T19:46:14.9113988Z", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "6e9c5ee1-196a-4d0c-81d5-fa0aebbe9de0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "89f8dcda-62f0-457a-bfc4-b468628cc137" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C65157C1E76", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "4ed79c4c-901e-005f-294d-4ea62a000000", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "89f8dcda-62f0-457a-bfc4-b468628cc137" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata2146885d426326a3664511?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "94a00740-7281-440f-affd-3ef1ab40e59c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "85bf0f9b-a01e-0135-244d-4ebcd4000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:85bf0f9b-a01e-0135-244d-4ebcd4000000\nTime:2020-06-29T19:46:15.2443686Z", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "94a00740-7281-440f-affd-3ef1ab40e59c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata2146885d426326a3664511?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "83b395b4-5cc1-42fa-8527-aa4f3f32198d" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6515AE8A69", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "38152eca-b01e-008f-3d4d-4e1a88000000", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "83b395b4-5cc1-42fa-8527-aa4f3f32198d" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929?prefix=javablobsetattributesmetadata3672317595b94457274d&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "354153d1-6a90-4692-a214-c2ca1d4db14a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fc022a6a-101e-00c6-354d-4e29e8000000", + "Body" : "javablobsetattributesmetadata3672317595b94457274d2/", + "Date" : "Mon, 29 Jun 2020 19:46:14 GMT", + "x-ms-client-request-id" : "354153d1-6a90-4692-a214-c2ca1d4db14a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929/javablobsetattributesmetadata3672317595b94457274d", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "06e66a70-5b32-4d09-9c34-e385927b4001", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:15 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:15 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C6515DCF781", + "Content-Length" : "0", + "x-ms-request-id" : "963e2eb3-501e-00e8-514d-4ea92f000000", + "x-ms-client-request-id" : "06e66a70-5b32-4d09-9c34-e385927b4001" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929/javablobsetattributesmetadata3672317595b94457274d?comp=metadata", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b5b8ac5e-57aa-4b92-bbff-0fee475f7f78" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6515F3B80A", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:15 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8d3601e6-701e-001a-6a4d-4e7bbb000000", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:15 GMT", + "x-ms-client-request-id" : "b5b8ac5e-57aa-4b92-bbff-0fee475f7f78" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929/javablobsetattributesmetadata3672317595b94457274d", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a4e05a8a-a29c-44aa-909e-5f24db1e8a69" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:15 GMT", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-meta-i_" : "a", + "Date" : "Mon, 29 Jun 2020 19:46:15 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier-inferred" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C6515F3B80A", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:15 GMT", + "Content-Length" : "0", + "x-ms-meta-i0" : "a", + "x-ms-request-id" : "b4678826-e01e-0079-6c4d-4e3d9e000000", + "x-ms-client-request-id" : "a4e05a8a-a29c-44aa-909e-5f24db1e8a69", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributesmetadata&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4ef005c7-a1f8-4c78-81ac-70288fc47e8a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "8de971c6-601e-00af-154d-4e7644000000", + "Body" : "jtcsetattributesmetadatajtcsetattributesmetadata141366e01eb71353304929Mon, 29 Jun 2020 19:46:15 GMT\"0x8D81C65157C1E76\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributesmetadata2146885d426326a3664511Mon, 29 Jun 2020 19:46:15 GMT\"0x8D81C6515AE8A69\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "4ef005c7-a1f8-4c78-81ac-70288fc47e8a", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata141366e01eb71353304929?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2537a2c9-357a-4b80-9d71-32fcefae7c83" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "c5bb8a62-101e-0082-024d-4ef584000000", + "Date" : "Mon, 29 Jun 2020 19:46:15 GMT", + "x-ms-client-request-id" : "2537a2c9-357a-4b80-9d71-32fcefae7c83" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributesmetadata2146885d426326a3664511?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a763c0b9-16ad-4d4f-b9b2-2a93de9253b1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "9b47d6cc-601e-00e0-014d-4eb25c000000", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "a763c0b9-16ad-4d4f-b9b2-2a93de9253b1" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributesmetadata07353875b964b6b2b944a8", "jtcsetattributesmetadata141366e01eb71353304929", "jtcsetattributesmetadata2146885d426326a3664511", "javablobsetattributesmetadata3672317595b94457274d" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributestier[0].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributestier[0].json new file mode 100644 index 000000000000..8f38ca076108 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributestier[0].json @@ -0,0 +1,245 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "343963db-741d-42c2-900d-9a40468af16c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "0aee2122-a01e-00b2-014d-4eafae000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:0aee2122-a01e-00b2-014d-4eafae000000\nTime:2020-06-29T19:46:16.7075047Z", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "343963db-741d-42c2-900d-9a40468af16c", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1418d70a-7466-4ab8-89a7-29497bd59c1f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C651691AFF7", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:16 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "97221a66-b01e-00e9-154d-4ea8d2000000", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "1418d70a-7466-4ab8-89a7-29497bd59c1f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier230215e86c170cccf34365ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8b538eeb-405e-4d59-aa70-5005931f1885" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "f3a61ec8-901e-011f-364d-4ec991000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:f3a61ec8-901e-011f-364d-4ec991000000\nTime:2020-06-29T19:46:17.0484707Z", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "8b538eeb-405e-4d59-aa70-5005931f1885", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier230215e86c170cccf34365ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a1c8f333-0f2c-47d6-aa21-bab60afcf100" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6516C1D0F9", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:17 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "1ec194f7-001e-0015-1b4d-4e964d000000", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "a1c8f333-0f2c-47d6-aa21-bab60afcf100" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189?prefix=javablobsetattributestier379276d28bd9a0f26a463f&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ed94f1bf-e623-4f27-be72-c681f7b27962" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "5bc8c390-701e-00b0-774d-4ead54000000", + "Body" : "javablobsetattributestier379276d28bd9a0f26a463f2/", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "x-ms-client-request-id" : "ed94f1bf-e623-4f27-be72-c681f7b27962", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189/javablobsetattributestier379276d28bd9a0f26a463f", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "fe6f1a5c-ea70-4522-8926-b11f38ef3773", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:17 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:16 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C6516F10BB8", + "Content-Length" : "0", + "x-ms-request-id" : "d1893959-e01e-00fa-044d-4e9d33000000", + "x-ms-client-request-id" : "fe6f1a5c-ea70-4522-8926-b11f38ef3773" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189/javablobsetattributestier379276d28bd9a0f26a463f?comp=tier", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3d29e599-ffb6-4d7a-a43b-254097a838f9" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2dcb72f0-501e-0109-694d-4e080f000000", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-client-request-id" : "3d29e599-ffb6-4d7a-a43b-254097a838f9" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189/javablobsetattributestier379276d28bd9a0f26a463f", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8134e33f-9bb8-4966-968f-758e61905b21" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:17 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Mon, 29 Jun 2020 19:46:17 GMT", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Hot", + "ETag" : "0x8D81C6516F10BB8", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:17 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "7c7684a6-d01e-00db-604d-4ef002000000", + "x-ms-client-request-id" : "8134e33f-9bb8-4966-968f-758e61905b21", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributestier&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "499441a9-ee83-46fa-9257-b4b15a2c08a8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "e900f6eb-c01e-0125-1e4d-4e8a32000000", + "Body" : "jtcsetattributestierjtcsetattributestier176543170d623ad8ca4c8189Mon, 29 Jun 2020 19:46:16 GMT\"0x8D81C651691AFF7\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributestier230215e86c170cccf34365adMon, 29 Jun 2020 19:46:17 GMT\"0x8D81C6516C1D0F9\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-client-request-id" : "499441a9-ee83-46fa-9257-b4b15a2c08a8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier176543170d623ad8ca4c8189?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "546fe4ee-05e6-40db-9ee4-1a17f9142724" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "1f0d2206-301e-00bc-4f4d-4e43a5000000", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-client-request-id" : "546fe4ee-05e6-40db-9ee4-1a17f9142724" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier230215e86c170cccf34365ad?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "58bc7106-354b-4eff-86fa-f6ee1118e5fe" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "162fbf69-401e-00de-764d-4e047d000000", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-client-request-id" : "58bc7106-354b-4eff-86fa-f6ee1118e5fe" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributestier0081433bee3e6eb21548bca1", "jtcsetattributestier176543170d623ad8ca4c8189", "jtcsetattributestier230215e86c170cccf34365ad", "javablobsetattributestier379276d28bd9a0f26a463f" ] +} \ No newline at end of file diff --git a/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributestier[1].json b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributestier[1].json new file mode 100644 index 000000000000..cd3c0b1e0631 --- /dev/null +++ b/sdk/storage/azure-storage-blob-nio/src/test/resources/session-records/AzureFileSystemProviderTestsetattributestier[1].json @@ -0,0 +1,245 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "1ea3fde9-fd0b-4d4f-a58f-863385ae7f9b" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "d5b2a734-c01e-004c-014d-4e93cb000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:d5b2a734-c01e-004c-014d-4e93cb000000\nTime:2020-06-29T19:46:18.5968275Z", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-client-request-id" : "1ea3fde9-fd0b-4d4f-a58f-863385ae7f9b", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "62dc58f1-ddc4-450f-a8ec-47c7cb511b62" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6517AF36C5", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:18 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "73228f54-e01e-005b-6d4d-4e53a8000000", + "Date" : "Mon, 29 Jun 2020 19:46:17 GMT", + "x-ms-client-request-id" : "62dc58f1-ddc4-450f-a8ec-47c7cb511b62" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier2335647de98cc16afc4b5f93?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f82e977d-4e03-4b90-b252-c2bae2cb02b1" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "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" : "efaf363c-401e-0019-3c4d-4e78bc000000", + "Body" : "ContainerNotFoundThe specified container does not exist.\nRequestId:efaf363c-401e-0019-3c4d-4e78bc000000\nTime:2020-06-29T19:46:18.9259593Z", + "Date" : "Mon, 29 Jun 2020 19:46:18 GMT", + "x-ms-client-request-id" : "f82e977d-4e03-4b90-b252-c2bae2cb02b1", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier2335647de98cc16afc4b5f93?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f9ad87ef-0ae4-4d40-9a93-fe86c46b5d3f" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "ETag" : "0x8D81C6517DFA2C4", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:19 GMT", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "x-ms-request-id" : "7cd9e1c7-001e-0078-1b4d-4e3c63000000", + "Date" : "Mon, 29 Jun 2020 19:46:18 GMT", + "x-ms-client-request-id" : "f9ad87ef-0ae4-4d40-9a93-fe86c46b5d3f" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba?prefix=javablobsetattributestier357352b9c3df5a075948bf&delimiter=/&maxresults=2&include=metadata&restype=container&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "799f1998-fe71-4ca1-ac83-73a72bf5d4e0" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "b45a2cc4-601e-000e-674d-4eb8df000000", + "Body" : "javablobsetattributestier357352b9c3df5a075948bf2/", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-client-request-id" : "799f1998-fe71-4ca1-ac83-73a72bf5d4e0", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba/javablobsetattributestier357352b9c3df5a075948bf", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "62296a57-60da-42ca-91f0-2cc2aa8b8b3d", + "Content-Type" : "application/octet-stream" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-content-crc64" : "AAAAAAAAAAA=", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:19 GMT", + "retry-after" : "0", + "StatusCode" : "201", + "x-ms-request-server-encrypted" : "true", + "Date" : "Mon, 29 Jun 2020 19:46:18 GMT", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "ETag" : "0x8D81C65180FD041", + "Content-Length" : "0", + "x-ms-request-id" : "3d82ed59-f01e-0044-654d-4e88b8000000", + "x-ms-client-request-id" : "62296a57-60da-42ca-91f0-2cc2aa8b8b3d" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba/javablobsetattributestier357352b9c3df5a075948bf?comp=tier", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d6e52437-c1c5-49b9-9f7d-a46b844f62e4" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "997a7963-a01e-00df-694d-4e0580000000", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-client-request-id" : "d6e52437-c1c5-49b9-9f7d-a46b844f62e4" + }, + "Exception" : null + }, { + "Method" : "HEAD", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba/javablobsetattributestier357352b9c3df5a075948bf", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "eb6a1802-5771-44da-95a8-67b86a2fcda8" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "x-ms-lease-status" : "unlocked", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "x-ms-lease-state" : "available", + "Last-Modified" : "Mon, 29 Jun 2020 19:46:19 GMT", + "retry-after" : "0", + "x-ms-access-tier-change-time" : "Mon, 29 Jun 2020 19:46:19 GMT", + "StatusCode" : "200", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-blob-type" : "BlockBlob", + "Content-MD5" : "1B2M2Y8AsgTpgAmY7PhCfg==", + "Accept-Ranges" : "bytes", + "x-ms-server-encrypted" : "true", + "x-ms-access-tier" : "Cool", + "ETag" : "0x8D81C65180FD041", + "x-ms-creation-time" : "Mon, 29 Jun 2020 19:46:19 GMT", + "Content-Length" : "0", + "x-ms-request-id" : "e0a7bb31-701e-0115-654d-4ed018000000", + "x-ms-client-request-id" : "eb6a1802-5771-44da-95a8-67b86a2fcda8", + "Content-Type" : "application/octet-stream" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtcsetattributestier&comp=list", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "d029cbd1-ca6a-4a8a-a901-7a016ec997b8" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "76377f44-f01e-0083-104d-4ef479000000", + "Body" : "jtcsetattributestierjtcsetattributestier1265167a3a4062e6f84979baMon, 29 Jun 2020 19:46:18 GMT\"0x8D81C6517AF36C5\"unlockedavailable$account-encryption-keyfalsefalsefalsejtcsetattributestier2335647de98cc16afc4b5f93Mon, 29 Jun 2020 19:46:19 GMT\"0x8D81C6517DFA2C4\"unlockedavailable$account-encryption-keyfalsefalsefalse", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-client-request-id" : "d029cbd1-ca6a-4a8a-a901-7a016ec997b8", + "Content-Type" : "application/xml" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier1265167a3a4062e6f84979ba?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "23b242d9-2a1c-4117-8c8f-c8fab0e18952" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b59cc5f7-a01e-007e-644d-4ecb1b000000", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-client-request-id" : "23b242d9-2a1c-4117-8c8f-c8fab0e18952" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "https://REDACTED.blob.core.windows.net/jtcsetattributestier2335647de98cc16afc4b5f93?restype=container", + "Headers" : { + "x-ms-version" : "2019-07-07", + "User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.1 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8a1a28a7-04bb-4779-8df9-7c3e0c49b57c" + }, + "Response" : { + "x-ms-version" : "2019-07-07", + "Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "x-ms-request-id" : "b86012a1-801e-008c-394d-4e198f000000", + "Date" : "Mon, 29 Jun 2020 19:46:19 GMT", + "x-ms-client-request-id" : "8a1a28a7-04bb-4779-8df9-7c3e0c49b57c" + }, + "Exception" : null + } ], + "variables" : [ "jtcsetattributestier024530bf4858d2ab9147a68c", "jtcsetattributestier1265167a3a4062e6f84979ba", "jtcsetattributestier2335647de98cc16afc4b5f93", "javablobsetattributestier357352b9c3df5a075948bf" ] +} \ No newline at end of file